]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
wrong caption for html window, cleanup
[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_wxColor swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCOverlay swig_types[35]
2502 #define SWIGTYPE_p_wxDash swig_types[36]
2503 #define SWIGTYPE_p_wxDateEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507 #define SWIGTYPE_p_wxEffects swig_types[41]
2508 #define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510 #define SWIGTYPE_p_wxEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512 #define SWIGTYPE_p_wxFSFile swig_types[46]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[47]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516 #define SWIGTYPE_p_wxFont swig_types[50]
2517 #define SWIGTYPE_p_wxFontList swig_types[51]
2518 #define SWIGTYPE_p_wxFontMapper swig_types[52]
2519 #define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520 #define SWIGTYPE_p_wxGCDC swig_types[54]
2521 #define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObject swig_types[56]
2523 #define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524 #define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2528 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2530 #define SWIGTYPE_p_wxIcon swig_types[64]
2531 #define SWIGTYPE_p_wxIconBundle swig_types[65]
2532 #define SWIGTYPE_p_wxIconLocation swig_types[66]
2533 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535 #define SWIGTYPE_p_wxImage swig_types[69]
2536 #define SWIGTYPE_p_wxImageHandler swig_types[70]
2537 #define SWIGTYPE_p_wxImageList swig_types[71]
2538 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539 #define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542 #define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543 #define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544 #define SWIGTYPE_p_wxLocale swig_types[78]
2545 #define SWIGTYPE_p_wxMask swig_types[79]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548 #define SWIGTYPE_p_wxMenu swig_types[82]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[83]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[85]
2552 #define SWIGTYPE_p_wxMetaFile swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554 #define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560 #define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564 #define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxObject swig_types[100]
2567 #define SWIGTYPE_p_wxOverlay swig_types[101]
2568 #define SWIGTYPE_p_wxPCXHandler swig_types[102]
2569 #define SWIGTYPE_p_wxPNGHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPNMHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPaintDC swig_types[105]
2572 #define SWIGTYPE_p_wxPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxPalette swig_types[107]
2574 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPaperSize swig_types[109]
2576 #define SWIGTYPE_p_wxPen swig_types[110]
2577 #define SWIGTYPE_p_wxPenList swig_types[111]
2578 #define SWIGTYPE_p_wxPixelDataBase swig_types[112]
2579 #define SWIGTYPE_p_wxPoint swig_types[113]
2580 #define SWIGTYPE_p_wxPoint2D swig_types[114]
2581 #define SWIGTYPE_p_wxPostScriptDC swig_types[115]
2582 #define SWIGTYPE_p_wxPrintData swig_types[116]
2583 #define SWIGTYPE_p_wxPrinterDC swig_types[117]
2584 #define SWIGTYPE_p_wxPseudoDC swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyLocale swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRect swig_types[128]
2595 #define SWIGTYPE_p_wxRegion swig_types[129]
2596 #define SWIGTYPE_p_wxRegionIterator swig_types[130]
2597 #define SWIGTYPE_p_wxRendererNative swig_types[131]
2598 #define SWIGTYPE_p_wxRendererVersion swig_types[132]
2599 #define SWIGTYPE_p_wxScreenDC swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603 #define SWIGTYPE_p_wxShowEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSize swig_types[138]
2605 #define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSizer swig_types[140]
2607 #define SWIGTYPE_p_wxSizerItem swig_types[141]
2608 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[142]
2609 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144]
2611 #define SWIGTYPE_p_wxStockGDI swig_types[145]
2612 #define SWIGTYPE_p_wxString swig_types[146]
2613 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614 #define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[149]
2616 #define SWIGTYPE_p_wxValidator swig_types[150]
2617 #define SWIGTYPE_p_wxWindow swig_types[151]
2618 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[152]
2619 #define SWIGTYPE_p_wxWindowDC swig_types[153]
2620 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154]
2621 #define SWIGTYPE_p_wxXPMHandler swig_types[155]
2622 static swig_type_info *swig_types[157];
2623 static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0};
2624 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2625 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2626
2627 /* -------- TYPES TABLE (END) -------- */
2628
2629 #if (PY_VERSION_HEX <= 0x02000000)
2630 # if !defined(SWIG_PYTHON_CLASSIC)
2631 # error "This python version requires to use swig with the '-classic' option"
2632 # endif
2633 #endif
2634 #if (PY_VERSION_HEX <= 0x02020000)
2635 # error "This python version requires to use swig with the '-nomodern' option"
2636 #endif
2637 #if (PY_VERSION_HEX <= 0x02020000)
2638 # error "This python version requires to use swig with the '-nomodernargs' option"
2639 #endif
2640 #ifndef METH_O
2641 # error "This python version requires to use swig with the '-nofastunpack' option"
2642 #endif
2643
2644 /*-----------------------------------------------
2645 @(target):= _gdi_.so
2646 ------------------------------------------------*/
2647 #define SWIG_init init_gdi_
2648
2649 #define SWIG_name "_gdi_"
2650
2651 #define SWIGVERSION 0x010329
2652
2653
2654 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2655 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2656
2657
2658 #include <stdexcept>
2659
2660
2661 namespace swig {
2662 class PyObject_ptr {
2663 protected:
2664 PyObject *_obj;
2665
2666 public:
2667 PyObject_ptr() :_obj(0)
2668 {
2669 }
2670
2671 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2672 {
2673 Py_XINCREF(_obj);
2674 }
2675
2676 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2677 {
2678 if (initial_ref) Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr & operator=(const PyObject_ptr& item)
2682 {
2683 Py_XINCREF(item._obj);
2684 Py_XDECREF(_obj);
2685 _obj = item._obj;
2686 return *this;
2687 }
2688
2689 ~PyObject_ptr()
2690 {
2691 Py_XDECREF(_obj);
2692 }
2693
2694 operator PyObject *() const
2695 {
2696 return _obj;
2697 }
2698
2699 PyObject *operator->() const
2700 {
2701 return _obj;
2702 }
2703 };
2704 }
2705
2706
2707 namespace swig {
2708 struct PyObject_var : PyObject_ptr {
2709 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2710
2711 PyObject_var & operator = (PyObject* obj)
2712 {
2713 Py_XDECREF(_obj);
2714 _obj = obj;
2715 return *this;
2716 }
2717 };
2718 }
2719
2720
2721 #include "wx/wxPython/wxPython.h"
2722 #include "wx/wxPython/pyclasses.h"
2723
2724
2725 static const wxString wxPyEmptyString(wxEmptyString);
2726
2727 #define SWIG_From_long PyInt_FromLong
2728
2729
2730 SWIGINTERNINLINE PyObject *
2731 SWIG_From_int (int value)
2732 {
2733 return SWIG_From_long (value);
2734 }
2735
2736
2737 #include <limits.h>
2738 #ifndef LLONG_MIN
2739 # define LLONG_MIN LONG_LONG_MIN
2740 #endif
2741 #ifndef LLONG_MAX
2742 # define LLONG_MAX LONG_LONG_MAX
2743 #endif
2744 #ifndef ULLONG_MAX
2745 # define ULLONG_MAX ULONG_LONG_MAX
2746 #endif
2747
2748
2749 SWIGINTERN int
2750 SWIG_AsVal_long (PyObject* obj, long* val)
2751 {
2752 if (PyNumber_Check(obj)) {
2753 if (val) *val = PyInt_AsLong(obj);
2754 return SWIG_OK;
2755 }
2756 return SWIG_TypeError;
2757 }
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2762 {
2763 long v = 0;
2764 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2765 return SWIG_TypeError;
2766 }
2767 else if (val)
2768 *val = (unsigned long)v;
2769 return SWIG_OK;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2775 {
2776 unsigned long v;
2777 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2778 if (SWIG_IsOK(res)) {
2779 if ((v > UCHAR_MAX)) {
2780 return SWIG_OverflowError;
2781 } else {
2782 if (val) *val = static_cast< unsigned char >(v);
2783 }
2784 }
2785 return res;
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject*
2790 SWIG_From_unsigned_SS_long (unsigned long value)
2791 {
2792 return (value > LONG_MAX) ?
2793 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2794 }
2795
2796
2797 SWIGINTERNINLINE PyObject *
2798 SWIG_From_unsigned_SS_char (unsigned char value)
2799 {
2800 return SWIG_From_unsigned_SS_long (value);
2801 }
2802
2803 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2804 wxColour temp, *obj = &temp;
2805 if ( other == Py_None ) return false;
2806 if ( ! wxColour_helper(other, &obj) ) {
2807 PyErr_Clear();
2808 return false;
2809 }
2810 return self->operator==(*obj);
2811 }
2812 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2813 wxColour temp, *obj = &temp;
2814 if ( other == Py_None ) return true;
2815 if ( ! wxColour_helper(other, &obj)) {
2816 PyErr_Clear();
2817 return true;
2818 }
2819 return self->operator!=(*obj);
2820 }
2821
2822 SWIGINTERN int
2823 SWIG_AsVal_bool (PyObject *obj, bool *val)
2824 {
2825 if (obj == Py_True) {
2826 if (val) *val = true;
2827 return SWIG_OK;
2828 } else if (obj == Py_False) {
2829 if (val) *val = false;
2830 return SWIG_OK;
2831 } else {
2832 long v = 0;
2833 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2834 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2835 return res;
2836 }
2837 }
2838
2839 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2840 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2841 int red = -1;
2842 int green = -1;
2843 int blue = -1;
2844 int alpha = wxALPHA_OPAQUE;
2845 if (self->IsOk()) {
2846 red = self->Red();
2847 green = self->Green();
2848 blue = self->Blue();
2849 alpha = self->Alpha();
2850 }
2851 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2852 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2853 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2854 if (includeAlpha)
2855 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2856 return rv;
2857 }
2858 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2859 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2860 }
2861
2862 SWIGINTERN int
2863 SWIG_AsVal_int (PyObject * obj, int *val)
2864 {
2865 long v;
2866 int res = SWIG_AsVal_long (obj, &v);
2867 if (SWIG_IsOK(res)) {
2868 if ((v < INT_MIN || v > INT_MAX)) {
2869 return SWIG_OverflowError;
2870 } else {
2871 if (val) *val = static_cast< int >(v);
2872 }
2873 }
2874 return res;
2875 }
2876
2877 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2878 wxDash* dashes;
2879 int count = self->GetDashes(&dashes);
2880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2881 PyObject* retval = PyList_New(0);
2882 for (int x=0; x<count; x++) {
2883 PyObject* pyint = PyInt_FromLong(dashes[x]);
2884 PyList_Append(retval, pyint);
2885 Py_DECREF(pyint);
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return retval;
2889 }
2890 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2891 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2892 int size = PyList_Size(pyDashes);
2893 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2894
2895 // black magic warning! The array of wxDashes needs to exist as
2896 // long as the pen does because wxPen does not copy the array. So
2897 // stick a copy in a Python string object and attach it to _self,
2898 // and then call SetDashes with a pointer to that array. Then
2899 // when the Python pen object is destroyed the array will be
2900 // cleaned up too.
2901 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2902 PyObject_SetAttrString(_self, "_dashes", strDashes);
2903
2904 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2905 delete [] dashes;
2906 Py_DECREF(strDashes);
2907 wxPyEndBlockThreads(blocked);
2908 }
2909 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2910 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2911
2912 #include <wx/rawbmp.h>
2913
2914
2915 #include <wx/image.h>
2916
2917 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2918 char** cArray = NULL;
2919 int count;
2920
2921 if (!PyList_Check(listOfStrings)) {
2922 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2923 return NULL;
2924 }
2925 count = PyList_Size(listOfStrings);
2926 cArray = new char*[count];
2927
2928 for(int x=0; x<count; x++) {
2929 // TODO: Need some validation and error checking here
2930 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2931 }
2932 return cArray;
2933 }
2934
2935
2936 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2937 char** cArray = NULL;
2938 wxBitmap* bmp;
2939
2940 cArray = ConvertListOfStrings(listOfStrings);
2941 if (! cArray)
2942 return NULL;
2943 bmp = new wxBitmap(cArray);
2944 delete [] cArray;
2945 return bmp;
2946 }
2947 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2948 char* buf;
2949 Py_ssize_t length;
2950 PyString_AsStringAndSize(bits, &buf, &length);
2951 return new wxBitmap(buf, width, height, depth);
2952 }
2953 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2954 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2955 wxSize size(self->GetWidth(), self->GetHeight());
2956 return size;
2957 }
2958 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2959 wxMask *mask = new wxMask(*self, colour);
2960 self->SetMask(mask);
2961 }
2962 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2963 self->SetWidth(size.x);
2964 self->SetHeight(size.y);
2965 }
2966 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2967 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2968
2969 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2970 // appears to me that the other platforms are already doing it, so I'll just
2971 // automatically do it for wxMSW here.
2972 #ifdef __WXMSW__
2973 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2974 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2975 #else
2976 #define wxPy_premultiply(p, a) (p)
2977 #define wxPy_unpremultiply(p, a) (p)
2978 #endif
2979
2980
2981 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2982 buffer data, int DATASIZE,
2983 buffer alpha, int ALPHASIZE)
2984 {
2985 if (DATASIZE != width*height*3) {
2986 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2987 return NULL;
2988 }
2989
2990 if (ALPHASIZE != width*height) {
2991 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2992 return NULL;
2993 }
2994
2995 wxBitmap* bmp = new wxBitmap(width, height, 32);
2996 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2997 if (! pixData) {
2998 // raise an exception...
2999 wxPyErr_SetString(PyExc_RuntimeError,
3000 "Failed to gain raw access to bitmap data.");
3001 return NULL;
3002 }
3003
3004 pixData.UseAlpha();
3005 wxAlphaPixelData::Iterator p(pixData);
3006 for (int y=0; y<height; y++) {
3007 wxAlphaPixelData::Iterator rowStart = p;
3008 for (int x=0; x<width; x++) {
3009 byte a = *(alpha++);
3010 p.Red() = wxPy_premultiply(*(data++), a);
3011 p.Green() = wxPy_premultiply(*(data++), a);
3012 p.Blue() = wxPy_premultiply(*(data++), a);
3013 p.Alpha() = a;
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 return bmp;
3020 }
3021
3022 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3023 {
3024 if (DATASIZE != width*height*3) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 return NULL;
3027 }
3028
3029 wxBitmap* bmp = new wxBitmap(width, height, 24);
3030 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3031 if (! pixData) {
3032 // raise an exception...
3033 wxPyErr_SetString(PyExc_RuntimeError,
3034 "Failed to gain raw access to bitmap data.");
3035 return NULL;
3036 }
3037
3038 wxNativePixelData::Iterator p(pixData);
3039 for (int y=0; y<height; y++) {
3040 wxNativePixelData::Iterator rowStart = p;
3041 for (int x=0; x<width; x++) {
3042 p.Red() = *(data++);
3043 p.Green() = *(data++);
3044 p.Blue() = *(data++);
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 return bmp;
3051 }
3052
3053
3054 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3055 {
3056 if (DATASIZE != width*height*4) {
3057 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3058 return NULL;
3059 }
3060
3061 wxBitmap* bmp = new wxBitmap(width, height, 32);
3062 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3063 if (! pixData) {
3064 // raise an exception...
3065 wxPyErr_SetString(PyExc_RuntimeError,
3066 "Failed to gain raw access to bitmap data.");
3067 return NULL;
3068 }
3069
3070 pixData.UseAlpha();
3071 wxAlphaPixelData::Iterator p(pixData);
3072 for (int y=0; y<height; y++) {
3073 wxAlphaPixelData::Iterator rowStart = p;
3074 for (int x=0; x<width; x++) {
3075 byte a = data[3];
3076 p.Red() = wxPy_premultiply(*(data++), a);
3077 p.Green() = wxPy_premultiply(*(data++), a);
3078 p.Blue() = wxPy_premultiply(*(data++), a);
3079 p.Alpha() = a; data++;
3080 ++p;
3081 }
3082 p = rowStart;
3083 p.OffsetY(pixData, 1);
3084 }
3085 return bmp;
3086 }
3087
3088
3089 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3090
3091 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3092 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3093 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3094 self->Red() = red;
3095 self->Green() = green;
3096 self->Blue() = blue;
3097 }
3098 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3099 PyObject* rv = PyTuple_New(3);
3100 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3101 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3102 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3103 return rv;
3104 }
3105
3106 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3107
3108 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3109 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3110 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3111 self->Red() = wxPy_premultiply(red, alpha);
3112 self->Green() = wxPy_premultiply(green, alpha);
3113 self->Blue() = wxPy_premultiply(blue, alpha);
3114 self->Alpha() = alpha;
3115 }
3116 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3117 PyObject* rv = PyTuple_New(4);
3118 int red = self->Red();
3119 int green = self->Green();
3120 int blue = self->Blue();
3121 int alpha = self->Alpha();
3122
3123 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3124 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3125 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3126 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3127 return rv;
3128 }
3129 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3130 if ( !colour.IsOk() )
3131 return new wxMask(bitmap, *wxBLACK);
3132 else
3133 return new wxMask(bitmap, colour);
3134 }
3135
3136 #include <wx/iconbndl.h>
3137
3138 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3139 wxIcon* icon = new wxIcon();
3140 icon->CopyFromBitmap(bmp);
3141 return icon;
3142 }
3143 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3144 char** cArray = NULL;
3145 wxIcon* icon;
3146
3147 cArray = ConvertListOfStrings(listOfStrings);
3148 if (! cArray)
3149 return NULL;
3150 icon = new wxIcon(cArray);
3151 delete [] cArray;
3152 return icon;
3153 }
3154 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3155 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3156
3157 return new wxIconLocation(*filename, num);
3158
3159
3160
3161 }
3162 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3163
3164 self->SetIndex(num);
3165
3166
3167
3168 }
3169 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3170
3171 return self->GetIndex();
3172
3173
3174
3175 }
3176 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3177 #ifdef __WXGTK__
3178 wxImage img(cursorName, type);
3179 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3180 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3181 return new wxCursor(img);
3182 #else
3183 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3184 #endif
3185 }
3186 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3187
3188
3189 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3190 (*self) ++;
3191 }
3192 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3193 return self->operator bool();
3194 }
3195
3196 #include <wx/fontutil.h>
3197 #include <wx/fontmap.h>
3198 #include <wx/fontenum.h>
3199
3200 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3201 return self->ToString();
3202 }
3203
3204 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3205 { wxPyRaiseNotImplemented(); return NULL; }
3206
3207 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3208 { wxPyRaiseNotImplemented(); return false; }
3209
3210
3211 SWIGINTERNINLINE PyObject *
3212 SWIG_From_size_t (size_t value)
3213 {
3214 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3215 }
3216
3217
3218 SWIGINTERNINLINE int
3219 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3220 {
3221 unsigned long v;
3222 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3223 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3224 return res;
3225 }
3226
3227 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3228 wxFontEncoding alt_enc;
3229 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3230 return PyInt_FromLong(alt_enc);
3231 else {
3232 Py_INCREF(Py_None);
3233 return Py_None;
3234 }
3235 }
3236 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3237 wxNativeFontInfo nfi;
3238 nfi.FromString(info);
3239 return new wxFont(nfi);
3240 }
3241 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3242 return wxFont::New(pointSize, family, flags, face, encoding);
3243 }
3244 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3245 return wxFontBase::New(pixelSize, family,
3246 style, weight, underlined,
3247 face, encoding);
3248 }
3249 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3250 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3251 }
3252 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3253 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3254
3255 class wxPyFontEnumerator : public wxFontEnumerator {
3256 public:
3257 wxPyFontEnumerator() {}
3258 ~wxPyFontEnumerator() {}
3259
3260 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3261 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3262
3263 PYPRIVATE;
3264 };
3265
3266 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3267 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3268
3269
3270 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3271 PyObject* ret;
3272 wxArrayString arr = wxFontEnumerator::GetEncodings();
3273 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3274 ret = wxArrayString2PyList_helper(arr);
3275 wxPyEndBlockThreads(blocked);
3276 return ret;
3277 }
3278 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3279 PyObject* ret;
3280 wxArrayString arr = wxFontEnumerator::GetFacenames();
3281 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3282 ret = wxArrayString2PyList_helper(arr);
3283 wxPyEndBlockThreads(blocked);
3284 return ret;
3285 }
3286
3287 #include <locale.h>
3288
3289 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3290 wxLocale* loc;
3291 if (language == -1)
3292 loc = new wxLocale();
3293 else
3294 loc = new wxLocale(language, flags);
3295 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3296 // for the floating point conversions and such to work right.
3297 #if PY_VERSION_HEX < 0x02040000
3298 setlocale(LC_NUMERIC, "C");
3299 #endif
3300 return loc;
3301 }
3302 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3303 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3304 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3305 // for the floating point conversions and such to work right.
3306 #if PY_VERSION_HEX < 0x02040000
3307 setlocale(LC_NUMERIC, "C");
3308 #endif
3309 return rc;
3310 }
3311 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3312 bool rc = self->Init(language, flags);
3313 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3314 // for the floating point conversions and such to work right.
3315 #if PY_VERSION_HEX < 0x02040000
3316 setlocale(LC_NUMERIC, "C");
3317 #endif
3318 return rc;
3319 }
3320
3321 class wxPyLocale : public wxLocale
3322 {
3323 public:
3324 wxPyLocale();
3325
3326 wxPyLocale(const wxChar *szName, // name (for messages)
3327 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3328 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3329 bool bLoadDefault = true, // preload wxstd.mo?
3330 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3331
3332 wxPyLocale(int language, // wxLanguage id or custom language
3333 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3334
3335 ~wxPyLocale();
3336
3337 virtual const wxChar *GetString(const wxChar *szOrigString,
3338 const wxChar *szDomain = NULL) const;
3339 virtual const wxChar *GetString(const wxChar *szOrigString,
3340 const wxChar *szOrigString2, size_t n,
3341 const wxChar *szDomain = NULL) const;
3342
3343 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3344 const wxChar *szDomain = NULL) const;
3345 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3346 const wxChar *szOrigString2, size_t n,
3347 const wxChar *szDomain = NULL) const;
3348
3349 PYPRIVATE;
3350 private:
3351 DECLARE_NO_COPY_CLASS(wxPyLocale)
3352 };
3353
3354 wxPyLocale::wxPyLocale() : wxLocale()
3355 {
3356 }
3357
3358 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3359 const wxChar *szShort, // dir prefix (for msg files)
3360 const wxChar *szLocale, // locale (for setlocale)
3361 bool bLoadDefault, // preload wxstd.mo?
3362 bool bConvertEncoding) // convert Win<->Unix if necessary?
3363 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3364 {
3365 }
3366
3367 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3368 int flags) : wxLocale(language, flags)
3369 {
3370 }
3371
3372 wxPyLocale::~wxPyLocale()
3373 {
3374 }
3375
3376 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3377 const wxChar *szDomain) const
3378 {
3379 wxChar *str = GetSingularString(szOrigString, szDomain);
3380 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3381 }
3382
3383 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3384 const wxChar *szOrigString2, size_t n,
3385 const wxChar *szDomain) const
3386 {
3387 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3388 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3389 }
3390
3391 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3392 const wxChar *szDomain) const
3393 {
3394 bool found;
3395 static wxString str;
3396 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.
3397 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3398 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3399 PyObject* param1 = wx2PyString(szOrigString);
3400 PyObject* param2 = wx2PyString(szDomain);
3401 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3402 Py_DECREF(param1);
3403 Py_DECREF(param2);
3404 if (ret) {
3405 str = Py2wxString(ret);
3406 Py_DECREF(ret);
3407 }
3408 }
3409 wxPyEndBlockThreads(blocked);
3410 return (found ? (wxChar*)str.c_str() : NULL);
3411 }
3412
3413 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain) const
3416 {
3417 bool found;
3418 static wxString str;
3419 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.
3420 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3421 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3422 PyObject* param1 = wx2PyString(szOrigString);
3423 PyObject* param2 = wx2PyString(szOrigString2);
3424 PyObject* param4 = wx2PyString(szDomain);
3425 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3426 Py_DECREF(param1);
3427 Py_DECREF(param2);
3428 Py_DECREF(param4);
3429 if( ret) {
3430 str = Py2wxString(ret);
3431 Py_DECREF(ret);
3432 }
3433 }
3434 wxPyEndBlockThreads(blocked);
3435 return (found ? (wxChar*)str.c_str() : NULL);
3436 }
3437
3438 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3439 wxPyLocale* loc;
3440 if (language == -1)
3441 loc = new wxPyLocale();
3442 else
3443 loc = new wxPyLocale(language, flags);
3444 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3445 // for the floating point conversions and such to work right.
3446 #if PY_VERSION_HEX < 0x02040000
3447 setlocale(LC_NUMERIC, "C");
3448 #endif
3449 return loc;
3450 }
3451
3452 #include "wx/wxPython/pydrawxxx.h"
3453
3454 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3455 wxColour col;
3456 self->GetPixel(x, y, &col);
3457 return col;
3458 }
3459 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3460 wxColour col;
3461 self->GetPixel(pt, &col);
3462 return col;
3463 }
3464
3465 SWIGINTERN int
3466 SWIG_AsVal_double (PyObject *obj, double* val)
3467 {
3468 if (PyNumber_Check(obj)) {
3469 if (val) *val = PyFloat_AsDouble(obj);
3470 return SWIG_OK;
3471 }
3472 return SWIG_TypeError;
3473 }
3474
3475 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3476 wxRect rv;
3477 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3478 return rv;
3479 }
3480 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3481 wxRect rect;
3482 self->GetClippingBox(rect);
3483 return rect;
3484 }
3485 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3486 wxArrayInt widths;
3487 self->GetPartialTextExtents(text, widths);
3488 return widths;
3489 }
3490
3491 #define SWIG_From_double PyFloat_FromDouble
3492
3493 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3494 self->SetLogicalOrigin(point.x, point.y);
3495 }
3496 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3497 self->SetDeviceOrigin(point.x, point.y);
3498 }
3499 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3500 self->CalcBoundingBox(point.x, point.y);
3501 }
3502 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3503 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3504 }
3505 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3506 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3507 }
3508 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3509 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3510 }
3511 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3512 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3513 }
3514 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3515 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3516 }
3517 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3518 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3519 }
3520
3521 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3522 *x1 = dc->MinX();
3523 *y1 = dc->MinY();
3524 *x2 = dc->MaxX();
3525 *y2 = dc->MaxY();
3526 }
3527
3528
3529 #include <wx/dcbuffer.h>
3530
3531
3532 #include <wx/dcps.h>
3533
3534
3535 #include <wx/metafile.h>
3536
3537
3538 #include <wx/graphics.h>
3539
3540
3541 #if !wxUSE_GRAPHICS_CONTEXT
3542 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3543
3544 class wxGraphicsPath
3545 {
3546 public :
3547 wxGraphicsPath() {
3548 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3549 PyErr_SetString(PyExc_NotImplementedError,
3550 "wxGraphicsPath is not available on this platform.");
3551 wxPyEndBlockThreads(blocked);
3552 }
3553 virtual ~wxGraphicsPath() {}
3554
3555 void MoveToPoint( wxDouble, wxDouble ) {}
3556 void AddLineToPoint( wxDouble, wxDouble ) {}
3557 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3558 void CloseSubpath() {}
3559 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3560 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3561
3562 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3563 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3564 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3565 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3566
3567 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3568 void MoveToPoint( const wxPoint2DDouble& ) {}
3569 void AddLineToPoint( const wxPoint2DDouble&) {}
3570 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3571 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3572 };
3573
3574
3575 class wxGraphicsContext
3576 {
3577 public:
3578 wxGraphicsContext() {
3579 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3580 PyErr_SetString(PyExc_NotImplementedError,
3581 "wxGraphicsContext is not available on this platform.");
3582 wxPyEndBlockThreads(blocked);
3583 }
3584 virtual ~wxGraphicsContext() {}
3585
3586 static wxGraphicsContext* Create( const wxWindowDC&) {
3587 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3588 PyErr_SetString(PyExc_NotImplementedError,
3589 "wxGraphicsPath is not available on this platform.");
3590 wxPyEndBlockThreads(blocked);
3591 return NULL;
3592 }
3593
3594 wxGraphicsPath * CreatePath() { return NULL; }
3595 void PushState() {}
3596 void PopState() {}
3597 void Clip( const wxRegion & ) {}
3598 void Translate( wxDouble , wxDouble ) {}
3599 void Scale( wxDouble , wxDouble ) {}
3600 void Rotate( wxDouble ) {}
3601 void SetPen( const wxPen & ) {}
3602 void SetBrush( const wxBrush & ) {}
3603 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3604 const wxColour&, const wxColour&) {}
3605 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3606 const wxColour &, const wxColour &) {}
3607 void SetFont( const wxFont & ) {}
3608 void SetTextColor( const wxColour & ) {}
3609 void StrokePath( const wxGraphicsPath * ) {}
3610 void FillPath( const wxGraphicsPath *, int ) {}
3611 void DrawPath( const wxGraphicsPath *, int ) {}
3612 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3613 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3614 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3615 wxDouble *, wxDouble * ) const {}
3616 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3617 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3618 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3619 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3620 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3621 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3622 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3623 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3624 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3625 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3626 };
3627
3628
3629 class wxGCDC: public wxWindowDC
3630 {
3631 public:
3632 wxGCDC(const wxWindowDC&) {
3633 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3634 PyErr_SetString(PyExc_NotImplementedError,
3635 "wxGCDC is not available on this platform.");
3636 wxPyEndBlockThreads(blocked);
3637 }
3638
3639 wxGCDC() {
3640 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3641 PyErr_SetString(PyExc_NotImplementedError,
3642 "wxGCDC is not available on this platform.");
3643 wxPyEndBlockThreads(blocked);
3644 }
3645
3646 virtual ~wxGCDC() {}
3647
3648 wxGraphicsContext* GetGraphicContext() { return NULL; }
3649 };
3650
3651 #endif
3652
3653 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3654 wxArrayDouble widths;
3655 self->GetPartialTextExtents(text, widths);
3656 return widths;
3657 }
3658 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3659 size_t c1, c2, count;
3660 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3661 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3662
3663 if ( beginP != NULL && endP != NULL )
3664 {
3665 count = wxMin(c1, c2);
3666 self->StrokeLines(count, beginP, endP);
3667 }
3668 delete [] beginP;
3669 delete [] endP;
3670 }
3671
3672
3673 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3674 self->AddColour(name, wxColour(red, green, blue));
3675 }
3676
3677 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3678 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3679 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3680 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3681
3682
3683 #include <wx/effects.h>
3684
3685
3686 #include "wx/renderer.h"
3687
3688
3689 SWIGINTERNINLINE PyObject*
3690 SWIG_From_bool (bool value)
3691 {
3692 return PyBool_FromLong(value ? 1 : 0);
3693 }
3694
3695
3696 #include "wx/wxPython/pseudodc.h"
3697
3698 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3699 wxRect rect;
3700 self->GetIdBounds(id, rect);
3701 return rect;
3702 }
3703 #ifdef __cplusplus
3704 extern "C" {
3705 #endif
3706 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxGDIObject *result = 0 ;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3711 {
3712 if (!wxPyCheckForApp()) SWIG_fail;
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 result = (wxGDIObject *)new wxGDIObject();
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3726 PyObject *resultobj = 0;
3727 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3728 void *argp1 = 0 ;
3729 int res1 = 0 ;
3730 PyObject *swig_obj[1] ;
3731
3732 if (!args) SWIG_fail;
3733 swig_obj[0] = args;
3734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3735 if (!SWIG_IsOK(res1)) {
3736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3737 }
3738 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 delete arg1;
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_Py_Void();
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3754 PyObject *resultobj = 0;
3755 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3756 bool result;
3757 void *argp1 = 0 ;
3758 int res1 = 0 ;
3759 PyObject *swig_obj[1] ;
3760
3761 if (!args) SWIG_fail;
3762 swig_obj[0] = args;
3763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3764 if (!SWIG_IsOK(res1)) {
3765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3766 }
3767 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = (bool)(arg1)->IsNull();
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 {
3775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3776 }
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3784 PyObject *obj;
3785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3786 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3787 return SWIG_Py_Void();
3788 }
3789
3790 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3791 return SWIG_Python_InitShadowInstance(args);
3792 }
3793
3794 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3795 PyObject *resultobj = 0;
3796 byte arg1 = (byte) 0 ;
3797 byte arg2 = (byte) 0 ;
3798 byte arg3 = (byte) 0 ;
3799 byte arg4 = (byte) wxALPHA_OPAQUE ;
3800 wxColour *result = 0 ;
3801 unsigned char val1 ;
3802 int ecode1 = 0 ;
3803 unsigned char val2 ;
3804 int ecode2 = 0 ;
3805 unsigned char val3 ;
3806 int ecode3 = 0 ;
3807 unsigned char val4 ;
3808 int ecode4 = 0 ;
3809 PyObject * obj0 = 0 ;
3810 PyObject * obj1 = 0 ;
3811 PyObject * obj2 = 0 ;
3812 PyObject * obj3 = 0 ;
3813 char * kwnames[] = {
3814 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3815 };
3816
3817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3818 if (obj0) {
3819 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3820 if (!SWIG_IsOK(ecode1)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3822 }
3823 arg1 = static_cast< byte >(val1);
3824 }
3825 if (obj1) {
3826 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3827 if (!SWIG_IsOK(ecode2)) {
3828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3829 }
3830 arg2 = static_cast< byte >(val2);
3831 }
3832 if (obj2) {
3833 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3834 if (!SWIG_IsOK(ecode3)) {
3835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3836 }
3837 arg3 = static_cast< byte >(val3);
3838 }
3839 if (obj3) {
3840 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3841 if (!SWIG_IsOK(ecode4)) {
3842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3843 }
3844 arg4 = static_cast< byte >(val4);
3845 }
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3853 return resultobj;
3854 fail:
3855 return NULL;
3856 }
3857
3858
3859 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3860 PyObject *resultobj = 0;
3861 wxString *arg1 = 0 ;
3862 wxColour *result = 0 ;
3863 bool temp1 = false ;
3864 PyObject * obj0 = 0 ;
3865 char * kwnames[] = {
3866 (char *) "colorName", NULL
3867 };
3868
3869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3870 {
3871 arg1 = wxString_in_helper(obj0);
3872 if (arg1 == NULL) SWIG_fail;
3873 temp1 = true;
3874 }
3875 {
3876 if (!wxPyCheckForApp()) SWIG_fail;
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = (wxColour *)new wxColour((wxString const &)*arg1);
3879 wxPyEndAllowThreads(__tstate);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3883 {
3884 if (temp1)
3885 delete arg1;
3886 }
3887 return resultobj;
3888 fail:
3889 {
3890 if (temp1)
3891 delete arg1;
3892 }
3893 return NULL;
3894 }
3895
3896
3897 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj = 0;
3899 unsigned long arg1 ;
3900 wxColour *result = 0 ;
3901 unsigned long val1 ;
3902 int ecode1 = 0 ;
3903 PyObject * obj0 = 0 ;
3904 char * kwnames[] = {
3905 (char *) "colRGB", NULL
3906 };
3907
3908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3909 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3910 if (!SWIG_IsOK(ecode1)) {
3911 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3912 }
3913 arg1 = static_cast< unsigned long >(val1);
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (wxColour *)new wxColour(arg1);
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3928 PyObject *resultobj = 0;
3929 wxColour *arg1 = (wxColour *) 0 ;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 PyObject *swig_obj[1] ;
3933
3934 if (!args) SWIG_fail;
3935 swig_obj[0] = args;
3936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3937 if (!SWIG_IsOK(res1)) {
3938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3939 }
3940 arg1 = reinterpret_cast< wxColour * >(argp1);
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 delete arg1;
3944
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 resultobj = SWIG_Py_Void();
3949 return resultobj;
3950 fail:
3951 return NULL;
3952 }
3953
3954
3955 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3956 PyObject *resultobj = 0;
3957 wxColour *arg1 = (wxColour *) 0 ;
3958 byte result;
3959 void *argp1 = 0 ;
3960 int res1 = 0 ;
3961 PyObject *swig_obj[1] ;
3962
3963 if (!args) SWIG_fail;
3964 swig_obj[0] = args;
3965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3966 if (!SWIG_IsOK(res1)) {
3967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3968 }
3969 arg1 = reinterpret_cast< wxColour * >(argp1);
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 result = (byte)(arg1)->Red();
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3984 PyObject *resultobj = 0;
3985 wxColour *arg1 = (wxColour *) 0 ;
3986 byte result;
3987 void *argp1 = 0 ;
3988 int res1 = 0 ;
3989 PyObject *swig_obj[1] ;
3990
3991 if (!args) SWIG_fail;
3992 swig_obj[0] = args;
3993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3994 if (!SWIG_IsOK(res1)) {
3995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3996 }
3997 arg1 = reinterpret_cast< wxColour * >(argp1);
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 result = (byte)(arg1)->Green();
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4012 PyObject *resultobj = 0;
4013 wxColour *arg1 = (wxColour *) 0 ;
4014 byte result;
4015 void *argp1 = 0 ;
4016 int res1 = 0 ;
4017 PyObject *swig_obj[1] ;
4018
4019 if (!args) SWIG_fail;
4020 swig_obj[0] = args;
4021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4022 if (!SWIG_IsOK(res1)) {
4023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4024 }
4025 arg1 = reinterpret_cast< wxColour * >(argp1);
4026 {
4027 PyThreadState* __tstate = wxPyBeginAllowThreads();
4028 result = (byte)(arg1)->Blue();
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 PyObject *resultobj = 0;
4041 wxColour *arg1 = (wxColour *) 0 ;
4042 byte result;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 PyObject *swig_obj[1] ;
4046
4047 if (!args) SWIG_fail;
4048 swig_obj[0] = args;
4049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4050 if (!SWIG_IsOK(res1)) {
4051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4052 }
4053 arg1 = reinterpret_cast< wxColour * >(argp1);
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 result = (byte)(arg1)->Alpha();
4057 wxPyEndAllowThreads(__tstate);
4058 if (PyErr_Occurred()) SWIG_fail;
4059 }
4060 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4061 return resultobj;
4062 fail:
4063 return NULL;
4064 }
4065
4066
4067 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4068 PyObject *resultobj = 0;
4069 wxColour *arg1 = (wxColour *) 0 ;
4070 bool result;
4071 void *argp1 = 0 ;
4072 int res1 = 0 ;
4073 PyObject *swig_obj[1] ;
4074
4075 if (!args) SWIG_fail;
4076 swig_obj[0] = args;
4077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4078 if (!SWIG_IsOK(res1)) {
4079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4080 }
4081 arg1 = reinterpret_cast< wxColour * >(argp1);
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 result = (bool)(arg1)->IsOk();
4085 wxPyEndAllowThreads(__tstate);
4086 if (PyErr_Occurred()) SWIG_fail;
4087 }
4088 {
4089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4090 }
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4098 PyObject *resultobj = 0;
4099 wxColour *arg1 = (wxColour *) 0 ;
4100 byte arg2 ;
4101 byte arg3 ;
4102 byte arg4 ;
4103 byte arg5 = (byte) wxALPHA_OPAQUE ;
4104 void *argp1 = 0 ;
4105 int res1 = 0 ;
4106 unsigned char val2 ;
4107 int ecode2 = 0 ;
4108 unsigned char val3 ;
4109 int ecode3 = 0 ;
4110 unsigned char val4 ;
4111 int ecode4 = 0 ;
4112 unsigned char val5 ;
4113 int ecode5 = 0 ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 PyObject * obj2 = 0 ;
4117 PyObject * obj3 = 0 ;
4118 PyObject * obj4 = 0 ;
4119 char * kwnames[] = {
4120 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4121 };
4122
4123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4125 if (!SWIG_IsOK(res1)) {
4126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4127 }
4128 arg1 = reinterpret_cast< wxColour * >(argp1);
4129 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4130 if (!SWIG_IsOK(ecode2)) {
4131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4132 }
4133 arg2 = static_cast< byte >(val2);
4134 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4135 if (!SWIG_IsOK(ecode3)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4137 }
4138 arg3 = static_cast< byte >(val3);
4139 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4140 if (!SWIG_IsOK(ecode4)) {
4141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4142 }
4143 arg4 = static_cast< byte >(val4);
4144 if (obj4) {
4145 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4146 if (!SWIG_IsOK(ecode5)) {
4147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4148 }
4149 arg5 = static_cast< byte >(val5);
4150 }
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 (arg1)->Set(arg2,arg3,arg4,arg5);
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 resultobj = SWIG_Py_Void();
4158 return resultobj;
4159 fail:
4160 return NULL;
4161 }
4162
4163
4164 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4165 PyObject *resultobj = 0;
4166 wxColour *arg1 = (wxColour *) 0 ;
4167 unsigned long arg2 ;
4168 void *argp1 = 0 ;
4169 int res1 = 0 ;
4170 unsigned long val2 ;
4171 int ecode2 = 0 ;
4172 PyObject * obj0 = 0 ;
4173 PyObject * obj1 = 0 ;
4174 char * kwnames[] = {
4175 (char *) "self",(char *) "colRGB", NULL
4176 };
4177
4178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4180 if (!SWIG_IsOK(res1)) {
4181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4182 }
4183 arg1 = reinterpret_cast< wxColour * >(argp1);
4184 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4185 if (!SWIG_IsOK(ecode2)) {
4186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4187 }
4188 arg2 = static_cast< unsigned long >(val2);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->Set(arg2);
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_Py_Void();
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxColour *arg1 = (wxColour *) 0 ;
4205 wxString *arg2 = 0 ;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 bool temp2 = false ;
4209 PyObject * obj0 = 0 ;
4210 PyObject * obj1 = 0 ;
4211 char * kwnames[] = {
4212 (char *) "self",(char *) "colourName", NULL
4213 };
4214
4215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4219 }
4220 arg1 = reinterpret_cast< wxColour * >(argp1);
4221 {
4222 arg2 = wxString_in_helper(obj1);
4223 if (arg2 == NULL) SWIG_fail;
4224 temp2 = true;
4225 }
4226 {
4227 PyThreadState* __tstate = wxPyBeginAllowThreads();
4228 (arg1)->Set((wxString const &)*arg2);
4229 wxPyEndAllowThreads(__tstate);
4230 if (PyErr_Occurred()) SWIG_fail;
4231 }
4232 resultobj = SWIG_Py_Void();
4233 {
4234 if (temp2)
4235 delete arg2;
4236 }
4237 return resultobj;
4238 fail:
4239 {
4240 if (temp2)
4241 delete arg2;
4242 }
4243 return NULL;
4244 }
4245
4246
4247 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj = 0;
4249 wxColour *arg1 = (wxColour *) 0 ;
4250 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4251 wxString result;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
4254 long val2 ;
4255 int ecode2 = 0 ;
4256 PyObject * obj0 = 0 ;
4257 PyObject * obj1 = 0 ;
4258 char * kwnames[] = {
4259 (char *) "self",(char *) "flags", NULL
4260 };
4261
4262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
4268 if (obj1) {
4269 ecode2 = SWIG_AsVal_long(obj1, &val2);
4270 if (!SWIG_IsOK(ecode2)) {
4271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4272 }
4273 arg2 = static_cast< long >(val2);
4274 }
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 result = ((wxColour const *)arg1)->GetAsString(arg2);
4278 wxPyEndAllowThreads(__tstate);
4279 if (PyErr_Occurred()) SWIG_fail;
4280 }
4281 {
4282 #if wxUSE_UNICODE
4283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4284 #else
4285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4286 #endif
4287 }
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 long result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (long)((wxColour const *)arg1)->GetPixel();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_long(static_cast< long >(result));
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 PyObject *arg2 = (PyObject *) 0 ;
4326 bool result;
4327 void *argp1 = 0 ;
4328 int res1 = 0 ;
4329 PyObject * obj0 = 0 ;
4330 PyObject * obj1 = 0 ;
4331 char * kwnames[] = {
4332 (char *) "self",(char *) "other", NULL
4333 };
4334
4335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4339 }
4340 arg1 = reinterpret_cast< wxColour * >(argp1);
4341 arg2 = obj1;
4342 {
4343 result = (bool)wxColour___eq__(arg1,arg2);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 {
4347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4348 }
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxColour *arg1 = (wxColour *) 0 ;
4358 PyObject *arg2 = (PyObject *) 0 ;
4359 bool result;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "self",(char *) "other", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4370 if (!SWIG_IsOK(res1)) {
4371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4372 }
4373 arg1 = reinterpret_cast< wxColour * >(argp1);
4374 arg2 = obj1;
4375 {
4376 result = (bool)wxColour___ne__(arg1,arg2);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 {
4380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4381 }
4382 return resultobj;
4383 fail:
4384 return NULL;
4385 }
4386
4387
4388 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj = 0;
4390 wxColour *arg1 = (wxColour *) 0 ;
4391 bool arg2 = (bool) false ;
4392 PyObject *result = 0 ;
4393 void *argp1 = 0 ;
4394 int res1 = 0 ;
4395 bool val2 ;
4396 int ecode2 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 char * kwnames[] = {
4400 (char *) "self",(char *) "includeAlpha", NULL
4401 };
4402
4403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4407 }
4408 arg1 = reinterpret_cast< wxColour * >(argp1);
4409 if (obj1) {
4410 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4413 }
4414 arg2 = static_cast< bool >(val2);
4415 }
4416 {
4417 result = (PyObject *)wxColour_Get(arg1,arg2);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 resultobj = result;
4421 return resultobj;
4422 fail:
4423 return NULL;
4424 }
4425
4426
4427 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4428 PyObject *resultobj = 0;
4429 wxColour *arg1 = (wxColour *) 0 ;
4430 unsigned long result;
4431 void *argp1 = 0 ;
4432 int res1 = 0 ;
4433 PyObject *swig_obj[1] ;
4434
4435 if (!args) SWIG_fail;
4436 swig_obj[0] = args;
4437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4438 if (!SWIG_IsOK(res1)) {
4439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4440 }
4441 arg1 = reinterpret_cast< wxColour * >(argp1);
4442 {
4443 result = (unsigned long)wxColour_GetRGB(arg1);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4454 PyObject *obj;
4455 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4456 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4457 return SWIG_Py_Void();
4458 }
4459
4460 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4461 return SWIG_Python_InitShadowInstance(args);
4462 }
4463
4464 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj = 0;
4466 int arg1 ;
4467 unsigned char *arg2 = (unsigned char *) 0 ;
4468 unsigned char *arg3 = (unsigned char *) 0 ;
4469 unsigned char *arg4 = (unsigned char *) 0 ;
4470 wxPalette *result = 0 ;
4471 int val1 ;
4472 int ecode1 = 0 ;
4473 void *argp2 = 0 ;
4474 int res2 = 0 ;
4475 void *argp3 = 0 ;
4476 int res3 = 0 ;
4477 void *argp4 = 0 ;
4478 int res4 = 0 ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 PyObject * obj2 = 0 ;
4482 PyObject * obj3 = 0 ;
4483 char * kwnames[] = {
4484 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4485 };
4486
4487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4488 ecode1 = SWIG_AsVal_int(obj0, &val1);
4489 if (!SWIG_IsOK(ecode1)) {
4490 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4491 }
4492 arg1 = static_cast< int >(val1);
4493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4494 if (!SWIG_IsOK(res2)) {
4495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4496 }
4497 arg2 = reinterpret_cast< unsigned char * >(argp2);
4498 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4499 if (!SWIG_IsOK(res3)) {
4500 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4501 }
4502 arg3 = reinterpret_cast< unsigned char * >(argp3);
4503 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4504 if (!SWIG_IsOK(res4)) {
4505 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4506 }
4507 arg4 = reinterpret_cast< unsigned char * >(argp4);
4508 {
4509 if (!wxPyCheckForApp()) SWIG_fail;
4510 PyThreadState* __tstate = wxPyBeginAllowThreads();
4511 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4516 return resultobj;
4517 fail:
4518 return NULL;
4519 }
4520
4521
4522 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4523 PyObject *resultobj = 0;
4524 wxPalette *arg1 = (wxPalette *) 0 ;
4525 void *argp1 = 0 ;
4526 int res1 = 0 ;
4527 PyObject *swig_obj[1] ;
4528
4529 if (!args) SWIG_fail;
4530 swig_obj[0] = args;
4531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4534 }
4535 arg1 = reinterpret_cast< wxPalette * >(argp1);
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 delete arg1;
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_Py_Void();
4544 return resultobj;
4545 fail:
4546 return NULL;
4547 }
4548
4549
4550 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj = 0;
4552 wxPalette *arg1 = (wxPalette *) 0 ;
4553 byte arg2 ;
4554 byte arg3 ;
4555 byte arg4 ;
4556 int result;
4557 void *argp1 = 0 ;
4558 int res1 = 0 ;
4559 unsigned char val2 ;
4560 int ecode2 = 0 ;
4561 unsigned char val3 ;
4562 int ecode3 = 0 ;
4563 unsigned char val4 ;
4564 int ecode4 = 0 ;
4565 PyObject * obj0 = 0 ;
4566 PyObject * obj1 = 0 ;
4567 PyObject * obj2 = 0 ;
4568 PyObject * obj3 = 0 ;
4569 char * kwnames[] = {
4570 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4571 };
4572
4573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4577 }
4578 arg1 = reinterpret_cast< wxPalette * >(argp1);
4579 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4580 if (!SWIG_IsOK(ecode2)) {
4581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4582 }
4583 arg2 = static_cast< byte >(val2);
4584 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4585 if (!SWIG_IsOK(ecode3)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4587 }
4588 arg3 = static_cast< byte >(val3);
4589 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4590 if (!SWIG_IsOK(ecode4)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4592 }
4593 arg4 = static_cast< byte >(val4);
4594 {
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 resultobj = SWIG_From_int(static_cast< int >(result));
4601 return resultobj;
4602 fail:
4603 return NULL;
4604 }
4605
4606
4607 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4608 PyObject *resultobj = 0;
4609 wxPalette *arg1 = (wxPalette *) 0 ;
4610 int arg2 ;
4611 byte *arg3 = (byte *) 0 ;
4612 byte *arg4 = (byte *) 0 ;
4613 byte *arg5 = (byte *) 0 ;
4614 bool result;
4615 void *argp1 = 0 ;
4616 int res1 = 0 ;
4617 int val2 ;
4618 int ecode2 = 0 ;
4619 byte temp3 ;
4620 int res3 = SWIG_TMPOBJ ;
4621 byte temp4 ;
4622 int res4 = SWIG_TMPOBJ ;
4623 byte temp5 ;
4624 int res5 = SWIG_TMPOBJ ;
4625 PyObject * obj0 = 0 ;
4626 PyObject * obj1 = 0 ;
4627 char * kwnames[] = {
4628 (char *) "self",(char *) "pixel", NULL
4629 };
4630
4631 arg3 = &temp3;
4632 arg4 = &temp4;
4633 arg5 = &temp5;
4634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4636 if (!SWIG_IsOK(res1)) {
4637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4638 }
4639 arg1 = reinterpret_cast< wxPalette * >(argp1);
4640 ecode2 = SWIG_AsVal_int(obj1, &val2);
4641 if (!SWIG_IsOK(ecode2)) {
4642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4643 }
4644 arg2 = static_cast< int >(val2);
4645 {
4646 PyThreadState* __tstate = wxPyBeginAllowThreads();
4647 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4648 wxPyEndAllowThreads(__tstate);
4649 if (PyErr_Occurred()) SWIG_fail;
4650 }
4651 {
4652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4653 }
4654 if (SWIG_IsTmpObj(res3)) {
4655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4656 } else {
4657 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4659 }
4660 if (SWIG_IsTmpObj(res4)) {
4661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4662 } else {
4663 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4665 }
4666 if (SWIG_IsTmpObj(res5)) {
4667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4668 } else {
4669 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4671 }
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 wxPalette *arg1 = (wxPalette *) 0 ;
4681 int result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 PyObject *swig_obj[1] ;
4685
4686 if (!args) SWIG_fail;
4687 swig_obj[0] = args;
4688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4691 }
4692 arg1 = reinterpret_cast< wxPalette * >(argp1);
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = SWIG_From_int(static_cast< int >(result));
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 wxPalette *arg1 = (wxPalette *) 0 ;
4709 bool result;
4710 void *argp1 = 0 ;
4711 int res1 = 0 ;
4712 PyObject *swig_obj[1] ;
4713
4714 if (!args) SWIG_fail;
4715 swig_obj[0] = args;
4716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4719 }
4720 arg1 = reinterpret_cast< wxPalette * >(argp1);
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 result = (bool)(arg1)->IsOk();
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 {
4728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4729 }
4730 return resultobj;
4731 fail:
4732 return NULL;
4733 }
4734
4735
4736 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4737 PyObject *obj;
4738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4739 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4740 return SWIG_Py_Void();
4741 }
4742
4743 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4744 return SWIG_Python_InitShadowInstance(args);
4745 }
4746
4747 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj = 0;
4749 wxColour *arg1 = 0 ;
4750 int arg2 = (int) 1 ;
4751 int arg3 = (int) wxSOLID ;
4752 wxPen *result = 0 ;
4753 wxColour temp1 ;
4754 int val2 ;
4755 int ecode2 = 0 ;
4756 int val3 ;
4757 int ecode3 = 0 ;
4758 PyObject * obj0 = 0 ;
4759 PyObject * obj1 = 0 ;
4760 PyObject * obj2 = 0 ;
4761 char * kwnames[] = {
4762 (char *) "colour",(char *) "width",(char *) "style", NULL
4763 };
4764
4765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4766 {
4767 arg1 = &temp1;
4768 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4769 }
4770 if (obj1) {
4771 ecode2 = SWIG_AsVal_int(obj1, &val2);
4772 if (!SWIG_IsOK(ecode2)) {
4773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4774 }
4775 arg2 = static_cast< int >(val2);
4776 }
4777 if (obj2) {
4778 ecode3 = SWIG_AsVal_int(obj2, &val3);
4779 if (!SWIG_IsOK(ecode3)) {
4780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4781 }
4782 arg3 = static_cast< int >(val3);
4783 }
4784 {
4785 if (!wxPyCheckForApp()) SWIG_fail;
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4792 return resultobj;
4793 fail:
4794 return NULL;
4795 }
4796
4797
4798 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4799 PyObject *resultobj = 0;
4800 wxPen *arg1 = (wxPen *) 0 ;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4810 }
4811 arg1 = reinterpret_cast< wxPen * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 delete arg1;
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 resultobj = SWIG_Py_Void();
4820 return resultobj;
4821 fail:
4822 return NULL;
4823 }
4824
4825
4826 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4827 PyObject *resultobj = 0;
4828 wxPen *arg1 = (wxPen *) 0 ;
4829 int result;
4830 void *argp1 = 0 ;
4831 int res1 = 0 ;
4832 PyObject *swig_obj[1] ;
4833
4834 if (!args) SWIG_fail;
4835 swig_obj[0] = args;
4836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4837 if (!SWIG_IsOK(res1)) {
4838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4839 }
4840 arg1 = reinterpret_cast< wxPen * >(argp1);
4841 {
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (int)(arg1)->GetCap();
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 resultobj = SWIG_From_int(static_cast< int >(result));
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4855 PyObject *resultobj = 0;
4856 wxPen *arg1 = (wxPen *) 0 ;
4857 wxColour result;
4858 void *argp1 = 0 ;
4859 int res1 = 0 ;
4860 PyObject *swig_obj[1] ;
4861
4862 if (!args) SWIG_fail;
4863 swig_obj[0] = args;
4864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4865 if (!SWIG_IsOK(res1)) {
4866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4867 }
4868 arg1 = reinterpret_cast< wxPen * >(argp1);
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 result = (arg1)->GetColour();
4872 wxPyEndAllowThreads(__tstate);
4873 if (PyErr_Occurred()) SWIG_fail;
4874 }
4875 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4876 return resultobj;
4877 fail:
4878 return NULL;
4879 }
4880
4881
4882 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4883 PyObject *resultobj = 0;
4884 wxPen *arg1 = (wxPen *) 0 ;
4885 int result;
4886 void *argp1 = 0 ;
4887 int res1 = 0 ;
4888 PyObject *swig_obj[1] ;
4889
4890 if (!args) SWIG_fail;
4891 swig_obj[0] = args;
4892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4893 if (!SWIG_IsOK(res1)) {
4894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4895 }
4896 arg1 = reinterpret_cast< wxPen * >(argp1);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 result = (int)(arg1)->GetJoin();
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = SWIG_From_int(static_cast< int >(result));
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4911 PyObject *resultobj = 0;
4912 wxPen *arg1 = (wxPen *) 0 ;
4913 int result;
4914 void *argp1 = 0 ;
4915 int res1 = 0 ;
4916 PyObject *swig_obj[1] ;
4917
4918 if (!args) SWIG_fail;
4919 swig_obj[0] = args;
4920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4921 if (!SWIG_IsOK(res1)) {
4922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4923 }
4924 arg1 = reinterpret_cast< wxPen * >(argp1);
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 result = (int)(arg1)->GetStyle();
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 resultobj = SWIG_From_int(static_cast< int >(result));
4932 return resultobj;
4933 fail:
4934 return NULL;
4935 }
4936
4937
4938 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939 PyObject *resultobj = 0;
4940 wxPen *arg1 = (wxPen *) 0 ;
4941 int result;
4942 void *argp1 = 0 ;
4943 int res1 = 0 ;
4944 PyObject *swig_obj[1] ;
4945
4946 if (!args) SWIG_fail;
4947 swig_obj[0] = args;
4948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4951 }
4952 arg1 = reinterpret_cast< wxPen * >(argp1);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (int)(arg1)->GetWidth();
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 resultobj = SWIG_From_int(static_cast< int >(result));
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4967 PyObject *resultobj = 0;
4968 wxPen *arg1 = (wxPen *) 0 ;
4969 bool result;
4970 void *argp1 = 0 ;
4971 int res1 = 0 ;
4972 PyObject *swig_obj[1] ;
4973
4974 if (!args) SWIG_fail;
4975 swig_obj[0] = args;
4976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4977 if (!SWIG_IsOK(res1)) {
4978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4979 }
4980 arg1 = reinterpret_cast< wxPen * >(argp1);
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 result = (bool)(arg1)->IsOk();
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4989 }
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj = 0;
4998 wxPen *arg1 = (wxPen *) 0 ;
4999 int arg2 ;
5000 void *argp1 = 0 ;
5001 int res1 = 0 ;
5002 int val2 ;
5003 int ecode2 = 0 ;
5004 PyObject * obj0 = 0 ;
5005 PyObject * obj1 = 0 ;
5006 char * kwnames[] = {
5007 (char *) "self",(char *) "cap_style", NULL
5008 };
5009
5010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5012 if (!SWIG_IsOK(res1)) {
5013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5014 }
5015 arg1 = reinterpret_cast< wxPen * >(argp1);
5016 ecode2 = SWIG_AsVal_int(obj1, &val2);
5017 if (!SWIG_IsOK(ecode2)) {
5018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5019 }
5020 arg2 = static_cast< int >(val2);
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 (arg1)->SetCap(arg2);
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 resultobj = SWIG_Py_Void();
5028 return resultobj;
5029 fail:
5030 return NULL;
5031 }
5032
5033
5034 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj = 0;
5036 wxPen *arg1 = (wxPen *) 0 ;
5037 wxColour *arg2 = 0 ;
5038 void *argp1 = 0 ;
5039 int res1 = 0 ;
5040 wxColour temp2 ;
5041 PyObject * obj0 = 0 ;
5042 PyObject * obj1 = 0 ;
5043 char * kwnames[] = {
5044 (char *) "self",(char *) "colour", NULL
5045 };
5046
5047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5049 if (!SWIG_IsOK(res1)) {
5050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5051 }
5052 arg1 = reinterpret_cast< wxPen * >(argp1);
5053 {
5054 arg2 = &temp2;
5055 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5056 }
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 (arg1)->SetColour(*arg2);
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 resultobj = SWIG_Py_Void();
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj = 0;
5072 wxPen *arg1 = (wxPen *) 0 ;
5073 int arg2 ;
5074 void *argp1 = 0 ;
5075 int res1 = 0 ;
5076 int val2 ;
5077 int ecode2 = 0 ;
5078 PyObject * obj0 = 0 ;
5079 PyObject * obj1 = 0 ;
5080 char * kwnames[] = {
5081 (char *) "self",(char *) "join_style", NULL
5082 };
5083
5084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5086 if (!SWIG_IsOK(res1)) {
5087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5088 }
5089 arg1 = reinterpret_cast< wxPen * >(argp1);
5090 ecode2 = SWIG_AsVal_int(obj1, &val2);
5091 if (!SWIG_IsOK(ecode2)) {
5092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5093 }
5094 arg2 = static_cast< int >(val2);
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 (arg1)->SetJoin(arg2);
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_Py_Void();
5102 return resultobj;
5103 fail:
5104 return NULL;
5105 }
5106
5107
5108 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5109 PyObject *resultobj = 0;
5110 wxPen *arg1 = (wxPen *) 0 ;
5111 int arg2 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 int val2 ;
5115 int ecode2 = 0 ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 char * kwnames[] = {
5119 (char *) "self",(char *) "style", NULL
5120 };
5121
5122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5124 if (!SWIG_IsOK(res1)) {
5125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5126 }
5127 arg1 = reinterpret_cast< wxPen * >(argp1);
5128 ecode2 = SWIG_AsVal_int(obj1, &val2);
5129 if (!SWIG_IsOK(ecode2)) {
5130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5131 }
5132 arg2 = static_cast< int >(val2);
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 (arg1)->SetStyle(arg2);
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 resultobj = SWIG_Py_Void();
5140 return resultobj;
5141 fail:
5142 return NULL;
5143 }
5144
5145
5146 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5147 PyObject *resultobj = 0;
5148 wxPen *arg1 = (wxPen *) 0 ;
5149 int arg2 ;
5150 void *argp1 = 0 ;
5151 int res1 = 0 ;
5152 int val2 ;
5153 int ecode2 = 0 ;
5154 PyObject * obj0 = 0 ;
5155 PyObject * obj1 = 0 ;
5156 char * kwnames[] = {
5157 (char *) "self",(char *) "width", NULL
5158 };
5159
5160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5162 if (!SWIG_IsOK(res1)) {
5163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5164 }
5165 arg1 = reinterpret_cast< wxPen * >(argp1);
5166 ecode2 = SWIG_AsVal_int(obj1, &val2);
5167 if (!SWIG_IsOK(ecode2)) {
5168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5169 }
5170 arg2 = static_cast< int >(val2);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 (arg1)->SetWidth(arg2);
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_Py_Void();
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5185 PyObject *resultobj = 0;
5186 wxPen *arg1 = (wxPen *) 0 ;
5187 int arg2 ;
5188 wxDash *arg3 = (wxDash *) 0 ;
5189 void *argp1 = 0 ;
5190 int res1 = 0 ;
5191 PyObject * obj0 = 0 ;
5192 PyObject * obj1 = 0 ;
5193 char * kwnames[] = {
5194 (char *) "self",(char *) "dashes", NULL
5195 };
5196
5197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5199 if (!SWIG_IsOK(res1)) {
5200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5201 }
5202 arg1 = reinterpret_cast< wxPen * >(argp1);
5203 {
5204 arg2 = PyList_Size(obj1);
5205 arg3 = (wxDash*)byte_LIST_helper(obj1);
5206 if (arg3 == NULL) SWIG_fail;
5207 }
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 (arg1)->SetDashes(arg2,arg3);
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_Py_Void();
5215 {
5216 if (arg3) delete [] arg3;
5217 }
5218 return resultobj;
5219 fail:
5220 {
5221 if (arg3) delete [] arg3;
5222 }
5223 return NULL;
5224 }
5225
5226
5227 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228 PyObject *resultobj = 0;
5229 wxPen *arg1 = (wxPen *) 0 ;
5230 PyObject *result = 0 ;
5231 void *argp1 = 0 ;
5232 int res1 = 0 ;
5233 PyObject *swig_obj[1] ;
5234
5235 if (!args) SWIG_fail;
5236 swig_obj[0] = args;
5237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5238 if (!SWIG_IsOK(res1)) {
5239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5240 }
5241 arg1 = reinterpret_cast< wxPen * >(argp1);
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 result = (PyObject *)wxPen_GetDashes(arg1);
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 resultobj = result;
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5256 PyObject *resultobj = 0;
5257 wxPen *arg1 = (wxPen *) 0 ;
5258 PyObject *arg2 = (PyObject *) 0 ;
5259 PyObject *arg3 = (PyObject *) 0 ;
5260 void *argp1 = 0 ;
5261 int res1 = 0 ;
5262 PyObject * obj0 = 0 ;
5263 PyObject * obj1 = 0 ;
5264 PyObject * obj2 = 0 ;
5265 char * kwnames[] = {
5266 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5267 };
5268
5269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5271 if (!SWIG_IsOK(res1)) {
5272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5273 }
5274 arg1 = reinterpret_cast< wxPen * >(argp1);
5275 arg2 = obj1;
5276 arg3 = obj2;
5277 {
5278 PyThreadState* __tstate = wxPyBeginAllowThreads();
5279 wxPen__SetDashes(arg1,arg2,arg3);
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = SWIG_Py_Void();
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5291 PyObject *resultobj = 0;
5292 wxPen *arg1 = (wxPen *) 0 ;
5293 int result;
5294 void *argp1 = 0 ;
5295 int res1 = 0 ;
5296 PyObject *swig_obj[1] ;
5297
5298 if (!args) SWIG_fail;
5299 swig_obj[0] = args;
5300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5301 if (!SWIG_IsOK(res1)) {
5302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5303 }
5304 arg1 = reinterpret_cast< wxPen * >(argp1);
5305 {
5306 PyThreadState* __tstate = wxPyBeginAllowThreads();
5307 result = (int)((wxPen const *)arg1)->GetDashCount();
5308 wxPyEndAllowThreads(__tstate);
5309 if (PyErr_Occurred()) SWIG_fail;
5310 }
5311 resultobj = SWIG_From_int(static_cast< int >(result));
5312 return resultobj;
5313 fail:
5314 return NULL;
5315 }
5316
5317
5318 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5319 PyObject *resultobj = 0;
5320 wxPen *arg1 = (wxPen *) 0 ;
5321 wxBitmap *result = 0 ;
5322 void *argp1 = 0 ;
5323 int res1 = 0 ;
5324 PyObject *swig_obj[1] ;
5325
5326 if (!args) SWIG_fail;
5327 swig_obj[0] = args;
5328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5329 if (!SWIG_IsOK(res1)) {
5330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5331 }
5332 arg1 = reinterpret_cast< wxPen * >(argp1);
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 result = (wxBitmap *)(arg1)->GetStipple();
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5340 return resultobj;
5341 fail:
5342 return NULL;
5343 }
5344
5345
5346 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5347 PyObject *resultobj = 0;
5348 wxPen *arg1 = (wxPen *) 0 ;
5349 wxBitmap *arg2 = 0 ;
5350 void *argp1 = 0 ;
5351 int res1 = 0 ;
5352 void *argp2 = 0 ;
5353 int res2 = 0 ;
5354 PyObject * obj0 = 0 ;
5355 PyObject * obj1 = 0 ;
5356 char * kwnames[] = {
5357 (char *) "self",(char *) "stipple", NULL
5358 };
5359
5360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5362 if (!SWIG_IsOK(res1)) {
5363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5364 }
5365 arg1 = reinterpret_cast< wxPen * >(argp1);
5366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5367 if (!SWIG_IsOK(res2)) {
5368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5369 }
5370 if (!argp2) {
5371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5372 }
5373 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 (arg1)->SetStipple(*arg2);
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 resultobj = SWIG_Py_Void();
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxPen *arg1 = (wxPen *) 0 ;
5390 wxPen *arg2 = (wxPen *) 0 ;
5391 bool result;
5392 void *argp1 = 0 ;
5393 int res1 = 0 ;
5394 void *argp2 = 0 ;
5395 int res2 = 0 ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "self",(char *) "other", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5406 }
5407 arg1 = reinterpret_cast< wxPen * >(argp1);
5408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5409 if (!SWIG_IsOK(res2)) {
5410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5411 }
5412 arg2 = reinterpret_cast< wxPen * >(argp2);
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
5420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5421 }
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5429 PyObject *resultobj = 0;
5430 wxPen *arg1 = (wxPen *) 0 ;
5431 wxPen *arg2 = (wxPen *) 0 ;
5432 bool result;
5433 void *argp1 = 0 ;
5434 int res1 = 0 ;
5435 void *argp2 = 0 ;
5436 int res2 = 0 ;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 char * kwnames[] = {
5440 (char *) "self",(char *) "other", NULL
5441 };
5442
5443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5445 if (!SWIG_IsOK(res1)) {
5446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5447 }
5448 arg1 = reinterpret_cast< wxPen * >(argp1);
5449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5450 if (!SWIG_IsOK(res2)) {
5451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5452 }
5453 arg2 = reinterpret_cast< wxPen * >(argp2);
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 {
5461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5462 }
5463 return resultobj;
5464 fail:
5465 return NULL;
5466 }
5467
5468
5469 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5470 PyObject *obj;
5471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5472 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5473 return SWIG_Py_Void();
5474 }
5475
5476 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5477 return SWIG_Python_InitShadowInstance(args);
5478 }
5479
5480 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5481 PyObject *resultobj = 0;
5482 wxColour *arg1 = 0 ;
5483 int arg2 = (int) wxSOLID ;
5484 wxBrush *result = 0 ;
5485 wxColour temp1 ;
5486 int val2 ;
5487 int ecode2 = 0 ;
5488 PyObject * obj0 = 0 ;
5489 PyObject * obj1 = 0 ;
5490 char * kwnames[] = {
5491 (char *) "colour",(char *) "style", NULL
5492 };
5493
5494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5495 {
5496 arg1 = &temp1;
5497 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5498 }
5499 if (obj1) {
5500 ecode2 = SWIG_AsVal_int(obj1, &val2);
5501 if (!SWIG_IsOK(ecode2)) {
5502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5503 }
5504 arg2 = static_cast< int >(val2);
5505 }
5506 {
5507 if (!wxPyCheckForApp()) SWIG_fail;
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj = 0;
5522 wxBitmap *arg1 = 0 ;
5523 wxBrush *result = 0 ;
5524 void *argp1 = 0 ;
5525 int res1 = 0 ;
5526 PyObject * obj0 = 0 ;
5527 char * kwnames[] = {
5528 (char *) "stippleBitmap", NULL
5529 };
5530
5531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5532 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5533 if (!SWIG_IsOK(res1)) {
5534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5535 }
5536 if (!argp1) {
5537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5538 }
5539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5540 {
5541 if (!wxPyCheckForApp()) SWIG_fail;
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5555 PyObject *resultobj = 0;
5556 wxBrush *arg1 = (wxBrush *) 0 ;
5557 void *argp1 = 0 ;
5558 int res1 = 0 ;
5559 PyObject *swig_obj[1] ;
5560
5561 if (!args) SWIG_fail;
5562 swig_obj[0] = args;
5563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5566 }
5567 arg1 = reinterpret_cast< wxBrush * >(argp1);
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 delete arg1;
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 resultobj = SWIG_Py_Void();
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj = 0;
5584 wxBrush *arg1 = (wxBrush *) 0 ;
5585 wxColour *arg2 = 0 ;
5586 void *argp1 = 0 ;
5587 int res1 = 0 ;
5588 wxColour temp2 ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 char * kwnames[] = {
5592 (char *) "self",(char *) "col", NULL
5593 };
5594
5595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5597 if (!SWIG_IsOK(res1)) {
5598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5599 }
5600 arg1 = reinterpret_cast< wxBrush * >(argp1);
5601 {
5602 arg2 = &temp2;
5603 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5604 }
5605 {
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 (arg1)->SetColour((wxColour const &)*arg2);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 resultobj = SWIG_Py_Void();
5612 return resultobj;
5613 fail:
5614 return NULL;
5615 }
5616
5617
5618 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5619 PyObject *resultobj = 0;
5620 wxBrush *arg1 = (wxBrush *) 0 ;
5621 int arg2 ;
5622 void *argp1 = 0 ;
5623 int res1 = 0 ;
5624 int val2 ;
5625 int ecode2 = 0 ;
5626 PyObject * obj0 = 0 ;
5627 PyObject * obj1 = 0 ;
5628 char * kwnames[] = {
5629 (char *) "self",(char *) "style", NULL
5630 };
5631
5632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5634 if (!SWIG_IsOK(res1)) {
5635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5636 }
5637 arg1 = reinterpret_cast< wxBrush * >(argp1);
5638 ecode2 = SWIG_AsVal_int(obj1, &val2);
5639 if (!SWIG_IsOK(ecode2)) {
5640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5641 }
5642 arg2 = static_cast< int >(val2);
5643 {
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 (arg1)->SetStyle(arg2);
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_Py_Void();
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxBrush *arg1 = (wxBrush *) 0 ;
5659 wxBitmap *arg2 = 0 ;
5660 void *argp1 = 0 ;
5661 int res1 = 0 ;
5662 void *argp2 = 0 ;
5663 int res2 = 0 ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char * kwnames[] = {
5667 (char *) "self",(char *) "stipple", NULL
5668 };
5669
5670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5672 if (!SWIG_IsOK(res1)) {
5673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5674 }
5675 arg1 = reinterpret_cast< wxBrush * >(argp1);
5676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5677 if (!SWIG_IsOK(res2)) {
5678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5679 }
5680 if (!argp2) {
5681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5682 }
5683 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 (arg1)->SetStipple((wxBitmap const &)*arg2);
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 resultobj = SWIG_Py_Void();
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5698 PyObject *resultobj = 0;
5699 wxBrush *arg1 = (wxBrush *) 0 ;
5700 wxColour result;
5701 void *argp1 = 0 ;
5702 int res1 = 0 ;
5703 PyObject *swig_obj[1] ;
5704
5705 if (!args) SWIG_fail;
5706 swig_obj[0] = args;
5707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5708 if (!SWIG_IsOK(res1)) {
5709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5710 }
5711 arg1 = reinterpret_cast< wxBrush * >(argp1);
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = ((wxBrush const *)arg1)->GetColour();
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5726 PyObject *resultobj = 0;
5727 wxBrush *arg1 = (wxBrush *) 0 ;
5728 int result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 PyObject *swig_obj[1] ;
5732
5733 if (!args) SWIG_fail;
5734 swig_obj[0] = args;
5735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5738 }
5739 arg1 = reinterpret_cast< wxBrush * >(argp1);
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 result = (int)((wxBrush const *)arg1)->GetStyle();
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 resultobj = SWIG_From_int(static_cast< int >(result));
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5754 PyObject *resultobj = 0;
5755 wxBrush *arg1 = (wxBrush *) 0 ;
5756 wxBitmap *result = 0 ;
5757 void *argp1 = 0 ;
5758 int res1 = 0 ;
5759 PyObject *swig_obj[1] ;
5760
5761 if (!args) SWIG_fail;
5762 swig_obj[0] = args;
5763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5764 if (!SWIG_IsOK(res1)) {
5765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5766 }
5767 arg1 = reinterpret_cast< wxBrush * >(argp1);
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) SWIG_fail;
5773 }
5774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5775 return resultobj;
5776 fail:
5777 return NULL;
5778 }
5779
5780
5781 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5782 PyObject *resultobj = 0;
5783 wxBrush *arg1 = (wxBrush *) 0 ;
5784 bool result;
5785 void *argp1 = 0 ;
5786 int res1 = 0 ;
5787 PyObject *swig_obj[1] ;
5788
5789 if (!args) SWIG_fail;
5790 swig_obj[0] = args;
5791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5792 if (!SWIG_IsOK(res1)) {
5793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5794 }
5795 arg1 = reinterpret_cast< wxBrush * >(argp1);
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (bool)((wxBrush const *)arg1)->IsHatch();
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 {
5803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5804 }
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5812 PyObject *resultobj = 0;
5813 wxBrush *arg1 = (wxBrush *) 0 ;
5814 bool result;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 PyObject *swig_obj[1] ;
5818
5819 if (!args) SWIG_fail;
5820 swig_obj[0] = args;
5821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5822 if (!SWIG_IsOK(res1)) {
5823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5824 }
5825 arg1 = reinterpret_cast< wxBrush * >(argp1);
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (bool)(arg1)->IsOk();
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 {
5833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5834 }
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5842 PyObject *obj;
5843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5844 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5845 return SWIG_Py_Void();
5846 }
5847
5848 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5849 return SWIG_Python_InitShadowInstance(args);
5850 }
5851
5852 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5853 PyObject *resultobj = 0;
5854 wxString *arg1 = 0 ;
5855 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5856 wxBitmap *result = 0 ;
5857 bool temp1 = false ;
5858 int val2 ;
5859 int ecode2 = 0 ;
5860 PyObject * obj0 = 0 ;
5861 PyObject * obj1 = 0 ;
5862 char * kwnames[] = {
5863 (char *) "name",(char *) "type", NULL
5864 };
5865
5866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5867 {
5868 arg1 = wxString_in_helper(obj0);
5869 if (arg1 == NULL) SWIG_fail;
5870 temp1 = true;
5871 }
5872 if (obj1) {
5873 ecode2 = SWIG_AsVal_int(obj1, &val2);
5874 if (!SWIG_IsOK(ecode2)) {
5875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5876 }
5877 arg2 = static_cast< wxBitmapType >(val2);
5878 }
5879 {
5880 if (!wxPyCheckForApp()) SWIG_fail;
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5887 {
5888 if (temp1)
5889 delete arg1;
5890 }
5891 return resultobj;
5892 fail:
5893 {
5894 if (temp1)
5895 delete arg1;
5896 }
5897 return NULL;
5898 }
5899
5900
5901 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 wxBitmap *arg1 = (wxBitmap *) 0 ;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 PyObject *swig_obj[1] ;
5907
5908 if (!args) SWIG_fail;
5909 swig_obj[0] = args;
5910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5911 if (!SWIG_IsOK(res1)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5913 }
5914 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5915 {
5916 delete arg1;
5917
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj = 0;
5929 int arg1 ;
5930 int arg2 ;
5931 int arg3 = (int) -1 ;
5932 wxBitmap *result = 0 ;
5933 int val1 ;
5934 int ecode1 = 0 ;
5935 int val2 ;
5936 int ecode2 = 0 ;
5937 int val3 ;
5938 int ecode3 = 0 ;
5939 PyObject * obj0 = 0 ;
5940 PyObject * obj1 = 0 ;
5941 PyObject * obj2 = 0 ;
5942 char * kwnames[] = {
5943 (char *) "width",(char *) "height",(char *) "depth", NULL
5944 };
5945
5946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5947 ecode1 = SWIG_AsVal_int(obj0, &val1);
5948 if (!SWIG_IsOK(ecode1)) {
5949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5950 }
5951 arg1 = static_cast< int >(val1);
5952 ecode2 = SWIG_AsVal_int(obj1, &val2);
5953 if (!SWIG_IsOK(ecode2)) {
5954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5955 }
5956 arg2 = static_cast< int >(val2);
5957 if (obj2) {
5958 ecode3 = SWIG_AsVal_int(obj2, &val3);
5959 if (!SWIG_IsOK(ecode3)) {
5960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5961 }
5962 arg3 = static_cast< int >(val3);
5963 }
5964 {
5965 if (!wxPyCheckForApp()) SWIG_fail;
5966 PyThreadState* __tstate = wxPyBeginAllowThreads();
5967 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5972 return resultobj;
5973 fail:
5974 return NULL;
5975 }
5976
5977
5978 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj = 0;
5980 wxIcon *arg1 = 0 ;
5981 wxBitmap *result = 0 ;
5982 void *argp1 = 0 ;
5983 int res1 = 0 ;
5984 PyObject * obj0 = 0 ;
5985 char * kwnames[] = {
5986 (char *) "icon", NULL
5987 };
5988
5989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5990 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5991 if (!SWIG_IsOK(res1)) {
5992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5993 }
5994 if (!argp1) {
5995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5996 }
5997 arg1 = reinterpret_cast< wxIcon * >(argp1);
5998 {
5999 if (!wxPyCheckForApp()) SWIG_fail;
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj = 0;
6014 wxImage *arg1 = 0 ;
6015 int arg2 = (int) -1 ;
6016 wxBitmap *result = 0 ;
6017 void *argp1 = 0 ;
6018 int res1 = 0 ;
6019 int val2 ;
6020 int ecode2 = 0 ;
6021 PyObject * obj0 = 0 ;
6022 PyObject * obj1 = 0 ;
6023 char * kwnames[] = {
6024 (char *) "image",(char *) "depth", NULL
6025 };
6026
6027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6028 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6031 }
6032 if (!argp1) {
6033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6034 }
6035 arg1 = reinterpret_cast< wxImage * >(argp1);
6036 if (obj1) {
6037 ecode2 = SWIG_AsVal_int(obj1, &val2);
6038 if (!SWIG_IsOK(ecode2)) {
6039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6040 }
6041 arg2 = static_cast< int >(val2);
6042 }
6043 {
6044 if (!wxPyCheckForApp()) SWIG_fail;
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj = 0;
6059 PyObject *arg1 = (PyObject *) 0 ;
6060 wxBitmap *result = 0 ;
6061 PyObject * obj0 = 0 ;
6062 char * kwnames[] = {
6063 (char *) "listOfStrings", NULL
6064 };
6065
6066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6067 arg1 = obj0;
6068 {
6069 if (!wxPyCheckForApp()) SWIG_fail;
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 result = (wxBitmap *)new_wxBitmap(arg1);
6072 wxPyEndAllowThreads(__tstate);
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6076 return resultobj;
6077 fail:
6078 return NULL;
6079 }
6080
6081
6082 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6083 PyObject *resultobj = 0;
6084 PyObject *arg1 = (PyObject *) 0 ;
6085 int arg2 ;
6086 int arg3 ;
6087 int arg4 = (int) 1 ;
6088 wxBitmap *result = 0 ;
6089 int val2 ;
6090 int ecode2 = 0 ;
6091 int val3 ;
6092 int ecode3 = 0 ;
6093 int val4 ;
6094 int ecode4 = 0 ;
6095 PyObject * obj0 = 0 ;
6096 PyObject * obj1 = 0 ;
6097 PyObject * obj2 = 0 ;
6098 PyObject * obj3 = 0 ;
6099 char * kwnames[] = {
6100 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6101 };
6102
6103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6104 arg1 = obj0;
6105 ecode2 = SWIG_AsVal_int(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6108 }
6109 arg2 = static_cast< int >(val2);
6110 ecode3 = SWIG_AsVal_int(obj2, &val3);
6111 if (!SWIG_IsOK(ecode3)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6113 }
6114 arg3 = static_cast< int >(val3);
6115 if (obj3) {
6116 ecode4 = SWIG_AsVal_int(obj3, &val4);
6117 if (!SWIG_IsOK(ecode4)) {
6118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6119 }
6120 arg4 = static_cast< int >(val4);
6121 }
6122 {
6123 if (!wxPyCheckForApp()) SWIG_fail;
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6130 return resultobj;
6131 fail:
6132 return NULL;
6133 }
6134
6135
6136 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6137 PyObject *resultobj = 0;
6138 wxBitmap *arg1 = (wxBitmap *) 0 ;
6139 long 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_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6149 }
6150 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6151 {
6152 result = (long)(arg1)->GetHandle();
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_From_long(static_cast< long >(result));
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 long arg2 ;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 long val2 ;
6169 int ecode2 = 0 ;
6170 PyObject * obj0 = 0 ;
6171 PyObject * obj1 = 0 ;
6172 char * kwnames[] = {
6173 (char *) "self",(char *) "handle", NULL
6174 };
6175
6176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6178 if (!SWIG_IsOK(res1)) {
6179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6180 }
6181 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6182 ecode2 = SWIG_AsVal_long(obj1, &val2);
6183 if (!SWIG_IsOK(ecode2)) {
6184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6185 }
6186 arg2 = static_cast< long >(val2);
6187 {
6188 wxBitmap_SetHandle(arg1,arg2);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 resultobj = SWIG_Py_Void();
6192 return resultobj;
6193 fail:
6194 return NULL;
6195 }
6196
6197
6198 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6199 PyObject *resultobj = 0;
6200 wxBitmap *arg1 = (wxBitmap *) 0 ;
6201 bool result;
6202 void *argp1 = 0 ;
6203 int res1 = 0 ;
6204 PyObject *swig_obj[1] ;
6205
6206 if (!args) SWIG_fail;
6207 swig_obj[0] = args;
6208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6211 }
6212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6213 {
6214 result = (bool)(arg1)->IsOk();
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 {
6218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6219 }
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6227 PyObject *resultobj = 0;
6228 wxBitmap *arg1 = (wxBitmap *) 0 ;
6229 int result;
6230 void *argp1 = 0 ;
6231 int res1 = 0 ;
6232 PyObject *swig_obj[1] ;
6233
6234 if (!args) SWIG_fail;
6235 swig_obj[0] = args;
6236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6237 if (!SWIG_IsOK(res1)) {
6238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6239 }
6240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6241 {
6242 result = (int)(arg1)->GetWidth();
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 resultobj = SWIG_From_int(static_cast< int >(result));
6246 return resultobj;
6247 fail:
6248 return NULL;
6249 }
6250
6251
6252 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6253 PyObject *resultobj = 0;
6254 wxBitmap *arg1 = (wxBitmap *) 0 ;
6255 int result;
6256 void *argp1 = 0 ;
6257 int res1 = 0 ;
6258 PyObject *swig_obj[1] ;
6259
6260 if (!args) SWIG_fail;
6261 swig_obj[0] = args;
6262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6263 if (!SWIG_IsOK(res1)) {
6264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6265 }
6266 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6267 {
6268 result = (int)(arg1)->GetHeight();
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 resultobj = SWIG_From_int(static_cast< int >(result));
6272 return resultobj;
6273 fail:
6274 return NULL;
6275 }
6276
6277
6278 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6279 PyObject *resultobj = 0;
6280 wxBitmap *arg1 = (wxBitmap *) 0 ;
6281 int result;
6282 void *argp1 = 0 ;
6283 int res1 = 0 ;
6284 PyObject *swig_obj[1] ;
6285
6286 if (!args) SWIG_fail;
6287 swig_obj[0] = args;
6288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6291 }
6292 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6293 {
6294 result = (int)(arg1)->GetDepth();
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 resultobj = SWIG_From_int(static_cast< int >(result));
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6305 PyObject *resultobj = 0;
6306 wxBitmap *arg1 = (wxBitmap *) 0 ;
6307 wxSize result;
6308 void *argp1 = 0 ;
6309 int res1 = 0 ;
6310 PyObject *swig_obj[1] ;
6311
6312 if (!args) SWIG_fail;
6313 swig_obj[0] = args;
6314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6315 if (!SWIG_IsOK(res1)) {
6316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6317 }
6318 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6319 {
6320 result = wxBitmap_GetSize(arg1);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6324 return resultobj;
6325 fail:
6326 return NULL;
6327 }
6328
6329
6330 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6331 PyObject *resultobj = 0;
6332 wxBitmap *arg1 = (wxBitmap *) 0 ;
6333 SwigValueWrapper<wxImage > result;
6334 void *argp1 = 0 ;
6335 int res1 = 0 ;
6336 PyObject *swig_obj[1] ;
6337
6338 if (!args) SWIG_fail;
6339 swig_obj[0] = args;
6340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6341 if (!SWIG_IsOK(res1)) {
6342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6343 }
6344 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6345 {
6346 result = ((wxBitmap const *)arg1)->ConvertToImage();
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxBitmap *arg1 = (wxBitmap *) 0 ;
6359 wxMask *result = 0 ;
6360 void *argp1 = 0 ;
6361 int res1 = 0 ;
6362 PyObject *swig_obj[1] ;
6363
6364 if (!args) SWIG_fail;
6365 swig_obj[0] = args;
6366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6367 if (!SWIG_IsOK(res1)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6369 }
6370 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6371 {
6372 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6383 PyObject *resultobj = 0;
6384 wxBitmap *arg1 = (wxBitmap *) 0 ;
6385 wxMask *arg2 = (wxMask *) 0 ;
6386 void *argp1 = 0 ;
6387 int res1 = 0 ;
6388 int res2 = 0 ;
6389 PyObject * obj0 = 0 ;
6390 PyObject * obj1 = 0 ;
6391 char * kwnames[] = {
6392 (char *) "self",(char *) "mask", NULL
6393 };
6394
6395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6397 if (!SWIG_IsOK(res1)) {
6398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6399 }
6400 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6401 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6402 if (!SWIG_IsOK(res2)) {
6403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6404 }
6405 {
6406 (arg1)->SetMask(arg2);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 resultobj = SWIG_Py_Void();
6410 return resultobj;
6411 fail:
6412 return NULL;
6413 }
6414
6415
6416 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj = 0;
6418 wxBitmap *arg1 = (wxBitmap *) 0 ;
6419 wxColour *arg2 = 0 ;
6420 void *argp1 = 0 ;
6421 int res1 = 0 ;
6422 wxColour temp2 ;
6423 PyObject * obj0 = 0 ;
6424 PyObject * obj1 = 0 ;
6425 char * kwnames[] = {
6426 (char *) "self",(char *) "colour", NULL
6427 };
6428
6429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6431 if (!SWIG_IsOK(res1)) {
6432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6433 }
6434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6435 {
6436 arg2 = &temp2;
6437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6438 }
6439 {
6440 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 resultobj = SWIG_Py_Void();
6444 return resultobj;
6445 fail:
6446 return NULL;
6447 }
6448
6449
6450 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6451 PyObject *resultobj = 0;
6452 wxBitmap *arg1 = (wxBitmap *) 0 ;
6453 wxRect *arg2 = 0 ;
6454 SwigValueWrapper<wxBitmap > result;
6455 void *argp1 = 0 ;
6456 int res1 = 0 ;
6457 wxRect temp2 ;
6458 PyObject * obj0 = 0 ;
6459 PyObject * obj1 = 0 ;
6460 char * kwnames[] = {
6461 (char *) "self",(char *) "rect", NULL
6462 };
6463
6464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6466 if (!SWIG_IsOK(res1)) {
6467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6468 }
6469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6470 {
6471 arg2 = &temp2;
6472 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6473 }
6474 {
6475 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6486 PyObject *resultobj = 0;
6487 wxBitmap *arg1 = (wxBitmap *) 0 ;
6488 wxString *arg2 = 0 ;
6489 wxBitmapType arg3 ;
6490 wxPalette *arg4 = (wxPalette *) NULL ;
6491 bool result;
6492 void *argp1 = 0 ;
6493 int res1 = 0 ;
6494 bool temp2 = false ;
6495 int val3 ;
6496 int ecode3 = 0 ;
6497 void *argp4 = 0 ;
6498 int res4 = 0 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 PyObject * obj2 = 0 ;
6502 PyObject * obj3 = 0 ;
6503 char * kwnames[] = {
6504 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6505 };
6506
6507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6509 if (!SWIG_IsOK(res1)) {
6510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6511 }
6512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6513 {
6514 arg2 = wxString_in_helper(obj1);
6515 if (arg2 == NULL) SWIG_fail;
6516 temp2 = true;
6517 }
6518 ecode3 = SWIG_AsVal_int(obj2, &val3);
6519 if (!SWIG_IsOK(ecode3)) {
6520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6521 }
6522 arg3 = static_cast< wxBitmapType >(val3);
6523 if (obj3) {
6524 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6525 if (!SWIG_IsOK(res4)) {
6526 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6527 }
6528 arg4 = reinterpret_cast< wxPalette * >(argp4);
6529 }
6530 {
6531 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
6534 {
6535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6536 }
6537 {
6538 if (temp2)
6539 delete arg2;
6540 }
6541 return resultobj;
6542 fail:
6543 {
6544 if (temp2)
6545 delete arg2;
6546 }
6547 return NULL;
6548 }
6549
6550
6551 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj = 0;
6553 wxBitmap *arg1 = (wxBitmap *) 0 ;
6554 wxString *arg2 = 0 ;
6555 wxBitmapType arg3 ;
6556 bool result;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 bool temp2 = false ;
6560 int val3 ;
6561 int ecode3 = 0 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 PyObject * obj2 = 0 ;
6565 char * kwnames[] = {
6566 (char *) "self",(char *) "name",(char *) "type", NULL
6567 };
6568
6569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6573 }
6574 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6575 {
6576 arg2 = wxString_in_helper(obj1);
6577 if (arg2 == NULL) SWIG_fail;
6578 temp2 = true;
6579 }
6580 ecode3 = SWIG_AsVal_int(obj2, &val3);
6581 if (!SWIG_IsOK(ecode3)) {
6582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6583 }
6584 arg3 = static_cast< wxBitmapType >(val3);
6585 {
6586 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6591 }
6592 {
6593 if (temp2)
6594 delete arg2;
6595 }
6596 return resultobj;
6597 fail:
6598 {
6599 if (temp2)
6600 delete arg2;
6601 }
6602 return NULL;
6603 }
6604
6605
6606 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6607 PyObject *resultobj = 0;
6608 wxBitmap *arg1 = (wxBitmap *) 0 ;
6609 wxPalette *result = 0 ;
6610 void *argp1 = 0 ;
6611 int res1 = 0 ;
6612 PyObject *swig_obj[1] ;
6613
6614 if (!args) SWIG_fail;
6615 swig_obj[0] = args;
6616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6617 if (!SWIG_IsOK(res1)) {
6618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6619 }
6620 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6621 {
6622 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6626 return resultobj;
6627 fail:
6628 return NULL;
6629 }
6630
6631
6632 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6633 PyObject *resultobj = 0;
6634 wxBitmap *arg1 = (wxBitmap *) 0 ;
6635 wxPalette *arg2 = 0 ;
6636 void *argp1 = 0 ;
6637 int res1 = 0 ;
6638 void *argp2 = 0 ;
6639 int res2 = 0 ;
6640 PyObject * obj0 = 0 ;
6641 PyObject * obj1 = 0 ;
6642 char * kwnames[] = {
6643 (char *) "self",(char *) "palette", NULL
6644 };
6645
6646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6648 if (!SWIG_IsOK(res1)) {
6649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6650 }
6651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6653 if (!SWIG_IsOK(res2)) {
6654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6655 }
6656 if (!argp2) {
6657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6658 }
6659 arg2 = reinterpret_cast< wxPalette * >(argp2);
6660 {
6661 (arg1)->SetPalette((wxPalette const &)*arg2);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = SWIG_Py_Void();
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj = 0;
6673 wxBitmap *arg1 = (wxBitmap *) 0 ;
6674 wxIcon *arg2 = 0 ;
6675 bool result;
6676 void *argp1 = 0 ;
6677 int res1 = 0 ;
6678 void *argp2 = 0 ;
6679 int res2 = 0 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "icon", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6693 if (!SWIG_IsOK(res2)) {
6694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6695 }
6696 if (!argp2) {
6697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6698 }
6699 arg2 = reinterpret_cast< wxIcon * >(argp2);
6700 {
6701 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 {
6705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6706 }
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj = 0;
6715 wxBitmap *arg1 = (wxBitmap *) 0 ;
6716 int arg2 ;
6717 void *argp1 = 0 ;
6718 int res1 = 0 ;
6719 int val2 ;
6720 int ecode2 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 char * kwnames[] = {
6724 (char *) "self",(char *) "height", NULL
6725 };
6726
6727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6729 if (!SWIG_IsOK(res1)) {
6730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6731 }
6732 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6733 ecode2 = SWIG_AsVal_int(obj1, &val2);
6734 if (!SWIG_IsOK(ecode2)) {
6735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6736 }
6737 arg2 = static_cast< int >(val2);
6738 {
6739 (arg1)->SetHeight(arg2);
6740 if (PyErr_Occurred()) SWIG_fail;
6741 }
6742 resultobj = SWIG_Py_Void();
6743 return resultobj;
6744 fail:
6745 return NULL;
6746 }
6747
6748
6749 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6750 PyObject *resultobj = 0;
6751 wxBitmap *arg1 = (wxBitmap *) 0 ;
6752 int arg2 ;
6753 void *argp1 = 0 ;
6754 int res1 = 0 ;
6755 int val2 ;
6756 int ecode2 = 0 ;
6757 PyObject * obj0 = 0 ;
6758 PyObject * obj1 = 0 ;
6759 char * kwnames[] = {
6760 (char *) "self",(char *) "width", NULL
6761 };
6762
6763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6765 if (!SWIG_IsOK(res1)) {
6766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6767 }
6768 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6769 ecode2 = SWIG_AsVal_int(obj1, &val2);
6770 if (!SWIG_IsOK(ecode2)) {
6771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6772 }
6773 arg2 = static_cast< int >(val2);
6774 {
6775 (arg1)->SetWidth(arg2);
6776 if (PyErr_Occurred()) SWIG_fail;
6777 }
6778 resultobj = SWIG_Py_Void();
6779 return resultobj;
6780 fail:
6781 return NULL;
6782 }
6783
6784
6785 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj = 0;
6787 wxBitmap *arg1 = (wxBitmap *) 0 ;
6788 int arg2 ;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 int val2 ;
6792 int ecode2 = 0 ;
6793 PyObject * obj0 = 0 ;
6794 PyObject * obj1 = 0 ;
6795 char * kwnames[] = {
6796 (char *) "self",(char *) "depth", NULL
6797 };
6798
6799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6801 if (!SWIG_IsOK(res1)) {
6802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6803 }
6804 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6805 ecode2 = SWIG_AsVal_int(obj1, &val2);
6806 if (!SWIG_IsOK(ecode2)) {
6807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6808 }
6809 arg2 = static_cast< int >(val2);
6810 {
6811 (arg1)->SetDepth(arg2);
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 resultobj = SWIG_Py_Void();
6815 return resultobj;
6816 fail:
6817 return NULL;
6818 }
6819
6820
6821 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6822 PyObject *resultobj = 0;
6823 wxBitmap *arg1 = (wxBitmap *) 0 ;
6824 wxSize *arg2 = 0 ;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 wxSize temp2 ;
6828 PyObject * obj0 = 0 ;
6829 PyObject * obj1 = 0 ;
6830 char * kwnames[] = {
6831 (char *) "self",(char *) "size", NULL
6832 };
6833
6834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6836 if (!SWIG_IsOK(res1)) {
6837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6838 }
6839 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6840 {
6841 arg2 = &temp2;
6842 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6843 }
6844 {
6845 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_Py_Void();
6849 return resultobj;
6850 fail:
6851 return NULL;
6852 }
6853
6854
6855 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj = 0;
6857 wxBitmap *arg1 = (wxBitmap *) 0 ;
6858 wxCursor *arg2 = 0 ;
6859 bool result;
6860 void *argp1 = 0 ;
6861 int res1 = 0 ;
6862 void *argp2 = 0 ;
6863 int res2 = 0 ;
6864 PyObject * obj0 = 0 ;
6865 PyObject * obj1 = 0 ;
6866 char * kwnames[] = {
6867 (char *) "self",(char *) "cursor", NULL
6868 };
6869
6870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6872 if (!SWIG_IsOK(res1)) {
6873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6874 }
6875 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6877 if (!SWIG_IsOK(res2)) {
6878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6879 }
6880 if (!argp2) {
6881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6882 }
6883 arg2 = reinterpret_cast< wxCursor * >(argp2);
6884 {
6885 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 }
6888 {
6889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6890 }
6891 return resultobj;
6892 fail:
6893 return NULL;
6894 }
6895
6896
6897 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6898 PyObject *resultobj = 0;
6899 wxBitmap *arg1 = (wxBitmap *) 0 ;
6900 wxBitmap *arg2 = (wxBitmap *) 0 ;
6901 bool result;
6902 void *argp1 = 0 ;
6903 int res1 = 0 ;
6904 void *argp2 = 0 ;
6905 int res2 = 0 ;
6906 PyObject * obj0 = 0 ;
6907 PyObject * obj1 = 0 ;
6908 char * kwnames[] = {
6909 (char *) "self",(char *) "other", NULL
6910 };
6911
6912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6914 if (!SWIG_IsOK(res1)) {
6915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6916 }
6917 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6919 if (!SWIG_IsOK(res2)) {
6920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6921 }
6922 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6923 {
6924 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 {
6928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6929 }
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxBitmap *arg1 = (wxBitmap *) 0 ;
6939 wxBitmap *arg2 = (wxBitmap *) 0 ;
6940 bool result;
6941 void *argp1 = 0 ;
6942 int res1 = 0 ;
6943 void *argp2 = 0 ;
6944 int res2 = 0 ;
6945 PyObject * obj0 = 0 ;
6946 PyObject * obj1 = 0 ;
6947 char * kwnames[] = {
6948 (char *) "self",(char *) "other", NULL
6949 };
6950
6951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6955 }
6956 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6957 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6958 if (!SWIG_IsOK(res2)) {
6959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6960 }
6961 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6962 {
6963 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 {
6967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6968 }
6969 return resultobj;
6970 fail:
6971 return NULL;
6972 }
6973
6974
6975 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6976 PyObject *obj;
6977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6978 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6979 return SWIG_Py_Void();
6980 }
6981
6982 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6983 return SWIG_Python_InitShadowInstance(args);
6984 }
6985
6986 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6987 PyObject *resultobj = 0;
6988 int arg1 ;
6989 int arg2 ;
6990 buffer arg3 ;
6991 int arg4 ;
6992 buffer arg5 ;
6993 int arg6 ;
6994 wxBitmap *result = 0 ;
6995 int val1 ;
6996 int ecode1 = 0 ;
6997 int val2 ;
6998 int ecode2 = 0 ;
6999 Py_ssize_t temp3 ;
7000 Py_ssize_t temp5 ;
7001 PyObject * obj0 = 0 ;
7002 PyObject * obj1 = 0 ;
7003 PyObject * obj2 = 0 ;
7004 PyObject * obj3 = 0 ;
7005 char * kwnames[] = {
7006 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7007 };
7008
7009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7010 ecode1 = SWIG_AsVal_int(obj0, &val1);
7011 if (!SWIG_IsOK(ecode1)) {
7012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7013 }
7014 arg1 = static_cast< int >(val1);
7015 ecode2 = SWIG_AsVal_int(obj1, &val2);
7016 if (!SWIG_IsOK(ecode2)) {
7017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7018 }
7019 arg2 = static_cast< int >(val2);
7020 {
7021 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7022 arg4 = (int)temp3;
7023 }
7024 {
7025 if (obj3 != Py_None) {
7026 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7027 arg6 = (int)temp5;
7028 }
7029 }
7030 {
7031 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = 0;
7043 int arg1 ;
7044 int arg2 ;
7045 buffer arg3 ;
7046 int arg4 ;
7047 wxBitmap *result = 0 ;
7048 int val1 ;
7049 int ecode1 = 0 ;
7050 int val2 ;
7051 int ecode2 = 0 ;
7052 Py_ssize_t temp3 ;
7053 PyObject * obj0 = 0 ;
7054 PyObject * obj1 = 0 ;
7055 PyObject * obj2 = 0 ;
7056 char * kwnames[] = {
7057 (char *) "width",(char *) "height",(char *) "data", NULL
7058 };
7059
7060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7061 ecode1 = SWIG_AsVal_int(obj0, &val1);
7062 if (!SWIG_IsOK(ecode1)) {
7063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7064 }
7065 arg1 = static_cast< int >(val1);
7066 ecode2 = SWIG_AsVal_int(obj1, &val2);
7067 if (!SWIG_IsOK(ecode2)) {
7068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7069 }
7070 arg2 = static_cast< int >(val2);
7071 {
7072 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7073 arg4 = (int)temp3;
7074 }
7075 {
7076 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj = 0;
7088 int arg1 ;
7089 int arg2 ;
7090 buffer arg3 ;
7091 int arg4 ;
7092 wxBitmap *result = 0 ;
7093 int val1 ;
7094 int ecode1 = 0 ;
7095 int val2 ;
7096 int ecode2 = 0 ;
7097 Py_ssize_t temp3 ;
7098 PyObject * obj0 = 0 ;
7099 PyObject * obj1 = 0 ;
7100 PyObject * obj2 = 0 ;
7101 char * kwnames[] = {
7102 (char *) "width",(char *) "height",(char *) "data", NULL
7103 };
7104
7105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7106 ecode1 = SWIG_AsVal_int(obj0, &val1);
7107 if (!SWIG_IsOK(ecode1)) {
7108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7109 }
7110 arg1 = static_cast< int >(val1);
7111 ecode2 = SWIG_AsVal_int(obj1, &val2);
7112 if (!SWIG_IsOK(ecode2)) {
7113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7114 }
7115 arg2 = static_cast< int >(val2);
7116 {
7117 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7118 arg4 = (int)temp3;
7119 }
7120 {
7121 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7122 if (PyErr_Occurred()) SWIG_fail;
7123 }
7124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7125 return resultobj;
7126 fail:
7127 return NULL;
7128 }
7129
7130
7131 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7132 PyObject *resultobj = 0;
7133 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7134 wxPoint result;
7135 void *argp1 = 0 ;
7136 int res1 = 0 ;
7137 PyObject *swig_obj[1] ;
7138
7139 if (!args) SWIG_fail;
7140 swig_obj[0] = args;
7141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7144 }
7145 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7146 {
7147 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7158 PyObject *resultobj = 0;
7159 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7160 int result;
7161 void *argp1 = 0 ;
7162 int res1 = 0 ;
7163 PyObject *swig_obj[1] ;
7164
7165 if (!args) SWIG_fail;
7166 swig_obj[0] = args;
7167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7168 if (!SWIG_IsOK(res1)) {
7169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7170 }
7171 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7172 {
7173 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_From_int(static_cast< int >(result));
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7184 PyObject *resultobj = 0;
7185 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7186 int result;
7187 void *argp1 = 0 ;
7188 int res1 = 0 ;
7189 PyObject *swig_obj[1] ;
7190
7191 if (!args) SWIG_fail;
7192 swig_obj[0] = args;
7193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7194 if (!SWIG_IsOK(res1)) {
7195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7196 }
7197 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7198 {
7199 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7200 if (PyErr_Occurred()) SWIG_fail;
7201 }
7202 resultobj = SWIG_From_int(static_cast< int >(result));
7203 return resultobj;
7204 fail:
7205 return NULL;
7206 }
7207
7208
7209 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7210 PyObject *resultobj = 0;
7211 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7212 wxSize result;
7213 void *argp1 = 0 ;
7214 int res1 = 0 ;
7215 PyObject *swig_obj[1] ;
7216
7217 if (!args) SWIG_fail;
7218 swig_obj[0] = args;
7219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7220 if (!SWIG_IsOK(res1)) {
7221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7222 }
7223 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7224 {
7225 result = ((wxPixelDataBase const *)arg1)->GetSize();
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7229 return resultobj;
7230 fail:
7231 return NULL;
7232 }
7233
7234
7235 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7236 PyObject *resultobj = 0;
7237 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7238 int result;
7239 void *argp1 = 0 ;
7240 int res1 = 0 ;
7241 PyObject *swig_obj[1] ;
7242
7243 if (!args) SWIG_fail;
7244 swig_obj[0] = args;
7245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7246 if (!SWIG_IsOK(res1)) {
7247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7248 }
7249 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7250 {
7251 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_From_int(static_cast< int >(result));
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7262 PyObject *obj;
7263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7264 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7265 return SWIG_Py_Void();
7266 }
7267
7268 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7269 PyObject *resultobj = 0;
7270 wxBitmap *arg1 = 0 ;
7271 wxNativePixelData *result = 0 ;
7272 void *argp1 = 0 ;
7273 int res1 = 0 ;
7274
7275 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7279 }
7280 if (!argp1) {
7281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7282 }
7283 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7284 {
7285 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7296 PyObject *resultobj = 0;
7297 wxBitmap *arg1 = 0 ;
7298 wxRect *arg2 = 0 ;
7299 wxNativePixelData *result = 0 ;
7300 void *argp1 = 0 ;
7301 int res1 = 0 ;
7302 wxRect temp2 ;
7303
7304 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7306 if (!SWIG_IsOK(res1)) {
7307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7308 }
7309 if (!argp1) {
7310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7311 }
7312 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7313 {
7314 arg2 = &temp2;
7315 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7316 }
7317 {
7318 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7329 PyObject *resultobj = 0;
7330 wxBitmap *arg1 = 0 ;
7331 wxPoint *arg2 = 0 ;
7332 wxSize *arg3 = 0 ;
7333 wxNativePixelData *result = 0 ;
7334 void *argp1 = 0 ;
7335 int res1 = 0 ;
7336 wxPoint temp2 ;
7337 wxSize temp3 ;
7338
7339 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7343 }
7344 if (!argp1) {
7345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7346 }
7347 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7348 {
7349 arg2 = &temp2;
7350 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7351 }
7352 {
7353 arg3 = &temp3;
7354 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7355 }
7356 {
7357 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7368 int argc;
7369 PyObject *argv[4];
7370
7371 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7372 --argc;
7373 if (argc == 1) {
7374 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7375 }
7376 if (argc == 2) {
7377 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7378 }
7379 if (argc == 3) {
7380 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7381 }
7382
7383 fail:
7384 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7385 return NULL;
7386 }
7387
7388
7389 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7390 PyObject *resultobj = 0;
7391 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7392 void *argp1 = 0 ;
7393 int res1 = 0 ;
7394 PyObject *swig_obj[1] ;
7395
7396 if (!args) SWIG_fail;
7397 swig_obj[0] = args;
7398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7399 if (!SWIG_IsOK(res1)) {
7400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7401 }
7402 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7403 {
7404 delete arg1;
7405
7406 if (PyErr_Occurred()) SWIG_fail;
7407 }
7408 resultobj = SWIG_Py_Void();
7409 return resultobj;
7410 fail:
7411 return NULL;
7412 }
7413
7414
7415 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7416 PyObject *resultobj = 0;
7417 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7418 wxNativePixelData_Accessor result;
7419 void *argp1 = 0 ;
7420 int res1 = 0 ;
7421 PyObject *swig_obj[1] ;
7422
7423 if (!args) SWIG_fail;
7424 swig_obj[0] = args;
7425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7426 if (!SWIG_IsOK(res1)) {
7427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7428 }
7429 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7430 {
7431 result = ((wxNativePixelData const *)arg1)->GetPixels();
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
7434 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7435 return resultobj;
7436 fail:
7437 return NULL;
7438 }
7439
7440
7441 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7442 PyObject *resultobj = 0;
7443 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 PyObject *swig_obj[1] ;
7447
7448 if (!args) SWIG_fail;
7449 swig_obj[0] = args;
7450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7451 if (!SWIG_IsOK(res1)) {
7452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7453 }
7454 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7455 {
7456 (arg1)->UseAlpha();
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 resultobj = SWIG_Py_Void();
7460 return resultobj;
7461 fail:
7462 return NULL;
7463 }
7464
7465
7466 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7467 PyObject *resultobj = 0;
7468 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7469 bool result;
7470 void *argp1 = 0 ;
7471 int res1 = 0 ;
7472 PyObject *swig_obj[1] ;
7473
7474 if (!args) SWIG_fail;
7475 swig_obj[0] = args;
7476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7477 if (!SWIG_IsOK(res1)) {
7478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7479 }
7480 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7481 {
7482 result = (bool)wxNativePixelData___nonzero__(arg1);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 {
7486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7487 }
7488 return resultobj;
7489 fail:
7490 return NULL;
7491 }
7492
7493
7494 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7495 PyObject *obj;
7496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7497 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7498 return SWIG_Py_Void();
7499 }
7500
7501 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7502 return SWIG_Python_InitShadowInstance(args);
7503 }
7504
7505 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7506 PyObject *resultobj = 0;
7507 wxNativePixelData *arg1 = 0 ;
7508 wxNativePixelData_Accessor *result = 0 ;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511
7512 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7514 if (!SWIG_IsOK(res1)) {
7515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7516 }
7517 if (!argp1) {
7518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7519 }
7520 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7521 {
7522 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7533 PyObject *resultobj = 0;
7534 wxBitmap *arg1 = 0 ;
7535 wxNativePixelData *arg2 = 0 ;
7536 wxNativePixelData_Accessor *result = 0 ;
7537 void *argp1 = 0 ;
7538 int res1 = 0 ;
7539 void *argp2 = 0 ;
7540 int res2 = 0 ;
7541
7542 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7544 if (!SWIG_IsOK(res1)) {
7545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7546 }
7547 if (!argp1) {
7548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7549 }
7550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7551 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7552 if (!SWIG_IsOK(res2)) {
7553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7554 }
7555 if (!argp2) {
7556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7557 }
7558 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7559 {
7560 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7564 return resultobj;
7565 fail:
7566 return NULL;
7567 }
7568
7569
7570 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7571 PyObject *resultobj = 0;
7572 wxNativePixelData_Accessor *result = 0 ;
7573
7574 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7575 {
7576 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7580 return resultobj;
7581 fail:
7582 return NULL;
7583 }
7584
7585
7586 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7587 int argc;
7588 PyObject *argv[3];
7589
7590 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7591 --argc;
7592 if (argc == 0) {
7593 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7594 }
7595 if (argc == 1) {
7596 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7597 }
7598 if (argc == 2) {
7599 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7600 }
7601
7602 fail:
7603 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7604 return NULL;
7605 }
7606
7607
7608 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7609 PyObject *resultobj = 0;
7610 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7611 void *argp1 = 0 ;
7612 int res1 = 0 ;
7613 PyObject *swig_obj[1] ;
7614
7615 if (!args) SWIG_fail;
7616 swig_obj[0] = args;
7617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7618 if (!SWIG_IsOK(res1)) {
7619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7620 }
7621 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7622 {
7623 delete arg1;
7624
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 resultobj = SWIG_Py_Void();
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj = 0;
7636 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7637 wxNativePixelData *arg2 = 0 ;
7638 void *argp1 = 0 ;
7639 int res1 = 0 ;
7640 void *argp2 = 0 ;
7641 int res2 = 0 ;
7642 PyObject * obj0 = 0 ;
7643 PyObject * obj1 = 0 ;
7644 char * kwnames[] = {
7645 (char *) "self",(char *) "data", NULL
7646 };
7647
7648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7650 if (!SWIG_IsOK(res1)) {
7651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7652 }
7653 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7655 if (!SWIG_IsOK(res2)) {
7656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7657 }
7658 if (!argp2) {
7659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7660 }
7661 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7662 {
7663 (arg1)->Reset((wxNativePixelData const &)*arg2);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_Py_Void();
7667 return resultobj;
7668 fail:
7669 return NULL;
7670 }
7671
7672
7673 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *resultobj = 0;
7675 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7676 bool result;
7677 void *argp1 = 0 ;
7678 int res1 = 0 ;
7679 PyObject *swig_obj[1] ;
7680
7681 if (!args) SWIG_fail;
7682 swig_obj[0] = args;
7683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7686 }
7687 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7688 {
7689 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 {
7693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7694 }
7695 return resultobj;
7696 fail:
7697 return NULL;
7698 }
7699
7700
7701 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7702 PyObject *resultobj = 0;
7703 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7704 void *argp1 = 0 ;
7705 int res1 = 0 ;
7706 PyObject *swig_obj[1] ;
7707
7708 if (!args) SWIG_fail;
7709 swig_obj[0] = args;
7710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7711 if (!SWIG_IsOK(res1)) {
7712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7713 }
7714 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7715 {
7716 wxNativePixelData_Accessor_nextPixel(arg1);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_Py_Void();
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7727 PyObject *resultobj = 0;
7728 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7729 wxNativePixelData *arg2 = 0 ;
7730 int arg3 ;
7731 int arg4 ;
7732 void *argp1 = 0 ;
7733 int res1 = 0 ;
7734 void *argp2 = 0 ;
7735 int res2 = 0 ;
7736 int val3 ;
7737 int ecode3 = 0 ;
7738 int val4 ;
7739 int ecode4 = 0 ;
7740 PyObject * obj0 = 0 ;
7741 PyObject * obj1 = 0 ;
7742 PyObject * obj2 = 0 ;
7743 PyObject * obj3 = 0 ;
7744 char * kwnames[] = {
7745 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7746 };
7747
7748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7750 if (!SWIG_IsOK(res1)) {
7751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7752 }
7753 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7755 if (!SWIG_IsOK(res2)) {
7756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7757 }
7758 if (!argp2) {
7759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7760 }
7761 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7762 ecode3 = SWIG_AsVal_int(obj2, &val3);
7763 if (!SWIG_IsOK(ecode3)) {
7764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7765 }
7766 arg3 = static_cast< int >(val3);
7767 ecode4 = SWIG_AsVal_int(obj3, &val4);
7768 if (!SWIG_IsOK(ecode4)) {
7769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7770 }
7771 arg4 = static_cast< int >(val4);
7772 {
7773 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 resultobj = SWIG_Py_Void();
7777 return resultobj;
7778 fail:
7779 return NULL;
7780 }
7781
7782
7783 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj = 0;
7785 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7786 wxNativePixelData *arg2 = 0 ;
7787 int arg3 ;
7788 void *argp1 = 0 ;
7789 int res1 = 0 ;
7790 void *argp2 = 0 ;
7791 int res2 = 0 ;
7792 int val3 ;
7793 int ecode3 = 0 ;
7794 PyObject * obj0 = 0 ;
7795 PyObject * obj1 = 0 ;
7796 PyObject * obj2 = 0 ;
7797 char * kwnames[] = {
7798 (char *) "self",(char *) "data",(char *) "x", NULL
7799 };
7800
7801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7803 if (!SWIG_IsOK(res1)) {
7804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7805 }
7806 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7808 if (!SWIG_IsOK(res2)) {
7809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7810 }
7811 if (!argp2) {
7812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7813 }
7814 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7815 ecode3 = SWIG_AsVal_int(obj2, &val3);
7816 if (!SWIG_IsOK(ecode3)) {
7817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7818 }
7819 arg3 = static_cast< int >(val3);
7820 {
7821 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 resultobj = SWIG_Py_Void();
7825 return resultobj;
7826 fail:
7827 return NULL;
7828 }
7829
7830
7831 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj = 0;
7833 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7834 wxNativePixelData *arg2 = 0 ;
7835 int arg3 ;
7836 void *argp1 = 0 ;
7837 int res1 = 0 ;
7838 void *argp2 = 0 ;
7839 int res2 = 0 ;
7840 int val3 ;
7841 int ecode3 = 0 ;
7842 PyObject * obj0 = 0 ;
7843 PyObject * obj1 = 0 ;
7844 PyObject * obj2 = 0 ;
7845 char * kwnames[] = {
7846 (char *) "self",(char *) "data",(char *) "y", NULL
7847 };
7848
7849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7851 if (!SWIG_IsOK(res1)) {
7852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7853 }
7854 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7856 if (!SWIG_IsOK(res2)) {
7857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7858 }
7859 if (!argp2) {
7860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7861 }
7862 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7863 ecode3 = SWIG_AsVal_int(obj2, &val3);
7864 if (!SWIG_IsOK(ecode3)) {
7865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7866 }
7867 arg3 = static_cast< int >(val3);
7868 {
7869 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 resultobj = SWIG_Py_Void();
7873 return resultobj;
7874 fail:
7875 return NULL;
7876 }
7877
7878
7879 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7880 PyObject *resultobj = 0;
7881 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7882 wxNativePixelData *arg2 = 0 ;
7883 int arg3 ;
7884 int arg4 ;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 void *argp2 = 0 ;
7888 int res2 = 0 ;
7889 int val3 ;
7890 int ecode3 = 0 ;
7891 int val4 ;
7892 int ecode4 = 0 ;
7893 PyObject * obj0 = 0 ;
7894 PyObject * obj1 = 0 ;
7895 PyObject * obj2 = 0 ;
7896 PyObject * obj3 = 0 ;
7897 char * kwnames[] = {
7898 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7899 };
7900
7901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7905 }
7906 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7908 if (!SWIG_IsOK(res2)) {
7909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7910 }
7911 if (!argp2) {
7912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7913 }
7914 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7915 ecode3 = SWIG_AsVal_int(obj2, &val3);
7916 if (!SWIG_IsOK(ecode3)) {
7917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7918 }
7919 arg3 = static_cast< int >(val3);
7920 ecode4 = SWIG_AsVal_int(obj3, &val4);
7921 if (!SWIG_IsOK(ecode4)) {
7922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7923 }
7924 arg4 = static_cast< int >(val4);
7925 {
7926 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 resultobj = SWIG_Py_Void();
7930 return resultobj;
7931 fail:
7932 return NULL;
7933 }
7934
7935
7936 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7937 PyObject *resultobj = 0;
7938 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7939 byte arg2 ;
7940 byte arg3 ;
7941 byte arg4 ;
7942 void *argp1 = 0 ;
7943 int res1 = 0 ;
7944 unsigned char val2 ;
7945 int ecode2 = 0 ;
7946 unsigned char val3 ;
7947 int ecode3 = 0 ;
7948 unsigned char val4 ;
7949 int ecode4 = 0 ;
7950 PyObject * obj0 = 0 ;
7951 PyObject * obj1 = 0 ;
7952 PyObject * obj2 = 0 ;
7953 PyObject * obj3 = 0 ;
7954 char * kwnames[] = {
7955 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7956 };
7957
7958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7960 if (!SWIG_IsOK(res1)) {
7961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7962 }
7963 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7964 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7965 if (!SWIG_IsOK(ecode2)) {
7966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7967 }
7968 arg2 = static_cast< byte >(val2);
7969 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7970 if (!SWIG_IsOK(ecode3)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7972 }
7973 arg3 = static_cast< byte >(val3);
7974 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7975 if (!SWIG_IsOK(ecode4)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7977 }
7978 arg4 = static_cast< byte >(val4);
7979 {
7980 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 resultobj = SWIG_Py_Void();
7984 return resultobj;
7985 fail:
7986 return NULL;
7987 }
7988
7989
7990 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7991 PyObject *resultobj = 0;
7992 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7993 PyObject *result = 0 ;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 PyObject *swig_obj[1] ;
7997
7998 if (!args) SWIG_fail;
7999 swig_obj[0] = args;
8000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8001 if (!SWIG_IsOK(res1)) {
8002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8003 }
8004 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8005 {
8006 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = result;
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8017 PyObject *obj;
8018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8019 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8020 return SWIG_Py_Void();
8021 }
8022
8023 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 return SWIG_Python_InitShadowInstance(args);
8025 }
8026
8027 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8028 PyObject *resultobj = 0;
8029 wxBitmap *arg1 = 0 ;
8030 wxAlphaPixelData *result = 0 ;
8031 void *argp1 = 0 ;
8032 int res1 = 0 ;
8033
8034 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8036 if (!SWIG_IsOK(res1)) {
8037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8038 }
8039 if (!argp1) {
8040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8041 }
8042 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8043 {
8044 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8048 return resultobj;
8049 fail:
8050 return NULL;
8051 }
8052
8053
8054 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8055 PyObject *resultobj = 0;
8056 wxBitmap *arg1 = 0 ;
8057 wxRect *arg2 = 0 ;
8058 wxAlphaPixelData *result = 0 ;
8059 void *argp1 = 0 ;
8060 int res1 = 0 ;
8061 wxRect temp2 ;
8062
8063 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8065 if (!SWIG_IsOK(res1)) {
8066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8067 }
8068 if (!argp1) {
8069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8070 }
8071 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8072 {
8073 arg2 = &temp2;
8074 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8075 }
8076 {
8077 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8081 return resultobj;
8082 fail:
8083 return NULL;
8084 }
8085
8086
8087 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8088 PyObject *resultobj = 0;
8089 wxBitmap *arg1 = 0 ;
8090 wxPoint *arg2 = 0 ;
8091 wxSize *arg3 = 0 ;
8092 wxAlphaPixelData *result = 0 ;
8093 void *argp1 = 0 ;
8094 int res1 = 0 ;
8095 wxPoint temp2 ;
8096 wxSize temp3 ;
8097
8098 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8100 if (!SWIG_IsOK(res1)) {
8101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8102 }
8103 if (!argp1) {
8104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8105 }
8106 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8107 {
8108 arg2 = &temp2;
8109 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8110 }
8111 {
8112 arg3 = &temp3;
8113 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8114 }
8115 {
8116 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8120 return resultobj;
8121 fail:
8122 return NULL;
8123 }
8124
8125
8126 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8127 int argc;
8128 PyObject *argv[4];
8129
8130 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8131 --argc;
8132 if (argc == 1) {
8133 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8134 }
8135 if (argc == 2) {
8136 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8137 }
8138 if (argc == 3) {
8139 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8140 }
8141
8142 fail:
8143 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8144 return NULL;
8145 }
8146
8147
8148 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8149 PyObject *resultobj = 0;
8150 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8151 void *argp1 = 0 ;
8152 int res1 = 0 ;
8153 PyObject *swig_obj[1] ;
8154
8155 if (!args) SWIG_fail;
8156 swig_obj[0] = args;
8157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8158 if (!SWIG_IsOK(res1)) {
8159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8160 }
8161 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8162 {
8163 delete arg1;
8164
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 resultobj = SWIG_Py_Void();
8168 return resultobj;
8169 fail:
8170 return NULL;
8171 }
8172
8173
8174 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8175 PyObject *resultobj = 0;
8176 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8177 wxAlphaPixelData_Accessor result;
8178 void *argp1 = 0 ;
8179 int res1 = 0 ;
8180 PyObject *swig_obj[1] ;
8181
8182 if (!args) SWIG_fail;
8183 swig_obj[0] = args;
8184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8185 if (!SWIG_IsOK(res1)) {
8186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8187 }
8188 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8189 {
8190 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 PyObject *swig_obj[1] ;
8206
8207 if (!args) SWIG_fail;
8208 swig_obj[0] = args;
8209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8210 if (!SWIG_IsOK(res1)) {
8211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8212 }
8213 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8214 {
8215 (arg1)->UseAlpha();
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = SWIG_Py_Void();
8219 return resultobj;
8220 fail:
8221 return NULL;
8222 }
8223
8224
8225 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8226 PyObject *resultobj = 0;
8227 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8228 bool result;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 PyObject *swig_obj[1] ;
8232
8233 if (!args) SWIG_fail;
8234 swig_obj[0] = args;
8235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8236 if (!SWIG_IsOK(res1)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8238 }
8239 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8240 {
8241 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 {
8245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8246 }
8247 return resultobj;
8248 fail:
8249 return NULL;
8250 }
8251
8252
8253 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8254 PyObject *obj;
8255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8256 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8257 return SWIG_Py_Void();
8258 }
8259
8260 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8261 return SWIG_Python_InitShadowInstance(args);
8262 }
8263
8264 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8265 PyObject *resultobj = 0;
8266 wxAlphaPixelData *arg1 = 0 ;
8267 wxAlphaPixelData_Accessor *result = 0 ;
8268 void *argp1 = 0 ;
8269 int res1 = 0 ;
8270
8271 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8273 if (!SWIG_IsOK(res1)) {
8274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8275 }
8276 if (!argp1) {
8277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8278 }
8279 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8280 {
8281 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8292 PyObject *resultobj = 0;
8293 wxBitmap *arg1 = 0 ;
8294 wxAlphaPixelData *arg2 = 0 ;
8295 wxAlphaPixelData_Accessor *result = 0 ;
8296 void *argp1 = 0 ;
8297 int res1 = 0 ;
8298 void *argp2 = 0 ;
8299 int res2 = 0 ;
8300
8301 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8303 if (!SWIG_IsOK(res1)) {
8304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8305 }
8306 if (!argp1) {
8307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8308 }
8309 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8310 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8311 if (!SWIG_IsOK(res2)) {
8312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8313 }
8314 if (!argp2) {
8315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8316 }
8317 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8318 {
8319 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8323 return resultobj;
8324 fail:
8325 return NULL;
8326 }
8327
8328
8329 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8330 PyObject *resultobj = 0;
8331 wxAlphaPixelData_Accessor *result = 0 ;
8332
8333 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8334 {
8335 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8339 return resultobj;
8340 fail:
8341 return NULL;
8342 }
8343
8344
8345 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8346 int argc;
8347 PyObject *argv[3];
8348
8349 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8350 --argc;
8351 if (argc == 0) {
8352 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8353 }
8354 if (argc == 1) {
8355 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8356 }
8357 if (argc == 2) {
8358 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8359 }
8360
8361 fail:
8362 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8363 return NULL;
8364 }
8365
8366
8367 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8368 PyObject *resultobj = 0;
8369 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8370 void *argp1 = 0 ;
8371 int res1 = 0 ;
8372 PyObject *swig_obj[1] ;
8373
8374 if (!args) SWIG_fail;
8375 swig_obj[0] = args;
8376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8377 if (!SWIG_IsOK(res1)) {
8378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8379 }
8380 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8381 {
8382 delete arg1;
8383
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = SWIG_Py_Void();
8387 return resultobj;
8388 fail:
8389 return NULL;
8390 }
8391
8392
8393 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj = 0;
8395 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8396 wxAlphaPixelData *arg2 = 0 ;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 void *argp2 = 0 ;
8400 int res2 = 0 ;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 char * kwnames[] = {
8404 (char *) "self",(char *) "data", NULL
8405 };
8406
8407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8409 if (!SWIG_IsOK(res1)) {
8410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8411 }
8412 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8414 if (!SWIG_IsOK(res2)) {
8415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8416 }
8417 if (!argp2) {
8418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8419 }
8420 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8421 {
8422 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_Py_Void();
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8433 PyObject *resultobj = 0;
8434 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8435 bool result;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 PyObject *swig_obj[1] ;
8439
8440 if (!args) SWIG_fail;
8441 swig_obj[0] = args;
8442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8443 if (!SWIG_IsOK(res1)) {
8444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8445 }
8446 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8447 {
8448 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 {
8452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8453 }
8454 return resultobj;
8455 fail:
8456 return NULL;
8457 }
8458
8459
8460 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8461 PyObject *resultobj = 0;
8462 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8463 void *argp1 = 0 ;
8464 int res1 = 0 ;
8465 PyObject *swig_obj[1] ;
8466
8467 if (!args) SWIG_fail;
8468 swig_obj[0] = args;
8469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8470 if (!SWIG_IsOK(res1)) {
8471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8472 }
8473 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8474 {
8475 wxAlphaPixelData_Accessor_nextPixel(arg1);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 resultobj = SWIG_Py_Void();
8479 return resultobj;
8480 fail:
8481 return NULL;
8482 }
8483
8484
8485 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8486 PyObject *resultobj = 0;
8487 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8488 wxAlphaPixelData *arg2 = 0 ;
8489 int arg3 ;
8490 int arg4 ;
8491 void *argp1 = 0 ;
8492 int res1 = 0 ;
8493 void *argp2 = 0 ;
8494 int res2 = 0 ;
8495 int val3 ;
8496 int ecode3 = 0 ;
8497 int val4 ;
8498 int ecode4 = 0 ;
8499 PyObject * obj0 = 0 ;
8500 PyObject * obj1 = 0 ;
8501 PyObject * obj2 = 0 ;
8502 PyObject * obj3 = 0 ;
8503 char * kwnames[] = {
8504 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8505 };
8506
8507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8509 if (!SWIG_IsOK(res1)) {
8510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8511 }
8512 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8514 if (!SWIG_IsOK(res2)) {
8515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8516 }
8517 if (!argp2) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8519 }
8520 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8521 ecode3 = SWIG_AsVal_int(obj2, &val3);
8522 if (!SWIG_IsOK(ecode3)) {
8523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8524 }
8525 arg3 = static_cast< int >(val3);
8526 ecode4 = SWIG_AsVal_int(obj3, &val4);
8527 if (!SWIG_IsOK(ecode4)) {
8528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8529 }
8530 arg4 = static_cast< int >(val4);
8531 {
8532 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 resultobj = SWIG_Py_Void();
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj = 0;
8544 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8545 wxAlphaPixelData *arg2 = 0 ;
8546 int arg3 ;
8547 void *argp1 = 0 ;
8548 int res1 = 0 ;
8549 void *argp2 = 0 ;
8550 int res2 = 0 ;
8551 int val3 ;
8552 int ecode3 = 0 ;
8553 PyObject * obj0 = 0 ;
8554 PyObject * obj1 = 0 ;
8555 PyObject * obj2 = 0 ;
8556 char * kwnames[] = {
8557 (char *) "self",(char *) "data",(char *) "x", NULL
8558 };
8559
8560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8562 if (!SWIG_IsOK(res1)) {
8563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8564 }
8565 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8566 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8567 if (!SWIG_IsOK(res2)) {
8568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8569 }
8570 if (!argp2) {
8571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8572 }
8573 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8574 ecode3 = SWIG_AsVal_int(obj2, &val3);
8575 if (!SWIG_IsOK(ecode3)) {
8576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8577 }
8578 arg3 = static_cast< int >(val3);
8579 {
8580 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
8583 resultobj = SWIG_Py_Void();
8584 return resultobj;
8585 fail:
8586 return NULL;
8587 }
8588
8589
8590 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj = 0;
8592 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8593 wxAlphaPixelData *arg2 = 0 ;
8594 int arg3 ;
8595 void *argp1 = 0 ;
8596 int res1 = 0 ;
8597 void *argp2 = 0 ;
8598 int res2 = 0 ;
8599 int val3 ;
8600 int ecode3 = 0 ;
8601 PyObject * obj0 = 0 ;
8602 PyObject * obj1 = 0 ;
8603 PyObject * obj2 = 0 ;
8604 char * kwnames[] = {
8605 (char *) "self",(char *) "data",(char *) "y", NULL
8606 };
8607
8608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8610 if (!SWIG_IsOK(res1)) {
8611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8612 }
8613 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8615 if (!SWIG_IsOK(res2)) {
8616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8617 }
8618 if (!argp2) {
8619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8620 }
8621 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8622 ecode3 = SWIG_AsVal_int(obj2, &val3);
8623 if (!SWIG_IsOK(ecode3)) {
8624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8625 }
8626 arg3 = static_cast< int >(val3);
8627 {
8628 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8629 if (PyErr_Occurred()) SWIG_fail;
8630 }
8631 resultobj = SWIG_Py_Void();
8632 return resultobj;
8633 fail:
8634 return NULL;
8635 }
8636
8637
8638 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8639 PyObject *resultobj = 0;
8640 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8641 wxAlphaPixelData *arg2 = 0 ;
8642 int arg3 ;
8643 int arg4 ;
8644 void *argp1 = 0 ;
8645 int res1 = 0 ;
8646 void *argp2 = 0 ;
8647 int res2 = 0 ;
8648 int val3 ;
8649 int ecode3 = 0 ;
8650 int val4 ;
8651 int ecode4 = 0 ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 PyObject * obj2 = 0 ;
8655 PyObject * obj3 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8664 }
8665 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8674 ecode3 = SWIG_AsVal_int(obj2, &val3);
8675 if (!SWIG_IsOK(ecode3)) {
8676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8677 }
8678 arg3 = static_cast< int >(val3);
8679 ecode4 = SWIG_AsVal_int(obj3, &val4);
8680 if (!SWIG_IsOK(ecode4)) {
8681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8682 }
8683 arg4 = static_cast< int >(val4);
8684 {
8685 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 resultobj = SWIG_Py_Void();
8689 return resultobj;
8690 fail:
8691 return NULL;
8692 }
8693
8694
8695 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj = 0;
8697 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8698 byte arg2 ;
8699 byte arg3 ;
8700 byte arg4 ;
8701 byte arg5 ;
8702 void *argp1 = 0 ;
8703 int res1 = 0 ;
8704 unsigned char val2 ;
8705 int ecode2 = 0 ;
8706 unsigned char val3 ;
8707 int ecode3 = 0 ;
8708 unsigned char val4 ;
8709 int ecode4 = 0 ;
8710 unsigned char val5 ;
8711 int ecode5 = 0 ;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 PyObject * obj2 = 0 ;
8715 PyObject * obj3 = 0 ;
8716 PyObject * obj4 = 0 ;
8717 char * kwnames[] = {
8718 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8719 };
8720
8721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8723 if (!SWIG_IsOK(res1)) {
8724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8725 }
8726 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8727 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8728 if (!SWIG_IsOK(ecode2)) {
8729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8730 }
8731 arg2 = static_cast< byte >(val2);
8732 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8733 if (!SWIG_IsOK(ecode3)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8735 }
8736 arg3 = static_cast< byte >(val3);
8737 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8738 if (!SWIG_IsOK(ecode4)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8740 }
8741 arg4 = static_cast< byte >(val4);
8742 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8743 if (!SWIG_IsOK(ecode5)) {
8744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8745 }
8746 arg5 = static_cast< byte >(val5);
8747 {
8748 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_Py_Void();
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8759 PyObject *resultobj = 0;
8760 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8761 PyObject *result = 0 ;
8762 void *argp1 = 0 ;
8763 int res1 = 0 ;
8764 PyObject *swig_obj[1] ;
8765
8766 if (!args) SWIG_fail;
8767 swig_obj[0] = args;
8768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8771 }
8772 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8773 {
8774 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 resultobj = result;
8778 return resultobj;
8779 fail:
8780 return NULL;
8781 }
8782
8783
8784 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 PyObject *obj;
8786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8787 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8788 return SWIG_Py_Void();
8789 }
8790
8791 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8792 return SWIG_Python_InitShadowInstance(args);
8793 }
8794
8795 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj = 0;
8797 wxBitmap *arg1 = 0 ;
8798 wxColour const &arg2_defvalue = wxNullColour ;
8799 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8800 wxMask *result = 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 wxColour temp2 ;
8804 PyObject * obj0 = 0 ;
8805 PyObject * obj1 = 0 ;
8806 char * kwnames[] = {
8807 (char *) "bitmap",(char *) "colour", NULL
8808 };
8809
8810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8811 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8814 }
8815 if (!argp1) {
8816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8817 }
8818 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8819 if (obj1) {
8820 {
8821 arg2 = &temp2;
8822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8823 }
8824 }
8825 {
8826 if (!wxPyCheckForApp()) SWIG_fail;
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8840 PyObject *resultobj = 0;
8841 wxMask *arg1 = (wxMask *) 0 ;
8842 void *argp1 = 0 ;
8843 int res1 = 0 ;
8844 PyObject *swig_obj[1] ;
8845
8846 if (!args) SWIG_fail;
8847 swig_obj[0] = args;
8848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8849 if (!SWIG_IsOK(res1)) {
8850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8851 }
8852 arg1 = reinterpret_cast< wxMask * >(argp1);
8853 {
8854 delete arg1;
8855
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = SWIG_Py_Void();
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8866 PyObject *obj;
8867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8868 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8869 return SWIG_Py_Void();
8870 }
8871
8872 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8873 return SWIG_Python_InitShadowInstance(args);
8874 }
8875
8876 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj = 0;
8878 wxString *arg1 = 0 ;
8879 wxBitmapType arg2 ;
8880 int arg3 = (int) -1 ;
8881 int arg4 = (int) -1 ;
8882 wxIcon *result = 0 ;
8883 bool temp1 = false ;
8884 int val2 ;
8885 int ecode2 = 0 ;
8886 int val3 ;
8887 int ecode3 = 0 ;
8888 int val4 ;
8889 int ecode4 = 0 ;
8890 PyObject * obj0 = 0 ;
8891 PyObject * obj1 = 0 ;
8892 PyObject * obj2 = 0 ;
8893 PyObject * obj3 = 0 ;
8894 char * kwnames[] = {
8895 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8896 };
8897
8898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8899 {
8900 arg1 = wxString_in_helper(obj0);
8901 if (arg1 == NULL) SWIG_fail;
8902 temp1 = true;
8903 }
8904 ecode2 = SWIG_AsVal_int(obj1, &val2);
8905 if (!SWIG_IsOK(ecode2)) {
8906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8907 }
8908 arg2 = static_cast< wxBitmapType >(val2);
8909 if (obj2) {
8910 ecode3 = SWIG_AsVal_int(obj2, &val3);
8911 if (!SWIG_IsOK(ecode3)) {
8912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8913 }
8914 arg3 = static_cast< int >(val3);
8915 }
8916 if (obj3) {
8917 ecode4 = SWIG_AsVal_int(obj3, &val4);
8918 if (!SWIG_IsOK(ecode4)) {
8919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8920 }
8921 arg4 = static_cast< int >(val4);
8922 }
8923 {
8924 if (!wxPyCheckForApp()) SWIG_fail;
8925 PyThreadState* __tstate = wxPyBeginAllowThreads();
8926 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8931 {
8932 if (temp1)
8933 delete arg1;
8934 }
8935 return resultobj;
8936 fail:
8937 {
8938 if (temp1)
8939 delete arg1;
8940 }
8941 return NULL;
8942 }
8943
8944
8945 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8946 PyObject *resultobj = 0;
8947 wxIcon *arg1 = (wxIcon *) 0 ;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 PyObject *swig_obj[1] ;
8951
8952 if (!args) SWIG_fail;
8953 swig_obj[0] = args;
8954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8955 if (!SWIG_IsOK(res1)) {
8956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8957 }
8958 arg1 = reinterpret_cast< wxIcon * >(argp1);
8959 {
8960 PyThreadState* __tstate = wxPyBeginAllowThreads();
8961 delete arg1;
8962
8963 wxPyEndAllowThreads(__tstate);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 }
8966 resultobj = SWIG_Py_Void();
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8974 PyObject *resultobj = 0;
8975 wxIcon *result = 0 ;
8976
8977 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8978 {
8979 if (!wxPyCheckForApp()) SWIG_fail;
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 result = (wxIcon *)new wxIcon();
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8986 return resultobj;
8987 fail:
8988 return NULL;
8989 }
8990
8991
8992 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8993 PyObject *resultobj = 0;
8994 wxIconLocation *arg1 = 0 ;
8995 wxIcon *result = 0 ;
8996 void *argp1 = 0 ;
8997 int res1 = 0 ;
8998 PyObject * obj0 = 0 ;
8999 char * kwnames[] = {
9000 (char *) "loc", NULL
9001 };
9002
9003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9004 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9005 if (!SWIG_IsOK(res1)) {
9006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9007 }
9008 if (!argp1) {
9009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9010 }
9011 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9012 {
9013 if (!wxPyCheckForApp()) SWIG_fail;
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj = 0;
9028 wxBitmap *arg1 = 0 ;
9029 wxIcon *result = 0 ;
9030 void *argp1 = 0 ;
9031 int res1 = 0 ;
9032 PyObject * obj0 = 0 ;
9033 char * kwnames[] = {
9034 (char *) "bmp", NULL
9035 };
9036
9037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9038 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9039 if (!SWIG_IsOK(res1)) {
9040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9041 }
9042 if (!argp1) {
9043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9044 }
9045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9046 {
9047 if (!wxPyCheckForApp()) SWIG_fail;
9048 PyThreadState* __tstate = wxPyBeginAllowThreads();
9049 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9050 wxPyEndAllowThreads(__tstate);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 }
9053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9054 return resultobj;
9055 fail:
9056 return NULL;
9057 }
9058
9059
9060 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9061 PyObject *resultobj = 0;
9062 PyObject *arg1 = (PyObject *) 0 ;
9063 wxIcon *result = 0 ;
9064 PyObject * obj0 = 0 ;
9065 char * kwnames[] = {
9066 (char *) "listOfStrings", NULL
9067 };
9068
9069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9070 arg1 = obj0;
9071 {
9072 if (!wxPyCheckForApp()) SWIG_fail;
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = (wxIcon *)new_wxIcon(arg1);
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9079 return resultobj;
9080 fail:
9081 return NULL;
9082 }
9083
9084
9085 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj = 0;
9087 wxIcon *arg1 = (wxIcon *) 0 ;
9088 wxString *arg2 = 0 ;
9089 wxBitmapType arg3 ;
9090 bool result;
9091 void *argp1 = 0 ;
9092 int res1 = 0 ;
9093 bool temp2 = false ;
9094 int val3 ;
9095 int ecode3 = 0 ;
9096 PyObject * obj0 = 0 ;
9097 PyObject * obj1 = 0 ;
9098 PyObject * obj2 = 0 ;
9099 char * kwnames[] = {
9100 (char *) "self",(char *) "name",(char *) "type", NULL
9101 };
9102
9103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9105 if (!SWIG_IsOK(res1)) {
9106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9107 }
9108 arg1 = reinterpret_cast< wxIcon * >(argp1);
9109 {
9110 arg2 = wxString_in_helper(obj1);
9111 if (arg2 == NULL) SWIG_fail;
9112 temp2 = true;
9113 }
9114 ecode3 = SWIG_AsVal_int(obj2, &val3);
9115 if (!SWIG_IsOK(ecode3)) {
9116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9117 }
9118 arg3 = static_cast< wxBitmapType >(val3);
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 {
9126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9127 }
9128 {
9129 if (temp2)
9130 delete arg2;
9131 }
9132 return resultobj;
9133 fail:
9134 {
9135 if (temp2)
9136 delete arg2;
9137 }
9138 return NULL;
9139 }
9140
9141
9142 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9143 PyObject *resultobj = 0;
9144 wxIcon *arg1 = (wxIcon *) 0 ;
9145 long result;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 PyObject *swig_obj[1] ;
9149
9150 if (!args) SWIG_fail;
9151 swig_obj[0] = args;
9152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9153 if (!SWIG_IsOK(res1)) {
9154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9155 }
9156 arg1 = reinterpret_cast< wxIcon * >(argp1);
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 result = (long)(arg1)->GetHandle();
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 resultobj = SWIG_From_long(static_cast< long >(result));
9164 return resultobj;
9165 fail:
9166 return NULL;
9167 }
9168
9169
9170 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj = 0;
9172 wxIcon *arg1 = (wxIcon *) 0 ;
9173 long arg2 ;
9174 void *argp1 = 0 ;
9175 int res1 = 0 ;
9176 long val2 ;
9177 int ecode2 = 0 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 char * kwnames[] = {
9181 (char *) "self",(char *) "handle", NULL
9182 };
9183
9184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9186 if (!SWIG_IsOK(res1)) {
9187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9188 }
9189 arg1 = reinterpret_cast< wxIcon * >(argp1);
9190 ecode2 = SWIG_AsVal_long(obj1, &val2);
9191 if (!SWIG_IsOK(ecode2)) {
9192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9193 }
9194 arg2 = static_cast< long >(val2);
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 wxIcon_SetHandle(arg1,arg2);
9198 wxPyEndAllowThreads(__tstate);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 resultobj = SWIG_Py_Void();
9202 return resultobj;
9203 fail:
9204 return NULL;
9205 }
9206
9207
9208 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9209 PyObject *resultobj = 0;
9210 wxIcon *arg1 = (wxIcon *) 0 ;
9211 bool result;
9212 void *argp1 = 0 ;
9213 int res1 = 0 ;
9214 PyObject *swig_obj[1] ;
9215
9216 if (!args) SWIG_fail;
9217 swig_obj[0] = args;
9218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9219 if (!SWIG_IsOK(res1)) {
9220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9221 }
9222 arg1 = reinterpret_cast< wxIcon * >(argp1);
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 result = (bool)(arg1)->IsOk();
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 {
9230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9231 }
9232 return resultobj;
9233 fail:
9234 return NULL;
9235 }
9236
9237
9238 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9239 PyObject *resultobj = 0;
9240 wxIcon *arg1 = (wxIcon *) 0 ;
9241 int result;
9242 void *argp1 = 0 ;
9243 int res1 = 0 ;
9244 PyObject *swig_obj[1] ;
9245
9246 if (!args) SWIG_fail;
9247 swig_obj[0] = args;
9248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9251 }
9252 arg1 = reinterpret_cast< wxIcon * >(argp1);
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
9255 result = (int)(arg1)->GetWidth();
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 resultobj = SWIG_From_int(static_cast< int >(result));
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9267 PyObject *resultobj = 0;
9268 wxIcon *arg1 = (wxIcon *) 0 ;
9269 int result;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 PyObject *swig_obj[1] ;
9273
9274 if (!args) SWIG_fail;
9275 swig_obj[0] = args;
9276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9279 }
9280 arg1 = reinterpret_cast< wxIcon * >(argp1);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 result = (int)(arg1)->GetHeight();
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 resultobj = SWIG_From_int(static_cast< int >(result));
9288 return resultobj;
9289 fail:
9290 return NULL;
9291 }
9292
9293
9294 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9295 PyObject *resultobj = 0;
9296 wxIcon *arg1 = (wxIcon *) 0 ;
9297 int result;
9298 void *argp1 = 0 ;
9299 int res1 = 0 ;
9300 PyObject *swig_obj[1] ;
9301
9302 if (!args) SWIG_fail;
9303 swig_obj[0] = args;
9304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9305 if (!SWIG_IsOK(res1)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9307 }
9308 arg1 = reinterpret_cast< wxIcon * >(argp1);
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (int)(arg1)->GetDepth();
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 resultobj = SWIG_From_int(static_cast< int >(result));
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj = 0;
9324 wxIcon *arg1 = (wxIcon *) 0 ;
9325 int arg2 ;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 int val2 ;
9329 int ecode2 = 0 ;
9330 PyObject * obj0 = 0 ;
9331 PyObject * obj1 = 0 ;
9332 char * kwnames[] = {
9333 (char *) "self",(char *) "w", NULL
9334 };
9335
9336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9338 if (!SWIG_IsOK(res1)) {
9339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9340 }
9341 arg1 = reinterpret_cast< wxIcon * >(argp1);
9342 ecode2 = SWIG_AsVal_int(obj1, &val2);
9343 if (!SWIG_IsOK(ecode2)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9345 }
9346 arg2 = static_cast< int >(val2);
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 (arg1)->SetWidth(arg2);
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 resultobj = SWIG_Py_Void();
9354 return resultobj;
9355 fail:
9356 return NULL;
9357 }
9358
9359
9360 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj = 0;
9362 wxIcon *arg1 = (wxIcon *) 0 ;
9363 int arg2 ;
9364 void *argp1 = 0 ;
9365 int res1 = 0 ;
9366 int val2 ;
9367 int ecode2 = 0 ;
9368 PyObject * obj0 = 0 ;
9369 PyObject * obj1 = 0 ;
9370 char * kwnames[] = {
9371 (char *) "self",(char *) "h", NULL
9372 };
9373
9374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9376 if (!SWIG_IsOK(res1)) {
9377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9378 }
9379 arg1 = reinterpret_cast< wxIcon * >(argp1);
9380 ecode2 = SWIG_AsVal_int(obj1, &val2);
9381 if (!SWIG_IsOK(ecode2)) {
9382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9383 }
9384 arg2 = static_cast< int >(val2);
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 (arg1)->SetHeight(arg2);
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = SWIG_Py_Void();
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj = 0;
9400 wxIcon *arg1 = (wxIcon *) 0 ;
9401 int arg2 ;
9402 void *argp1 = 0 ;
9403 int res1 = 0 ;
9404 int val2 ;
9405 int ecode2 = 0 ;
9406 PyObject * obj0 = 0 ;
9407 PyObject * obj1 = 0 ;
9408 char * kwnames[] = {
9409 (char *) "self",(char *) "d", NULL
9410 };
9411
9412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9414 if (!SWIG_IsOK(res1)) {
9415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9416 }
9417 arg1 = reinterpret_cast< wxIcon * >(argp1);
9418 ecode2 = SWIG_AsVal_int(obj1, &val2);
9419 if (!SWIG_IsOK(ecode2)) {
9420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9421 }
9422 arg2 = static_cast< int >(val2);
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 (arg1)->SetDepth(arg2);
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 resultobj = SWIG_Py_Void();
9430 return resultobj;
9431 fail:
9432 return NULL;
9433 }
9434
9435
9436 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj = 0;
9438 wxIcon *arg1 = (wxIcon *) 0 ;
9439 wxSize *arg2 = 0 ;
9440 void *argp1 = 0 ;
9441 int res1 = 0 ;
9442 wxSize temp2 ;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 char * kwnames[] = {
9446 (char *) "self",(char *) "size", NULL
9447 };
9448
9449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9451 if (!SWIG_IsOK(res1)) {
9452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9453 }
9454 arg1 = reinterpret_cast< wxIcon * >(argp1);
9455 {
9456 arg2 = &temp2;
9457 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9458 }
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 (arg1)->SetSize((wxSize const &)*arg2);
9462 wxPyEndAllowThreads(__tstate);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 resultobj = SWIG_Py_Void();
9466 return resultobj;
9467 fail:
9468 return NULL;
9469 }
9470
9471
9472 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9473 PyObject *resultobj = 0;
9474 wxIcon *arg1 = (wxIcon *) 0 ;
9475 wxBitmap *arg2 = 0 ;
9476 void *argp1 = 0 ;
9477 int res1 = 0 ;
9478 void *argp2 = 0 ;
9479 int res2 = 0 ;
9480 PyObject * obj0 = 0 ;
9481 PyObject * obj1 = 0 ;
9482 char * kwnames[] = {
9483 (char *) "self",(char *) "bmp", NULL
9484 };
9485
9486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9488 if (!SWIG_IsOK(res1)) {
9489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9490 }
9491 arg1 = reinterpret_cast< wxIcon * >(argp1);
9492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9493 if (!SWIG_IsOK(res2)) {
9494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9495 }
9496 if (!argp2) {
9497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9498 }
9499 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = SWIG_Py_Void();
9507 return resultobj;
9508 fail:
9509 return NULL;
9510 }
9511
9512
9513 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9514 PyObject *obj;
9515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9516 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9517 return SWIG_Py_Void();
9518 }
9519
9520 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9521 return SWIG_Python_InitShadowInstance(args);
9522 }
9523
9524 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9527 int arg2 = (int) 0 ;
9528 wxIconLocation *result = 0 ;
9529 bool temp1 = false ;
9530 int val2 ;
9531 int ecode2 = 0 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 char * kwnames[] = {
9535 (char *) "filename",(char *) "num", NULL
9536 };
9537
9538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9539 if (obj0) {
9540 {
9541 arg1 = wxString_in_helper(obj0);
9542 if (arg1 == NULL) SWIG_fail;
9543 temp1 = true;
9544 }
9545 }
9546 if (obj1) {
9547 ecode2 = SWIG_AsVal_int(obj1, &val2);
9548 if (!SWIG_IsOK(ecode2)) {
9549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9550 }
9551 arg2 = static_cast< int >(val2);
9552 }
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9560 {
9561 if (temp1)
9562 delete arg1;
9563 }
9564 return resultobj;
9565 fail:
9566 {
9567 if (temp1)
9568 delete arg1;
9569 }
9570 return NULL;
9571 }
9572
9573
9574 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9575 PyObject *resultobj = 0;
9576 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9577 void *argp1 = 0 ;
9578 int res1 = 0 ;
9579 PyObject *swig_obj[1] ;
9580
9581 if (!args) SWIG_fail;
9582 swig_obj[0] = args;
9583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9584 if (!SWIG_IsOK(res1)) {
9585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9586 }
9587 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 delete arg1;
9591
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9603 PyObject *resultobj = 0;
9604 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9605 bool result;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 PyObject *swig_obj[1] ;
9609
9610 if (!args) SWIG_fail;
9611 swig_obj[0] = args;
9612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9615 }
9616 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9620 wxPyEndAllowThreads(__tstate);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 {
9624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9625 }
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9633 PyObject *resultobj = 0;
9634 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9635 wxString *arg2 = 0 ;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 bool temp2 = false ;
9639 PyObject * obj0 = 0 ;
9640 PyObject * obj1 = 0 ;
9641 char * kwnames[] = {
9642 (char *) "self",(char *) "filename", NULL
9643 };
9644
9645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9649 }
9650 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9651 {
9652 arg2 = wxString_in_helper(obj1);
9653 if (arg2 == NULL) SWIG_fail;
9654 temp2 = true;
9655 }
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 (arg1)->SetFileName((wxString const &)*arg2);
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 resultobj = SWIG_Py_Void();
9663 {
9664 if (temp2)
9665 delete arg2;
9666 }
9667 return resultobj;
9668 fail:
9669 {
9670 if (temp2)
9671 delete arg2;
9672 }
9673 return NULL;
9674 }
9675
9676
9677 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9678 PyObject *resultobj = 0;
9679 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9680 wxString *result = 0 ;
9681 void *argp1 = 0 ;
9682 int res1 = 0 ;
9683 PyObject *swig_obj[1] ;
9684
9685 if (!args) SWIG_fail;
9686 swig_obj[0] = args;
9687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9688 if (!SWIG_IsOK(res1)) {
9689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9690 }
9691 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 {
9695 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9696 result = (wxString *) &_result_ref;
9697 }
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 {
9702 #if wxUSE_UNICODE
9703 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9704 #else
9705 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9706 #endif
9707 }
9708 return resultobj;
9709 fail:
9710 return NULL;
9711 }
9712
9713
9714 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9715 PyObject *resultobj = 0;
9716 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9717 int arg2 ;
9718 void *argp1 = 0 ;
9719 int res1 = 0 ;
9720 int val2 ;
9721 int ecode2 = 0 ;
9722 PyObject * obj0 = 0 ;
9723 PyObject * obj1 = 0 ;
9724 char * kwnames[] = {
9725 (char *) "self",(char *) "num", NULL
9726 };
9727
9728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9732 }
9733 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9734 ecode2 = SWIG_AsVal_int(obj1, &val2);
9735 if (!SWIG_IsOK(ecode2)) {
9736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9737 }
9738 arg2 = static_cast< int >(val2);
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 wxIconLocation_SetIndex(arg1,arg2);
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 resultobj = SWIG_Py_Void();
9746 return resultobj;
9747 fail:
9748 return NULL;
9749 }
9750
9751
9752 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9753 PyObject *resultobj = 0;
9754 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9755 int result;
9756 void *argp1 = 0 ;
9757 int res1 = 0 ;
9758 PyObject *swig_obj[1] ;
9759
9760 if (!args) SWIG_fail;
9761 swig_obj[0] = args;
9762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9765 }
9766 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 result = (int)wxIconLocation_GetIndex(arg1);
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
9773 resultobj = SWIG_From_int(static_cast< int >(result));
9774 return resultobj;
9775 fail:
9776 return NULL;
9777 }
9778
9779
9780 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9781 PyObject *obj;
9782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9783 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9784 return SWIG_Py_Void();
9785 }
9786
9787 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9788 return SWIG_Python_InitShadowInstance(args);
9789 }
9790
9791 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9792 PyObject *resultobj = 0;
9793 wxIconBundle *result = 0 ;
9794
9795 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9796 {
9797 PyThreadState* __tstate = wxPyBeginAllowThreads();
9798 result = (wxIconBundle *)new wxIconBundle();
9799 wxPyEndAllowThreads(__tstate);
9800 if (PyErr_Occurred()) SWIG_fail;
9801 }
9802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9803 return resultobj;
9804 fail:
9805 return NULL;
9806 }
9807
9808
9809 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9810 PyObject *resultobj = 0;
9811 wxString *arg1 = 0 ;
9812 long arg2 ;
9813 wxIconBundle *result = 0 ;
9814 bool temp1 = false ;
9815 long val2 ;
9816 int ecode2 = 0 ;
9817 PyObject * obj0 = 0 ;
9818 PyObject * obj1 = 0 ;
9819 char * kwnames[] = {
9820 (char *) "file",(char *) "type", NULL
9821 };
9822
9823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9824 {
9825 arg1 = wxString_in_helper(obj0);
9826 if (arg1 == NULL) SWIG_fail;
9827 temp1 = true;
9828 }
9829 ecode2 = SWIG_AsVal_long(obj1, &val2);
9830 if (!SWIG_IsOK(ecode2)) {
9831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9832 }
9833 arg2 = static_cast< long >(val2);
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9841 {
9842 if (temp1)
9843 delete arg1;
9844 }
9845 return resultobj;
9846 fail:
9847 {
9848 if (temp1)
9849 delete arg1;
9850 }
9851 return NULL;
9852 }
9853
9854
9855 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj = 0;
9857 wxIcon *arg1 = 0 ;
9858 wxIconBundle *result = 0 ;
9859 void *argp1 = 0 ;
9860 int res1 = 0 ;
9861 PyObject * obj0 = 0 ;
9862 char * kwnames[] = {
9863 (char *) "icon", NULL
9864 };
9865
9866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9867 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9868 if (!SWIG_IsOK(res1)) {
9869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9870 }
9871 if (!argp1) {
9872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9873 }
9874 arg1 = reinterpret_cast< wxIcon * >(argp1);
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9882 return resultobj;
9883 fail:
9884 return NULL;
9885 }
9886
9887
9888 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9889 PyObject *resultobj = 0;
9890 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9891 void *argp1 = 0 ;
9892 int res1 = 0 ;
9893 PyObject *swig_obj[1] ;
9894
9895 if (!args) SWIG_fail;
9896 swig_obj[0] = args;
9897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9898 if (!SWIG_IsOK(res1)) {
9899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9900 }
9901 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 delete arg1;
9905
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_Py_Void();
9910 return resultobj;
9911 fail:
9912 return NULL;
9913 }
9914
9915
9916 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj = 0;
9918 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9919 wxIcon *arg2 = 0 ;
9920 void *argp1 = 0 ;
9921 int res1 = 0 ;
9922 void *argp2 = 0 ;
9923 int res2 = 0 ;
9924 PyObject * obj0 = 0 ;
9925 PyObject * obj1 = 0 ;
9926 char * kwnames[] = {
9927 (char *) "self",(char *) "icon", NULL
9928 };
9929
9930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9932 if (!SWIG_IsOK(res1)) {
9933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9934 }
9935 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9937 if (!SWIG_IsOK(res2)) {
9938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9939 }
9940 if (!argp2) {
9941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9942 }
9943 arg2 = reinterpret_cast< wxIcon * >(argp2);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 (arg1)->AddIcon((wxIcon const &)*arg2);
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 resultobj = SWIG_Py_Void();
9951 return resultobj;
9952 fail:
9953 return NULL;
9954 }
9955
9956
9957 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9960 wxString *arg2 = 0 ;
9961 long arg3 ;
9962 void *argp1 = 0 ;
9963 int res1 = 0 ;
9964 bool temp2 = false ;
9965 long val3 ;
9966 int ecode3 = 0 ;
9967 PyObject * obj0 = 0 ;
9968 PyObject * obj1 = 0 ;
9969 PyObject * obj2 = 0 ;
9970 char * kwnames[] = {
9971 (char *) "self",(char *) "file",(char *) "type", NULL
9972 };
9973
9974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9976 if (!SWIG_IsOK(res1)) {
9977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9978 }
9979 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9980 {
9981 arg2 = wxString_in_helper(obj1);
9982 if (arg2 == NULL) SWIG_fail;
9983 temp2 = true;
9984 }
9985 ecode3 = SWIG_AsVal_long(obj2, &val3);
9986 if (!SWIG_IsOK(ecode3)) {
9987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9988 }
9989 arg3 = static_cast< long >(val3);
9990 {
9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
9992 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 resultobj = SWIG_Py_Void();
9997 {
9998 if (temp2)
9999 delete arg2;
10000 }
10001 return resultobj;
10002 fail:
10003 {
10004 if (temp2)
10005 delete arg2;
10006 }
10007 return NULL;
10008 }
10009
10010
10011 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10012 PyObject *resultobj = 0;
10013 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10014 wxSize *arg2 = 0 ;
10015 wxIcon *result = 0 ;
10016 void *argp1 = 0 ;
10017 int res1 = 0 ;
10018 wxSize temp2 ;
10019 PyObject * obj0 = 0 ;
10020 PyObject * obj1 = 0 ;
10021 char * kwnames[] = {
10022 (char *) "self",(char *) "size", NULL
10023 };
10024
10025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10027 if (!SWIG_IsOK(res1)) {
10028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10029 }
10030 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10031 {
10032 arg2 = &temp2;
10033 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10034 }
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 {
10038 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10039 result = (wxIcon *) &_result_ref;
10040 }
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 {
10045 wxIcon* resultptr = new wxIcon(*result);
10046 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10047 }
10048 return resultobj;
10049 fail:
10050 return NULL;
10051 }
10052
10053
10054 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10055 PyObject *obj;
10056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10057 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10058 return SWIG_Py_Void();
10059 }
10060
10061 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10062 return SWIG_Python_InitShadowInstance(args);
10063 }
10064
10065 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10066 PyObject *resultobj = 0;
10067 wxString *arg1 = 0 ;
10068 long arg2 ;
10069 int arg3 = (int) 0 ;
10070 int arg4 = (int) 0 ;
10071 wxCursor *result = 0 ;
10072 bool temp1 = false ;
10073 long val2 ;
10074 int ecode2 = 0 ;
10075 int val3 ;
10076 int ecode3 = 0 ;
10077 int val4 ;
10078 int ecode4 = 0 ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 PyObject * obj2 = 0 ;
10082 PyObject * obj3 = 0 ;
10083 char * kwnames[] = {
10084 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10085 };
10086
10087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10088 {
10089 arg1 = wxString_in_helper(obj0);
10090 if (arg1 == NULL) SWIG_fail;
10091 temp1 = true;
10092 }
10093 ecode2 = SWIG_AsVal_long(obj1, &val2);
10094 if (!SWIG_IsOK(ecode2)) {
10095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10096 }
10097 arg2 = static_cast< long >(val2);
10098 if (obj2) {
10099 ecode3 = SWIG_AsVal_int(obj2, &val3);
10100 if (!SWIG_IsOK(ecode3)) {
10101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10102 }
10103 arg3 = static_cast< int >(val3);
10104 }
10105 if (obj3) {
10106 ecode4 = SWIG_AsVal_int(obj3, &val4);
10107 if (!SWIG_IsOK(ecode4)) {
10108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10109 }
10110 arg4 = static_cast< int >(val4);
10111 }
10112 {
10113 if (!wxPyCheckForApp()) SWIG_fail;
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10120 {
10121 if (temp1)
10122 delete arg1;
10123 }
10124 return resultobj;
10125 fail:
10126 {
10127 if (temp1)
10128 delete arg1;
10129 }
10130 return NULL;
10131 }
10132
10133
10134 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10135 PyObject *resultobj = 0;
10136 wxCursor *arg1 = (wxCursor *) 0 ;
10137 void *argp1 = 0 ;
10138 int res1 = 0 ;
10139 PyObject *swig_obj[1] ;
10140
10141 if (!args) SWIG_fail;
10142 swig_obj[0] = args;
10143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10144 if (!SWIG_IsOK(res1)) {
10145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10146 }
10147 arg1 = reinterpret_cast< wxCursor * >(argp1);
10148 {
10149 PyThreadState* __tstate = wxPyBeginAllowThreads();
10150 delete arg1;
10151
10152 wxPyEndAllowThreads(__tstate);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 resultobj = SWIG_Py_Void();
10156 return resultobj;
10157 fail:
10158 return NULL;
10159 }
10160
10161
10162 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10163 PyObject *resultobj = 0;
10164 int arg1 ;
10165 wxCursor *result = 0 ;
10166 int val1 ;
10167 int ecode1 = 0 ;
10168 PyObject * obj0 = 0 ;
10169 char * kwnames[] = {
10170 (char *) "id", NULL
10171 };
10172
10173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10174 ecode1 = SWIG_AsVal_int(obj0, &val1);
10175 if (!SWIG_IsOK(ecode1)) {
10176 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10177 }
10178 arg1 = static_cast< int >(val1);
10179 {
10180 if (!wxPyCheckForApp()) SWIG_fail;
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 result = (wxCursor *)new wxCursor(arg1);
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10187 return resultobj;
10188 fail:
10189 return NULL;
10190 }
10191
10192
10193 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj = 0;
10195 wxImage *arg1 = 0 ;
10196 wxCursor *result = 0 ;
10197 void *argp1 = 0 ;
10198 int res1 = 0 ;
10199 PyObject * obj0 = 0 ;
10200 char * kwnames[] = {
10201 (char *) "image", NULL
10202 };
10203
10204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10205 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10206 if (!SWIG_IsOK(res1)) {
10207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10208 }
10209 if (!argp1) {
10210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10211 }
10212 arg1 = reinterpret_cast< wxImage * >(argp1);
10213 {
10214 if (!wxPyCheckForApp()) SWIG_fail;
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10228 PyObject *resultobj = 0;
10229 wxCursor *arg1 = (wxCursor *) 0 ;
10230 long result;
10231 void *argp1 = 0 ;
10232 int res1 = 0 ;
10233 PyObject *swig_obj[1] ;
10234
10235 if (!args) SWIG_fail;
10236 swig_obj[0] = args;
10237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10238 if (!SWIG_IsOK(res1)) {
10239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10240 }
10241 arg1 = reinterpret_cast< wxCursor * >(argp1);
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (long)(arg1)->GetHandle();
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_From_long(static_cast< long >(result));
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj = 0;
10257 wxCursor *arg1 = (wxCursor *) 0 ;
10258 long arg2 ;
10259 void *argp1 = 0 ;
10260 int res1 = 0 ;
10261 long val2 ;
10262 int ecode2 = 0 ;
10263 PyObject * obj0 = 0 ;
10264 PyObject * obj1 = 0 ;
10265 char * kwnames[] = {
10266 (char *) "self",(char *) "handle", NULL
10267 };
10268
10269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10271 if (!SWIG_IsOK(res1)) {
10272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10273 }
10274 arg1 = reinterpret_cast< wxCursor * >(argp1);
10275 ecode2 = SWIG_AsVal_long(obj1, &val2);
10276 if (!SWIG_IsOK(ecode2)) {
10277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10278 }
10279 arg2 = static_cast< long >(val2);
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 wxCursor_SetHandle(arg1,arg2);
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 resultobj = SWIG_Py_Void();
10287 return resultobj;
10288 fail:
10289 return NULL;
10290 }
10291
10292
10293 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10294 PyObject *resultobj = 0;
10295 wxCursor *arg1 = (wxCursor *) 0 ;
10296 bool result;
10297 void *argp1 = 0 ;
10298 int res1 = 0 ;
10299 PyObject *swig_obj[1] ;
10300
10301 if (!args) SWIG_fail;
10302 swig_obj[0] = args;
10303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10304 if (!SWIG_IsOK(res1)) {
10305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10306 }
10307 arg1 = reinterpret_cast< wxCursor * >(argp1);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsOk();
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10324 PyObject *resultobj = 0;
10325 wxCursor *arg1 = (wxCursor *) 0 ;
10326 int result;
10327 void *argp1 = 0 ;
10328 int res1 = 0 ;
10329 PyObject *swig_obj[1] ;
10330
10331 if (!args) SWIG_fail;
10332 swig_obj[0] = args;
10333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10334 if (!SWIG_IsOK(res1)) {
10335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10336 }
10337 arg1 = reinterpret_cast< wxCursor * >(argp1);
10338 {
10339 PyThreadState* __tstate = wxPyBeginAllowThreads();
10340 result = (int)(arg1)->GetWidth();
10341 wxPyEndAllowThreads(__tstate);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 }
10344 resultobj = SWIG_From_int(static_cast< int >(result));
10345 return resultobj;
10346 fail:
10347 return NULL;
10348 }
10349
10350
10351 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10352 PyObject *resultobj = 0;
10353 wxCursor *arg1 = (wxCursor *) 0 ;
10354 int result;
10355 void *argp1 = 0 ;
10356 int res1 = 0 ;
10357 PyObject *swig_obj[1] ;
10358
10359 if (!args) SWIG_fail;
10360 swig_obj[0] = args;
10361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10362 if (!SWIG_IsOK(res1)) {
10363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10364 }
10365 arg1 = reinterpret_cast< wxCursor * >(argp1);
10366 {
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 result = (int)(arg1)->GetHeight();
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 resultobj = SWIG_From_int(static_cast< int >(result));
10373 return resultobj;
10374 fail:
10375 return NULL;
10376 }
10377
10378
10379 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10380 PyObject *resultobj = 0;
10381 wxCursor *arg1 = (wxCursor *) 0 ;
10382 int result;
10383 void *argp1 = 0 ;
10384 int res1 = 0 ;
10385 PyObject *swig_obj[1] ;
10386
10387 if (!args) SWIG_fail;
10388 swig_obj[0] = args;
10389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10392 }
10393 arg1 = reinterpret_cast< wxCursor * >(argp1);
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (int)(arg1)->GetDepth();
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 resultobj = SWIG_From_int(static_cast< int >(result));
10401 return resultobj;
10402 fail:
10403 return NULL;
10404 }
10405
10406
10407 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10408 PyObject *resultobj = 0;
10409 wxCursor *arg1 = (wxCursor *) 0 ;
10410 int arg2 ;
10411 void *argp1 = 0 ;
10412 int res1 = 0 ;
10413 int val2 ;
10414 int ecode2 = 0 ;
10415 PyObject * obj0 = 0 ;
10416 PyObject * obj1 = 0 ;
10417 char * kwnames[] = {
10418 (char *) "self",(char *) "w", NULL
10419 };
10420
10421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10423 if (!SWIG_IsOK(res1)) {
10424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10425 }
10426 arg1 = reinterpret_cast< wxCursor * >(argp1);
10427 ecode2 = SWIG_AsVal_int(obj1, &val2);
10428 if (!SWIG_IsOK(ecode2)) {
10429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10430 }
10431 arg2 = static_cast< int >(val2);
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 (arg1)->SetWidth(arg2);
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_Py_Void();
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj = 0;
10447 wxCursor *arg1 = (wxCursor *) 0 ;
10448 int arg2 ;
10449 void *argp1 = 0 ;
10450 int res1 = 0 ;
10451 int val2 ;
10452 int ecode2 = 0 ;
10453 PyObject * obj0 = 0 ;
10454 PyObject * obj1 = 0 ;
10455 char * kwnames[] = {
10456 (char *) "self",(char *) "h", NULL
10457 };
10458
10459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10461 if (!SWIG_IsOK(res1)) {
10462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10463 }
10464 arg1 = reinterpret_cast< wxCursor * >(argp1);
10465 ecode2 = SWIG_AsVal_int(obj1, &val2);
10466 if (!SWIG_IsOK(ecode2)) {
10467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10468 }
10469 arg2 = static_cast< int >(val2);
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 (arg1)->SetHeight(arg2);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_Py_Void();
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj = 0;
10485 wxCursor *arg1 = (wxCursor *) 0 ;
10486 int arg2 ;
10487 void *argp1 = 0 ;
10488 int res1 = 0 ;
10489 int val2 ;
10490 int ecode2 = 0 ;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 char * kwnames[] = {
10494 (char *) "self",(char *) "d", NULL
10495 };
10496
10497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10499 if (!SWIG_IsOK(res1)) {
10500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10501 }
10502 arg1 = reinterpret_cast< wxCursor * >(argp1);
10503 ecode2 = SWIG_AsVal_int(obj1, &val2);
10504 if (!SWIG_IsOK(ecode2)) {
10505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10506 }
10507 arg2 = static_cast< int >(val2);
10508 {
10509 PyThreadState* __tstate = wxPyBeginAllowThreads();
10510 (arg1)->SetDepth(arg2);
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = SWIG_Py_Void();
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10522 PyObject *resultobj = 0;
10523 wxCursor *arg1 = (wxCursor *) 0 ;
10524 wxSize *arg2 = 0 ;
10525 void *argp1 = 0 ;
10526 int res1 = 0 ;
10527 wxSize temp2 ;
10528 PyObject * obj0 = 0 ;
10529 PyObject * obj1 = 0 ;
10530 char * kwnames[] = {
10531 (char *) "self",(char *) "size", NULL
10532 };
10533
10534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10536 if (!SWIG_IsOK(res1)) {
10537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10538 }
10539 arg1 = reinterpret_cast< wxCursor * >(argp1);
10540 {
10541 arg2 = &temp2;
10542 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10543 }
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 (arg1)->SetSize((wxSize const &)*arg2);
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 resultobj = SWIG_Py_Void();
10551 return resultobj;
10552 fail:
10553 return NULL;
10554 }
10555
10556
10557 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10558 PyObject *obj;
10559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10560 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10561 return SWIG_Py_Void();
10562 }
10563
10564 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10565 return SWIG_Python_InitShadowInstance(args);
10566 }
10567
10568 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj = 0;
10570 int arg1 = (int) 0 ;
10571 int arg2 = (int) 0 ;
10572 int arg3 = (int) 0 ;
10573 int arg4 = (int) 0 ;
10574 wxRegion *result = 0 ;
10575 int val1 ;
10576 int ecode1 = 0 ;
10577 int val2 ;
10578 int ecode2 = 0 ;
10579 int val3 ;
10580 int ecode3 = 0 ;
10581 int val4 ;
10582 int ecode4 = 0 ;
10583 PyObject * obj0 = 0 ;
10584 PyObject * obj1 = 0 ;
10585 PyObject * obj2 = 0 ;
10586 PyObject * obj3 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10592 if (obj0) {
10593 ecode1 = SWIG_AsVal_int(obj0, &val1);
10594 if (!SWIG_IsOK(ecode1)) {
10595 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10596 }
10597 arg1 = static_cast< int >(val1);
10598 }
10599 if (obj1) {
10600 ecode2 = SWIG_AsVal_int(obj1, &val2);
10601 if (!SWIG_IsOK(ecode2)) {
10602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10603 }
10604 arg2 = static_cast< int >(val2);
10605 }
10606 if (obj2) {
10607 ecode3 = SWIG_AsVal_int(obj2, &val3);
10608 if (!SWIG_IsOK(ecode3)) {
10609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10610 }
10611 arg3 = static_cast< int >(val3);
10612 }
10613 if (obj3) {
10614 ecode4 = SWIG_AsVal_int(obj3, &val4);
10615 if (!SWIG_IsOK(ecode4)) {
10616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10617 }
10618 arg4 = static_cast< int >(val4);
10619 }
10620 {
10621 if (!wxPyCheckForApp()) SWIG_fail;
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10624 wxPyEndAllowThreads(__tstate);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxBitmap *arg1 = 0 ;
10637 wxRegion *result = 0 ;
10638 void *argp1 = 0 ;
10639 int res1 = 0 ;
10640 PyObject * obj0 = 0 ;
10641 char * kwnames[] = {
10642 (char *) "bmp", NULL
10643 };
10644
10645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10646 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10647 if (!SWIG_IsOK(res1)) {
10648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10649 }
10650 if (!argp1) {
10651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10652 }
10653 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10654 {
10655 if (!wxPyCheckForApp()) SWIG_fail;
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10662 return resultobj;
10663 fail:
10664 return NULL;
10665 }
10666
10667
10668 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj = 0;
10670 wxBitmap *arg1 = 0 ;
10671 wxColour *arg2 = 0 ;
10672 int arg3 = (int) 0 ;
10673 wxRegion *result = 0 ;
10674 void *argp1 = 0 ;
10675 int res1 = 0 ;
10676 wxColour temp2 ;
10677 int val3 ;
10678 int ecode3 = 0 ;
10679 PyObject * obj0 = 0 ;
10680 PyObject * obj1 = 0 ;
10681 PyObject * obj2 = 0 ;
10682 char * kwnames[] = {
10683 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10684 };
10685
10686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10687 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10688 if (!SWIG_IsOK(res1)) {
10689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10690 }
10691 if (!argp1) {
10692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10693 }
10694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10695 {
10696 arg2 = &temp2;
10697 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10698 }
10699 if (obj2) {
10700 ecode3 = SWIG_AsVal_int(obj2, &val3);
10701 if (!SWIG_IsOK(ecode3)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10703 }
10704 arg3 = static_cast< int >(val3);
10705 }
10706 {
10707 if (!wxPyCheckForApp()) SWIG_fail;
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10714 return resultobj;
10715 fail:
10716 return NULL;
10717 }
10718
10719
10720 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 int arg1 ;
10723 wxPoint *arg2 = (wxPoint *) 0 ;
10724 int arg3 = (int) wxWINDING_RULE ;
10725 wxRegion *result = 0 ;
10726 int val3 ;
10727 int ecode3 = 0 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 char * kwnames[] = {
10731 (char *) "points",(char *) "fillStyle", NULL
10732 };
10733
10734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10735 {
10736 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10737 if (arg2 == NULL) SWIG_fail;
10738 }
10739 if (obj1) {
10740 ecode3 = SWIG_AsVal_int(obj1, &val3);
10741 if (!SWIG_IsOK(ecode3)) {
10742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10743 }
10744 arg3 = static_cast< int >(val3);
10745 }
10746 {
10747 if (!wxPyCheckForApp()) SWIG_fail;
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10750 wxPyEndAllowThreads(__tstate);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 }
10753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10754 {
10755 if (arg2) delete [] arg2;
10756 }
10757 return resultobj;
10758 fail:
10759 {
10760 if (arg2) delete [] arg2;
10761 }
10762 return NULL;
10763 }
10764
10765
10766 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10767 PyObject *resultobj = 0;
10768 wxRegion *arg1 = (wxRegion *) 0 ;
10769 void *argp1 = 0 ;
10770 int res1 = 0 ;
10771 PyObject *swig_obj[1] ;
10772
10773 if (!args) SWIG_fail;
10774 swig_obj[0] = args;
10775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10776 if (!SWIG_IsOK(res1)) {
10777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10778 }
10779 arg1 = reinterpret_cast< wxRegion * >(argp1);
10780 {
10781 PyThreadState* __tstate = wxPyBeginAllowThreads();
10782 delete arg1;
10783
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
10787 resultobj = SWIG_Py_Void();
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10795 PyObject *resultobj = 0;
10796 wxRegion *arg1 = (wxRegion *) 0 ;
10797 void *argp1 = 0 ;
10798 int res1 = 0 ;
10799 PyObject *swig_obj[1] ;
10800
10801 if (!args) SWIG_fail;
10802 swig_obj[0] = args;
10803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10804 if (!SWIG_IsOK(res1)) {
10805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10806 }
10807 arg1 = reinterpret_cast< wxRegion * >(argp1);
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 (arg1)->Clear();
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 resultobj = SWIG_Py_Void();
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj = 0;
10823 wxRegion *arg1 = (wxRegion *) 0 ;
10824 int arg2 ;
10825 int arg3 ;
10826 bool result;
10827 void *argp1 = 0 ;
10828 int res1 = 0 ;
10829 int val2 ;
10830 int ecode2 = 0 ;
10831 int val3 ;
10832 int ecode3 = 0 ;
10833 PyObject * obj0 = 0 ;
10834 PyObject * obj1 = 0 ;
10835 PyObject * obj2 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "x",(char *) "y", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10844 }
10845 arg1 = reinterpret_cast< wxRegion * >(argp1);
10846 ecode2 = SWIG_AsVal_int(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10849 }
10850 arg2 = static_cast< int >(val2);
10851 ecode3 = SWIG_AsVal_int(obj2, &val3);
10852 if (!SWIG_IsOK(ecode3)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10854 }
10855 arg3 = static_cast< int >(val3);
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 result = (bool)(arg1)->Offset(arg2,arg3);
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 {
10863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10864 }
10865 return resultobj;
10866 fail:
10867 return NULL;
10868 }
10869
10870
10871 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10872 PyObject *resultobj = 0;
10873 wxRegion *arg1 = (wxRegion *) 0 ;
10874 int arg2 ;
10875 int arg3 ;
10876 wxRegionContain result;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 int val2 ;
10880 int ecode2 = 0 ;
10881 int val3 ;
10882 int ecode3 = 0 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 PyObject * obj2 = 0 ;
10886 char * kwnames[] = {
10887 (char *) "self",(char *) "x",(char *) "y", NULL
10888 };
10889
10890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10892 if (!SWIG_IsOK(res1)) {
10893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10894 }
10895 arg1 = reinterpret_cast< wxRegion * >(argp1);
10896 ecode2 = SWIG_AsVal_int(obj1, &val2);
10897 if (!SWIG_IsOK(ecode2)) {
10898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10899 }
10900 arg2 = static_cast< int >(val2);
10901 ecode3 = SWIG_AsVal_int(obj2, &val3);
10902 if (!SWIG_IsOK(ecode3)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10904 }
10905 arg3 = static_cast< int >(val3);
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 resultobj = SWIG_From_int(static_cast< int >(result));
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj = 0;
10921 wxRegion *arg1 = (wxRegion *) 0 ;
10922 wxPoint *arg2 = 0 ;
10923 wxRegionContain result;
10924 void *argp1 = 0 ;
10925 int res1 = 0 ;
10926 wxPoint temp2 ;
10927 PyObject * obj0 = 0 ;
10928 PyObject * obj1 = 0 ;
10929 char * kwnames[] = {
10930 (char *) "self",(char *) "pt", NULL
10931 };
10932
10933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10935 if (!SWIG_IsOK(res1)) {
10936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10937 }
10938 arg1 = reinterpret_cast< wxRegion * >(argp1);
10939 {
10940 arg2 = &temp2;
10941 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10942 }
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 resultobj = SWIG_From_int(static_cast< int >(result));
10950 return resultobj;
10951 fail:
10952 return NULL;
10953 }
10954
10955
10956 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10957 PyObject *resultobj = 0;
10958 wxRegion *arg1 = (wxRegion *) 0 ;
10959 wxRect *arg2 = 0 ;
10960 wxRegionContain result;
10961 void *argp1 = 0 ;
10962 int res1 = 0 ;
10963 wxRect temp2 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 char * kwnames[] = {
10967 (char *) "self",(char *) "rect", NULL
10968 };
10969
10970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10972 if (!SWIG_IsOK(res1)) {
10973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10974 }
10975 arg1 = reinterpret_cast< wxRegion * >(argp1);
10976 {
10977 arg2 = &temp2;
10978 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10979 }
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 resultobj = SWIG_From_int(static_cast< int >(result));
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj = 0;
10995 wxRegion *arg1 = (wxRegion *) 0 ;
10996 int arg2 ;
10997 int arg3 ;
10998 int arg4 ;
10999 int arg5 ;
11000 wxRegionContain result;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 int val2 ;
11004 int ecode2 = 0 ;
11005 int val3 ;
11006 int ecode3 = 0 ;
11007 int val4 ;
11008 int ecode4 = 0 ;
11009 int val5 ;
11010 int ecode5 = 0 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 PyObject * obj2 = 0 ;
11014 PyObject * obj3 = 0 ;
11015 PyObject * obj4 = 0 ;
11016 char * kwnames[] = {
11017 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11018 };
11019
11020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11022 if (!SWIG_IsOK(res1)) {
11023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11024 }
11025 arg1 = reinterpret_cast< wxRegion * >(argp1);
11026 ecode2 = SWIG_AsVal_int(obj1, &val2);
11027 if (!SWIG_IsOK(ecode2)) {
11028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11029 }
11030 arg2 = static_cast< int >(val2);
11031 ecode3 = SWIG_AsVal_int(obj2, &val3);
11032 if (!SWIG_IsOK(ecode3)) {
11033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11034 }
11035 arg3 = static_cast< int >(val3);
11036 ecode4 = SWIG_AsVal_int(obj3, &val4);
11037 if (!SWIG_IsOK(ecode4)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11039 }
11040 arg4 = static_cast< int >(val4);
11041 ecode5 = SWIG_AsVal_int(obj4, &val5);
11042 if (!SWIG_IsOK(ecode5)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11044 }
11045 arg5 = static_cast< int >(val5);
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 resultobj = SWIG_From_int(static_cast< int >(result));
11053 return resultobj;
11054 fail:
11055 return NULL;
11056 }
11057
11058
11059 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11060 PyObject *resultobj = 0;
11061 wxRegion *arg1 = (wxRegion *) 0 ;
11062 wxRect result;
11063 void *argp1 = 0 ;
11064 int res1 = 0 ;
11065 PyObject *swig_obj[1] ;
11066
11067 if (!args) SWIG_fail;
11068 swig_obj[0] = args;
11069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11072 }
11073 arg1 = reinterpret_cast< wxRegion * >(argp1);
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 result = (arg1)->GetBox();
11077 wxPyEndAllowThreads(__tstate);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 }
11080 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11081 return resultobj;
11082 fail:
11083 return NULL;
11084 }
11085
11086
11087 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj = 0;
11089 wxRegion *arg1 = (wxRegion *) 0 ;
11090 int arg2 ;
11091 int arg3 ;
11092 int arg4 ;
11093 int arg5 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 int val2 ;
11098 int ecode2 = 0 ;
11099 int val3 ;
11100 int ecode3 = 0 ;
11101 int val4 ;
11102 int ecode4 = 0 ;
11103 int val5 ;
11104 int ecode5 = 0 ;
11105 PyObject * obj0 = 0 ;
11106 PyObject * obj1 = 0 ;
11107 PyObject * obj2 = 0 ;
11108 PyObject * obj3 = 0 ;
11109 PyObject * obj4 = 0 ;
11110 char * kwnames[] = {
11111 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11112 };
11113
11114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11118 }
11119 arg1 = reinterpret_cast< wxRegion * >(argp1);
11120 ecode2 = SWIG_AsVal_int(obj1, &val2);
11121 if (!SWIG_IsOK(ecode2)) {
11122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11123 }
11124 arg2 = static_cast< int >(val2);
11125 ecode3 = SWIG_AsVal_int(obj2, &val3);
11126 if (!SWIG_IsOK(ecode3)) {
11127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11128 }
11129 arg3 = static_cast< int >(val3);
11130 ecode4 = SWIG_AsVal_int(obj3, &val4);
11131 if (!SWIG_IsOK(ecode4)) {
11132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11133 }
11134 arg4 = static_cast< int >(val4);
11135 ecode5 = SWIG_AsVal_int(obj4, &val5);
11136 if (!SWIG_IsOK(ecode5)) {
11137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11138 }
11139 arg5 = static_cast< int >(val5);
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 {
11147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11148 }
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11156 PyObject *resultobj = 0;
11157 wxRegion *arg1 = (wxRegion *) 0 ;
11158 wxRect *arg2 = 0 ;
11159 bool result;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 wxRect temp2 ;
11163 PyObject * obj0 = 0 ;
11164 PyObject * obj1 = 0 ;
11165 char * kwnames[] = {
11166 (char *) "self",(char *) "rect", NULL
11167 };
11168
11169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11171 if (!SWIG_IsOK(res1)) {
11172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11173 }
11174 arg1 = reinterpret_cast< wxRegion * >(argp1);
11175 {
11176 arg2 = &temp2;
11177 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11178 }
11179 {
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
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_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj = 0;
11196 wxRegion *arg1 = (wxRegion *) 0 ;
11197 wxRegion *arg2 = 0 ;
11198 bool result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 void *argp2 = 0 ;
11202 int res2 = 0 ;
11203 PyObject * obj0 = 0 ;
11204 PyObject * obj1 = 0 ;
11205 char * kwnames[] = {
11206 (char *) "self",(char *) "region", NULL
11207 };
11208
11209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11211 if (!SWIG_IsOK(res1)) {
11212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11213 }
11214 arg1 = reinterpret_cast< wxRegion * >(argp1);
11215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11216 if (!SWIG_IsOK(res2)) {
11217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11218 }
11219 if (!argp2) {
11220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11221 }
11222 arg2 = reinterpret_cast< wxRegion * >(argp2);
11223 {
11224 PyThreadState* __tstate = wxPyBeginAllowThreads();
11225 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 {
11230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11231 }
11232 return resultobj;
11233 fail:
11234 return NULL;
11235 }
11236
11237
11238 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11239 PyObject *resultobj = 0;
11240 wxRegion *arg1 = (wxRegion *) 0 ;
11241 bool result;
11242 void *argp1 = 0 ;
11243 int res1 = 0 ;
11244 PyObject *swig_obj[1] ;
11245
11246 if (!args) SWIG_fail;
11247 swig_obj[0] = args;
11248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11249 if (!SWIG_IsOK(res1)) {
11250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11251 }
11252 arg1 = reinterpret_cast< wxRegion * >(argp1);
11253 {
11254 PyThreadState* __tstate = wxPyBeginAllowThreads();
11255 result = (bool)(arg1)->IsEmpty();
11256 wxPyEndAllowThreads(__tstate);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 }
11259 {
11260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11261 }
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11269 PyObject *resultobj = 0;
11270 wxRegion *arg1 = (wxRegion *) 0 ;
11271 wxRegion *arg2 = 0 ;
11272 bool result;
11273 void *argp1 = 0 ;
11274 int res1 = 0 ;
11275 void *argp2 = 0 ;
11276 int res2 = 0 ;
11277 PyObject * obj0 = 0 ;
11278 PyObject * obj1 = 0 ;
11279 char * kwnames[] = {
11280 (char *) "self",(char *) "region", NULL
11281 };
11282
11283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11285 if (!SWIG_IsOK(res1)) {
11286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11287 }
11288 arg1 = reinterpret_cast< wxRegion * >(argp1);
11289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11290 if (!SWIG_IsOK(res2)) {
11291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11292 }
11293 if (!argp2) {
11294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11295 }
11296 arg2 = reinterpret_cast< wxRegion * >(argp2);
11297 {
11298 PyThreadState* __tstate = wxPyBeginAllowThreads();
11299 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 {
11304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11305 }
11306 return resultobj;
11307 fail:
11308 return NULL;
11309 }
11310
11311
11312 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj = 0;
11314 wxRegion *arg1 = (wxRegion *) 0 ;
11315 int arg2 ;
11316 int arg3 ;
11317 int arg4 ;
11318 int arg5 ;
11319 bool result;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 int val2 ;
11323 int ecode2 = 0 ;
11324 int val3 ;
11325 int ecode3 = 0 ;
11326 int val4 ;
11327 int ecode4 = 0 ;
11328 int val5 ;
11329 int ecode5 = 0 ;
11330 PyObject * obj0 = 0 ;
11331 PyObject * obj1 = 0 ;
11332 PyObject * obj2 = 0 ;
11333 PyObject * obj3 = 0 ;
11334 PyObject * obj4 = 0 ;
11335 char * kwnames[] = {
11336 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11337 };
11338
11339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11343 }
11344 arg1 = reinterpret_cast< wxRegion * >(argp1);
11345 ecode2 = SWIG_AsVal_int(obj1, &val2);
11346 if (!SWIG_IsOK(ecode2)) {
11347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11348 }
11349 arg2 = static_cast< int >(val2);
11350 ecode3 = SWIG_AsVal_int(obj2, &val3);
11351 if (!SWIG_IsOK(ecode3)) {
11352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11353 }
11354 arg3 = static_cast< int >(val3);
11355 ecode4 = SWIG_AsVal_int(obj3, &val4);
11356 if (!SWIG_IsOK(ecode4)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11358 }
11359 arg4 = static_cast< int >(val4);
11360 ecode5 = SWIG_AsVal_int(obj4, &val5);
11361 if (!SWIG_IsOK(ecode5)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11363 }
11364 arg5 = static_cast< int >(val5);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 {
11372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11373 }
11374 return resultobj;
11375 fail:
11376 return NULL;
11377 }
11378
11379
11380 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11381 PyObject *resultobj = 0;
11382 wxRegion *arg1 = (wxRegion *) 0 ;
11383 wxRect *arg2 = 0 ;
11384 bool result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 wxRect temp2 ;
11388 PyObject * obj0 = 0 ;
11389 PyObject * obj1 = 0 ;
11390 char * kwnames[] = {
11391 (char *) "self",(char *) "rect", NULL
11392 };
11393
11394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11396 if (!SWIG_IsOK(res1)) {
11397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11398 }
11399 arg1 = reinterpret_cast< wxRegion * >(argp1);
11400 {
11401 arg2 = &temp2;
11402 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11403 }
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 {
11411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11412 }
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj = 0;
11421 wxRegion *arg1 = (wxRegion *) 0 ;
11422 wxRegion *arg2 = 0 ;
11423 bool result;
11424 void *argp1 = 0 ;
11425 int res1 = 0 ;
11426 void *argp2 = 0 ;
11427 int res2 = 0 ;
11428 PyObject * obj0 = 0 ;
11429 PyObject * obj1 = 0 ;
11430 char * kwnames[] = {
11431 (char *) "self",(char *) "region", NULL
11432 };
11433
11434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11438 }
11439 arg1 = reinterpret_cast< wxRegion * >(argp1);
11440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11441 if (!SWIG_IsOK(res2)) {
11442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11443 }
11444 if (!argp2) {
11445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11446 }
11447 arg2 = reinterpret_cast< wxRegion * >(argp2);
11448 {
11449 PyThreadState* __tstate = wxPyBeginAllowThreads();
11450 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 {
11455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11456 }
11457 return resultobj;
11458 fail:
11459 return NULL;
11460 }
11461
11462
11463 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11464 PyObject *resultobj = 0;
11465 wxRegion *arg1 = (wxRegion *) 0 ;
11466 int arg2 ;
11467 int arg3 ;
11468 int arg4 ;
11469 int arg5 ;
11470 bool result;
11471 void *argp1 = 0 ;
11472 int res1 = 0 ;
11473 int val2 ;
11474 int ecode2 = 0 ;
11475 int val3 ;
11476 int ecode3 = 0 ;
11477 int val4 ;
11478 int ecode4 = 0 ;
11479 int val5 ;
11480 int ecode5 = 0 ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 PyObject * obj2 = 0 ;
11484 PyObject * obj3 = 0 ;
11485 PyObject * obj4 = 0 ;
11486 char * kwnames[] = {
11487 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11488 };
11489
11490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11494 }
11495 arg1 = reinterpret_cast< wxRegion * >(argp1);
11496 ecode2 = SWIG_AsVal_int(obj1, &val2);
11497 if (!SWIG_IsOK(ecode2)) {
11498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11499 }
11500 arg2 = static_cast< int >(val2);
11501 ecode3 = SWIG_AsVal_int(obj2, &val3);
11502 if (!SWIG_IsOK(ecode3)) {
11503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11504 }
11505 arg3 = static_cast< int >(val3);
11506 ecode4 = SWIG_AsVal_int(obj3, &val4);
11507 if (!SWIG_IsOK(ecode4)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11509 }
11510 arg4 = static_cast< int >(val4);
11511 ecode5 = SWIG_AsVal_int(obj4, &val5);
11512 if (!SWIG_IsOK(ecode5)) {
11513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11514 }
11515 arg5 = static_cast< int >(val5);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 {
11523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11524 }
11525 return resultobj;
11526 fail:
11527 return NULL;
11528 }
11529
11530
11531 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11532 PyObject *resultobj = 0;
11533 wxRegion *arg1 = (wxRegion *) 0 ;
11534 wxRect *arg2 = 0 ;
11535 bool result;
11536 void *argp1 = 0 ;
11537 int res1 = 0 ;
11538 wxRect temp2 ;
11539 PyObject * obj0 = 0 ;
11540 PyObject * obj1 = 0 ;
11541 char * kwnames[] = {
11542 (char *) "self",(char *) "rect", NULL
11543 };
11544
11545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11547 if (!SWIG_IsOK(res1)) {
11548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11549 }
11550 arg1 = reinterpret_cast< wxRegion * >(argp1);
11551 {
11552 arg2 = &temp2;
11553 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11554 }
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 {
11562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11563 }
11564 return resultobj;
11565 fail:
11566 return NULL;
11567 }
11568
11569
11570 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11571 PyObject *resultobj = 0;
11572 wxRegion *arg1 = (wxRegion *) 0 ;
11573 wxRegion *arg2 = 0 ;
11574 bool result;
11575 void *argp1 = 0 ;
11576 int res1 = 0 ;
11577 void *argp2 = 0 ;
11578 int res2 = 0 ;
11579 PyObject * obj0 = 0 ;
11580 PyObject * obj1 = 0 ;
11581 char * kwnames[] = {
11582 (char *) "self",(char *) "region", NULL
11583 };
11584
11585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11589 }
11590 arg1 = reinterpret_cast< wxRegion * >(argp1);
11591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11592 if (!SWIG_IsOK(res2)) {
11593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11594 }
11595 if (!argp2) {
11596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11597 }
11598 arg2 = reinterpret_cast< wxRegion * >(argp2);
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 {
11606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11607 }
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj = 0;
11616 wxRegion *arg1 = (wxRegion *) 0 ;
11617 int arg2 ;
11618 int arg3 ;
11619 int arg4 ;
11620 int arg5 ;
11621 bool result;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 int val2 ;
11625 int ecode2 = 0 ;
11626 int val3 ;
11627 int ecode3 = 0 ;
11628 int val4 ;
11629 int ecode4 = 0 ;
11630 int val5 ;
11631 int ecode5 = 0 ;
11632 PyObject * obj0 = 0 ;
11633 PyObject * obj1 = 0 ;
11634 PyObject * obj2 = 0 ;
11635 PyObject * obj3 = 0 ;
11636 PyObject * obj4 = 0 ;
11637 char * kwnames[] = {
11638 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11639 };
11640
11641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11643 if (!SWIG_IsOK(res1)) {
11644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11645 }
11646 arg1 = reinterpret_cast< wxRegion * >(argp1);
11647 ecode2 = SWIG_AsVal_int(obj1, &val2);
11648 if (!SWIG_IsOK(ecode2)) {
11649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11650 }
11651 arg2 = static_cast< int >(val2);
11652 ecode3 = SWIG_AsVal_int(obj2, &val3);
11653 if (!SWIG_IsOK(ecode3)) {
11654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11655 }
11656 arg3 = static_cast< int >(val3);
11657 ecode4 = SWIG_AsVal_int(obj3, &val4);
11658 if (!SWIG_IsOK(ecode4)) {
11659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11660 }
11661 arg4 = static_cast< int >(val4);
11662 ecode5 = SWIG_AsVal_int(obj4, &val5);
11663 if (!SWIG_IsOK(ecode5)) {
11664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11665 }
11666 arg5 = static_cast< int >(val5);
11667 {
11668 PyThreadState* __tstate = wxPyBeginAllowThreads();
11669 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 {
11674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11675 }
11676 return resultobj;
11677 fail:
11678 return NULL;
11679 }
11680
11681
11682 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11683 PyObject *resultobj = 0;
11684 wxRegion *arg1 = (wxRegion *) 0 ;
11685 wxRect *arg2 = 0 ;
11686 bool result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 wxRect temp2 ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 char * kwnames[] = {
11693 (char *) "self",(char *) "rect", NULL
11694 };
11695
11696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11698 if (!SWIG_IsOK(res1)) {
11699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11700 }
11701 arg1 = reinterpret_cast< wxRegion * >(argp1);
11702 {
11703 arg2 = &temp2;
11704 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11705 }
11706 {
11707 PyThreadState* __tstate = wxPyBeginAllowThreads();
11708 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 {
11713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11714 }
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj = 0;
11723 wxRegion *arg1 = (wxRegion *) 0 ;
11724 wxRegion *arg2 = 0 ;
11725 bool result;
11726 void *argp1 = 0 ;
11727 int res1 = 0 ;
11728 void *argp2 = 0 ;
11729 int res2 = 0 ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 char * kwnames[] = {
11733 (char *) "self",(char *) "region", NULL
11734 };
11735
11736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11740 }
11741 arg1 = reinterpret_cast< wxRegion * >(argp1);
11742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11743 if (!SWIG_IsOK(res2)) {
11744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11745 }
11746 if (!argp2) {
11747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11748 }
11749 arg2 = reinterpret_cast< wxRegion * >(argp2);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 {
11757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11758 }
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 PyObject *resultobj = 0;
11767 wxRegion *arg1 = (wxRegion *) 0 ;
11768 SwigValueWrapper<wxBitmap > result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 PyObject *swig_obj[1] ;
11772
11773 if (!args) SWIG_fail;
11774 swig_obj[0] = args;
11775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11778 }
11779 arg1 = reinterpret_cast< wxRegion * >(argp1);
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (arg1)->ConvertToBitmap();
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11787 return resultobj;
11788 fail:
11789 return NULL;
11790 }
11791
11792
11793 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj = 0;
11795 wxRegion *arg1 = (wxRegion *) 0 ;
11796 wxBitmap *arg2 = 0 ;
11797 bool result;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 void *argp2 = 0 ;
11801 int res2 = 0 ;
11802 PyObject * obj0 = 0 ;
11803 PyObject * obj1 = 0 ;
11804 char * kwnames[] = {
11805 (char *) "self",(char *) "bmp", NULL
11806 };
11807
11808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11810 if (!SWIG_IsOK(res1)) {
11811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11812 }
11813 arg1 = reinterpret_cast< wxRegion * >(argp1);
11814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11815 if (!SWIG_IsOK(res2)) {
11816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11817 }
11818 if (!argp2) {
11819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11820 }
11821 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11822 {
11823 PyThreadState* __tstate = wxPyBeginAllowThreads();
11824 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 {
11829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11830 }
11831 return resultobj;
11832 fail:
11833 return NULL;
11834 }
11835
11836
11837 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11838 PyObject *resultobj = 0;
11839 wxRegion *arg1 = (wxRegion *) 0 ;
11840 wxBitmap *arg2 = 0 ;
11841 wxColour *arg3 = 0 ;
11842 int arg4 = (int) 0 ;
11843 bool result;
11844 void *argp1 = 0 ;
11845 int res1 = 0 ;
11846 void *argp2 = 0 ;
11847 int res2 = 0 ;
11848 wxColour temp3 ;
11849 int val4 ;
11850 int ecode4 = 0 ;
11851 PyObject * obj0 = 0 ;
11852 PyObject * obj1 = 0 ;
11853 PyObject * obj2 = 0 ;
11854 PyObject * obj3 = 0 ;
11855 char * kwnames[] = {
11856 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11857 };
11858
11859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11861 if (!SWIG_IsOK(res1)) {
11862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11863 }
11864 arg1 = reinterpret_cast< wxRegion * >(argp1);
11865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11866 if (!SWIG_IsOK(res2)) {
11867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11868 }
11869 if (!argp2) {
11870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11871 }
11872 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11873 {
11874 arg3 = &temp3;
11875 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11876 }
11877 if (obj3) {
11878 ecode4 = SWIG_AsVal_int(obj3, &val4);
11879 if (!SWIG_IsOK(ecode4)) {
11880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11881 }
11882 arg4 = static_cast< int >(val4);
11883 }
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 {
11891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11892 }
11893 return resultobj;
11894 fail:
11895 return NULL;
11896 }
11897
11898
11899 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11900 PyObject *obj;
11901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11902 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11903 return SWIG_Py_Void();
11904 }
11905
11906 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 return SWIG_Python_InitShadowInstance(args);
11908 }
11909
11910 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11911 PyObject *resultobj = 0;
11912 wxRegion *arg1 = 0 ;
11913 wxRegionIterator *result = 0 ;
11914 void *argp1 = 0 ;
11915 int res1 = 0 ;
11916 PyObject * obj0 = 0 ;
11917 char * kwnames[] = {
11918 (char *) "region", NULL
11919 };
11920
11921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11922 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11925 }
11926 if (!argp1) {
11927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11928 }
11929 arg1 = reinterpret_cast< wxRegion * >(argp1);
11930 {
11931 if (!wxPyCheckForApp()) SWIG_fail;
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11938 return resultobj;
11939 fail:
11940 return NULL;
11941 }
11942
11943
11944 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11945 PyObject *resultobj = 0;
11946 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11947 void *argp1 = 0 ;
11948 int res1 = 0 ;
11949 PyObject *swig_obj[1] ;
11950
11951 if (!args) SWIG_fail;
11952 swig_obj[0] = args;
11953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11954 if (!SWIG_IsOK(res1)) {
11955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11956 }
11957 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 delete arg1;
11961
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 resultobj = SWIG_Py_Void();
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11975 int result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11985 }
11986 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (int)(arg1)->GetX();
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_From_int(static_cast< int >(result));
11994 return resultobj;
11995 fail:
11996 return NULL;
11997 }
11998
11999
12000 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 PyObject *resultobj = 0;
12002 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12003 int result;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject *swig_obj[1] ;
12007
12008 if (!args) SWIG_fail;
12009 swig_obj[0] = args;
12010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12013 }
12014 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (int)(arg1)->GetY();
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 resultobj = SWIG_From_int(static_cast< int >(result));
12022 return resultobj;
12023 fail:
12024 return NULL;
12025 }
12026
12027
12028 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *resultobj = 0;
12030 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12031 int result;
12032 void *argp1 = 0 ;
12033 int res1 = 0 ;
12034 PyObject *swig_obj[1] ;
12035
12036 if (!args) SWIG_fail;
12037 swig_obj[0] = args;
12038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12039 if (!SWIG_IsOK(res1)) {
12040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12041 }
12042 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (int)(arg1)->GetW();
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 resultobj = SWIG_From_int(static_cast< int >(result));
12050 return resultobj;
12051 fail:
12052 return NULL;
12053 }
12054
12055
12056 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12057 PyObject *resultobj = 0;
12058 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12059 int result;
12060 void *argp1 = 0 ;
12061 int res1 = 0 ;
12062 PyObject *swig_obj[1] ;
12063
12064 if (!args) SWIG_fail;
12065 swig_obj[0] = args;
12066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12069 }
12070 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 result = (int)(arg1)->GetWidth();
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 resultobj = SWIG_From_int(static_cast< int >(result));
12078 return resultobj;
12079 fail:
12080 return NULL;
12081 }
12082
12083
12084 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12085 PyObject *resultobj = 0;
12086 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12087 int result;
12088 void *argp1 = 0 ;
12089 int res1 = 0 ;
12090 PyObject *swig_obj[1] ;
12091
12092 if (!args) SWIG_fail;
12093 swig_obj[0] = args;
12094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12095 if (!SWIG_IsOK(res1)) {
12096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12097 }
12098 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (int)(arg1)->GetH();
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 resultobj = SWIG_From_int(static_cast< int >(result));
12106 return resultobj;
12107 fail:
12108 return NULL;
12109 }
12110
12111
12112 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12113 PyObject *resultobj = 0;
12114 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12115 int result;
12116 void *argp1 = 0 ;
12117 int res1 = 0 ;
12118 PyObject *swig_obj[1] ;
12119
12120 if (!args) SWIG_fail;
12121 swig_obj[0] = args;
12122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12123 if (!SWIG_IsOK(res1)) {
12124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12125 }
12126 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 result = (int)(arg1)->GetHeight();
12130 wxPyEndAllowThreads(__tstate);
12131 if (PyErr_Occurred()) SWIG_fail;
12132 }
12133 resultobj = SWIG_From_int(static_cast< int >(result));
12134 return resultobj;
12135 fail:
12136 return NULL;
12137 }
12138
12139
12140 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12141 PyObject *resultobj = 0;
12142 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12143 wxRect result;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject *swig_obj[1] ;
12147
12148 if (!args) SWIG_fail;
12149 swig_obj[0] = args;
12150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12151 if (!SWIG_IsOK(res1)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12153 }
12154 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = (arg1)->GetRect();
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12169 PyObject *resultobj = 0;
12170 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12171 bool result;
12172 void *argp1 = 0 ;
12173 int res1 = 0 ;
12174 PyObject *swig_obj[1] ;
12175
12176 if (!args) SWIG_fail;
12177 swig_obj[0] = args;
12178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12179 if (!SWIG_IsOK(res1)) {
12180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12181 }
12182 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 result = (bool)(arg1)->HaveRects();
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 {
12190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12191 }
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12210 }
12211 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 (arg1)->Reset();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 resultobj = SWIG_Py_Void();
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 PyObject *resultobj = 0;
12227 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12228 void *argp1 = 0 ;
12229 int res1 = 0 ;
12230 PyObject *swig_obj[1] ;
12231
12232 if (!args) SWIG_fail;
12233 swig_obj[0] = args;
12234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12235 if (!SWIG_IsOK(res1)) {
12236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12237 }
12238 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12239 {
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 wxRegionIterator_Next(arg1);
12242 wxPyEndAllowThreads(__tstate);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 resultobj = SWIG_Py_Void();
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12253 PyObject *resultobj = 0;
12254 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12255 bool result;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 PyObject *swig_obj[1] ;
12259
12260 if (!args) SWIG_fail;
12261 swig_obj[0] = args;
12262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12263 if (!SWIG_IsOK(res1)) {
12264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12265 }
12266 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (bool)wxRegionIterator___nonzero__(arg1);
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12275 }
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12283 PyObject *obj;
12284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12285 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12286 return SWIG_Py_Void();
12287 }
12288
12289 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12290 return SWIG_Python_InitShadowInstance(args);
12291 }
12292
12293 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12294 PyObject *resultobj = 0;
12295 wxNativeFontInfo *result = 0 ;
12296
12297 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12298 {
12299 PyThreadState* __tstate = wxPyBeginAllowThreads();
12300 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12305 return resultobj;
12306 fail:
12307 return NULL;
12308 }
12309
12310
12311 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12312 PyObject *resultobj = 0;
12313 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 PyObject *swig_obj[1] ;
12317
12318 if (!args) SWIG_fail;
12319 swig_obj[0] = args;
12320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12321 if (!SWIG_IsOK(res1)) {
12322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12323 }
12324 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 delete arg1;
12328
12329 wxPyEndAllowThreads(__tstate);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 }
12332 resultobj = SWIG_Py_Void();
12333 return resultobj;
12334 fail:
12335 return NULL;
12336 }
12337
12338
12339 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12340 PyObject *resultobj = 0;
12341 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12342 void *argp1 = 0 ;
12343 int res1 = 0 ;
12344 PyObject *swig_obj[1] ;
12345
12346 if (!args) SWIG_fail;
12347 swig_obj[0] = args;
12348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12349 if (!SWIG_IsOK(res1)) {
12350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12351 }
12352 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 (arg1)->Init();
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_Py_Void();
12360 return resultobj;
12361 fail:
12362 return NULL;
12363 }
12364
12365
12366 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12367 PyObject *resultobj = 0;
12368 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12369 wxFont *arg2 = 0 ;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 void *argp2 = 0 ;
12373 int res2 = 0 ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 char * kwnames[] = {
12377 (char *) "self",(char *) "font", NULL
12378 };
12379
12380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12384 }
12385 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12387 if (!SWIG_IsOK(res2)) {
12388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12389 }
12390 if (!argp2) {
12391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12392 }
12393 arg2 = reinterpret_cast< wxFont * >(argp2);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->InitFromFont((wxFont const &)*arg2);
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 resultobj = SWIG_Py_Void();
12401 return resultobj;
12402 fail:
12403 return NULL;
12404 }
12405
12406
12407 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12408 PyObject *resultobj = 0;
12409 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12410 int result;
12411 void *argp1 = 0 ;
12412 int res1 = 0 ;
12413 PyObject *swig_obj[1] ;
12414
12415 if (!args) SWIG_fail;
12416 swig_obj[0] = args;
12417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12418 if (!SWIG_IsOK(res1)) {
12419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12420 }
12421 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 resultobj = SWIG_From_int(static_cast< int >(result));
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12436 PyObject *resultobj = 0;
12437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12438 wxSize result;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 PyObject *swig_obj[1] ;
12442
12443 if (!args) SWIG_fail;
12444 swig_obj[0] = args;
12445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12446 if (!SWIG_IsOK(res1)) {
12447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12448 }
12449 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12457 return resultobj;
12458 fail:
12459 return NULL;
12460 }
12461
12462
12463 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12464 PyObject *resultobj = 0;
12465 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12466 wxFontStyle result;
12467 void *argp1 = 0 ;
12468 int res1 = 0 ;
12469 PyObject *swig_obj[1] ;
12470
12471 if (!args) SWIG_fail;
12472 swig_obj[0] = args;
12473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12474 if (!SWIG_IsOK(res1)) {
12475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12476 }
12477 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_From_int(static_cast< int >(result));
12485 return resultobj;
12486 fail:
12487 return NULL;
12488 }
12489
12490
12491 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12492 PyObject *resultobj = 0;
12493 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12494 wxFontWeight result;
12495 void *argp1 = 0 ;
12496 int res1 = 0 ;
12497 PyObject *swig_obj[1] ;
12498
12499 if (!args) SWIG_fail;
12500 swig_obj[0] = args;
12501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12502 if (!SWIG_IsOK(res1)) {
12503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12504 }
12505 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 resultobj = SWIG_From_int(static_cast< int >(result));
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12520 PyObject *resultobj = 0;
12521 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12522 bool result;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 {
12541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12542 }
12543 return resultobj;
12544 fail:
12545 return NULL;
12546 }
12547
12548
12549 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12550 PyObject *resultobj = 0;
12551 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12552 wxString result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12562 }
12563 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 {
12571 #if wxUSE_UNICODE
12572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12573 #else
12574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12575 #endif
12576 }
12577 return resultobj;
12578 fail:
12579 return NULL;
12580 }
12581
12582
12583 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12584 PyObject *resultobj = 0;
12585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12586 wxFontFamily result;
12587 void *argp1 = 0 ;
12588 int res1 = 0 ;
12589 PyObject *swig_obj[1] ;
12590
12591 if (!args) SWIG_fail;
12592 swig_obj[0] = args;
12593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12594 if (!SWIG_IsOK(res1)) {
12595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12596 }
12597 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 resultobj = SWIG_From_int(static_cast< int >(result));
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 PyObject *resultobj = 0;
12613 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12614 wxFontEncoding result;
12615 void *argp1 = 0 ;
12616 int res1 = 0 ;
12617 PyObject *swig_obj[1] ;
12618
12619 if (!args) SWIG_fail;
12620 swig_obj[0] = args;
12621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12622 if (!SWIG_IsOK(res1)) {
12623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12624 }
12625 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 resultobj = SWIG_From_int(static_cast< int >(result));
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj = 0;
12641 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12642 int arg2 ;
12643 void *argp1 = 0 ;
12644 int res1 = 0 ;
12645 int val2 ;
12646 int ecode2 = 0 ;
12647 PyObject * obj0 = 0 ;
12648 PyObject * obj1 = 0 ;
12649 char * kwnames[] = {
12650 (char *) "self",(char *) "pointsize", NULL
12651 };
12652
12653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12655 if (!SWIG_IsOK(res1)) {
12656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12657 }
12658 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12659 ecode2 = SWIG_AsVal_int(obj1, &val2);
12660 if (!SWIG_IsOK(ecode2)) {
12661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12662 }
12663 arg2 = static_cast< int >(val2);
12664 {
12665 PyThreadState* __tstate = wxPyBeginAllowThreads();
12666 (arg1)->SetPointSize(arg2);
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 resultobj = SWIG_Py_Void();
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj = 0;
12679 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12680 wxSize *arg2 = 0 ;
12681 void *argp1 = 0 ;
12682 int res1 = 0 ;
12683 wxSize temp2 ;
12684 PyObject * obj0 = 0 ;
12685 PyObject * obj1 = 0 ;
12686 char * kwnames[] = {
12687 (char *) "self",(char *) "pixelSize", NULL
12688 };
12689
12690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12692 if (!SWIG_IsOK(res1)) {
12693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12694 }
12695 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12696 {
12697 arg2 = &temp2;
12698 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12699 }
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 (arg1)->SetPixelSize((wxSize const &)*arg2);
12703 wxPyEndAllowThreads(__tstate);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 }
12706 resultobj = SWIG_Py_Void();
12707 return resultobj;
12708 fail:
12709 return NULL;
12710 }
12711
12712
12713 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12714 PyObject *resultobj = 0;
12715 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12716 wxFontStyle arg2 ;
12717 void *argp1 = 0 ;
12718 int res1 = 0 ;
12719 int val2 ;
12720 int ecode2 = 0 ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "style", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12731 }
12732 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12733 ecode2 = SWIG_AsVal_int(obj1, &val2);
12734 if (!SWIG_IsOK(ecode2)) {
12735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12736 }
12737 arg2 = static_cast< wxFontStyle >(val2);
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->SetStyle(arg2);
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = SWIG_Py_Void();
12745 return resultobj;
12746 fail:
12747 return NULL;
12748 }
12749
12750
12751 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12752 PyObject *resultobj = 0;
12753 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12754 wxFontWeight arg2 ;
12755 void *argp1 = 0 ;
12756 int res1 = 0 ;
12757 int val2 ;
12758 int ecode2 = 0 ;
12759 PyObject * obj0 = 0 ;
12760 PyObject * obj1 = 0 ;
12761 char * kwnames[] = {
12762 (char *) "self",(char *) "weight", NULL
12763 };
12764
12765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12767 if (!SWIG_IsOK(res1)) {
12768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12769 }
12770 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12771 ecode2 = SWIG_AsVal_int(obj1, &val2);
12772 if (!SWIG_IsOK(ecode2)) {
12773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12774 }
12775 arg2 = static_cast< wxFontWeight >(val2);
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 (arg1)->SetWeight(arg2);
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 resultobj = SWIG_Py_Void();
12783 return resultobj;
12784 fail:
12785 return NULL;
12786 }
12787
12788
12789 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj = 0;
12791 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12792 bool arg2 ;
12793 void *argp1 = 0 ;
12794 int res1 = 0 ;
12795 bool val2 ;
12796 int ecode2 = 0 ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 char * kwnames[] = {
12800 (char *) "self",(char *) "underlined", NULL
12801 };
12802
12803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12805 if (!SWIG_IsOK(res1)) {
12806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12807 }
12808 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12809 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12810 if (!SWIG_IsOK(ecode2)) {
12811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12812 }
12813 arg2 = static_cast< bool >(val2);
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 (arg1)->SetUnderlined(arg2);
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 resultobj = SWIG_Py_Void();
12821 return resultobj;
12822 fail:
12823 return NULL;
12824 }
12825
12826
12827 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12828 PyObject *resultobj = 0;
12829 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12830 wxString arg2 ;
12831 bool result;
12832 void *argp1 = 0 ;
12833 int res1 = 0 ;
12834 PyObject * obj0 = 0 ;
12835 PyObject * obj1 = 0 ;
12836 char * kwnames[] = {
12837 (char *) "self",(char *) "facename", NULL
12838 };
12839
12840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12842 if (!SWIG_IsOK(res1)) {
12843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12844 }
12845 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12846 {
12847 wxString* sptr = wxString_in_helper(obj1);
12848 if (sptr == NULL) SWIG_fail;
12849 arg2 = *sptr;
12850 delete sptr;
12851 }
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 result = (bool)(arg1)->SetFaceName(arg2);
12855 wxPyEndAllowThreads(__tstate);
12856 if (PyErr_Occurred()) SWIG_fail;
12857 }
12858 {
12859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12860 }
12861 return resultobj;
12862 fail:
12863 return NULL;
12864 }
12865
12866
12867 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12868 PyObject *resultobj = 0;
12869 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12870 wxFontFamily arg2 ;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 int val2 ;
12874 int ecode2 = 0 ;
12875 PyObject * obj0 = 0 ;
12876 PyObject * obj1 = 0 ;
12877 char * kwnames[] = {
12878 (char *) "self",(char *) "family", NULL
12879 };
12880
12881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12883 if (!SWIG_IsOK(res1)) {
12884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12885 }
12886 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12887 ecode2 = SWIG_AsVal_int(obj1, &val2);
12888 if (!SWIG_IsOK(ecode2)) {
12889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12890 }
12891 arg2 = static_cast< wxFontFamily >(val2);
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 (arg1)->SetFamily(arg2);
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 resultobj = SWIG_Py_Void();
12899 return resultobj;
12900 fail:
12901 return NULL;
12902 }
12903
12904
12905 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12906 PyObject *resultobj = 0;
12907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12908 wxFontEncoding arg2 ;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 int val2 ;
12912 int ecode2 = 0 ;
12913 PyObject * obj0 = 0 ;
12914 PyObject * obj1 = 0 ;
12915 char * kwnames[] = {
12916 (char *) "self",(char *) "encoding", NULL
12917 };
12918
12919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12923 }
12924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12925 ecode2 = SWIG_AsVal_int(obj1, &val2);
12926 if (!SWIG_IsOK(ecode2)) {
12927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12928 }
12929 arg2 = static_cast< wxFontEncoding >(val2);
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 (arg1)->SetEncoding(arg2);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 resultobj = SWIG_Py_Void();
12937 return resultobj;
12938 fail:
12939 return NULL;
12940 }
12941
12942
12943 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj = 0;
12945 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12946 wxString *arg2 = 0 ;
12947 bool result;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 bool temp2 = false ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 char * kwnames[] = {
12954 (char *) "self",(char *) "s", NULL
12955 };
12956
12957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12959 if (!SWIG_IsOK(res1)) {
12960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12961 }
12962 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12963 {
12964 arg2 = wxString_in_helper(obj1);
12965 if (arg2 == NULL) SWIG_fail;
12966 temp2 = true;
12967 }
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 {
12975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12976 }
12977 {
12978 if (temp2)
12979 delete arg2;
12980 }
12981 return resultobj;
12982 fail:
12983 {
12984 if (temp2)
12985 delete arg2;
12986 }
12987 return NULL;
12988 }
12989
12990
12991 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *resultobj = 0;
12993 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12994 wxString result;
12995 void *argp1 = 0 ;
12996 int res1 = 0 ;
12997 PyObject *swig_obj[1] ;
12998
12999 if (!args) SWIG_fail;
13000 swig_obj[0] = args;
13001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13002 if (!SWIG_IsOK(res1)) {
13003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13004 }
13005 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 result = ((wxNativeFontInfo const *)arg1)->ToString();
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 {
13013 #if wxUSE_UNICODE
13014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13015 #else
13016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13017 #endif
13018 }
13019 return resultobj;
13020 fail:
13021 return NULL;
13022 }
13023
13024
13025 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13026 PyObject *resultobj = 0;
13027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13028 wxString result;
13029 void *argp1 = 0 ;
13030 int res1 = 0 ;
13031 PyObject *swig_obj[1] ;
13032
13033 if (!args) SWIG_fail;
13034 swig_obj[0] = args;
13035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13036 if (!SWIG_IsOK(res1)) {
13037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13038 }
13039 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = wxNativeFontInfo___str__(arg1);
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 {
13047 #if wxUSE_UNICODE
13048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13049 #else
13050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13051 #endif
13052 }
13053 return resultobj;
13054 fail:
13055 return NULL;
13056 }
13057
13058
13059 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj = 0;
13061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13062 wxString *arg2 = 0 ;
13063 bool result;
13064 void *argp1 = 0 ;
13065 int res1 = 0 ;
13066 bool temp2 = false ;
13067 PyObject * obj0 = 0 ;
13068 PyObject * obj1 = 0 ;
13069 char * kwnames[] = {
13070 (char *) "self",(char *) "s", NULL
13071 };
13072
13073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13077 }
13078 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13079 {
13080 arg2 = wxString_in_helper(obj1);
13081 if (arg2 == NULL) SWIG_fail;
13082 temp2 = true;
13083 }
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 {
13091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13092 }
13093 {
13094 if (temp2)
13095 delete arg2;
13096 }
13097 return resultobj;
13098 fail:
13099 {
13100 if (temp2)
13101 delete arg2;
13102 }
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13110 wxString result;
13111 void *argp1 = 0 ;
13112 int res1 = 0 ;
13113 PyObject *swig_obj[1] ;
13114
13115 if (!args) SWIG_fail;
13116 swig_obj[0] = args;
13117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13120 }
13121 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 {
13129 #if wxUSE_UNICODE
13130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13131 #else
13132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13133 #endif
13134 }
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13142 PyObject *obj;
13143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13144 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13145 return SWIG_Py_Void();
13146 }
13147
13148 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13149 return SWIG_Python_InitShadowInstance(args);
13150 }
13151
13152 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13153 PyObject *resultobj = 0;
13154 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13155 wxString *arg2 = (wxString *) 0 ;
13156 void *argp1 = 0 ;
13157 int res1 = 0 ;
13158 bool temp2 = false ;
13159 PyObject *swig_obj[2] ;
13160
13161 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13163 if (!SWIG_IsOK(res1)) {
13164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13165 }
13166 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13167 {
13168 arg2 = wxString_in_helper(swig_obj[1]);
13169 if (arg2 == NULL) SWIG_fail;
13170 temp2 = true;
13171 }
13172 if (arg1) (arg1)->facename = *arg2;
13173
13174 resultobj = SWIG_Py_Void();
13175 {
13176 if (temp2)
13177 delete arg2;
13178 }
13179 return resultobj;
13180 fail:
13181 {
13182 if (temp2)
13183 delete arg2;
13184 }
13185 return NULL;
13186 }
13187
13188
13189 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13190 PyObject *resultobj = 0;
13191 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13192 wxString *result = 0 ;
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 PyObject *swig_obj[1] ;
13196
13197 if (!args) SWIG_fail;
13198 swig_obj[0] = args;
13199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13200 if (!SWIG_IsOK(res1)) {
13201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13202 }
13203 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13204 result = (wxString *)& ((arg1)->facename);
13205 {
13206 #if wxUSE_UNICODE
13207 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13208 #else
13209 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13210 #endif
13211 }
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13219 PyObject *resultobj = 0;
13220 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13221 wxFontEncoding arg2 ;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 int val2 ;
13225 int ecode2 = 0 ;
13226 PyObject *swig_obj[2] ;
13227
13228 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13232 }
13233 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13234 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13235 if (!SWIG_IsOK(ecode2)) {
13236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13237 }
13238 arg2 = static_cast< wxFontEncoding >(val2);
13239 if (arg1) (arg1)->encoding = arg2;
13240
13241 resultobj = SWIG_Py_Void();
13242 return resultobj;
13243 fail:
13244 return NULL;
13245 }
13246
13247
13248 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13249 PyObject *resultobj = 0;
13250 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13251 wxFontEncoding result;
13252 void *argp1 = 0 ;
13253 int res1 = 0 ;
13254 PyObject *swig_obj[1] ;
13255
13256 if (!args) SWIG_fail;
13257 swig_obj[0] = args;
13258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13259 if (!SWIG_IsOK(res1)) {
13260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13261 }
13262 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13263 result = (wxFontEncoding) ((arg1)->encoding);
13264 resultobj = SWIG_From_int(static_cast< int >(result));
13265 return resultobj;
13266 fail:
13267 return NULL;
13268 }
13269
13270
13271 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13272 PyObject *resultobj = 0;
13273 wxNativeEncodingInfo *result = 0 ;
13274
13275 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13283 return resultobj;
13284 fail:
13285 return NULL;
13286 }
13287
13288
13289 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13290 PyObject *resultobj = 0;
13291 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13292 void *argp1 = 0 ;
13293 int res1 = 0 ;
13294 PyObject *swig_obj[1] ;
13295
13296 if (!args) SWIG_fail;
13297 swig_obj[0] = args;
13298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13299 if (!SWIG_IsOK(res1)) {
13300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13301 }
13302 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 delete arg1;
13306
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 resultobj = SWIG_Py_Void();
13311 return resultobj;
13312 fail:
13313 return NULL;
13314 }
13315
13316
13317 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13318 PyObject *resultobj = 0;
13319 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13320 wxString *arg2 = 0 ;
13321 bool result;
13322 void *argp1 = 0 ;
13323 int res1 = 0 ;
13324 bool temp2 = false ;
13325 PyObject * obj0 = 0 ;
13326 PyObject * obj1 = 0 ;
13327 char * kwnames[] = {
13328 (char *) "self",(char *) "s", NULL
13329 };
13330
13331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13335 }
13336 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13337 {
13338 arg2 = wxString_in_helper(obj1);
13339 if (arg2 == NULL) SWIG_fail;
13340 temp2 = true;
13341 }
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13345 wxPyEndAllowThreads(__tstate);
13346 if (PyErr_Occurred()) SWIG_fail;
13347 }
13348 {
13349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13350 }
13351 {
13352 if (temp2)
13353 delete arg2;
13354 }
13355 return resultobj;
13356 fail:
13357 {
13358 if (temp2)
13359 delete arg2;
13360 }
13361 return NULL;
13362 }
13363
13364
13365 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13366 PyObject *resultobj = 0;
13367 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13368 wxString result;
13369 void *argp1 = 0 ;
13370 int res1 = 0 ;
13371 PyObject *swig_obj[1] ;
13372
13373 if (!args) SWIG_fail;
13374 swig_obj[0] = args;
13375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13376 if (!SWIG_IsOK(res1)) {
13377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13378 }
13379 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13380 {
13381 PyThreadState* __tstate = wxPyBeginAllowThreads();
13382 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13383 wxPyEndAllowThreads(__tstate);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 }
13386 {
13387 #if wxUSE_UNICODE
13388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13389 #else
13390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13391 #endif
13392 }
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13400 PyObject *obj;
13401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13402 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13403 return SWIG_Py_Void();
13404 }
13405
13406 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13407 return SWIG_Python_InitShadowInstance(args);
13408 }
13409
13410 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj = 0;
13412 wxFontEncoding arg1 ;
13413 wxNativeEncodingInfo *result = 0 ;
13414 int val1 ;
13415 int ecode1 = 0 ;
13416 PyObject * obj0 = 0 ;
13417 char * kwnames[] = {
13418 (char *) "encoding", NULL
13419 };
13420
13421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13422 ecode1 = SWIG_AsVal_int(obj0, &val1);
13423 if (!SWIG_IsOK(ecode1)) {
13424 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13425 }
13426 arg1 = static_cast< wxFontEncoding >(val1);
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj = 0;
13442 wxNativeEncodingInfo *arg1 = 0 ;
13443 bool result;
13444 void *argp1 = 0 ;
13445 int res1 = 0 ;
13446 PyObject * obj0 = 0 ;
13447 char * kwnames[] = {
13448 (char *) "info", NULL
13449 };
13450
13451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13452 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13455 }
13456 if (!argp1) {
13457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13458 }
13459 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13468 }
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13476 PyObject *resultobj = 0;
13477 wxFontMapper *result = 0 ;
13478
13479 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (wxFontMapper *)new wxFontMapper();
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13494 PyObject *resultobj = 0;
13495 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13505 }
13506 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 delete arg1;
13510
13511 wxPyEndAllowThreads(__tstate);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 resultobj = SWIG_Py_Void();
13515 return resultobj;
13516 fail:
13517 return NULL;
13518 }
13519
13520
13521 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13522 PyObject *resultobj = 0;
13523 wxFontMapper *result = 0 ;
13524
13525 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (wxFontMapper *)wxFontMapper::Get();
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13533 return resultobj;
13534 fail:
13535 return NULL;
13536 }
13537
13538
13539 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13540 PyObject *resultobj = 0;
13541 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13542 wxFontMapper *result = 0 ;
13543 void *argp1 = 0 ;
13544 int res1 = 0 ;
13545 PyObject * obj0 = 0 ;
13546 char * kwnames[] = {
13547 (char *) "mapper", NULL
13548 };
13549
13550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13554 }
13555 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13563 return resultobj;
13564 fail:
13565 return NULL;
13566 }
13567
13568
13569 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13570 PyObject *resultobj = 0;
13571 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13572 wxString *arg2 = 0 ;
13573 bool arg3 = (bool) true ;
13574 wxFontEncoding result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 bool temp2 = false ;
13578 bool val3 ;
13579 int ecode3 = 0 ;
13580 PyObject * obj0 = 0 ;
13581 PyObject * obj1 = 0 ;
13582 PyObject * obj2 = 0 ;
13583 char * kwnames[] = {
13584 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13585 };
13586
13587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13591 }
13592 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13593 {
13594 arg2 = wxString_in_helper(obj1);
13595 if (arg2 == NULL) SWIG_fail;
13596 temp2 = true;
13597 }
13598 if (obj2) {
13599 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13600 if (!SWIG_IsOK(ecode3)) {
13601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13602 }
13603 arg3 = static_cast< bool >(val3);
13604 }
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 resultobj = SWIG_From_int(static_cast< int >(result));
13612 {
13613 if (temp2)
13614 delete arg2;
13615 }
13616 return resultobj;
13617 fail:
13618 {
13619 if (temp2)
13620 delete arg2;
13621 }
13622 return NULL;
13623 }
13624
13625
13626 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13627 PyObject *resultobj = 0;
13628 size_t result;
13629
13630 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13631 {
13632 PyThreadState* __tstate = wxPyBeginAllowThreads();
13633 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13634 wxPyEndAllowThreads(__tstate);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13638 return resultobj;
13639 fail:
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj = 0;
13646 size_t arg1 ;
13647 wxFontEncoding result;
13648 size_t val1 ;
13649 int ecode1 = 0 ;
13650 PyObject * obj0 = 0 ;
13651 char * kwnames[] = {
13652 (char *) "n", NULL
13653 };
13654
13655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13656 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13657 if (!SWIG_IsOK(ecode1)) {
13658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13659 }
13660 arg1 = static_cast< size_t >(val1);
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 resultobj = SWIG_From_int(static_cast< int >(result));
13668 return resultobj;
13669 fail:
13670 return NULL;
13671 }
13672
13673
13674 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13675 PyObject *resultobj = 0;
13676 wxFontEncoding arg1 ;
13677 wxString result;
13678 int val1 ;
13679 int ecode1 = 0 ;
13680 PyObject * obj0 = 0 ;
13681 char * kwnames[] = {
13682 (char *) "encoding", NULL
13683 };
13684
13685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13686 ecode1 = SWIG_AsVal_int(obj0, &val1);
13687 if (!SWIG_IsOK(ecode1)) {
13688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13689 }
13690 arg1 = static_cast< wxFontEncoding >(val1);
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 result = wxFontMapper::GetEncodingName(arg1);
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 {
13698 #if wxUSE_UNICODE
13699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13700 #else
13701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13702 #endif
13703 }
13704 return resultobj;
13705 fail:
13706 return NULL;
13707 }
13708
13709
13710 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13711 PyObject *resultobj = 0;
13712 wxFontEncoding arg1 ;
13713 wxString result;
13714 int val1 ;
13715 int ecode1 = 0 ;
13716 PyObject * obj0 = 0 ;
13717 char * kwnames[] = {
13718 (char *) "encoding", NULL
13719 };
13720
13721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13722 ecode1 = SWIG_AsVal_int(obj0, &val1);
13723 if (!SWIG_IsOK(ecode1)) {
13724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13725 }
13726 arg1 = static_cast< wxFontEncoding >(val1);
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 result = wxFontMapper::GetEncodingDescription(arg1);
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 #if wxUSE_UNICODE
13735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13736 #else
13737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13738 #endif
13739 }
13740 return resultobj;
13741 fail:
13742 return NULL;
13743 }
13744
13745
13746 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj = 0;
13748 wxString *arg1 = 0 ;
13749 wxFontEncoding result;
13750 bool temp1 = false ;
13751 PyObject * obj0 = 0 ;
13752 char * kwnames[] = {
13753 (char *) "name", NULL
13754 };
13755
13756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13757 {
13758 arg1 = wxString_in_helper(obj0);
13759 if (arg1 == NULL) SWIG_fail;
13760 temp1 = true;
13761 }
13762 {
13763 PyThreadState* __tstate = wxPyBeginAllowThreads();
13764 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 resultobj = SWIG_From_int(static_cast< int >(result));
13769 {
13770 if (temp1)
13771 delete arg1;
13772 }
13773 return resultobj;
13774 fail:
13775 {
13776 if (temp1)
13777 delete arg1;
13778 }
13779 return NULL;
13780 }
13781
13782
13783 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj = 0;
13785 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13786 wxString *arg2 = 0 ;
13787 void *argp1 = 0 ;
13788 int res1 = 0 ;
13789 bool temp2 = false ;
13790 PyObject * obj0 = 0 ;
13791 PyObject * obj1 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "self",(char *) "prefix", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13798 if (!SWIG_IsOK(res1)) {
13799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13800 }
13801 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13802 {
13803 arg2 = wxString_in_helper(obj1);
13804 if (arg2 == NULL) SWIG_fail;
13805 temp2 = true;
13806 }
13807 {
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 (arg1)->SetConfigPath((wxString const &)*arg2);
13810 wxPyEndAllowThreads(__tstate);
13811 if (PyErr_Occurred()) SWIG_fail;
13812 }
13813 resultobj = SWIG_Py_Void();
13814 {
13815 if (temp2)
13816 delete arg2;
13817 }
13818 return resultobj;
13819 fail:
13820 {
13821 if (temp2)
13822 delete arg2;
13823 }
13824 return NULL;
13825 }
13826
13827
13828 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13829 PyObject *resultobj = 0;
13830 wxString result;
13831
13832 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 result = wxFontMapper::GetDefaultConfigPath();
13836 wxPyEndAllowThreads(__tstate);
13837 if (PyErr_Occurred()) SWIG_fail;
13838 }
13839 {
13840 #if wxUSE_UNICODE
13841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13842 #else
13843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13844 #endif
13845 }
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj = 0;
13854 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13855 wxFontEncoding arg2 ;
13856 wxString const &arg3_defvalue = wxPyEmptyString ;
13857 wxString *arg3 = (wxString *) &arg3_defvalue ;
13858 bool arg4 = (bool) true ;
13859 PyObject *result = 0 ;
13860 void *argp1 = 0 ;
13861 int res1 = 0 ;
13862 int val2 ;
13863 int ecode2 = 0 ;
13864 bool temp3 = false ;
13865 bool val4 ;
13866 int ecode4 = 0 ;
13867 PyObject * obj0 = 0 ;
13868 PyObject * obj1 = 0 ;
13869 PyObject * obj2 = 0 ;
13870 PyObject * obj3 = 0 ;
13871 char * kwnames[] = {
13872 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13873 };
13874
13875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13877 if (!SWIG_IsOK(res1)) {
13878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13879 }
13880 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13881 ecode2 = SWIG_AsVal_int(obj1, &val2);
13882 if (!SWIG_IsOK(ecode2)) {
13883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13884 }
13885 arg2 = static_cast< wxFontEncoding >(val2);
13886 if (obj2) {
13887 {
13888 arg3 = wxString_in_helper(obj2);
13889 if (arg3 == NULL) SWIG_fail;
13890 temp3 = true;
13891 }
13892 }
13893 if (obj3) {
13894 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13895 if (!SWIG_IsOK(ecode4)) {
13896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13897 }
13898 arg4 = static_cast< bool >(val4);
13899 }
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 resultobj = result;
13907 {
13908 if (temp3)
13909 delete arg3;
13910 }
13911 return resultobj;
13912 fail:
13913 {
13914 if (temp3)
13915 delete arg3;
13916 }
13917 return NULL;
13918 }
13919
13920
13921 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13924 wxFontEncoding arg2 ;
13925 wxString const &arg3_defvalue = wxPyEmptyString ;
13926 wxString *arg3 = (wxString *) &arg3_defvalue ;
13927 bool result;
13928 void *argp1 = 0 ;
13929 int res1 = 0 ;
13930 int val2 ;
13931 int ecode2 = 0 ;
13932 bool temp3 = false ;
13933 PyObject * obj0 = 0 ;
13934 PyObject * obj1 = 0 ;
13935 PyObject * obj2 = 0 ;
13936 char * kwnames[] = {
13937 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13938 };
13939
13940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13942 if (!SWIG_IsOK(res1)) {
13943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13944 }
13945 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13946 ecode2 = SWIG_AsVal_int(obj1, &val2);
13947 if (!SWIG_IsOK(ecode2)) {
13948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13949 }
13950 arg2 = static_cast< wxFontEncoding >(val2);
13951 if (obj2) {
13952 {
13953 arg3 = wxString_in_helper(obj2);
13954 if (arg3 == NULL) SWIG_fail;
13955 temp3 = true;
13956 }
13957 }
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 {
13965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13966 }
13967 {
13968 if (temp3)
13969 delete arg3;
13970 }
13971 return resultobj;
13972 fail:
13973 {
13974 if (temp3)
13975 delete arg3;
13976 }
13977 return NULL;
13978 }
13979
13980
13981 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13982 PyObject *resultobj = 0;
13983 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13984 wxWindow *arg2 = (wxWindow *) 0 ;
13985 void *argp1 = 0 ;
13986 int res1 = 0 ;
13987 void *argp2 = 0 ;
13988 int res2 = 0 ;
13989 PyObject * obj0 = 0 ;
13990 PyObject * obj1 = 0 ;
13991 char * kwnames[] = {
13992 (char *) "self",(char *) "parent", NULL
13993 };
13994
13995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13997 if (!SWIG_IsOK(res1)) {
13998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13999 }
14000 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14001 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14002 if (!SWIG_IsOK(res2)) {
14003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14004 }
14005 arg2 = reinterpret_cast< wxWindow * >(argp2);
14006 {
14007 PyThreadState* __tstate = wxPyBeginAllowThreads();
14008 (arg1)->SetDialogParent(arg2);
14009 wxPyEndAllowThreads(__tstate);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
14012 resultobj = SWIG_Py_Void();
14013 return resultobj;
14014 fail:
14015 return NULL;
14016 }
14017
14018
14019 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14020 PyObject *resultobj = 0;
14021 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14022 wxString *arg2 = 0 ;
14023 void *argp1 = 0 ;
14024 int res1 = 0 ;
14025 bool temp2 = false ;
14026 PyObject * obj0 = 0 ;
14027 PyObject * obj1 = 0 ;
14028 char * kwnames[] = {
14029 (char *) "self",(char *) "title", NULL
14030 };
14031
14032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14034 if (!SWIG_IsOK(res1)) {
14035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14036 }
14037 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14038 {
14039 arg2 = wxString_in_helper(obj1);
14040 if (arg2 == NULL) SWIG_fail;
14041 temp2 = true;
14042 }
14043 {
14044 PyThreadState* __tstate = wxPyBeginAllowThreads();
14045 (arg1)->SetDialogTitle((wxString const &)*arg2);
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_Py_Void();
14050 {
14051 if (temp2)
14052 delete arg2;
14053 }
14054 return resultobj;
14055 fail:
14056 {
14057 if (temp2)
14058 delete arg2;
14059 }
14060 return NULL;
14061 }
14062
14063
14064 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14065 PyObject *obj;
14066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14067 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14068 return SWIG_Py_Void();
14069 }
14070
14071 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14072 return SWIG_Python_InitShadowInstance(args);
14073 }
14074
14075 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14076 PyObject *resultobj = 0;
14077 int arg1 ;
14078 int arg2 ;
14079 int arg3 ;
14080 int arg4 ;
14081 bool arg5 = (bool) false ;
14082 wxString const &arg6_defvalue = wxPyEmptyString ;
14083 wxString *arg6 = (wxString *) &arg6_defvalue ;
14084 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14085 wxFont *result = 0 ;
14086 int val1 ;
14087 int ecode1 = 0 ;
14088 int val2 ;
14089 int ecode2 = 0 ;
14090 int val3 ;
14091 int ecode3 = 0 ;
14092 int val4 ;
14093 int ecode4 = 0 ;
14094 bool val5 ;
14095 int ecode5 = 0 ;
14096 bool temp6 = false ;
14097 int val7 ;
14098 int ecode7 = 0 ;
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 PyObject * obj2 = 0 ;
14102 PyObject * obj3 = 0 ;
14103 PyObject * obj4 = 0 ;
14104 PyObject * obj5 = 0 ;
14105 PyObject * obj6 = 0 ;
14106 char * kwnames[] = {
14107 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14108 };
14109
14110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14111 ecode1 = SWIG_AsVal_int(obj0, &val1);
14112 if (!SWIG_IsOK(ecode1)) {
14113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14114 }
14115 arg1 = static_cast< int >(val1);
14116 ecode2 = SWIG_AsVal_int(obj1, &val2);
14117 if (!SWIG_IsOK(ecode2)) {
14118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14119 }
14120 arg2 = static_cast< int >(val2);
14121 ecode3 = SWIG_AsVal_int(obj2, &val3);
14122 if (!SWIG_IsOK(ecode3)) {
14123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14124 }
14125 arg3 = static_cast< int >(val3);
14126 ecode4 = SWIG_AsVal_int(obj3, &val4);
14127 if (!SWIG_IsOK(ecode4)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14129 }
14130 arg4 = static_cast< int >(val4);
14131 if (obj4) {
14132 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14133 if (!SWIG_IsOK(ecode5)) {
14134 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14135 }
14136 arg5 = static_cast< bool >(val5);
14137 }
14138 if (obj5) {
14139 {
14140 arg6 = wxString_in_helper(obj5);
14141 if (arg6 == NULL) SWIG_fail;
14142 temp6 = true;
14143 }
14144 }
14145 if (obj6) {
14146 ecode7 = SWIG_AsVal_int(obj6, &val7);
14147 if (!SWIG_IsOK(ecode7)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14149 }
14150 arg7 = static_cast< wxFontEncoding >(val7);
14151 }
14152 {
14153 if (!wxPyCheckForApp()) SWIG_fail;
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14156 wxPyEndAllowThreads(__tstate);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 }
14159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14160 {
14161 if (temp6)
14162 delete arg6;
14163 }
14164 return resultobj;
14165 fail:
14166 {
14167 if (temp6)
14168 delete arg6;
14169 }
14170 return NULL;
14171 }
14172
14173
14174 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14175 PyObject *resultobj = 0;
14176 wxFont *arg1 = (wxFont *) 0 ;
14177 void *argp1 = 0 ;
14178 int res1 = 0 ;
14179 PyObject *swig_obj[1] ;
14180
14181 if (!args) SWIG_fail;
14182 swig_obj[0] = args;
14183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14184 if (!SWIG_IsOK(res1)) {
14185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14186 }
14187 arg1 = reinterpret_cast< wxFont * >(argp1);
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 delete arg1;
14191
14192 wxPyEndAllowThreads(__tstate);
14193 if (PyErr_Occurred()) SWIG_fail;
14194 }
14195 resultobj = SWIG_Py_Void();
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj = 0;
14204 wxNativeFontInfo *arg1 = 0 ;
14205 wxFont *result = 0 ;
14206 void *argp1 = 0 ;
14207 int res1 = 0 ;
14208 PyObject * obj0 = 0 ;
14209 char * kwnames[] = {
14210 (char *) "info", NULL
14211 };
14212
14213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14214 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14215 if (!SWIG_IsOK(res1)) {
14216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14217 }
14218 if (!argp1) {
14219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14220 }
14221 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14222 {
14223 if (!wxPyCheckForApp()) SWIG_fail;
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14226 wxPyEndAllowThreads(__tstate);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14230 return resultobj;
14231 fail:
14232 return NULL;
14233 }
14234
14235
14236 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj = 0;
14238 wxString *arg1 = 0 ;
14239 wxFont *result = 0 ;
14240 bool temp1 = false ;
14241 PyObject * obj0 = 0 ;
14242 char * kwnames[] = {
14243 (char *) "info", NULL
14244 };
14245
14246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14247 {
14248 arg1 = wxString_in_helper(obj0);
14249 if (arg1 == NULL) SWIG_fail;
14250 temp1 = true;
14251 }
14252 {
14253 if (!wxPyCheckForApp()) SWIG_fail;
14254 PyThreadState* __tstate = wxPyBeginAllowThreads();
14255 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14260 {
14261 if (temp1)
14262 delete arg1;
14263 }
14264 return resultobj;
14265 fail:
14266 {
14267 if (temp1)
14268 delete arg1;
14269 }
14270 return NULL;
14271 }
14272
14273
14274 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14275 PyObject *resultobj = 0;
14276 int arg1 ;
14277 wxFontFamily arg2 ;
14278 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14279 wxString const &arg4_defvalue = wxPyEmptyString ;
14280 wxString *arg4 = (wxString *) &arg4_defvalue ;
14281 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14282 wxFont *result = 0 ;
14283 int val1 ;
14284 int ecode1 = 0 ;
14285 int val2 ;
14286 int ecode2 = 0 ;
14287 int val3 ;
14288 int ecode3 = 0 ;
14289 bool temp4 = false ;
14290 int val5 ;
14291 int ecode5 = 0 ;
14292 PyObject * obj0 = 0 ;
14293 PyObject * obj1 = 0 ;
14294 PyObject * obj2 = 0 ;
14295 PyObject * obj3 = 0 ;
14296 PyObject * obj4 = 0 ;
14297 char * kwnames[] = {
14298 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14299 };
14300
14301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14302 ecode1 = SWIG_AsVal_int(obj0, &val1);
14303 if (!SWIG_IsOK(ecode1)) {
14304 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14305 }
14306 arg1 = static_cast< int >(val1);
14307 ecode2 = SWIG_AsVal_int(obj1, &val2);
14308 if (!SWIG_IsOK(ecode2)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14310 }
14311 arg2 = static_cast< wxFontFamily >(val2);
14312 if (obj2) {
14313 ecode3 = SWIG_AsVal_int(obj2, &val3);
14314 if (!SWIG_IsOK(ecode3)) {
14315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14316 }
14317 arg3 = static_cast< int >(val3);
14318 }
14319 if (obj3) {
14320 {
14321 arg4 = wxString_in_helper(obj3);
14322 if (arg4 == NULL) SWIG_fail;
14323 temp4 = true;
14324 }
14325 }
14326 if (obj4) {
14327 ecode5 = SWIG_AsVal_int(obj4, &val5);
14328 if (!SWIG_IsOK(ecode5)) {
14329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14330 }
14331 arg5 = static_cast< wxFontEncoding >(val5);
14332 }
14333 {
14334 if (!wxPyCheckForApp()) SWIG_fail;
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14341 {
14342 if (temp4)
14343 delete arg4;
14344 }
14345 return resultobj;
14346 fail:
14347 {
14348 if (temp4)
14349 delete arg4;
14350 }
14351 return NULL;
14352 }
14353
14354
14355 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14356 PyObject *resultobj = 0;
14357 wxSize *arg1 = 0 ;
14358 int arg2 ;
14359 int arg3 ;
14360 int arg4 ;
14361 bool arg5 = (bool) false ;
14362 wxString const &arg6_defvalue = wxEmptyString ;
14363 wxString *arg6 = (wxString *) &arg6_defvalue ;
14364 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14365 wxFont *result = 0 ;
14366 wxSize temp1 ;
14367 int val2 ;
14368 int ecode2 = 0 ;
14369 int val3 ;
14370 int ecode3 = 0 ;
14371 int val4 ;
14372 int ecode4 = 0 ;
14373 bool val5 ;
14374 int ecode5 = 0 ;
14375 bool temp6 = false ;
14376 int val7 ;
14377 int ecode7 = 0 ;
14378 PyObject * obj0 = 0 ;
14379 PyObject * obj1 = 0 ;
14380 PyObject * obj2 = 0 ;
14381 PyObject * obj3 = 0 ;
14382 PyObject * obj4 = 0 ;
14383 PyObject * obj5 = 0 ;
14384 PyObject * obj6 = 0 ;
14385 char * kwnames[] = {
14386 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14387 };
14388
14389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14390 {
14391 arg1 = &temp1;
14392 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14393 }
14394 ecode2 = SWIG_AsVal_int(obj1, &val2);
14395 if (!SWIG_IsOK(ecode2)) {
14396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14397 }
14398 arg2 = static_cast< int >(val2);
14399 ecode3 = SWIG_AsVal_int(obj2, &val3);
14400 if (!SWIG_IsOK(ecode3)) {
14401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14402 }
14403 arg3 = static_cast< int >(val3);
14404 ecode4 = SWIG_AsVal_int(obj3, &val4);
14405 if (!SWIG_IsOK(ecode4)) {
14406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14407 }
14408 arg4 = static_cast< int >(val4);
14409 if (obj4) {
14410 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14411 if (!SWIG_IsOK(ecode5)) {
14412 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14413 }
14414 arg5 = static_cast< bool >(val5);
14415 }
14416 if (obj5) {
14417 {
14418 arg6 = wxString_in_helper(obj5);
14419 if (arg6 == NULL) SWIG_fail;
14420 temp6 = true;
14421 }
14422 }
14423 if (obj6) {
14424 ecode7 = SWIG_AsVal_int(obj6, &val7);
14425 if (!SWIG_IsOK(ecode7)) {
14426 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14427 }
14428 arg7 = static_cast< wxFontEncoding >(val7);
14429 }
14430 {
14431 if (!wxPyCheckForApp()) SWIG_fail;
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14438 {
14439 if (temp6)
14440 delete arg6;
14441 }
14442 return resultobj;
14443 fail:
14444 {
14445 if (temp6)
14446 delete arg6;
14447 }
14448 return NULL;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj = 0;
14454 wxSize *arg1 = 0 ;
14455 wxFontFamily arg2 ;
14456 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14457 wxString const &arg4_defvalue = wxEmptyString ;
14458 wxString *arg4 = (wxString *) &arg4_defvalue ;
14459 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14460 wxFont *result = 0 ;
14461 wxSize temp1 ;
14462 int val2 ;
14463 int ecode2 = 0 ;
14464 int val3 ;
14465 int ecode3 = 0 ;
14466 bool temp4 = false ;
14467 int val5 ;
14468 int ecode5 = 0 ;
14469 PyObject * obj0 = 0 ;
14470 PyObject * obj1 = 0 ;
14471 PyObject * obj2 = 0 ;
14472 PyObject * obj3 = 0 ;
14473 PyObject * obj4 = 0 ;
14474 char * kwnames[] = {
14475 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14476 };
14477
14478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14479 {
14480 arg1 = &temp1;
14481 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14482 }
14483 ecode2 = SWIG_AsVal_int(obj1, &val2);
14484 if (!SWIG_IsOK(ecode2)) {
14485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14486 }
14487 arg2 = static_cast< wxFontFamily >(val2);
14488 if (obj2) {
14489 ecode3 = SWIG_AsVal_int(obj2, &val3);
14490 if (!SWIG_IsOK(ecode3)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14492 }
14493 arg3 = static_cast< int >(val3);
14494 }
14495 if (obj3) {
14496 {
14497 arg4 = wxString_in_helper(obj3);
14498 if (arg4 == NULL) SWIG_fail;
14499 temp4 = true;
14500 }
14501 }
14502 if (obj4) {
14503 ecode5 = SWIG_AsVal_int(obj4, &val5);
14504 if (!SWIG_IsOK(ecode5)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14506 }
14507 arg5 = static_cast< wxFontEncoding >(val5);
14508 }
14509 {
14510 if (!wxPyCheckForApp()) SWIG_fail;
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14517 {
14518 if (temp4)
14519 delete arg4;
14520 }
14521 return resultobj;
14522 fail:
14523 {
14524 if (temp4)
14525 delete arg4;
14526 }
14527 return NULL;
14528 }
14529
14530
14531 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14532 PyObject *resultobj = 0;
14533 wxFont *arg1 = (wxFont *) 0 ;
14534 bool result;
14535 void *argp1 = 0 ;
14536 int res1 = 0 ;
14537 PyObject *swig_obj[1] ;
14538
14539 if (!args) SWIG_fail;
14540 swig_obj[0] = args;
14541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14542 if (!SWIG_IsOK(res1)) {
14543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14544 }
14545 arg1 = reinterpret_cast< wxFont * >(argp1);
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = (bool)((wxFont const *)arg1)->IsOk();
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14554 }
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj = 0;
14563 wxFont *arg1 = (wxFont *) 0 ;
14564 wxFont *arg2 = (wxFont *) 0 ;
14565 bool result;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 void *argp2 = 0 ;
14569 int res2 = 0 ;
14570 PyObject * obj0 = 0 ;
14571 PyObject * obj1 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "self",(char *) "other", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14580 }
14581 arg1 = reinterpret_cast< wxFont * >(argp1);
14582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14583 if (!SWIG_IsOK(res2)) {
14584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14585 }
14586 arg2 = reinterpret_cast< wxFont * >(argp2);
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 {
14594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14595 }
14596 return resultobj;
14597 fail:
14598 return NULL;
14599 }
14600
14601
14602 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14603 PyObject *resultobj = 0;
14604 wxFont *arg1 = (wxFont *) 0 ;
14605 wxFont *arg2 = (wxFont *) 0 ;
14606 bool result;
14607 void *argp1 = 0 ;
14608 int res1 = 0 ;
14609 void *argp2 = 0 ;
14610 int res2 = 0 ;
14611 PyObject * obj0 = 0 ;
14612 PyObject * obj1 = 0 ;
14613 char * kwnames[] = {
14614 (char *) "self",(char *) "other", NULL
14615 };
14616
14617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14619 if (!SWIG_IsOK(res1)) {
14620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14621 }
14622 arg1 = reinterpret_cast< wxFont * >(argp1);
14623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14624 if (!SWIG_IsOK(res2)) {
14625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14626 }
14627 arg2 = reinterpret_cast< wxFont * >(argp2);
14628 {
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 {
14635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14636 }
14637 return resultobj;
14638 fail:
14639 return NULL;
14640 }
14641
14642
14643 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14644 PyObject *resultobj = 0;
14645 wxFont *arg1 = (wxFont *) 0 ;
14646 int result;
14647 void *argp1 = 0 ;
14648 int res1 = 0 ;
14649 PyObject *swig_obj[1] ;
14650
14651 if (!args) SWIG_fail;
14652 swig_obj[0] = args;
14653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14654 if (!SWIG_IsOK(res1)) {
14655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14656 }
14657 arg1 = reinterpret_cast< wxFont * >(argp1);
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 result = (int)((wxFont const *)arg1)->GetPointSize();
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 resultobj = SWIG_From_int(static_cast< int >(result));
14665 return resultobj;
14666 fail:
14667 return NULL;
14668 }
14669
14670
14671 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14672 PyObject *resultobj = 0;
14673 wxFont *arg1 = (wxFont *) 0 ;
14674 wxSize result;
14675 void *argp1 = 0 ;
14676 int res1 = 0 ;
14677 PyObject *swig_obj[1] ;
14678
14679 if (!args) SWIG_fail;
14680 swig_obj[0] = args;
14681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14682 if (!SWIG_IsOK(res1)) {
14683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14684 }
14685 arg1 = reinterpret_cast< wxFont * >(argp1);
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 result = ((wxFont const *)arg1)->GetPixelSize();
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14700 PyObject *resultobj = 0;
14701 wxFont *arg1 = (wxFont *) 0 ;
14702 bool result;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 PyObject *swig_obj[1] ;
14706
14707 if (!args) SWIG_fail;
14708 swig_obj[0] = args;
14709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14712 }
14713 arg1 = reinterpret_cast< wxFont * >(argp1);
14714 {
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 {
14721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14722 }
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14730 PyObject *resultobj = 0;
14731 wxFont *arg1 = (wxFont *) 0 ;
14732 int result;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 PyObject *swig_obj[1] ;
14736
14737 if (!args) SWIG_fail;
14738 swig_obj[0] = args;
14739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14742 }
14743 arg1 = reinterpret_cast< wxFont * >(argp1);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (int)((wxFont const *)arg1)->GetFamily();
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_From_int(static_cast< int >(result));
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 int result;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 PyObject *swig_obj[1] ;
14764
14765 if (!args) SWIG_fail;
14766 swig_obj[0] = args;
14767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (int)((wxFont const *)arg1)->GetStyle();
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_From_int(static_cast< int >(result));
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14786 PyObject *resultobj = 0;
14787 wxFont *arg1 = (wxFont *) 0 ;
14788 int result;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 PyObject *swig_obj[1] ;
14792
14793 if (!args) SWIG_fail;
14794 swig_obj[0] = args;
14795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14796 if (!SWIG_IsOK(res1)) {
14797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14798 }
14799 arg1 = reinterpret_cast< wxFont * >(argp1);
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (int)((wxFont const *)arg1)->GetWeight();
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_From_int(static_cast< int >(result));
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14814 PyObject *resultobj = 0;
14815 wxFont *arg1 = (wxFont *) 0 ;
14816 bool result;
14817 void *argp1 = 0 ;
14818 int res1 = 0 ;
14819 PyObject *swig_obj[1] ;
14820
14821 if (!args) SWIG_fail;
14822 swig_obj[0] = args;
14823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14824 if (!SWIG_IsOK(res1)) {
14825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14826 }
14827 arg1 = reinterpret_cast< wxFont * >(argp1);
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 {
14835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14836 }
14837 return resultobj;
14838 fail:
14839 return NULL;
14840 }
14841
14842
14843 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14844 PyObject *resultobj = 0;
14845 wxFont *arg1 = (wxFont *) 0 ;
14846 wxString result;
14847 void *argp1 = 0 ;
14848 int res1 = 0 ;
14849 PyObject *swig_obj[1] ;
14850
14851 if (!args) SWIG_fail;
14852 swig_obj[0] = args;
14853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14854 if (!SWIG_IsOK(res1)) {
14855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14856 }
14857 arg1 = reinterpret_cast< wxFont * >(argp1);
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = ((wxFont const *)arg1)->GetFaceName();
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
14864 {
14865 #if wxUSE_UNICODE
14866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14867 #else
14868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14869 #endif
14870 }
14871 return resultobj;
14872 fail:
14873 return NULL;
14874 }
14875
14876
14877 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14878 PyObject *resultobj = 0;
14879 wxFont *arg1 = (wxFont *) 0 ;
14880 wxFontEncoding result;
14881 void *argp1 = 0 ;
14882 int res1 = 0 ;
14883 PyObject *swig_obj[1] ;
14884
14885 if (!args) SWIG_fail;
14886 swig_obj[0] = args;
14887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14888 if (!SWIG_IsOK(res1)) {
14889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14890 }
14891 arg1 = reinterpret_cast< wxFont * >(argp1);
14892 {
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_From_int(static_cast< int >(result));
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14906 PyObject *resultobj = 0;
14907 wxFont *arg1 = (wxFont *) 0 ;
14908 wxNativeFontInfo *result = 0 ;
14909 void *argp1 = 0 ;
14910 int res1 = 0 ;
14911 PyObject *swig_obj[1] ;
14912
14913 if (!args) SWIG_fail;
14914 swig_obj[0] = args;
14915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14918 }
14919 arg1 = reinterpret_cast< wxFont * >(argp1);
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14934 PyObject *resultobj = 0;
14935 wxFont *arg1 = (wxFont *) 0 ;
14936 bool result;
14937 void *argp1 = 0 ;
14938 int res1 = 0 ;
14939 PyObject *swig_obj[1] ;
14940
14941 if (!args) SWIG_fail;
14942 swig_obj[0] = args;
14943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14944 if (!SWIG_IsOK(res1)) {
14945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14946 }
14947 arg1 = reinterpret_cast< wxFont * >(argp1);
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 {
14955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14956 }
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14964 PyObject *resultobj = 0;
14965 wxFont *arg1 = (wxFont *) 0 ;
14966 wxString result;
14967 void *argp1 = 0 ;
14968 int res1 = 0 ;
14969 PyObject *swig_obj[1] ;
14970
14971 if (!args) SWIG_fail;
14972 swig_obj[0] = args;
14973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14974 if (!SWIG_IsOK(res1)) {
14975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14976 }
14977 arg1 = reinterpret_cast< wxFont * >(argp1);
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 {
14985 #if wxUSE_UNICODE
14986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14987 #else
14988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14989 #endif
14990 }
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14998 PyObject *resultobj = 0;
14999 wxFont *arg1 = (wxFont *) 0 ;
15000 wxString result;
15001 void *argp1 = 0 ;
15002 int res1 = 0 ;
15003 PyObject *swig_obj[1] ;
15004
15005 if (!args) SWIG_fail;
15006 swig_obj[0] = args;
15007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15010 }
15011 arg1 = reinterpret_cast< wxFont * >(argp1);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 {
15019 #if wxUSE_UNICODE
15020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15021 #else
15022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15023 #endif
15024 }
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 int arg2 ;
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 int val2 ;
15038 int ecode2 = 0 ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char * kwnames[] = {
15042 (char *) "self",(char *) "pointSize", NULL
15043 };
15044
15045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15049 }
15050 arg1 = reinterpret_cast< wxFont * >(argp1);
15051 ecode2 = SWIG_AsVal_int(obj1, &val2);
15052 if (!SWIG_IsOK(ecode2)) {
15053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15054 }
15055 arg2 = static_cast< int >(val2);
15056 {
15057 PyThreadState* __tstate = wxPyBeginAllowThreads();
15058 (arg1)->SetPointSize(arg2);
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 resultobj = SWIG_Py_Void();
15063 return resultobj;
15064 fail:
15065 return NULL;
15066 }
15067
15068
15069 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15070 PyObject *resultobj = 0;
15071 wxFont *arg1 = (wxFont *) 0 ;
15072 wxSize *arg2 = 0 ;
15073 void *argp1 = 0 ;
15074 int res1 = 0 ;
15075 wxSize temp2 ;
15076 PyObject * obj0 = 0 ;
15077 PyObject * obj1 = 0 ;
15078 char * kwnames[] = {
15079 (char *) "self",(char *) "pixelSize", NULL
15080 };
15081
15082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15084 if (!SWIG_IsOK(res1)) {
15085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15086 }
15087 arg1 = reinterpret_cast< wxFont * >(argp1);
15088 {
15089 arg2 = &temp2;
15090 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15091 }
15092 {
15093 PyThreadState* __tstate = wxPyBeginAllowThreads();
15094 (arg1)->SetPixelSize((wxSize const &)*arg2);
15095 wxPyEndAllowThreads(__tstate);
15096 if (PyErr_Occurred()) SWIG_fail;
15097 }
15098 resultobj = SWIG_Py_Void();
15099 return resultobj;
15100 fail:
15101 return NULL;
15102 }
15103
15104
15105 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15106 PyObject *resultobj = 0;
15107 wxFont *arg1 = (wxFont *) 0 ;
15108 int arg2 ;
15109 void *argp1 = 0 ;
15110 int res1 = 0 ;
15111 int val2 ;
15112 int ecode2 = 0 ;
15113 PyObject * obj0 = 0 ;
15114 PyObject * obj1 = 0 ;
15115 char * kwnames[] = {
15116 (char *) "self",(char *) "family", NULL
15117 };
15118
15119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15121 if (!SWIG_IsOK(res1)) {
15122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15123 }
15124 arg1 = reinterpret_cast< wxFont * >(argp1);
15125 ecode2 = SWIG_AsVal_int(obj1, &val2);
15126 if (!SWIG_IsOK(ecode2)) {
15127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15128 }
15129 arg2 = static_cast< int >(val2);
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 (arg1)->SetFamily(arg2);
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = SWIG_Py_Void();
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj = 0;
15145 wxFont *arg1 = (wxFont *) 0 ;
15146 int arg2 ;
15147 void *argp1 = 0 ;
15148 int res1 = 0 ;
15149 int val2 ;
15150 int ecode2 = 0 ;
15151 PyObject * obj0 = 0 ;
15152 PyObject * obj1 = 0 ;
15153 char * kwnames[] = {
15154 (char *) "self",(char *) "style", NULL
15155 };
15156
15157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15159 if (!SWIG_IsOK(res1)) {
15160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15161 }
15162 arg1 = reinterpret_cast< wxFont * >(argp1);
15163 ecode2 = SWIG_AsVal_int(obj1, &val2);
15164 if (!SWIG_IsOK(ecode2)) {
15165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15166 }
15167 arg2 = static_cast< int >(val2);
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 (arg1)->SetStyle(arg2);
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 resultobj = SWIG_Py_Void();
15175 return resultobj;
15176 fail:
15177 return NULL;
15178 }
15179
15180
15181 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15182 PyObject *resultobj = 0;
15183 wxFont *arg1 = (wxFont *) 0 ;
15184 int arg2 ;
15185 void *argp1 = 0 ;
15186 int res1 = 0 ;
15187 int val2 ;
15188 int ecode2 = 0 ;
15189 PyObject * obj0 = 0 ;
15190 PyObject * obj1 = 0 ;
15191 char * kwnames[] = {
15192 (char *) "self",(char *) "weight", NULL
15193 };
15194
15195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15197 if (!SWIG_IsOK(res1)) {
15198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15199 }
15200 arg1 = reinterpret_cast< wxFont * >(argp1);
15201 ecode2 = SWIG_AsVal_int(obj1, &val2);
15202 if (!SWIG_IsOK(ecode2)) {
15203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15204 }
15205 arg2 = static_cast< int >(val2);
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 (arg1)->SetWeight(arg2);
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 resultobj = SWIG_Py_Void();
15213 return resultobj;
15214 fail:
15215 return NULL;
15216 }
15217
15218
15219 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15220 PyObject *resultobj = 0;
15221 wxFont *arg1 = (wxFont *) 0 ;
15222 wxString *arg2 = 0 ;
15223 bool result;
15224 void *argp1 = 0 ;
15225 int res1 = 0 ;
15226 bool temp2 = false ;
15227 PyObject * obj0 = 0 ;
15228 PyObject * obj1 = 0 ;
15229 char * kwnames[] = {
15230 (char *) "self",(char *) "faceName", NULL
15231 };
15232
15233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15235 if (!SWIG_IsOK(res1)) {
15236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15237 }
15238 arg1 = reinterpret_cast< wxFont * >(argp1);
15239 {
15240 arg2 = wxString_in_helper(obj1);
15241 if (arg2 == NULL) SWIG_fail;
15242 temp2 = true;
15243 }
15244 {
15245 PyThreadState* __tstate = wxPyBeginAllowThreads();
15246 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15247 wxPyEndAllowThreads(__tstate);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 {
15251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15252 }
15253 {
15254 if (temp2)
15255 delete arg2;
15256 }
15257 return resultobj;
15258 fail:
15259 {
15260 if (temp2)
15261 delete arg2;
15262 }
15263 return NULL;
15264 }
15265
15266
15267 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15268 PyObject *resultobj = 0;
15269 wxFont *arg1 = (wxFont *) 0 ;
15270 bool arg2 ;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 bool val2 ;
15274 int ecode2 = 0 ;
15275 PyObject * obj0 = 0 ;
15276 PyObject * obj1 = 0 ;
15277 char * kwnames[] = {
15278 (char *) "self",(char *) "underlined", NULL
15279 };
15280
15281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15283 if (!SWIG_IsOK(res1)) {
15284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15285 }
15286 arg1 = reinterpret_cast< wxFont * >(argp1);
15287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15288 if (!SWIG_IsOK(ecode2)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15290 }
15291 arg2 = static_cast< bool >(val2);
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 (arg1)->SetUnderlined(arg2);
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = SWIG_Py_Void();
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj = 0;
15307 wxFont *arg1 = (wxFont *) 0 ;
15308 wxFontEncoding arg2 ;
15309 void *argp1 = 0 ;
15310 int res1 = 0 ;
15311 int val2 ;
15312 int ecode2 = 0 ;
15313 PyObject * obj0 = 0 ;
15314 PyObject * obj1 = 0 ;
15315 char * kwnames[] = {
15316 (char *) "self",(char *) "encoding", NULL
15317 };
15318
15319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15321 if (!SWIG_IsOK(res1)) {
15322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15323 }
15324 arg1 = reinterpret_cast< wxFont * >(argp1);
15325 ecode2 = SWIG_AsVal_int(obj1, &val2);
15326 if (!SWIG_IsOK(ecode2)) {
15327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15328 }
15329 arg2 = static_cast< wxFontEncoding >(val2);
15330 {
15331 PyThreadState* __tstate = wxPyBeginAllowThreads();
15332 (arg1)->SetEncoding(arg2);
15333 wxPyEndAllowThreads(__tstate);
15334 if (PyErr_Occurred()) SWIG_fail;
15335 }
15336 resultobj = SWIG_Py_Void();
15337 return resultobj;
15338 fail:
15339 return NULL;
15340 }
15341
15342
15343 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15344 PyObject *resultobj = 0;
15345 wxFont *arg1 = (wxFont *) 0 ;
15346 wxNativeFontInfo *arg2 = 0 ;
15347 void *argp1 = 0 ;
15348 int res1 = 0 ;
15349 void *argp2 = 0 ;
15350 int res2 = 0 ;
15351 PyObject * obj0 = 0 ;
15352 PyObject * obj1 = 0 ;
15353 char * kwnames[] = {
15354 (char *) "self",(char *) "info", NULL
15355 };
15356
15357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15359 if (!SWIG_IsOK(res1)) {
15360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15361 }
15362 arg1 = reinterpret_cast< wxFont * >(argp1);
15363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15364 if (!SWIG_IsOK(res2)) {
15365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15366 }
15367 if (!argp2) {
15368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15369 }
15370 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15374 wxPyEndAllowThreads(__tstate);
15375 if (PyErr_Occurred()) SWIG_fail;
15376 }
15377 resultobj = SWIG_Py_Void();
15378 return resultobj;
15379 fail:
15380 return NULL;
15381 }
15382
15383
15384 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj = 0;
15386 wxFont *arg1 = (wxFont *) 0 ;
15387 wxString *arg2 = 0 ;
15388 bool result;
15389 void *argp1 = 0 ;
15390 int res1 = 0 ;
15391 bool temp2 = false ;
15392 PyObject * obj0 = 0 ;
15393 PyObject * obj1 = 0 ;
15394 char * kwnames[] = {
15395 (char *) "self",(char *) "info", NULL
15396 };
15397
15398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15400 if (!SWIG_IsOK(res1)) {
15401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15402 }
15403 arg1 = reinterpret_cast< wxFont * >(argp1);
15404 {
15405 arg2 = wxString_in_helper(obj1);
15406 if (arg2 == NULL) SWIG_fail;
15407 temp2 = true;
15408 }
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 {
15416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15417 }
15418 {
15419 if (temp2)
15420 delete arg2;
15421 }
15422 return resultobj;
15423 fail:
15424 {
15425 if (temp2)
15426 delete arg2;
15427 }
15428 return NULL;
15429 }
15430
15431
15432 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15433 PyObject *resultobj = 0;
15434 wxFont *arg1 = (wxFont *) 0 ;
15435 wxString *arg2 = 0 ;
15436 bool result;
15437 void *argp1 = 0 ;
15438 int res1 = 0 ;
15439 bool temp2 = false ;
15440 PyObject * obj0 = 0 ;
15441 PyObject * obj1 = 0 ;
15442 char * kwnames[] = {
15443 (char *) "self",(char *) "info", NULL
15444 };
15445
15446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15448 if (!SWIG_IsOK(res1)) {
15449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15450 }
15451 arg1 = reinterpret_cast< wxFont * >(argp1);
15452 {
15453 arg2 = wxString_in_helper(obj1);
15454 if (arg2 == NULL) SWIG_fail;
15455 temp2 = true;
15456 }
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15460 wxPyEndAllowThreads(__tstate);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 {
15464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15465 }
15466 {
15467 if (temp2)
15468 delete arg2;
15469 }
15470 return resultobj;
15471 fail:
15472 {
15473 if (temp2)
15474 delete arg2;
15475 }
15476 return NULL;
15477 }
15478
15479
15480 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15481 PyObject *resultobj = 0;
15482 wxFont *arg1 = (wxFont *) 0 ;
15483 wxString result;
15484 void *argp1 = 0 ;
15485 int res1 = 0 ;
15486 PyObject *swig_obj[1] ;
15487
15488 if (!args) SWIG_fail;
15489 swig_obj[0] = args;
15490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15491 if (!SWIG_IsOK(res1)) {
15492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15493 }
15494 arg1 = reinterpret_cast< wxFont * >(argp1);
15495 {
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = ((wxFont const *)arg1)->GetFamilyString();
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 {
15502 #if wxUSE_UNICODE
15503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15504 #else
15505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15506 #endif
15507 }
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15515 PyObject *resultobj = 0;
15516 wxFont *arg1 = (wxFont *) 0 ;
15517 wxString result;
15518 void *argp1 = 0 ;
15519 int res1 = 0 ;
15520 PyObject *swig_obj[1] ;
15521
15522 if (!args) SWIG_fail;
15523 swig_obj[0] = args;
15524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15525 if (!SWIG_IsOK(res1)) {
15526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15527 }
15528 arg1 = reinterpret_cast< wxFont * >(argp1);
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = ((wxFont const *)arg1)->GetStyleString();
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 {
15536 #if wxUSE_UNICODE
15537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15538 #else
15539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15540 #endif
15541 }
15542 return resultobj;
15543 fail:
15544 return NULL;
15545 }
15546
15547
15548 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15549 PyObject *resultobj = 0;
15550 wxFont *arg1 = (wxFont *) 0 ;
15551 wxString result;
15552 void *argp1 = 0 ;
15553 int res1 = 0 ;
15554 PyObject *swig_obj[1] ;
15555
15556 if (!args) SWIG_fail;
15557 swig_obj[0] = args;
15558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15559 if (!SWIG_IsOK(res1)) {
15560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15561 }
15562 arg1 = reinterpret_cast< wxFont * >(argp1);
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = ((wxFont const *)arg1)->GetWeightString();
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 {
15570 #if wxUSE_UNICODE
15571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15572 #else
15573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15574 #endif
15575 }
15576 return resultobj;
15577 fail:
15578 return NULL;
15579 }
15580
15581
15582 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj = 0;
15584 wxFont *arg1 = (wxFont *) 0 ;
15585 bool arg2 = (bool) true ;
15586 void *argp1 = 0 ;
15587 int res1 = 0 ;
15588 bool val2 ;
15589 int ecode2 = 0 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char * kwnames[] = {
15593 (char *) "self",(char *) "no", NULL
15594 };
15595
15596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15598 if (!SWIG_IsOK(res1)) {
15599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15600 }
15601 arg1 = reinterpret_cast< wxFont * >(argp1);
15602 if (obj1) {
15603 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15604 if (!SWIG_IsOK(ecode2)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15606 }
15607 arg2 = static_cast< bool >(val2);
15608 }
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 (arg1)->SetNoAntiAliasing(arg2);
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = SWIG_Py_Void();
15616 return resultobj;
15617 fail:
15618 return NULL;
15619 }
15620
15621
15622 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15623 PyObject *resultobj = 0;
15624 wxFont *arg1 = (wxFont *) 0 ;
15625 bool result;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 PyObject *swig_obj[1] ;
15629
15630 if (!args) SWIG_fail;
15631 swig_obj[0] = args;
15632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15633 if (!SWIG_IsOK(res1)) {
15634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15635 }
15636 arg1 = reinterpret_cast< wxFont * >(argp1);
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 {
15644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15645 }
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15653 PyObject *resultobj = 0;
15654 wxFontEncoding result;
15655
15656 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15657 {
15658 if (!wxPyCheckForApp()) SWIG_fail;
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 resultobj = SWIG_From_int(static_cast< int >(result));
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15672 PyObject *resultobj = 0;
15673 wxFontEncoding arg1 ;
15674 int val1 ;
15675 int ecode1 = 0 ;
15676 PyObject * obj0 = 0 ;
15677 char * kwnames[] = {
15678 (char *) "encoding", NULL
15679 };
15680
15681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15682 ecode1 = SWIG_AsVal_int(obj0, &val1);
15683 if (!SWIG_IsOK(ecode1)) {
15684 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15685 }
15686 arg1 = static_cast< wxFontEncoding >(val1);
15687 {
15688 if (!wxPyCheckForApp()) SWIG_fail;
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 wxFont::SetDefaultEncoding(arg1);
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 resultobj = SWIG_Py_Void();
15695 return resultobj;
15696 fail:
15697 return NULL;
15698 }
15699
15700
15701 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15702 PyObject *obj;
15703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15704 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15705 return SWIG_Py_Void();
15706 }
15707
15708 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15709 return SWIG_Python_InitShadowInstance(args);
15710 }
15711
15712 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15713 PyObject *resultobj = 0;
15714 wxPyFontEnumerator *result = 0 ;
15715
15716 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15717 {
15718 if (!wxPyCheckForApp()) SWIG_fail;
15719 PyThreadState* __tstate = wxPyBeginAllowThreads();
15720 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15721 wxPyEndAllowThreads(__tstate);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15725 return resultobj;
15726 fail:
15727 return NULL;
15728 }
15729
15730
15731 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15732 PyObject *resultobj = 0;
15733 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15734 void *argp1 = 0 ;
15735 int res1 = 0 ;
15736 PyObject *swig_obj[1] ;
15737
15738 if (!args) SWIG_fail;
15739 swig_obj[0] = args;
15740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15741 if (!SWIG_IsOK(res1)) {
15742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15743 }
15744 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 delete arg1;
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_Py_Void();
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj = 0;
15761 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15762 PyObject *arg2 = (PyObject *) 0 ;
15763 PyObject *arg3 = (PyObject *) 0 ;
15764 bool arg4 ;
15765 void *argp1 = 0 ;
15766 int res1 = 0 ;
15767 bool val4 ;
15768 int ecode4 = 0 ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 PyObject * obj2 = 0 ;
15772 PyObject * obj3 = 0 ;
15773 char * kwnames[] = {
15774 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15775 };
15776
15777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15779 if (!SWIG_IsOK(res1)) {
15780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15781 }
15782 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15783 arg2 = obj1;
15784 arg3 = obj2;
15785 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15786 if (!SWIG_IsOK(ecode4)) {
15787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15788 }
15789 arg4 = static_cast< bool >(val4);
15790 {
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = SWIG_Py_Void();
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15804 PyObject *resultobj = 0;
15805 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15806 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15807 bool arg3 = (bool) false ;
15808 bool result;
15809 void *argp1 = 0 ;
15810 int res1 = 0 ;
15811 int val2 ;
15812 int ecode2 = 0 ;
15813 bool val3 ;
15814 int ecode3 = 0 ;
15815 PyObject * obj0 = 0 ;
15816 PyObject * obj1 = 0 ;
15817 PyObject * obj2 = 0 ;
15818 char * kwnames[] = {
15819 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15820 };
15821
15822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15824 if (!SWIG_IsOK(res1)) {
15825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15826 }
15827 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15828 if (obj1) {
15829 ecode2 = SWIG_AsVal_int(obj1, &val2);
15830 if (!SWIG_IsOK(ecode2)) {
15831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15832 }
15833 arg2 = static_cast< wxFontEncoding >(val2);
15834 }
15835 if (obj2) {
15836 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15837 if (!SWIG_IsOK(ecode3)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15839 }
15840 arg3 = static_cast< bool >(val3);
15841 }
15842 {
15843 PyThreadState* __tstate = wxPyBeginAllowThreads();
15844 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15845 wxPyEndAllowThreads(__tstate);
15846 if (PyErr_Occurred()) SWIG_fail;
15847 }
15848 {
15849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15850 }
15851 return resultobj;
15852 fail:
15853 return NULL;
15854 }
15855
15856
15857 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj = 0;
15859 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15860 wxString const &arg2_defvalue = wxPyEmptyString ;
15861 wxString *arg2 = (wxString *) &arg2_defvalue ;
15862 bool result;
15863 void *argp1 = 0 ;
15864 int res1 = 0 ;
15865 bool temp2 = false ;
15866 PyObject * obj0 = 0 ;
15867 PyObject * obj1 = 0 ;
15868 char * kwnames[] = {
15869 (char *) "self",(char *) "facename", NULL
15870 };
15871
15872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15874 if (!SWIG_IsOK(res1)) {
15875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15876 }
15877 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15878 if (obj1) {
15879 {
15880 arg2 = wxString_in_helper(obj1);
15881 if (arg2 == NULL) SWIG_fail;
15882 temp2 = true;
15883 }
15884 }
15885 {
15886 PyThreadState* __tstate = wxPyBeginAllowThreads();
15887 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15888 wxPyEndAllowThreads(__tstate);
15889 if (PyErr_Occurred()) SWIG_fail;
15890 }
15891 {
15892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15893 }
15894 {
15895 if (temp2)
15896 delete arg2;
15897 }
15898 return resultobj;
15899 fail:
15900 {
15901 if (temp2)
15902 delete arg2;
15903 }
15904 return NULL;
15905 }
15906
15907
15908 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15909 PyObject *resultobj = 0;
15910 PyObject *result = 0 ;
15911
15912 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 resultobj = result;
15920 return resultobj;
15921 fail:
15922 return NULL;
15923 }
15924
15925
15926 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15927 PyObject *resultobj = 0;
15928 PyObject *result = 0 ;
15929
15930 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = result;
15938 return resultobj;
15939 fail:
15940 return NULL;
15941 }
15942
15943
15944 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj = 0;
15946 wxString *arg1 = 0 ;
15947 bool result;
15948 bool temp1 = false ;
15949 PyObject * obj0 = 0 ;
15950 char * kwnames[] = {
15951 (char *) "str", NULL
15952 };
15953
15954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15955 {
15956 arg1 = wxString_in_helper(obj0);
15957 if (arg1 == NULL) SWIG_fail;
15958 temp1 = true;
15959 }
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15968 }
15969 {
15970 if (temp1)
15971 delete arg1;
15972 }
15973 return resultobj;
15974 fail:
15975 {
15976 if (temp1)
15977 delete arg1;
15978 }
15979 return NULL;
15980 }
15981
15982
15983 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15984 PyObject *obj;
15985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15986 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15987 return SWIG_Py_Void();
15988 }
15989
15990 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15991 return SWIG_Python_InitShadowInstance(args);
15992 }
15993
15994 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15995 PyObject *resultobj = 0;
15996 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15997 int arg2 ;
15998 void *argp1 = 0 ;
15999 int res1 = 0 ;
16000 int val2 ;
16001 int ecode2 = 0 ;
16002 PyObject *swig_obj[2] ;
16003
16004 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16006 if (!SWIG_IsOK(res1)) {
16007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16008 }
16009 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16010 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16011 if (!SWIG_IsOK(ecode2)) {
16012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16013 }
16014 arg2 = static_cast< int >(val2);
16015 if (arg1) (arg1)->Language = arg2;
16016
16017 resultobj = SWIG_Py_Void();
16018 return resultobj;
16019 fail:
16020 return NULL;
16021 }
16022
16023
16024 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16025 PyObject *resultobj = 0;
16026 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16027 int result;
16028 void *argp1 = 0 ;
16029 int res1 = 0 ;
16030 PyObject *swig_obj[1] ;
16031
16032 if (!args) SWIG_fail;
16033 swig_obj[0] = args;
16034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16035 if (!SWIG_IsOK(res1)) {
16036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16037 }
16038 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16039 result = (int) ((arg1)->Language);
16040 resultobj = SWIG_From_int(static_cast< int >(result));
16041 return resultobj;
16042 fail:
16043 return NULL;
16044 }
16045
16046
16047 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16048 PyObject *resultobj = 0;
16049 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16050 wxString *arg2 = (wxString *) 0 ;
16051 void *argp1 = 0 ;
16052 int res1 = 0 ;
16053 bool temp2 = false ;
16054 PyObject *swig_obj[2] ;
16055
16056 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16058 if (!SWIG_IsOK(res1)) {
16059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16060 }
16061 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16062 {
16063 arg2 = wxString_in_helper(swig_obj[1]);
16064 if (arg2 == NULL) SWIG_fail;
16065 temp2 = true;
16066 }
16067 if (arg1) (arg1)->CanonicalName = *arg2;
16068
16069 resultobj = SWIG_Py_Void();
16070 {
16071 if (temp2)
16072 delete arg2;
16073 }
16074 return resultobj;
16075 fail:
16076 {
16077 if (temp2)
16078 delete arg2;
16079 }
16080 return NULL;
16081 }
16082
16083
16084 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16085 PyObject *resultobj = 0;
16086 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16087 wxString *result = 0 ;
16088 void *argp1 = 0 ;
16089 int res1 = 0 ;
16090 PyObject *swig_obj[1] ;
16091
16092 if (!args) SWIG_fail;
16093 swig_obj[0] = args;
16094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16095 if (!SWIG_IsOK(res1)) {
16096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16097 }
16098 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16099 result = (wxString *)& ((arg1)->CanonicalName);
16100 {
16101 #if wxUSE_UNICODE
16102 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16103 #else
16104 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16105 #endif
16106 }
16107 return resultobj;
16108 fail:
16109 return NULL;
16110 }
16111
16112
16113 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16114 PyObject *resultobj = 0;
16115 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16116 wxString *arg2 = (wxString *) 0 ;
16117 void *argp1 = 0 ;
16118 int res1 = 0 ;
16119 bool temp2 = false ;
16120 PyObject *swig_obj[2] ;
16121
16122 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16124 if (!SWIG_IsOK(res1)) {
16125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16126 }
16127 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16128 {
16129 arg2 = wxString_in_helper(swig_obj[1]);
16130 if (arg2 == NULL) SWIG_fail;
16131 temp2 = true;
16132 }
16133 if (arg1) (arg1)->Description = *arg2;
16134
16135 resultobj = SWIG_Py_Void();
16136 {
16137 if (temp2)
16138 delete arg2;
16139 }
16140 return resultobj;
16141 fail:
16142 {
16143 if (temp2)
16144 delete arg2;
16145 }
16146 return NULL;
16147 }
16148
16149
16150 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16151 PyObject *resultobj = 0;
16152 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16153 wxString *result = 0 ;
16154 void *argp1 = 0 ;
16155 int res1 = 0 ;
16156 PyObject *swig_obj[1] ;
16157
16158 if (!args) SWIG_fail;
16159 swig_obj[0] = args;
16160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16161 if (!SWIG_IsOK(res1)) {
16162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16163 }
16164 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16165 result = (wxString *)& ((arg1)->Description);
16166 {
16167 #if wxUSE_UNICODE
16168 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16169 #else
16170 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16171 #endif
16172 }
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16180 PyObject *obj;
16181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16182 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16183 return SWIG_Py_Void();
16184 }
16185
16186 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16187 PyObject *resultobj = 0;
16188 int arg1 = (int) -1 ;
16189 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16190 wxLocale *result = 0 ;
16191 int val1 ;
16192 int ecode1 = 0 ;
16193 int val2 ;
16194 int ecode2 = 0 ;
16195 PyObject * obj0 = 0 ;
16196 PyObject * obj1 = 0 ;
16197 char * kwnames[] = {
16198 (char *) "language",(char *) "flags", NULL
16199 };
16200
16201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16202 if (obj0) {
16203 ecode1 = SWIG_AsVal_int(obj0, &val1);
16204 if (!SWIG_IsOK(ecode1)) {
16205 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16206 }
16207 arg1 = static_cast< int >(val1);
16208 }
16209 if (obj1) {
16210 ecode2 = SWIG_AsVal_int(obj1, &val2);
16211 if (!SWIG_IsOK(ecode2)) {
16212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16213 }
16214 arg2 = static_cast< int >(val2);
16215 }
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 result = (wxLocale *)new_wxLocale(arg1,arg2);
16219 wxPyEndAllowThreads(__tstate);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16223 return resultobj;
16224 fail:
16225 return NULL;
16226 }
16227
16228
16229 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
16231 wxLocale *arg1 = (wxLocale *) 0 ;
16232 void *argp1 = 0 ;
16233 int res1 = 0 ;
16234 PyObject *swig_obj[1] ;
16235
16236 if (!args) SWIG_fail;
16237 swig_obj[0] = args;
16238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16239 if (!SWIG_IsOK(res1)) {
16240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16241 }
16242 arg1 = reinterpret_cast< wxLocale * >(argp1);
16243 {
16244 PyThreadState* __tstate = wxPyBeginAllowThreads();
16245 delete arg1;
16246
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 resultobj = SWIG_Py_Void();
16251 return resultobj;
16252 fail:
16253 return NULL;
16254 }
16255
16256
16257 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16258 PyObject *resultobj = 0;
16259 wxLocale *arg1 = (wxLocale *) 0 ;
16260 wxString *arg2 = 0 ;
16261 wxString const &arg3_defvalue = wxPyEmptyString ;
16262 wxString *arg3 = (wxString *) &arg3_defvalue ;
16263 wxString const &arg4_defvalue = wxPyEmptyString ;
16264 wxString *arg4 = (wxString *) &arg4_defvalue ;
16265 bool arg5 = (bool) true ;
16266 bool arg6 = (bool) false ;
16267 bool result;
16268 void *argp1 = 0 ;
16269 int res1 = 0 ;
16270 bool temp2 = false ;
16271 bool temp3 = false ;
16272 bool temp4 = false ;
16273 bool val5 ;
16274 int ecode5 = 0 ;
16275 bool val6 ;
16276 int ecode6 = 0 ;
16277 PyObject * obj0 = 0 ;
16278 PyObject * obj1 = 0 ;
16279 PyObject * obj2 = 0 ;
16280 PyObject * obj3 = 0 ;
16281 PyObject * obj4 = 0 ;
16282 PyObject * obj5 = 0 ;
16283 char * kwnames[] = {
16284 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16285 };
16286
16287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16289 if (!SWIG_IsOK(res1)) {
16290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16291 }
16292 arg1 = reinterpret_cast< wxLocale * >(argp1);
16293 {
16294 arg2 = wxString_in_helper(obj1);
16295 if (arg2 == NULL) SWIG_fail;
16296 temp2 = true;
16297 }
16298 if (obj2) {
16299 {
16300 arg3 = wxString_in_helper(obj2);
16301 if (arg3 == NULL) SWIG_fail;
16302 temp3 = true;
16303 }
16304 }
16305 if (obj3) {
16306 {
16307 arg4 = wxString_in_helper(obj3);
16308 if (arg4 == NULL) SWIG_fail;
16309 temp4 = true;
16310 }
16311 }
16312 if (obj4) {
16313 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16314 if (!SWIG_IsOK(ecode5)) {
16315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16316 }
16317 arg5 = static_cast< bool >(val5);
16318 }
16319 if (obj5) {
16320 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16321 if (!SWIG_IsOK(ecode6)) {
16322 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16323 }
16324 arg6 = static_cast< bool >(val6);
16325 }
16326 {
16327 PyThreadState* __tstate = wxPyBeginAllowThreads();
16328 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 {
16333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16334 }
16335 {
16336 if (temp2)
16337 delete arg2;
16338 }
16339 {
16340 if (temp3)
16341 delete arg3;
16342 }
16343 {
16344 if (temp4)
16345 delete arg4;
16346 }
16347 return resultobj;
16348 fail:
16349 {
16350 if (temp2)
16351 delete arg2;
16352 }
16353 {
16354 if (temp3)
16355 delete arg3;
16356 }
16357 {
16358 if (temp4)
16359 delete arg4;
16360 }
16361 return NULL;
16362 }
16363
16364
16365 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16366 PyObject *resultobj = 0;
16367 wxLocale *arg1 = (wxLocale *) 0 ;
16368 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16369 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16370 bool result;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 int val2 ;
16374 int ecode2 = 0 ;
16375 int val3 ;
16376 int ecode3 = 0 ;
16377 PyObject * obj0 = 0 ;
16378 PyObject * obj1 = 0 ;
16379 PyObject * obj2 = 0 ;
16380 char * kwnames[] = {
16381 (char *) "self",(char *) "language",(char *) "flags", NULL
16382 };
16383
16384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16386 if (!SWIG_IsOK(res1)) {
16387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16388 }
16389 arg1 = reinterpret_cast< wxLocale * >(argp1);
16390 if (obj1) {
16391 ecode2 = SWIG_AsVal_int(obj1, &val2);
16392 if (!SWIG_IsOK(ecode2)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16394 }
16395 arg2 = static_cast< int >(val2);
16396 }
16397 if (obj2) {
16398 ecode3 = SWIG_AsVal_int(obj2, &val3);
16399 if (!SWIG_IsOK(ecode3)) {
16400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16401 }
16402 arg3 = static_cast< int >(val3);
16403 }
16404 {
16405 PyThreadState* __tstate = wxPyBeginAllowThreads();
16406 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 {
16411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16412 }
16413 return resultobj;
16414 fail:
16415 return NULL;
16416 }
16417
16418
16419 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16420 PyObject *resultobj = 0;
16421 int result;
16422
16423 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (int)wxLocale::GetSystemLanguage();
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 resultobj = SWIG_From_int(static_cast< int >(result));
16431 return resultobj;
16432 fail:
16433 return NULL;
16434 }
16435
16436
16437 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16438 PyObject *resultobj = 0;
16439 wxFontEncoding result;
16440
16441 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = SWIG_From_int(static_cast< int >(result));
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16456 PyObject *resultobj = 0;
16457 wxString result;
16458
16459 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = wxLocale::GetSystemEncodingName();
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 {
16467 #if wxUSE_UNICODE
16468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16469 #else
16470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16471 #endif
16472 }
16473 return resultobj;
16474 fail:
16475 return NULL;
16476 }
16477
16478
16479 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16480 PyObject *resultobj = 0;
16481 wxLocale *arg1 = (wxLocale *) 0 ;
16482 bool result;
16483 void *argp1 = 0 ;
16484 int res1 = 0 ;
16485 PyObject *swig_obj[1] ;
16486
16487 if (!args) SWIG_fail;
16488 swig_obj[0] = args;
16489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16490 if (!SWIG_IsOK(res1)) {
16491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16492 }
16493 arg1 = reinterpret_cast< wxLocale * >(argp1);
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 result = (bool)((wxLocale const *)arg1)->IsOk();
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16502 }
16503 return resultobj;
16504 fail:
16505 return NULL;
16506 }
16507
16508
16509 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16510 PyObject *resultobj = 0;
16511 wxLocale *arg1 = (wxLocale *) 0 ;
16512 wxString result;
16513 void *argp1 = 0 ;
16514 int res1 = 0 ;
16515 PyObject *swig_obj[1] ;
16516
16517 if (!args) SWIG_fail;
16518 swig_obj[0] = args;
16519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16520 if (!SWIG_IsOK(res1)) {
16521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16522 }
16523 arg1 = reinterpret_cast< wxLocale * >(argp1);
16524 {
16525 PyThreadState* __tstate = wxPyBeginAllowThreads();
16526 result = ((wxLocale const *)arg1)->GetLocale();
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 {
16531 #if wxUSE_UNICODE
16532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16533 #else
16534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16535 #endif
16536 }
16537 return resultobj;
16538 fail:
16539 return NULL;
16540 }
16541
16542
16543 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16544 PyObject *resultobj = 0;
16545 wxLocale *arg1 = (wxLocale *) 0 ;
16546 int result;
16547 void *argp1 = 0 ;
16548 int res1 = 0 ;
16549 PyObject *swig_obj[1] ;
16550
16551 if (!args) SWIG_fail;
16552 swig_obj[0] = args;
16553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16554 if (!SWIG_IsOK(res1)) {
16555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16556 }
16557 arg1 = reinterpret_cast< wxLocale * >(argp1);
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 result = (int)((wxLocale const *)arg1)->GetLanguage();
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
16564 resultobj = SWIG_From_int(static_cast< int >(result));
16565 return resultobj;
16566 fail:
16567 return NULL;
16568 }
16569
16570
16571 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16572 PyObject *resultobj = 0;
16573 wxLocale *arg1 = (wxLocale *) 0 ;
16574 wxString result;
16575 void *argp1 = 0 ;
16576 int res1 = 0 ;
16577 PyObject *swig_obj[1] ;
16578
16579 if (!args) SWIG_fail;
16580 swig_obj[0] = args;
16581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16582 if (!SWIG_IsOK(res1)) {
16583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16584 }
16585 arg1 = reinterpret_cast< wxLocale * >(argp1);
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 result = ((wxLocale const *)arg1)->GetSysName();
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 {
16593 #if wxUSE_UNICODE
16594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16595 #else
16596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16597 #endif
16598 }
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16606 PyObject *resultobj = 0;
16607 wxLocale *arg1 = (wxLocale *) 0 ;
16608 wxString result;
16609 void *argp1 = 0 ;
16610 int res1 = 0 ;
16611 PyObject *swig_obj[1] ;
16612
16613 if (!args) SWIG_fail;
16614 swig_obj[0] = args;
16615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16616 if (!SWIG_IsOK(res1)) {
16617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16618 }
16619 arg1 = reinterpret_cast< wxLocale * >(argp1);
16620 {
16621 PyThreadState* __tstate = wxPyBeginAllowThreads();
16622 result = ((wxLocale const *)arg1)->GetCanonicalName();
16623 wxPyEndAllowThreads(__tstate);
16624 if (PyErr_Occurred()) SWIG_fail;
16625 }
16626 {
16627 #if wxUSE_UNICODE
16628 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16629 #else
16630 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16631 #endif
16632 }
16633 return resultobj;
16634 fail:
16635 return NULL;
16636 }
16637
16638
16639 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16640 PyObject *resultobj = 0;
16641 wxString *arg1 = 0 ;
16642 bool temp1 = false ;
16643 PyObject * obj0 = 0 ;
16644 char * kwnames[] = {
16645 (char *) "prefix", NULL
16646 };
16647
16648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16649 {
16650 arg1 = wxString_in_helper(obj0);
16651 if (arg1 == NULL) SWIG_fail;
16652 temp1 = true;
16653 }
16654 {
16655 PyThreadState* __tstate = wxPyBeginAllowThreads();
16656 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
16660 resultobj = SWIG_Py_Void();
16661 {
16662 if (temp1)
16663 delete arg1;
16664 }
16665 return resultobj;
16666 fail:
16667 {
16668 if (temp1)
16669 delete arg1;
16670 }
16671 return NULL;
16672 }
16673
16674
16675 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16676 PyObject *resultobj = 0;
16677 wxLocale *arg1 = (wxLocale *) 0 ;
16678 wxString *arg2 = 0 ;
16679 bool result;
16680 void *argp1 = 0 ;
16681 int res1 = 0 ;
16682 bool temp2 = false ;
16683 PyObject * obj0 = 0 ;
16684 PyObject * obj1 = 0 ;
16685 char * kwnames[] = {
16686 (char *) "self",(char *) "szDomain", NULL
16687 };
16688
16689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16691 if (!SWIG_IsOK(res1)) {
16692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16693 }
16694 arg1 = reinterpret_cast< wxLocale * >(argp1);
16695 {
16696 arg2 = wxString_in_helper(obj1);
16697 if (arg2 == NULL) SWIG_fail;
16698 temp2 = true;
16699 }
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
16702 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 {
16707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16708 }
16709 {
16710 if (temp2)
16711 delete arg2;
16712 }
16713 return resultobj;
16714 fail:
16715 {
16716 if (temp2)
16717 delete arg2;
16718 }
16719 return NULL;
16720 }
16721
16722
16723 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj = 0;
16725 int arg1 ;
16726 bool result;
16727 int val1 ;
16728 int ecode1 = 0 ;
16729 PyObject * obj0 = 0 ;
16730 char * kwnames[] = {
16731 (char *) "lang", NULL
16732 };
16733
16734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16735 ecode1 = SWIG_AsVal_int(obj0, &val1);
16736 if (!SWIG_IsOK(ecode1)) {
16737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16738 }
16739 arg1 = static_cast< int >(val1);
16740 {
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 result = (bool)wxLocale::IsAvailable(arg1);
16743 wxPyEndAllowThreads(__tstate);
16744 if (PyErr_Occurred()) SWIG_fail;
16745 }
16746 {
16747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16748 }
16749 return resultobj;
16750 fail:
16751 return NULL;
16752 }
16753
16754
16755 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16756 PyObject *resultobj = 0;
16757 wxLocale *arg1 = (wxLocale *) 0 ;
16758 wxString *arg2 = 0 ;
16759 bool result;
16760 void *argp1 = 0 ;
16761 int res1 = 0 ;
16762 bool temp2 = false ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 char * kwnames[] = {
16766 (char *) "self",(char *) "szDomain", NULL
16767 };
16768
16769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16771 if (!SWIG_IsOK(res1)) {
16772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16773 }
16774 arg1 = reinterpret_cast< wxLocale * >(argp1);
16775 {
16776 arg2 = wxString_in_helper(obj1);
16777 if (arg2 == NULL) SWIG_fail;
16778 temp2 = true;
16779 }
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 {
16787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16788 }
16789 {
16790 if (temp2)
16791 delete arg2;
16792 }
16793 return resultobj;
16794 fail:
16795 {
16796 if (temp2)
16797 delete arg2;
16798 }
16799 return NULL;
16800 }
16801
16802
16803 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16804 PyObject *resultobj = 0;
16805 int arg1 ;
16806 wxLanguageInfo *result = 0 ;
16807 int val1 ;
16808 int ecode1 = 0 ;
16809 PyObject * obj0 = 0 ;
16810 char * kwnames[] = {
16811 (char *) "lang", NULL
16812 };
16813
16814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16815 ecode1 = SWIG_AsVal_int(obj0, &val1);
16816 if (!SWIG_IsOK(ecode1)) {
16817 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16818 }
16819 arg1 = static_cast< int >(val1);
16820 {
16821 PyThreadState* __tstate = wxPyBeginAllowThreads();
16822 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16823 wxPyEndAllowThreads(__tstate);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 }
16826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16827 return resultobj;
16828 fail:
16829 return NULL;
16830 }
16831
16832
16833 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16834 PyObject *resultobj = 0;
16835 int arg1 ;
16836 wxString result;
16837 int val1 ;
16838 int ecode1 = 0 ;
16839 PyObject * obj0 = 0 ;
16840 char * kwnames[] = {
16841 (char *) "lang", NULL
16842 };
16843
16844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16845 ecode1 = SWIG_AsVal_int(obj0, &val1);
16846 if (!SWIG_IsOK(ecode1)) {
16847 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16848 }
16849 arg1 = static_cast< int >(val1);
16850 {
16851 PyThreadState* __tstate = wxPyBeginAllowThreads();
16852 result = wxLocale::GetLanguageName(arg1);
16853 wxPyEndAllowThreads(__tstate);
16854 if (PyErr_Occurred()) SWIG_fail;
16855 }
16856 {
16857 #if wxUSE_UNICODE
16858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16859 #else
16860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16861 #endif
16862 }
16863 return resultobj;
16864 fail:
16865 return NULL;
16866 }
16867
16868
16869 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16870 PyObject *resultobj = 0;
16871 wxString *arg1 = 0 ;
16872 wxLanguageInfo *result = 0 ;
16873 bool temp1 = false ;
16874 PyObject * obj0 = 0 ;
16875 char * kwnames[] = {
16876 (char *) "locale", NULL
16877 };
16878
16879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16880 {
16881 arg1 = wxString_in_helper(obj0);
16882 if (arg1 == NULL) SWIG_fail;
16883 temp1 = true;
16884 }
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16892 {
16893 if (temp1)
16894 delete arg1;
16895 }
16896 return resultobj;
16897 fail:
16898 {
16899 if (temp1)
16900 delete arg1;
16901 }
16902 return NULL;
16903 }
16904
16905
16906 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16907 PyObject *resultobj = 0;
16908 wxLanguageInfo *arg1 = 0 ;
16909 void *argp1 = 0 ;
16910 int res1 = 0 ;
16911 PyObject * obj0 = 0 ;
16912 char * kwnames[] = {
16913 (char *) "info", NULL
16914 };
16915
16916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16920 }
16921 if (!argp1) {
16922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16923 }
16924 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16925 {
16926 PyThreadState* __tstate = wxPyBeginAllowThreads();
16927 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_Py_Void();
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj = 0;
16940 wxLocale *arg1 = (wxLocale *) 0 ;
16941 wxString *arg2 = 0 ;
16942 wxString const &arg3_defvalue = wxPyEmptyString ;
16943 wxString *arg3 = (wxString *) &arg3_defvalue ;
16944 wxString result;
16945 void *argp1 = 0 ;
16946 int res1 = 0 ;
16947 bool temp2 = false ;
16948 bool temp3 = false ;
16949 PyObject * obj0 = 0 ;
16950 PyObject * obj1 = 0 ;
16951 PyObject * obj2 = 0 ;
16952 char * kwnames[] = {
16953 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16954 };
16955
16956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16958 if (!SWIG_IsOK(res1)) {
16959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16960 }
16961 arg1 = reinterpret_cast< wxLocale * >(argp1);
16962 {
16963 arg2 = wxString_in_helper(obj1);
16964 if (arg2 == NULL) SWIG_fail;
16965 temp2 = true;
16966 }
16967 if (obj2) {
16968 {
16969 arg3 = wxString_in_helper(obj2);
16970 if (arg3 == NULL) SWIG_fail;
16971 temp3 = true;
16972 }
16973 }
16974 {
16975 PyThreadState* __tstate = wxPyBeginAllowThreads();
16976 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 {
16981 #if wxUSE_UNICODE
16982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16983 #else
16984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16985 #endif
16986 }
16987 {
16988 if (temp2)
16989 delete arg2;
16990 }
16991 {
16992 if (temp3)
16993 delete arg3;
16994 }
16995 return resultobj;
16996 fail:
16997 {
16998 if (temp2)
16999 delete arg2;
17000 }
17001 {
17002 if (temp3)
17003 delete arg3;
17004 }
17005 return NULL;
17006 }
17007
17008
17009 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17010 PyObject *resultobj = 0;
17011 wxLocale *arg1 = (wxLocale *) 0 ;
17012 wxString *result = 0 ;
17013 void *argp1 = 0 ;
17014 int res1 = 0 ;
17015 PyObject *swig_obj[1] ;
17016
17017 if (!args) SWIG_fail;
17018 swig_obj[0] = args;
17019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17020 if (!SWIG_IsOK(res1)) {
17021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17022 }
17023 arg1 = reinterpret_cast< wxLocale * >(argp1);
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 {
17027 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17028 result = (wxString *) &_result_ref;
17029 }
17030 wxPyEndAllowThreads(__tstate);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 }
17033 {
17034 #if wxUSE_UNICODE
17035 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17036 #else
17037 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17038 #endif
17039 }
17040 return resultobj;
17041 fail:
17042 return NULL;
17043 }
17044
17045
17046 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17047 PyObject *obj;
17048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17049 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17050 return SWIG_Py_Void();
17051 }
17052
17053 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17054 return SWIG_Python_InitShadowInstance(args);
17055 }
17056
17057 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17058 PyObject *resultobj = 0;
17059 int arg1 = (int) -1 ;
17060 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17061 wxPyLocale *result = 0 ;
17062 int val1 ;
17063 int ecode1 = 0 ;
17064 int val2 ;
17065 int ecode2 = 0 ;
17066 PyObject * obj0 = 0 ;
17067 PyObject * obj1 = 0 ;
17068 char * kwnames[] = {
17069 (char *) "language",(char *) "flags", NULL
17070 };
17071
17072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17073 if (obj0) {
17074 ecode1 = SWIG_AsVal_int(obj0, &val1);
17075 if (!SWIG_IsOK(ecode1)) {
17076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17077 }
17078 arg1 = static_cast< int >(val1);
17079 }
17080 if (obj1) {
17081 ecode2 = SWIG_AsVal_int(obj1, &val2);
17082 if (!SWIG_IsOK(ecode2)) {
17083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17084 }
17085 arg2 = static_cast< int >(val2);
17086 }
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17090 wxPyEndAllowThreads(__tstate);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17101 PyObject *resultobj = 0;
17102 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17103 void *argp1 = 0 ;
17104 int res1 = 0 ;
17105 PyObject *swig_obj[1] ;
17106
17107 if (!args) SWIG_fail;
17108 swig_obj[0] = args;
17109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17110 if (!SWIG_IsOK(res1)) {
17111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17112 }
17113 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17114 {
17115 PyThreadState* __tstate = wxPyBeginAllowThreads();
17116 delete arg1;
17117
17118 wxPyEndAllowThreads(__tstate);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 resultobj = SWIG_Py_Void();
17122 return resultobj;
17123 fail:
17124 return NULL;
17125 }
17126
17127
17128 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17129 PyObject *resultobj = 0;
17130 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17131 PyObject *arg2 = (PyObject *) 0 ;
17132 PyObject *arg3 = (PyObject *) 0 ;
17133 void *argp1 = 0 ;
17134 int res1 = 0 ;
17135 PyObject * obj0 = 0 ;
17136 PyObject * obj1 = 0 ;
17137 PyObject * obj2 = 0 ;
17138 char * kwnames[] = {
17139 (char *) "self",(char *) "self",(char *) "_class", NULL
17140 };
17141
17142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17144 if (!SWIG_IsOK(res1)) {
17145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17146 }
17147 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17148 arg2 = obj1;
17149 arg3 = obj2;
17150 {
17151 PyThreadState* __tstate = wxPyBeginAllowThreads();
17152 (arg1)->_setCallbackInfo(arg2,arg3);
17153 wxPyEndAllowThreads(__tstate);
17154 if (PyErr_Occurred()) SWIG_fail;
17155 }
17156 resultobj = SWIG_Py_Void();
17157 return resultobj;
17158 fail:
17159 return NULL;
17160 }
17161
17162
17163 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17164 PyObject *resultobj = 0;
17165 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17166 wxChar *arg2 = (wxChar *) 0 ;
17167 wxChar *arg3 = (wxChar *) NULL ;
17168 wxChar *result = 0 ;
17169 void *argp1 = 0 ;
17170 int res1 = 0 ;
17171 void *argp2 = 0 ;
17172 int res2 = 0 ;
17173 void *argp3 = 0 ;
17174 int res3 = 0 ;
17175 PyObject * obj0 = 0 ;
17176 PyObject * obj1 = 0 ;
17177 PyObject * obj2 = 0 ;
17178 char * kwnames[] = {
17179 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17180 };
17181
17182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17184 if (!SWIG_IsOK(res1)) {
17185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17186 }
17187 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17189 if (!SWIG_IsOK(res2)) {
17190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17191 }
17192 arg2 = reinterpret_cast< wxChar * >(argp2);
17193 if (obj2) {
17194 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17195 if (!SWIG_IsOK(res3)) {
17196 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17197 }
17198 arg3 = reinterpret_cast< wxChar * >(argp3);
17199 }
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17207 return resultobj;
17208 fail:
17209 return NULL;
17210 }
17211
17212
17213 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj = 0;
17215 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17216 wxChar *arg2 = (wxChar *) 0 ;
17217 wxChar *arg3 = (wxChar *) 0 ;
17218 size_t arg4 ;
17219 wxChar *arg5 = (wxChar *) NULL ;
17220 wxChar *result = 0 ;
17221 void *argp1 = 0 ;
17222 int res1 = 0 ;
17223 void *argp2 = 0 ;
17224 int res2 = 0 ;
17225 void *argp3 = 0 ;
17226 int res3 = 0 ;
17227 size_t val4 ;
17228 int ecode4 = 0 ;
17229 void *argp5 = 0 ;
17230 int res5 = 0 ;
17231 PyObject * obj0 = 0 ;
17232 PyObject * obj1 = 0 ;
17233 PyObject * obj2 = 0 ;
17234 PyObject * obj3 = 0 ;
17235 PyObject * obj4 = 0 ;
17236 char * kwnames[] = {
17237 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17238 };
17239
17240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17242 if (!SWIG_IsOK(res1)) {
17243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17244 }
17245 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17247 if (!SWIG_IsOK(res2)) {
17248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17249 }
17250 arg2 = reinterpret_cast< wxChar * >(argp2);
17251 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17252 if (!SWIG_IsOK(res3)) {
17253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17254 }
17255 arg3 = reinterpret_cast< wxChar * >(argp3);
17256 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17257 if (!SWIG_IsOK(ecode4)) {
17258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17259 }
17260 arg4 = static_cast< size_t >(val4);
17261 if (obj4) {
17262 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17263 if (!SWIG_IsOK(res5)) {
17264 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17265 }
17266 arg5 = reinterpret_cast< wxChar * >(argp5);
17267 }
17268 {
17269 PyThreadState* __tstate = wxPyBeginAllowThreads();
17270 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17271 wxPyEndAllowThreads(__tstate);
17272 if (PyErr_Occurred()) SWIG_fail;
17273 }
17274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17275 return resultobj;
17276 fail:
17277 return NULL;
17278 }
17279
17280
17281 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17282 PyObject *obj;
17283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17284 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17285 return SWIG_Py_Void();
17286 }
17287
17288 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17289 return SWIG_Python_InitShadowInstance(args);
17290 }
17291
17292 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17293 PyObject *resultobj = 0;
17294 wxLocale *result = 0 ;
17295
17296 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17297 {
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 result = (wxLocale *)wxGetLocale();
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17304 return resultobj;
17305 fail:
17306 return NULL;
17307 }
17308
17309
17310 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17311 PyObject *resultobj = 0;
17312 wxString *arg1 = 0 ;
17313 wxString result;
17314 bool temp1 = false ;
17315
17316 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17317 {
17318 arg1 = wxString_in_helper(swig_obj[0]);
17319 if (arg1 == NULL) SWIG_fail;
17320 temp1 = true;
17321 }
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = wxGetTranslation((wxString const &)*arg1);
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 {
17329 #if wxUSE_UNICODE
17330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17331 #else
17332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17333 #endif
17334 }
17335 {
17336 if (temp1)
17337 delete arg1;
17338 }
17339 return resultobj;
17340 fail:
17341 {
17342 if (temp1)
17343 delete arg1;
17344 }
17345 return NULL;
17346 }
17347
17348
17349 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17350 PyObject *resultobj = 0;
17351 wxString *arg1 = 0 ;
17352 wxString *arg2 = 0 ;
17353 wxString result;
17354 bool temp1 = false ;
17355 bool temp2 = false ;
17356
17357 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17358 {
17359 arg1 = wxString_in_helper(swig_obj[0]);
17360 if (arg1 == NULL) SWIG_fail;
17361 temp1 = true;
17362 }
17363 {
17364 arg2 = wxString_in_helper(swig_obj[1]);
17365 if (arg2 == NULL) SWIG_fail;
17366 temp2 = true;
17367 }
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 #if wxUSE_UNICODE
17376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17377 #else
17378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17379 #endif
17380 }
17381 {
17382 if (temp1)
17383 delete arg1;
17384 }
17385 {
17386 if (temp2)
17387 delete arg2;
17388 }
17389 return resultobj;
17390 fail:
17391 {
17392 if (temp1)
17393 delete arg1;
17394 }
17395 {
17396 if (temp2)
17397 delete arg2;
17398 }
17399 return NULL;
17400 }
17401
17402
17403 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17404 PyObject *resultobj = 0;
17405 wxString *arg1 = 0 ;
17406 wxString *arg2 = 0 ;
17407 size_t arg3 ;
17408 wxString result;
17409 bool temp1 = false ;
17410 bool temp2 = false ;
17411 size_t val3 ;
17412 int ecode3 = 0 ;
17413
17414 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17415 {
17416 arg1 = wxString_in_helper(swig_obj[0]);
17417 if (arg1 == NULL) SWIG_fail;
17418 temp1 = true;
17419 }
17420 {
17421 arg2 = wxString_in_helper(swig_obj[1]);
17422 if (arg2 == NULL) SWIG_fail;
17423 temp2 = true;
17424 }
17425 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17426 if (!SWIG_IsOK(ecode3)) {
17427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17428 }
17429 arg3 = static_cast< size_t >(val3);
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17433 wxPyEndAllowThreads(__tstate);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 {
17437 #if wxUSE_UNICODE
17438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17439 #else
17440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17441 #endif
17442 }
17443 {
17444 if (temp1)
17445 delete arg1;
17446 }
17447 {
17448 if (temp2)
17449 delete arg2;
17450 }
17451 return resultobj;
17452 fail:
17453 {
17454 if (temp1)
17455 delete arg1;
17456 }
17457 {
17458 if (temp2)
17459 delete arg2;
17460 }
17461 return NULL;
17462 }
17463
17464
17465 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17466 PyObject *resultobj = 0;
17467 wxString *arg1 = 0 ;
17468 wxString *arg2 = 0 ;
17469 size_t arg3 ;
17470 wxString *arg4 = 0 ;
17471 wxString result;
17472 bool temp1 = false ;
17473 bool temp2 = false ;
17474 size_t val3 ;
17475 int ecode3 = 0 ;
17476 bool temp4 = false ;
17477
17478 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17479 {
17480 arg1 = wxString_in_helper(swig_obj[0]);
17481 if (arg1 == NULL) SWIG_fail;
17482 temp1 = true;
17483 }
17484 {
17485 arg2 = wxString_in_helper(swig_obj[1]);
17486 if (arg2 == NULL) SWIG_fail;
17487 temp2 = true;
17488 }
17489 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17490 if (!SWIG_IsOK(ecode3)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17492 }
17493 arg3 = static_cast< size_t >(val3);
17494 {
17495 arg4 = wxString_in_helper(swig_obj[3]);
17496 if (arg4 == NULL) SWIG_fail;
17497 temp4 = true;
17498 }
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 {
17506 #if wxUSE_UNICODE
17507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17508 #else
17509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17510 #endif
17511 }
17512 {
17513 if (temp1)
17514 delete arg1;
17515 }
17516 {
17517 if (temp2)
17518 delete arg2;
17519 }
17520 {
17521 if (temp4)
17522 delete arg4;
17523 }
17524 return resultobj;
17525 fail:
17526 {
17527 if (temp1)
17528 delete arg1;
17529 }
17530 {
17531 if (temp2)
17532 delete arg2;
17533 }
17534 {
17535 if (temp4)
17536 delete arg4;
17537 }
17538 return NULL;
17539 }
17540
17541
17542 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17543 int argc;
17544 PyObject *argv[5];
17545
17546 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17547 --argc;
17548 if (argc == 1) {
17549 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17550 }
17551 if (argc == 2) {
17552 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17553 }
17554 if (argc == 3) {
17555 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17556 }
17557 if (argc == 4) {
17558 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17559 }
17560
17561 fail:
17562 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17563 return NULL;
17564 }
17565
17566
17567 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17568 PyObject *resultobj = 0;
17569 wxEncodingConverter *result = 0 ;
17570
17571 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17572 {
17573 PyThreadState* __tstate = wxPyBeginAllowThreads();
17574 result = (wxEncodingConverter *)new wxEncodingConverter();
17575 wxPyEndAllowThreads(__tstate);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
17578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17579 return resultobj;
17580 fail:
17581 return NULL;
17582 }
17583
17584
17585 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17586 PyObject *resultobj = 0;
17587 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17588 void *argp1 = 0 ;
17589 int res1 = 0 ;
17590 PyObject *swig_obj[1] ;
17591
17592 if (!args) SWIG_fail;
17593 swig_obj[0] = args;
17594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17595 if (!SWIG_IsOK(res1)) {
17596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17597 }
17598 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17599 {
17600 PyThreadState* __tstate = wxPyBeginAllowThreads();
17601 delete arg1;
17602
17603 wxPyEndAllowThreads(__tstate);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 resultobj = SWIG_Py_Void();
17607 return resultobj;
17608 fail:
17609 return NULL;
17610 }
17611
17612
17613 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17614 PyObject *resultobj = 0;
17615 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17616 wxFontEncoding arg2 ;
17617 wxFontEncoding arg3 ;
17618 int arg4 = (int) wxCONVERT_STRICT ;
17619 bool result;
17620 void *argp1 = 0 ;
17621 int res1 = 0 ;
17622 int val2 ;
17623 int ecode2 = 0 ;
17624 int val3 ;
17625 int ecode3 = 0 ;
17626 int val4 ;
17627 int ecode4 = 0 ;
17628 PyObject * obj0 = 0 ;
17629 PyObject * obj1 = 0 ;
17630 PyObject * obj2 = 0 ;
17631 PyObject * obj3 = 0 ;
17632 char * kwnames[] = {
17633 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17634 };
17635
17636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17638 if (!SWIG_IsOK(res1)) {
17639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17640 }
17641 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17642 ecode2 = SWIG_AsVal_int(obj1, &val2);
17643 if (!SWIG_IsOK(ecode2)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17645 }
17646 arg2 = static_cast< wxFontEncoding >(val2);
17647 ecode3 = SWIG_AsVal_int(obj2, &val3);
17648 if (!SWIG_IsOK(ecode3)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17650 }
17651 arg3 = static_cast< wxFontEncoding >(val3);
17652 if (obj3) {
17653 ecode4 = SWIG_AsVal_int(obj3, &val4);
17654 if (!SWIG_IsOK(ecode4)) {
17655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17656 }
17657 arg4 = static_cast< int >(val4);
17658 }
17659 {
17660 PyThreadState* __tstate = wxPyBeginAllowThreads();
17661 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 {
17666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17667 }
17668 return resultobj;
17669 fail:
17670 return NULL;
17671 }
17672
17673
17674 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj = 0;
17676 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17677 wxString *arg2 = 0 ;
17678 wxString result;
17679 void *argp1 = 0 ;
17680 int res1 = 0 ;
17681 bool temp2 = false ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 char * kwnames[] = {
17685 (char *) "self",(char *) "input", NULL
17686 };
17687
17688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17690 if (!SWIG_IsOK(res1)) {
17691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17692 }
17693 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17694 {
17695 arg2 = wxString_in_helper(obj1);
17696 if (arg2 == NULL) SWIG_fail;
17697 temp2 = true;
17698 }
17699 {
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 result = (arg1)->Convert((wxString const &)*arg2);
17702 wxPyEndAllowThreads(__tstate);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 }
17705 {
17706 #if wxUSE_UNICODE
17707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17708 #else
17709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17710 #endif
17711 }
17712 {
17713 if (temp2)
17714 delete arg2;
17715 }
17716 return resultobj;
17717 fail:
17718 {
17719 if (temp2)
17720 delete arg2;
17721 }
17722 return NULL;
17723 }
17724
17725
17726 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj = 0;
17728 wxFontEncoding arg1 ;
17729 int arg2 = (int) wxPLATFORM_CURRENT ;
17730 wxFontEncodingArray result;
17731 int val1 ;
17732 int ecode1 = 0 ;
17733 int val2 ;
17734 int ecode2 = 0 ;
17735 PyObject * obj0 = 0 ;
17736 PyObject * obj1 = 0 ;
17737 char * kwnames[] = {
17738 (char *) "enc",(char *) "platform", NULL
17739 };
17740
17741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17742 ecode1 = SWIG_AsVal_int(obj0, &val1);
17743 if (!SWIG_IsOK(ecode1)) {
17744 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17745 }
17746 arg1 = static_cast< wxFontEncoding >(val1);
17747 if (obj1) {
17748 ecode2 = SWIG_AsVal_int(obj1, &val2);
17749 if (!SWIG_IsOK(ecode2)) {
17750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17751 }
17752 arg2 = static_cast< int >(val2);
17753 }
17754 {
17755 PyThreadState* __tstate = wxPyBeginAllowThreads();
17756 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 {
17761 resultobj = PyList_New(0);
17762 for (size_t i=0; i < (&result)->GetCount(); i++) {
17763 PyObject* number = PyInt_FromLong((&result)->Item(i));
17764 PyList_Append(resultobj, number);
17765 Py_DECREF(number);
17766 }
17767 }
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = 0;
17776 wxFontEncoding arg1 ;
17777 wxFontEncodingArray result;
17778 int val1 ;
17779 int ecode1 = 0 ;
17780 PyObject * obj0 = 0 ;
17781 char * kwnames[] = {
17782 (char *) "enc", NULL
17783 };
17784
17785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17786 ecode1 = SWIG_AsVal_int(obj0, &val1);
17787 if (!SWIG_IsOK(ecode1)) {
17788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17789 }
17790 arg1 = static_cast< wxFontEncoding >(val1);
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 result = wxEncodingConverter::GetAllEquivalents(arg1);
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 {
17798 resultobj = PyList_New(0);
17799 for (size_t i=0; i < (&result)->GetCount(); i++) {
17800 PyObject* number = PyInt_FromLong((&result)->Item(i));
17801 PyList_Append(resultobj, number);
17802 Py_DECREF(number);
17803 }
17804 }
17805 return resultobj;
17806 fail:
17807 return NULL;
17808 }
17809
17810
17811 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj = 0;
17813 wxFontEncoding arg1 ;
17814 wxFontEncoding arg2 ;
17815 bool result;
17816 int val1 ;
17817 int ecode1 = 0 ;
17818 int val2 ;
17819 int ecode2 = 0 ;
17820 PyObject * obj0 = 0 ;
17821 PyObject * obj1 = 0 ;
17822 char * kwnames[] = {
17823 (char *) "encIn",(char *) "encOut", NULL
17824 };
17825
17826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17827 ecode1 = SWIG_AsVal_int(obj0, &val1);
17828 if (!SWIG_IsOK(ecode1)) {
17829 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17830 }
17831 arg1 = static_cast< wxFontEncoding >(val1);
17832 ecode2 = SWIG_AsVal_int(obj1, &val2);
17833 if (!SWIG_IsOK(ecode2)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17835 }
17836 arg2 = static_cast< wxFontEncoding >(val2);
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 {
17844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17845 }
17846 return resultobj;
17847 fail:
17848 return NULL;
17849 }
17850
17851
17852 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17853 PyObject *obj;
17854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17855 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17856 return SWIG_Py_Void();
17857 }
17858
17859 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17860 return SWIG_Python_InitShadowInstance(args);
17861 }
17862
17863 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17864 PyObject *resultobj = 0;
17865 wxDC *arg1 = (wxDC *) 0 ;
17866 void *argp1 = 0 ;
17867 int res1 = 0 ;
17868 PyObject *swig_obj[1] ;
17869
17870 if (!args) SWIG_fail;
17871 swig_obj[0] = args;
17872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17873 if (!SWIG_IsOK(res1)) {
17874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17875 }
17876 arg1 = reinterpret_cast< wxDC * >(argp1);
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 delete arg1;
17880
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_Py_Void();
17885 return resultobj;
17886 fail:
17887 return NULL;
17888 }
17889
17890
17891 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj = 0;
17893 wxDC *arg1 = (wxDC *) 0 ;
17894 int arg2 ;
17895 int arg3 ;
17896 wxColour *arg4 = 0 ;
17897 int arg5 = (int) wxFLOOD_SURFACE ;
17898 bool result;
17899 void *argp1 = 0 ;
17900 int res1 = 0 ;
17901 int val2 ;
17902 int ecode2 = 0 ;
17903 int val3 ;
17904 int ecode3 = 0 ;
17905 wxColour temp4 ;
17906 int val5 ;
17907 int ecode5 = 0 ;
17908 PyObject * obj0 = 0 ;
17909 PyObject * obj1 = 0 ;
17910 PyObject * obj2 = 0 ;
17911 PyObject * obj3 = 0 ;
17912 PyObject * obj4 = 0 ;
17913 char * kwnames[] = {
17914 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17915 };
17916
17917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17919 if (!SWIG_IsOK(res1)) {
17920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17921 }
17922 arg1 = reinterpret_cast< wxDC * >(argp1);
17923 ecode2 = SWIG_AsVal_int(obj1, &val2);
17924 if (!SWIG_IsOK(ecode2)) {
17925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17926 }
17927 arg2 = static_cast< int >(val2);
17928 ecode3 = SWIG_AsVal_int(obj2, &val3);
17929 if (!SWIG_IsOK(ecode3)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17931 }
17932 arg3 = static_cast< int >(val3);
17933 {
17934 arg4 = &temp4;
17935 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17936 }
17937 if (obj4) {
17938 ecode5 = SWIG_AsVal_int(obj4, &val5);
17939 if (!SWIG_IsOK(ecode5)) {
17940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17941 }
17942 arg5 = static_cast< int >(val5);
17943 }
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 {
17951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17952 }
17953 return resultobj;
17954 fail:
17955 return NULL;
17956 }
17957
17958
17959 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17960 PyObject *resultobj = 0;
17961 wxDC *arg1 = (wxDC *) 0 ;
17962 wxPoint *arg2 = 0 ;
17963 wxColour *arg3 = 0 ;
17964 int arg4 = (int) wxFLOOD_SURFACE ;
17965 bool result;
17966 void *argp1 = 0 ;
17967 int res1 = 0 ;
17968 wxPoint temp2 ;
17969 wxColour temp3 ;
17970 int val4 ;
17971 int ecode4 = 0 ;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 PyObject * obj2 = 0 ;
17975 PyObject * obj3 = 0 ;
17976 char * kwnames[] = {
17977 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17978 };
17979
17980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17982 if (!SWIG_IsOK(res1)) {
17983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17984 }
17985 arg1 = reinterpret_cast< wxDC * >(argp1);
17986 {
17987 arg2 = &temp2;
17988 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17989 }
17990 {
17991 arg3 = &temp3;
17992 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17993 }
17994 if (obj3) {
17995 ecode4 = SWIG_AsVal_int(obj3, &val4);
17996 if (!SWIG_IsOK(ecode4)) {
17997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17998 }
17999 arg4 = static_cast< int >(val4);
18000 }
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 {
18008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18009 }
18010 return resultobj;
18011 fail:
18012 return NULL;
18013 }
18014
18015
18016 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxDC *arg1 = (wxDC *) 0 ;
18019 wxRect *arg2 = 0 ;
18020 wxColour *arg3 = 0 ;
18021 wxColour *arg4 = 0 ;
18022 wxPoint *arg5 = 0 ;
18023 void *argp1 = 0 ;
18024 int res1 = 0 ;
18025 wxRect temp2 ;
18026 wxColour temp3 ;
18027 wxColour temp4 ;
18028 wxPoint temp5 ;
18029 PyObject * obj0 = 0 ;
18030 PyObject * obj1 = 0 ;
18031 PyObject * obj2 = 0 ;
18032 PyObject * obj3 = 0 ;
18033 PyObject * obj4 = 0 ;
18034 char * kwnames[] = {
18035 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18036 };
18037
18038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18040 if (!SWIG_IsOK(res1)) {
18041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18042 }
18043 arg1 = reinterpret_cast< wxDC * >(argp1);
18044 {
18045 arg2 = &temp2;
18046 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18047 }
18048 {
18049 arg3 = &temp3;
18050 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18051 }
18052 {
18053 arg4 = &temp4;
18054 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18055 }
18056 {
18057 arg5 = &temp5;
18058 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18059 }
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_Py_Void();
18067 return resultobj;
18068 fail:
18069 return NULL;
18070 }
18071
18072
18073 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj = 0;
18075 wxDC *arg1 = (wxDC *) 0 ;
18076 wxRect *arg2 = 0 ;
18077 wxColour *arg3 = 0 ;
18078 wxColour *arg4 = 0 ;
18079 wxDirection arg5 = (wxDirection) wxEAST ;
18080 void *argp1 = 0 ;
18081 int res1 = 0 ;
18082 wxRect temp2 ;
18083 wxColour temp3 ;
18084 wxColour temp4 ;
18085 int val5 ;
18086 int ecode5 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 PyObject * obj2 = 0 ;
18090 PyObject * obj3 = 0 ;
18091 PyObject * obj4 = 0 ;
18092 char * kwnames[] = {
18093 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18094 };
18095
18096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18100 }
18101 arg1 = reinterpret_cast< wxDC * >(argp1);
18102 {
18103 arg2 = &temp2;
18104 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18105 }
18106 {
18107 arg3 = &temp3;
18108 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18109 }
18110 {
18111 arg4 = &temp4;
18112 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18113 }
18114 if (obj4) {
18115 ecode5 = SWIG_AsVal_int(obj4, &val5);
18116 if (!SWIG_IsOK(ecode5)) {
18117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18118 }
18119 arg5 = static_cast< wxDirection >(val5);
18120 }
18121 {
18122 PyThreadState* __tstate = wxPyBeginAllowThreads();
18123 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_Py_Void();
18128 return resultobj;
18129 fail:
18130 return NULL;
18131 }
18132
18133
18134 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj = 0;
18136 wxDC *arg1 = (wxDC *) 0 ;
18137 int arg2 ;
18138 int arg3 ;
18139 wxColour result;
18140 void *argp1 = 0 ;
18141 int res1 = 0 ;
18142 int val2 ;
18143 int ecode2 = 0 ;
18144 int val3 ;
18145 int ecode3 = 0 ;
18146 PyObject * obj0 = 0 ;
18147 PyObject * obj1 = 0 ;
18148 PyObject * obj2 = 0 ;
18149 char * kwnames[] = {
18150 (char *) "self",(char *) "x",(char *) "y", NULL
18151 };
18152
18153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18155 if (!SWIG_IsOK(res1)) {
18156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18157 }
18158 arg1 = reinterpret_cast< wxDC * >(argp1);
18159 ecode2 = SWIG_AsVal_int(obj1, &val2);
18160 if (!SWIG_IsOK(ecode2)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18162 }
18163 arg2 = static_cast< int >(val2);
18164 ecode3 = SWIG_AsVal_int(obj2, &val3);
18165 if (!SWIG_IsOK(ecode3)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18167 }
18168 arg3 = static_cast< int >(val3);
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 result = wxDC_GetPixel(arg1,arg2,arg3);
18172 wxPyEndAllowThreads(__tstate);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18176 return resultobj;
18177 fail:
18178 return NULL;
18179 }
18180
18181
18182 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18183 PyObject *resultobj = 0;
18184 wxDC *arg1 = (wxDC *) 0 ;
18185 wxPoint *arg2 = 0 ;
18186 wxColour result;
18187 void *argp1 = 0 ;
18188 int res1 = 0 ;
18189 wxPoint temp2 ;
18190 PyObject * obj0 = 0 ;
18191 PyObject * obj1 = 0 ;
18192 char * kwnames[] = {
18193 (char *) "self",(char *) "pt", NULL
18194 };
18195
18196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18198 if (!SWIG_IsOK(res1)) {
18199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18200 }
18201 arg1 = reinterpret_cast< wxDC * >(argp1);
18202 {
18203 arg2 = &temp2;
18204 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18205 }
18206 {
18207 PyThreadState* __tstate = wxPyBeginAllowThreads();
18208 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18213 return resultobj;
18214 fail:
18215 return NULL;
18216 }
18217
18218
18219 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18220 PyObject *resultobj = 0;
18221 wxDC *arg1 = (wxDC *) 0 ;
18222 int arg2 ;
18223 int arg3 ;
18224 int arg4 ;
18225 int arg5 ;
18226 void *argp1 = 0 ;
18227 int res1 = 0 ;
18228 int val2 ;
18229 int ecode2 = 0 ;
18230 int val3 ;
18231 int ecode3 = 0 ;
18232 int val4 ;
18233 int ecode4 = 0 ;
18234 int val5 ;
18235 int ecode5 = 0 ;
18236 PyObject * obj0 = 0 ;
18237 PyObject * obj1 = 0 ;
18238 PyObject * obj2 = 0 ;
18239 PyObject * obj3 = 0 ;
18240 PyObject * obj4 = 0 ;
18241 char * kwnames[] = {
18242 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18243 };
18244
18245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18247 if (!SWIG_IsOK(res1)) {
18248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18249 }
18250 arg1 = reinterpret_cast< wxDC * >(argp1);
18251 ecode2 = SWIG_AsVal_int(obj1, &val2);
18252 if (!SWIG_IsOK(ecode2)) {
18253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18254 }
18255 arg2 = static_cast< int >(val2);
18256 ecode3 = SWIG_AsVal_int(obj2, &val3);
18257 if (!SWIG_IsOK(ecode3)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18259 }
18260 arg3 = static_cast< int >(val3);
18261 ecode4 = SWIG_AsVal_int(obj3, &val4);
18262 if (!SWIG_IsOK(ecode4)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18264 }
18265 arg4 = static_cast< int >(val4);
18266 ecode5 = SWIG_AsVal_int(obj4, &val5);
18267 if (!SWIG_IsOK(ecode5)) {
18268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18269 }
18270 arg5 = static_cast< int >(val5);
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = SWIG_Py_Void();
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18285 PyObject *resultobj = 0;
18286 wxDC *arg1 = (wxDC *) 0 ;
18287 wxPoint *arg2 = 0 ;
18288 wxPoint *arg3 = 0 ;
18289 void *argp1 = 0 ;
18290 int res1 = 0 ;
18291 wxPoint temp2 ;
18292 wxPoint temp3 ;
18293 PyObject * obj0 = 0 ;
18294 PyObject * obj1 = 0 ;
18295 PyObject * obj2 = 0 ;
18296 char * kwnames[] = {
18297 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18298 };
18299
18300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18304 }
18305 arg1 = reinterpret_cast< wxDC * >(argp1);
18306 {
18307 arg2 = &temp2;
18308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18309 }
18310 {
18311 arg3 = &temp3;
18312 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18313 }
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 resultobj = SWIG_Py_Void();
18321 return resultobj;
18322 fail:
18323 return NULL;
18324 }
18325
18326
18327 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18328 PyObject *resultobj = 0;
18329 wxDC *arg1 = (wxDC *) 0 ;
18330 int arg2 ;
18331 int arg3 ;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 int val2 ;
18335 int ecode2 = 0 ;
18336 int val3 ;
18337 int ecode3 = 0 ;
18338 PyObject * obj0 = 0 ;
18339 PyObject * obj1 = 0 ;
18340 PyObject * obj2 = 0 ;
18341 char * kwnames[] = {
18342 (char *) "self",(char *) "x",(char *) "y", NULL
18343 };
18344
18345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18347 if (!SWIG_IsOK(res1)) {
18348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18349 }
18350 arg1 = reinterpret_cast< wxDC * >(argp1);
18351 ecode2 = SWIG_AsVal_int(obj1, &val2);
18352 if (!SWIG_IsOK(ecode2)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18354 }
18355 arg2 = static_cast< int >(val2);
18356 ecode3 = SWIG_AsVal_int(obj2, &val3);
18357 if (!SWIG_IsOK(ecode3)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18359 }
18360 arg3 = static_cast< int >(val3);
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 (arg1)->CrossHair(arg2,arg3);
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 resultobj = SWIG_Py_Void();
18368 return resultobj;
18369 fail:
18370 return NULL;
18371 }
18372
18373
18374 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj = 0;
18376 wxDC *arg1 = (wxDC *) 0 ;
18377 wxPoint *arg2 = 0 ;
18378 void *argp1 = 0 ;
18379 int res1 = 0 ;
18380 wxPoint temp2 ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 char * kwnames[] = {
18384 (char *) "self",(char *) "pt", NULL
18385 };
18386
18387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18389 if (!SWIG_IsOK(res1)) {
18390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18391 }
18392 arg1 = reinterpret_cast< wxDC * >(argp1);
18393 {
18394 arg2 = &temp2;
18395 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18396 }
18397 {
18398 PyThreadState* __tstate = wxPyBeginAllowThreads();
18399 (arg1)->CrossHair((wxPoint const &)*arg2);
18400 wxPyEndAllowThreads(__tstate);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 }
18403 resultobj = SWIG_Py_Void();
18404 return resultobj;
18405 fail:
18406 return NULL;
18407 }
18408
18409
18410 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18411 PyObject *resultobj = 0;
18412 wxDC *arg1 = (wxDC *) 0 ;
18413 int arg2 ;
18414 int arg3 ;
18415 int arg4 ;
18416 int arg5 ;
18417 int arg6 ;
18418 int arg7 ;
18419 void *argp1 = 0 ;
18420 int res1 = 0 ;
18421 int val2 ;
18422 int ecode2 = 0 ;
18423 int val3 ;
18424 int ecode3 = 0 ;
18425 int val4 ;
18426 int ecode4 = 0 ;
18427 int val5 ;
18428 int ecode5 = 0 ;
18429 int val6 ;
18430 int ecode6 = 0 ;
18431 int val7 ;
18432 int ecode7 = 0 ;
18433 PyObject * obj0 = 0 ;
18434 PyObject * obj1 = 0 ;
18435 PyObject * obj2 = 0 ;
18436 PyObject * obj3 = 0 ;
18437 PyObject * obj4 = 0 ;
18438 PyObject * obj5 = 0 ;
18439 PyObject * obj6 = 0 ;
18440 char * kwnames[] = {
18441 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18442 };
18443
18444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18446 if (!SWIG_IsOK(res1)) {
18447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18448 }
18449 arg1 = reinterpret_cast< wxDC * >(argp1);
18450 ecode2 = SWIG_AsVal_int(obj1, &val2);
18451 if (!SWIG_IsOK(ecode2)) {
18452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18453 }
18454 arg2 = static_cast< int >(val2);
18455 ecode3 = SWIG_AsVal_int(obj2, &val3);
18456 if (!SWIG_IsOK(ecode3)) {
18457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18458 }
18459 arg3 = static_cast< int >(val3);
18460 ecode4 = SWIG_AsVal_int(obj3, &val4);
18461 if (!SWIG_IsOK(ecode4)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18463 }
18464 arg4 = static_cast< int >(val4);
18465 ecode5 = SWIG_AsVal_int(obj4, &val5);
18466 if (!SWIG_IsOK(ecode5)) {
18467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18468 }
18469 arg5 = static_cast< int >(val5);
18470 ecode6 = SWIG_AsVal_int(obj5, &val6);
18471 if (!SWIG_IsOK(ecode6)) {
18472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18473 }
18474 arg6 = static_cast< int >(val6);
18475 ecode7 = SWIG_AsVal_int(obj6, &val7);
18476 if (!SWIG_IsOK(ecode7)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18478 }
18479 arg7 = static_cast< int >(val7);
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_Py_Void();
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxDC *arg1 = (wxDC *) 0 ;
18496 wxPoint *arg2 = 0 ;
18497 wxPoint *arg3 = 0 ;
18498 wxPoint *arg4 = 0 ;
18499 void *argp1 = 0 ;
18500 int res1 = 0 ;
18501 wxPoint temp2 ;
18502 wxPoint temp3 ;
18503 wxPoint temp4 ;
18504 PyObject * obj0 = 0 ;
18505 PyObject * obj1 = 0 ;
18506 PyObject * obj2 = 0 ;
18507 PyObject * obj3 = 0 ;
18508 char * kwnames[] = {
18509 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18510 };
18511
18512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18514 if (!SWIG_IsOK(res1)) {
18515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18516 }
18517 arg1 = reinterpret_cast< wxDC * >(argp1);
18518 {
18519 arg2 = &temp2;
18520 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18521 }
18522 {
18523 arg3 = &temp3;
18524 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18525 }
18526 {
18527 arg4 = &temp4;
18528 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18529 }
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 resultobj = SWIG_Py_Void();
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj = 0;
18545 wxDC *arg1 = (wxDC *) 0 ;
18546 int arg2 ;
18547 int arg3 ;
18548 int arg4 ;
18549 int arg5 ;
18550 void *argp1 = 0 ;
18551 int res1 = 0 ;
18552 int val2 ;
18553 int ecode2 = 0 ;
18554 int val3 ;
18555 int ecode3 = 0 ;
18556 int val4 ;
18557 int ecode4 = 0 ;
18558 int val5 ;
18559 int ecode5 = 0 ;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 PyObject * obj3 = 0 ;
18564 PyObject * obj4 = 0 ;
18565 char * kwnames[] = {
18566 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18567 };
18568
18569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18571 if (!SWIG_IsOK(res1)) {
18572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18573 }
18574 arg1 = reinterpret_cast< wxDC * >(argp1);
18575 ecode2 = SWIG_AsVal_int(obj1, &val2);
18576 if (!SWIG_IsOK(ecode2)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18578 }
18579 arg2 = static_cast< int >(val2);
18580 ecode3 = SWIG_AsVal_int(obj2, &val3);
18581 if (!SWIG_IsOK(ecode3)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18583 }
18584 arg3 = static_cast< int >(val3);
18585 ecode4 = SWIG_AsVal_int(obj3, &val4);
18586 if (!SWIG_IsOK(ecode4)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18588 }
18589 arg4 = static_cast< int >(val4);
18590 ecode5 = SWIG_AsVal_int(obj4, &val5);
18591 if (!SWIG_IsOK(ecode5)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18593 }
18594 arg5 = static_cast< int >(val5);
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 resultobj = SWIG_Py_Void();
18602 return resultobj;
18603 fail:
18604 return NULL;
18605 }
18606
18607
18608 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj = 0;
18610 wxDC *arg1 = (wxDC *) 0 ;
18611 wxRect *arg2 = 0 ;
18612 void *argp1 = 0 ;
18613 int res1 = 0 ;
18614 wxRect temp2 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 char * kwnames[] = {
18618 (char *) "self",(char *) "rect", NULL
18619 };
18620
18621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18623 if (!SWIG_IsOK(res1)) {
18624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18625 }
18626 arg1 = reinterpret_cast< wxDC * >(argp1);
18627 {
18628 arg2 = &temp2;
18629 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18630 }
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 resultobj = SWIG_Py_Void();
18638 return resultobj;
18639 fail:
18640 return NULL;
18641 }
18642
18643
18644 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18645 PyObject *resultobj = 0;
18646 wxDC *arg1 = (wxDC *) 0 ;
18647 int arg2 ;
18648 int arg3 ;
18649 int arg4 ;
18650 int arg5 ;
18651 double arg6 ;
18652 double arg7 ;
18653 void *argp1 = 0 ;
18654 int res1 = 0 ;
18655 int val2 ;
18656 int ecode2 = 0 ;
18657 int val3 ;
18658 int ecode3 = 0 ;
18659 int val4 ;
18660 int ecode4 = 0 ;
18661 int val5 ;
18662 int ecode5 = 0 ;
18663 double val6 ;
18664 int ecode6 = 0 ;
18665 double val7 ;
18666 int ecode7 = 0 ;
18667 PyObject * obj0 = 0 ;
18668 PyObject * obj1 = 0 ;
18669 PyObject * obj2 = 0 ;
18670 PyObject * obj3 = 0 ;
18671 PyObject * obj4 = 0 ;
18672 PyObject * obj5 = 0 ;
18673 PyObject * obj6 = 0 ;
18674 char * kwnames[] = {
18675 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18676 };
18677
18678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18680 if (!SWIG_IsOK(res1)) {
18681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18682 }
18683 arg1 = reinterpret_cast< wxDC * >(argp1);
18684 ecode2 = SWIG_AsVal_int(obj1, &val2);
18685 if (!SWIG_IsOK(ecode2)) {
18686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18687 }
18688 arg2 = static_cast< int >(val2);
18689 ecode3 = SWIG_AsVal_int(obj2, &val3);
18690 if (!SWIG_IsOK(ecode3)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18692 }
18693 arg3 = static_cast< int >(val3);
18694 ecode4 = SWIG_AsVal_int(obj3, &val4);
18695 if (!SWIG_IsOK(ecode4)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18697 }
18698 arg4 = static_cast< int >(val4);
18699 ecode5 = SWIG_AsVal_int(obj4, &val5);
18700 if (!SWIG_IsOK(ecode5)) {
18701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18702 }
18703 arg5 = static_cast< int >(val5);
18704 ecode6 = SWIG_AsVal_double(obj5, &val6);
18705 if (!SWIG_IsOK(ecode6)) {
18706 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18707 }
18708 arg6 = static_cast< double >(val6);
18709 ecode7 = SWIG_AsVal_double(obj6, &val7);
18710 if (!SWIG_IsOK(ecode7)) {
18711 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18712 }
18713 arg7 = static_cast< double >(val7);
18714 {
18715 PyThreadState* __tstate = wxPyBeginAllowThreads();
18716 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18717 wxPyEndAllowThreads(__tstate);
18718 if (PyErr_Occurred()) SWIG_fail;
18719 }
18720 resultobj = SWIG_Py_Void();
18721 return resultobj;
18722 fail:
18723 return NULL;
18724 }
18725
18726
18727 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18728 PyObject *resultobj = 0;
18729 wxDC *arg1 = (wxDC *) 0 ;
18730 wxPoint *arg2 = 0 ;
18731 wxSize *arg3 = 0 ;
18732 double arg4 ;
18733 double arg5 ;
18734 void *argp1 = 0 ;
18735 int res1 = 0 ;
18736 wxPoint temp2 ;
18737 wxSize temp3 ;
18738 double val4 ;
18739 int ecode4 = 0 ;
18740 double val5 ;
18741 int ecode5 = 0 ;
18742 PyObject * obj0 = 0 ;
18743 PyObject * obj1 = 0 ;
18744 PyObject * obj2 = 0 ;
18745 PyObject * obj3 = 0 ;
18746 PyObject * obj4 = 0 ;
18747 char * kwnames[] = {
18748 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18749 };
18750
18751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18753 if (!SWIG_IsOK(res1)) {
18754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18755 }
18756 arg1 = reinterpret_cast< wxDC * >(argp1);
18757 {
18758 arg2 = &temp2;
18759 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18760 }
18761 {
18762 arg3 = &temp3;
18763 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18764 }
18765 ecode4 = SWIG_AsVal_double(obj3, &val4);
18766 if (!SWIG_IsOK(ecode4)) {
18767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18768 }
18769 arg4 = static_cast< double >(val4);
18770 ecode5 = SWIG_AsVal_double(obj4, &val5);
18771 if (!SWIG_IsOK(ecode5)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18773 }
18774 arg5 = static_cast< double >(val5);
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_Py_Void();
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj = 0;
18790 wxDC *arg1 = (wxDC *) 0 ;
18791 int arg2 ;
18792 int arg3 ;
18793 void *argp1 = 0 ;
18794 int res1 = 0 ;
18795 int val2 ;
18796 int ecode2 = 0 ;
18797 int val3 ;
18798 int ecode3 = 0 ;
18799 PyObject * obj0 = 0 ;
18800 PyObject * obj1 = 0 ;
18801 PyObject * obj2 = 0 ;
18802 char * kwnames[] = {
18803 (char *) "self",(char *) "x",(char *) "y", NULL
18804 };
18805
18806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18810 }
18811 arg1 = reinterpret_cast< wxDC * >(argp1);
18812 ecode2 = SWIG_AsVal_int(obj1, &val2);
18813 if (!SWIG_IsOK(ecode2)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18815 }
18816 arg2 = static_cast< int >(val2);
18817 ecode3 = SWIG_AsVal_int(obj2, &val3);
18818 if (!SWIG_IsOK(ecode3)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18820 }
18821 arg3 = static_cast< int >(val3);
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 (arg1)->DrawPoint(arg2,arg3);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_Py_Void();
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 wxPoint *arg2 = 0 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 wxPoint temp2 ;
18842 PyObject * obj0 = 0 ;
18843 PyObject * obj1 = 0 ;
18844 char * kwnames[] = {
18845 (char *) "self",(char *) "pt", NULL
18846 };
18847
18848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18850 if (!SWIG_IsOK(res1)) {
18851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18852 }
18853 arg1 = reinterpret_cast< wxDC * >(argp1);
18854 {
18855 arg2 = &temp2;
18856 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18857 }
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 (arg1)->DrawPoint((wxPoint const &)*arg2);
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_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18872 PyObject *resultobj = 0;
18873 wxDC *arg1 = (wxDC *) 0 ;
18874 int arg2 ;
18875 int arg3 ;
18876 int arg4 ;
18877 int arg5 ;
18878 void *argp1 = 0 ;
18879 int res1 = 0 ;
18880 int val2 ;
18881 int ecode2 = 0 ;
18882 int val3 ;
18883 int ecode3 = 0 ;
18884 int val4 ;
18885 int ecode4 = 0 ;
18886 int val5 ;
18887 int ecode5 = 0 ;
18888 PyObject * obj0 = 0 ;
18889 PyObject * obj1 = 0 ;
18890 PyObject * obj2 = 0 ;
18891 PyObject * obj3 = 0 ;
18892 PyObject * obj4 = 0 ;
18893 char * kwnames[] = {
18894 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18895 };
18896
18897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18899 if (!SWIG_IsOK(res1)) {
18900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18901 }
18902 arg1 = reinterpret_cast< wxDC * >(argp1);
18903 ecode2 = SWIG_AsVal_int(obj1, &val2);
18904 if (!SWIG_IsOK(ecode2)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18906 }
18907 arg2 = static_cast< int >(val2);
18908 ecode3 = SWIG_AsVal_int(obj2, &val3);
18909 if (!SWIG_IsOK(ecode3)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18911 }
18912 arg3 = static_cast< int >(val3);
18913 ecode4 = SWIG_AsVal_int(obj3, &val4);
18914 if (!SWIG_IsOK(ecode4)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18916 }
18917 arg4 = static_cast< int >(val4);
18918 ecode5 = SWIG_AsVal_int(obj4, &val5);
18919 if (!SWIG_IsOK(ecode5)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18921 }
18922 arg5 = static_cast< int >(val5);
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18926 wxPyEndAllowThreads(__tstate);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 resultobj = SWIG_Py_Void();
18930 return resultobj;
18931 fail:
18932 return NULL;
18933 }
18934
18935
18936 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18937 PyObject *resultobj = 0;
18938 wxDC *arg1 = (wxDC *) 0 ;
18939 wxRect *arg2 = 0 ;
18940 void *argp1 = 0 ;
18941 int res1 = 0 ;
18942 wxRect temp2 ;
18943 PyObject * obj0 = 0 ;
18944 PyObject * obj1 = 0 ;
18945 char * kwnames[] = {
18946 (char *) "self",(char *) "rect", NULL
18947 };
18948
18949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18951 if (!SWIG_IsOK(res1)) {
18952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18953 }
18954 arg1 = reinterpret_cast< wxDC * >(argp1);
18955 {
18956 arg2 = &temp2;
18957 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18958 }
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 (arg1)->DrawRectangle((wxRect const &)*arg2);
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 resultobj = SWIG_Py_Void();
18966 return resultobj;
18967 fail:
18968 return NULL;
18969 }
18970
18971
18972 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18973 PyObject *resultobj = 0;
18974 wxDC *arg1 = (wxDC *) 0 ;
18975 wxPoint *arg2 = 0 ;
18976 wxSize *arg3 = 0 ;
18977 void *argp1 = 0 ;
18978 int res1 = 0 ;
18979 wxPoint temp2 ;
18980 wxSize temp3 ;
18981 PyObject * obj0 = 0 ;
18982 PyObject * obj1 = 0 ;
18983 PyObject * obj2 = 0 ;
18984 char * kwnames[] = {
18985 (char *) "self",(char *) "pt",(char *) "sz", NULL
18986 };
18987
18988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18990 if (!SWIG_IsOK(res1)) {
18991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18992 }
18993 arg1 = reinterpret_cast< wxDC * >(argp1);
18994 {
18995 arg2 = &temp2;
18996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18997 }
18998 {
18999 arg3 = &temp3;
19000 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19001 }
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 resultobj = SWIG_Py_Void();
19009 return resultobj;
19010 fail:
19011 return NULL;
19012 }
19013
19014
19015 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19016 PyObject *resultobj = 0;
19017 wxDC *arg1 = (wxDC *) 0 ;
19018 int arg2 ;
19019 int arg3 ;
19020 int arg4 ;
19021 int arg5 ;
19022 double arg6 ;
19023 void *argp1 = 0 ;
19024 int res1 = 0 ;
19025 int val2 ;
19026 int ecode2 = 0 ;
19027 int val3 ;
19028 int ecode3 = 0 ;
19029 int val4 ;
19030 int ecode4 = 0 ;
19031 int val5 ;
19032 int ecode5 = 0 ;
19033 double val6 ;
19034 int ecode6 = 0 ;
19035 PyObject * obj0 = 0 ;
19036 PyObject * obj1 = 0 ;
19037 PyObject * obj2 = 0 ;
19038 PyObject * obj3 = 0 ;
19039 PyObject * obj4 = 0 ;
19040 PyObject * obj5 = 0 ;
19041 char * kwnames[] = {
19042 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19043 };
19044
19045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19047 if (!SWIG_IsOK(res1)) {
19048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19049 }
19050 arg1 = reinterpret_cast< wxDC * >(argp1);
19051 ecode2 = SWIG_AsVal_int(obj1, &val2);
19052 if (!SWIG_IsOK(ecode2)) {
19053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19054 }
19055 arg2 = static_cast< int >(val2);
19056 ecode3 = SWIG_AsVal_int(obj2, &val3);
19057 if (!SWIG_IsOK(ecode3)) {
19058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19059 }
19060 arg3 = static_cast< int >(val3);
19061 ecode4 = SWIG_AsVal_int(obj3, &val4);
19062 if (!SWIG_IsOK(ecode4)) {
19063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19064 }
19065 arg4 = static_cast< int >(val4);
19066 ecode5 = SWIG_AsVal_int(obj4, &val5);
19067 if (!SWIG_IsOK(ecode5)) {
19068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19069 }
19070 arg5 = static_cast< int >(val5);
19071 ecode6 = SWIG_AsVal_double(obj5, &val6);
19072 if (!SWIG_IsOK(ecode6)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19074 }
19075 arg6 = static_cast< double >(val6);
19076 {
19077 PyThreadState* __tstate = wxPyBeginAllowThreads();
19078 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19079 wxPyEndAllowThreads(__tstate);
19080 if (PyErr_Occurred()) SWIG_fail;
19081 }
19082 resultobj = SWIG_Py_Void();
19083 return resultobj;
19084 fail:
19085 return NULL;
19086 }
19087
19088
19089 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19090 PyObject *resultobj = 0;
19091 wxDC *arg1 = (wxDC *) 0 ;
19092 wxRect *arg2 = 0 ;
19093 double arg3 ;
19094 void *argp1 = 0 ;
19095 int res1 = 0 ;
19096 wxRect temp2 ;
19097 double val3 ;
19098 int ecode3 = 0 ;
19099 PyObject * obj0 = 0 ;
19100 PyObject * obj1 = 0 ;
19101 PyObject * obj2 = 0 ;
19102 char * kwnames[] = {
19103 (char *) "self",(char *) "r",(char *) "radius", NULL
19104 };
19105
19106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19110 }
19111 arg1 = reinterpret_cast< wxDC * >(argp1);
19112 {
19113 arg2 = &temp2;
19114 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19115 }
19116 ecode3 = SWIG_AsVal_double(obj2, &val3);
19117 if (!SWIG_IsOK(ecode3)) {
19118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19119 }
19120 arg3 = static_cast< double >(val3);
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
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_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = 0;
19136 wxDC *arg1 = (wxDC *) 0 ;
19137 wxPoint *arg2 = 0 ;
19138 wxSize *arg3 = 0 ;
19139 double arg4 ;
19140 void *argp1 = 0 ;
19141 int res1 = 0 ;
19142 wxPoint temp2 ;
19143 wxSize temp3 ;
19144 double val4 ;
19145 int ecode4 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 PyObject * obj2 = 0 ;
19149 PyObject * obj3 = 0 ;
19150 char * kwnames[] = {
19151 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19152 };
19153
19154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19156 if (!SWIG_IsOK(res1)) {
19157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19158 }
19159 arg1 = reinterpret_cast< wxDC * >(argp1);
19160 {
19161 arg2 = &temp2;
19162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19163 }
19164 {
19165 arg3 = &temp3;
19166 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19167 }
19168 ecode4 = SWIG_AsVal_double(obj3, &val4);
19169 if (!SWIG_IsOK(ecode4)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19171 }
19172 arg4 = static_cast< double >(val4);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 resultobj = SWIG_Py_Void();
19180 return resultobj;
19181 fail:
19182 return NULL;
19183 }
19184
19185
19186 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj = 0;
19188 wxDC *arg1 = (wxDC *) 0 ;
19189 int arg2 ;
19190 int arg3 ;
19191 int arg4 ;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 int val2 ;
19195 int ecode2 = 0 ;
19196 int val3 ;
19197 int ecode3 = 0 ;
19198 int val4 ;
19199 int ecode4 = 0 ;
19200 PyObject * obj0 = 0 ;
19201 PyObject * obj1 = 0 ;
19202 PyObject * obj2 = 0 ;
19203 PyObject * obj3 = 0 ;
19204 char * kwnames[] = {
19205 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19206 };
19207
19208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19210 if (!SWIG_IsOK(res1)) {
19211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19212 }
19213 arg1 = reinterpret_cast< wxDC * >(argp1);
19214 ecode2 = SWIG_AsVal_int(obj1, &val2);
19215 if (!SWIG_IsOK(ecode2)) {
19216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19217 }
19218 arg2 = static_cast< int >(val2);
19219 ecode3 = SWIG_AsVal_int(obj2, &val3);
19220 if (!SWIG_IsOK(ecode3)) {
19221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19222 }
19223 arg3 = static_cast< int >(val3);
19224 ecode4 = SWIG_AsVal_int(obj3, &val4);
19225 if (!SWIG_IsOK(ecode4)) {
19226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19227 }
19228 arg4 = static_cast< int >(val4);
19229 {
19230 PyThreadState* __tstate = wxPyBeginAllowThreads();
19231 (arg1)->DrawCircle(arg2,arg3,arg4);
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 resultobj = SWIG_Py_Void();
19236 return resultobj;
19237 fail:
19238 return NULL;
19239 }
19240
19241
19242 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19243 PyObject *resultobj = 0;
19244 wxDC *arg1 = (wxDC *) 0 ;
19245 wxPoint *arg2 = 0 ;
19246 int arg3 ;
19247 void *argp1 = 0 ;
19248 int res1 = 0 ;
19249 wxPoint temp2 ;
19250 int val3 ;
19251 int ecode3 = 0 ;
19252 PyObject * obj0 = 0 ;
19253 PyObject * obj1 = 0 ;
19254 PyObject * obj2 = 0 ;
19255 char * kwnames[] = {
19256 (char *) "self",(char *) "pt",(char *) "radius", NULL
19257 };
19258
19259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19261 if (!SWIG_IsOK(res1)) {
19262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19263 }
19264 arg1 = reinterpret_cast< wxDC * >(argp1);
19265 {
19266 arg2 = &temp2;
19267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19268 }
19269 ecode3 = SWIG_AsVal_int(obj2, &val3);
19270 if (!SWIG_IsOK(ecode3)) {
19271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19272 }
19273 arg3 = static_cast< int >(val3);
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19277 wxPyEndAllowThreads(__tstate);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 resultobj = SWIG_Py_Void();
19281 return resultobj;
19282 fail:
19283 return NULL;
19284 }
19285
19286
19287 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19288 PyObject *resultobj = 0;
19289 wxDC *arg1 = (wxDC *) 0 ;
19290 int arg2 ;
19291 int arg3 ;
19292 int arg4 ;
19293 int arg5 ;
19294 void *argp1 = 0 ;
19295 int res1 = 0 ;
19296 int val2 ;
19297 int ecode2 = 0 ;
19298 int val3 ;
19299 int ecode3 = 0 ;
19300 int val4 ;
19301 int ecode4 = 0 ;
19302 int val5 ;
19303 int ecode5 = 0 ;
19304 PyObject * obj0 = 0 ;
19305 PyObject * obj1 = 0 ;
19306 PyObject * obj2 = 0 ;
19307 PyObject * obj3 = 0 ;
19308 PyObject * obj4 = 0 ;
19309 char * kwnames[] = {
19310 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19311 };
19312
19313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19315 if (!SWIG_IsOK(res1)) {
19316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19317 }
19318 arg1 = reinterpret_cast< wxDC * >(argp1);
19319 ecode2 = SWIG_AsVal_int(obj1, &val2);
19320 if (!SWIG_IsOK(ecode2)) {
19321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19322 }
19323 arg2 = static_cast< int >(val2);
19324 ecode3 = SWIG_AsVal_int(obj2, &val3);
19325 if (!SWIG_IsOK(ecode3)) {
19326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19327 }
19328 arg3 = static_cast< int >(val3);
19329 ecode4 = SWIG_AsVal_int(obj3, &val4);
19330 if (!SWIG_IsOK(ecode4)) {
19331 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19332 }
19333 arg4 = static_cast< int >(val4);
19334 ecode5 = SWIG_AsVal_int(obj4, &val5);
19335 if (!SWIG_IsOK(ecode5)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19337 }
19338 arg5 = static_cast< int >(val5);
19339 {
19340 PyThreadState* __tstate = wxPyBeginAllowThreads();
19341 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19342 wxPyEndAllowThreads(__tstate);
19343 if (PyErr_Occurred()) SWIG_fail;
19344 }
19345 resultobj = SWIG_Py_Void();
19346 return resultobj;
19347 fail:
19348 return NULL;
19349 }
19350
19351
19352 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19353 PyObject *resultobj = 0;
19354 wxDC *arg1 = (wxDC *) 0 ;
19355 wxRect *arg2 = 0 ;
19356 void *argp1 = 0 ;
19357 int res1 = 0 ;
19358 wxRect temp2 ;
19359 PyObject * obj0 = 0 ;
19360 PyObject * obj1 = 0 ;
19361 char * kwnames[] = {
19362 (char *) "self",(char *) "rect", NULL
19363 };
19364
19365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19367 if (!SWIG_IsOK(res1)) {
19368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19369 }
19370 arg1 = reinterpret_cast< wxDC * >(argp1);
19371 {
19372 arg2 = &temp2;
19373 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19374 }
19375 {
19376 PyThreadState* __tstate = wxPyBeginAllowThreads();
19377 (arg1)->DrawEllipse((wxRect const &)*arg2);
19378 wxPyEndAllowThreads(__tstate);
19379 if (PyErr_Occurred()) SWIG_fail;
19380 }
19381 resultobj = SWIG_Py_Void();
19382 return resultobj;
19383 fail:
19384 return NULL;
19385 }
19386
19387
19388 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19389 PyObject *resultobj = 0;
19390 wxDC *arg1 = (wxDC *) 0 ;
19391 wxPoint *arg2 = 0 ;
19392 wxSize *arg3 = 0 ;
19393 void *argp1 = 0 ;
19394 int res1 = 0 ;
19395 wxPoint temp2 ;
19396 wxSize temp3 ;
19397 PyObject * obj0 = 0 ;
19398 PyObject * obj1 = 0 ;
19399 PyObject * obj2 = 0 ;
19400 char * kwnames[] = {
19401 (char *) "self",(char *) "pt",(char *) "sz", NULL
19402 };
19403
19404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19406 if (!SWIG_IsOK(res1)) {
19407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19408 }
19409 arg1 = reinterpret_cast< wxDC * >(argp1);
19410 {
19411 arg2 = &temp2;
19412 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19413 }
19414 {
19415 arg3 = &temp3;
19416 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19417 }
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 resultobj = SWIG_Py_Void();
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj = 0;
19433 wxDC *arg1 = (wxDC *) 0 ;
19434 wxIcon *arg2 = 0 ;
19435 int arg3 ;
19436 int arg4 ;
19437 void *argp1 = 0 ;
19438 int res1 = 0 ;
19439 void *argp2 = 0 ;
19440 int res2 = 0 ;
19441 int val3 ;
19442 int ecode3 = 0 ;
19443 int val4 ;
19444 int ecode4 = 0 ;
19445 PyObject * obj0 = 0 ;
19446 PyObject * obj1 = 0 ;
19447 PyObject * obj2 = 0 ;
19448 PyObject * obj3 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19457 }
19458 arg1 = reinterpret_cast< wxDC * >(argp1);
19459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19460 if (!SWIG_IsOK(res2)) {
19461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19462 }
19463 if (!argp2) {
19464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19465 }
19466 arg2 = reinterpret_cast< wxIcon * >(argp2);
19467 ecode3 = SWIG_AsVal_int(obj2, &val3);
19468 if (!SWIG_IsOK(ecode3)) {
19469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19470 }
19471 arg3 = static_cast< int >(val3);
19472 ecode4 = SWIG_AsVal_int(obj3, &val4);
19473 if (!SWIG_IsOK(ecode4)) {
19474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19475 }
19476 arg4 = static_cast< int >(val4);
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 return resultobj;
19485 fail:
19486 return NULL;
19487 }
19488
19489
19490 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19491 PyObject *resultobj = 0;
19492 wxDC *arg1 = (wxDC *) 0 ;
19493 wxIcon *arg2 = 0 ;
19494 wxPoint *arg3 = 0 ;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 void *argp2 = 0 ;
19498 int res2 = 0 ;
19499 wxPoint temp3 ;
19500 PyObject * obj0 = 0 ;
19501 PyObject * obj1 = 0 ;
19502 PyObject * obj2 = 0 ;
19503 char * kwnames[] = {
19504 (char *) "self",(char *) "icon",(char *) "pt", NULL
19505 };
19506
19507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19509 if (!SWIG_IsOK(res1)) {
19510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19511 }
19512 arg1 = reinterpret_cast< wxDC * >(argp1);
19513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19514 if (!SWIG_IsOK(res2)) {
19515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19516 }
19517 if (!argp2) {
19518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19519 }
19520 arg2 = reinterpret_cast< wxIcon * >(argp2);
19521 {
19522 arg3 = &temp3;
19523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19524 }
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19528 wxPyEndAllowThreads(__tstate);
19529 if (PyErr_Occurred()) SWIG_fail;
19530 }
19531 resultobj = SWIG_Py_Void();
19532 return resultobj;
19533 fail:
19534 return NULL;
19535 }
19536
19537
19538 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19539 PyObject *resultobj = 0;
19540 wxDC *arg1 = (wxDC *) 0 ;
19541 wxBitmap *arg2 = 0 ;
19542 int arg3 ;
19543 int arg4 ;
19544 bool arg5 = (bool) false ;
19545 void *argp1 = 0 ;
19546 int res1 = 0 ;
19547 void *argp2 = 0 ;
19548 int res2 = 0 ;
19549 int val3 ;
19550 int ecode3 = 0 ;
19551 int val4 ;
19552 int ecode4 = 0 ;
19553 bool val5 ;
19554 int ecode5 = 0 ;
19555 PyObject * obj0 = 0 ;
19556 PyObject * obj1 = 0 ;
19557 PyObject * obj2 = 0 ;
19558 PyObject * obj3 = 0 ;
19559 PyObject * obj4 = 0 ;
19560 char * kwnames[] = {
19561 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19562 };
19563
19564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19566 if (!SWIG_IsOK(res1)) {
19567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19568 }
19569 arg1 = reinterpret_cast< wxDC * >(argp1);
19570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19571 if (!SWIG_IsOK(res2)) {
19572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19573 }
19574 if (!argp2) {
19575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19576 }
19577 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19578 ecode3 = SWIG_AsVal_int(obj2, &val3);
19579 if (!SWIG_IsOK(ecode3)) {
19580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19581 }
19582 arg3 = static_cast< int >(val3);
19583 ecode4 = SWIG_AsVal_int(obj3, &val4);
19584 if (!SWIG_IsOK(ecode4)) {
19585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19586 }
19587 arg4 = static_cast< int >(val4);
19588 if (obj4) {
19589 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19590 if (!SWIG_IsOK(ecode5)) {
19591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19592 }
19593 arg5 = static_cast< bool >(val5);
19594 }
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_Py_Void();
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj = 0;
19610 wxDC *arg1 = (wxDC *) 0 ;
19611 wxBitmap *arg2 = 0 ;
19612 wxPoint *arg3 = 0 ;
19613 bool arg4 = (bool) false ;
19614 void *argp1 = 0 ;
19615 int res1 = 0 ;
19616 void *argp2 = 0 ;
19617 int res2 = 0 ;
19618 wxPoint temp3 ;
19619 bool val4 ;
19620 int ecode4 = 0 ;
19621 PyObject * obj0 = 0 ;
19622 PyObject * obj1 = 0 ;
19623 PyObject * obj2 = 0 ;
19624 PyObject * obj3 = 0 ;
19625 char * kwnames[] = {
19626 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19627 };
19628
19629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19631 if (!SWIG_IsOK(res1)) {
19632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19633 }
19634 arg1 = reinterpret_cast< wxDC * >(argp1);
19635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19636 if (!SWIG_IsOK(res2)) {
19637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19638 }
19639 if (!argp2) {
19640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19641 }
19642 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19643 {
19644 arg3 = &temp3;
19645 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19646 }
19647 if (obj3) {
19648 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19649 if (!SWIG_IsOK(ecode4)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19651 }
19652 arg4 = static_cast< bool >(val4);
19653 }
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
19660 resultobj = SWIG_Py_Void();
19661 return resultobj;
19662 fail:
19663 return NULL;
19664 }
19665
19666
19667 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19668 PyObject *resultobj = 0;
19669 wxDC *arg1 = (wxDC *) 0 ;
19670 wxString *arg2 = 0 ;
19671 int arg3 ;
19672 int arg4 ;
19673 void *argp1 = 0 ;
19674 int res1 = 0 ;
19675 bool temp2 = false ;
19676 int val3 ;
19677 int ecode3 = 0 ;
19678 int val4 ;
19679 int ecode4 = 0 ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 PyObject * obj2 = 0 ;
19683 PyObject * obj3 = 0 ;
19684 char * kwnames[] = {
19685 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19686 };
19687
19688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19690 if (!SWIG_IsOK(res1)) {
19691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19692 }
19693 arg1 = reinterpret_cast< wxDC * >(argp1);
19694 {
19695 arg2 = wxString_in_helper(obj1);
19696 if (arg2 == NULL) SWIG_fail;
19697 temp2 = true;
19698 }
19699 ecode3 = SWIG_AsVal_int(obj2, &val3);
19700 if (!SWIG_IsOK(ecode3)) {
19701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19702 }
19703 arg3 = static_cast< int >(val3);
19704 ecode4 = SWIG_AsVal_int(obj3, &val4);
19705 if (!SWIG_IsOK(ecode4)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19707 }
19708 arg4 = static_cast< int >(val4);
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 {
19717 if (temp2)
19718 delete arg2;
19719 }
19720 return resultobj;
19721 fail:
19722 {
19723 if (temp2)
19724 delete arg2;
19725 }
19726 return NULL;
19727 }
19728
19729
19730 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxDC *arg1 = (wxDC *) 0 ;
19733 wxString *arg2 = 0 ;
19734 wxPoint *arg3 = 0 ;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 bool temp2 = false ;
19738 wxPoint temp3 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 PyObject * obj2 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "text",(char *) "pt", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19750 }
19751 arg1 = reinterpret_cast< wxDC * >(argp1);
19752 {
19753 arg2 = wxString_in_helper(obj1);
19754 if (arg2 == NULL) SWIG_fail;
19755 temp2 = true;
19756 }
19757 {
19758 arg3 = &temp3;
19759 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19760 }
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_Py_Void();
19768 {
19769 if (temp2)
19770 delete arg2;
19771 }
19772 return resultobj;
19773 fail:
19774 {
19775 if (temp2)
19776 delete arg2;
19777 }
19778 return NULL;
19779 }
19780
19781
19782 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19783 PyObject *resultobj = 0;
19784 wxDC *arg1 = (wxDC *) 0 ;
19785 wxString *arg2 = 0 ;
19786 int arg3 ;
19787 int arg4 ;
19788 double arg5 ;
19789 void *argp1 = 0 ;
19790 int res1 = 0 ;
19791 bool temp2 = false ;
19792 int val3 ;
19793 int ecode3 = 0 ;
19794 int val4 ;
19795 int ecode4 = 0 ;
19796 double val5 ;
19797 int ecode5 = 0 ;
19798 PyObject * obj0 = 0 ;
19799 PyObject * obj1 = 0 ;
19800 PyObject * obj2 = 0 ;
19801 PyObject * obj3 = 0 ;
19802 PyObject * obj4 = 0 ;
19803 char * kwnames[] = {
19804 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19805 };
19806
19807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19809 if (!SWIG_IsOK(res1)) {
19810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19811 }
19812 arg1 = reinterpret_cast< wxDC * >(argp1);
19813 {
19814 arg2 = wxString_in_helper(obj1);
19815 if (arg2 == NULL) SWIG_fail;
19816 temp2 = true;
19817 }
19818 ecode3 = SWIG_AsVal_int(obj2, &val3);
19819 if (!SWIG_IsOK(ecode3)) {
19820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19821 }
19822 arg3 = static_cast< int >(val3);
19823 ecode4 = SWIG_AsVal_int(obj3, &val4);
19824 if (!SWIG_IsOK(ecode4)) {
19825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19826 }
19827 arg4 = static_cast< int >(val4);
19828 ecode5 = SWIG_AsVal_double(obj4, &val5);
19829 if (!SWIG_IsOK(ecode5)) {
19830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19831 }
19832 arg5 = static_cast< double >(val5);
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 resultobj = SWIG_Py_Void();
19840 {
19841 if (temp2)
19842 delete arg2;
19843 }
19844 return resultobj;
19845 fail:
19846 {
19847 if (temp2)
19848 delete arg2;
19849 }
19850 return NULL;
19851 }
19852
19853
19854 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19855 PyObject *resultobj = 0;
19856 wxDC *arg1 = (wxDC *) 0 ;
19857 wxString *arg2 = 0 ;
19858 wxPoint *arg3 = 0 ;
19859 double arg4 ;
19860 void *argp1 = 0 ;
19861 int res1 = 0 ;
19862 bool temp2 = false ;
19863 wxPoint temp3 ;
19864 double val4 ;
19865 int ecode4 = 0 ;
19866 PyObject * obj0 = 0 ;
19867 PyObject * obj1 = 0 ;
19868 PyObject * obj2 = 0 ;
19869 PyObject * obj3 = 0 ;
19870 char * kwnames[] = {
19871 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19872 };
19873
19874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19876 if (!SWIG_IsOK(res1)) {
19877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19878 }
19879 arg1 = reinterpret_cast< wxDC * >(argp1);
19880 {
19881 arg2 = wxString_in_helper(obj1);
19882 if (arg2 == NULL) SWIG_fail;
19883 temp2 = true;
19884 }
19885 {
19886 arg3 = &temp3;
19887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19888 }
19889 ecode4 = SWIG_AsVal_double(obj3, &val4);
19890 if (!SWIG_IsOK(ecode4)) {
19891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19892 }
19893 arg4 = static_cast< double >(val4);
19894 {
19895 PyThreadState* __tstate = wxPyBeginAllowThreads();
19896 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 resultobj = SWIG_Py_Void();
19901 {
19902 if (temp2)
19903 delete arg2;
19904 }
19905 return resultobj;
19906 fail:
19907 {
19908 if (temp2)
19909 delete arg2;
19910 }
19911 return NULL;
19912 }
19913
19914
19915 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19916 PyObject *resultobj = 0;
19917 wxDC *arg1 = (wxDC *) 0 ;
19918 int arg2 ;
19919 int arg3 ;
19920 int arg4 ;
19921 int arg5 ;
19922 wxDC *arg6 = (wxDC *) 0 ;
19923 int arg7 ;
19924 int arg8 ;
19925 int arg9 = (int) wxCOPY ;
19926 bool arg10 = (bool) false ;
19927 int arg11 = (int) -1 ;
19928 int arg12 = (int) -1 ;
19929 bool result;
19930 void *argp1 = 0 ;
19931 int res1 = 0 ;
19932 int val2 ;
19933 int ecode2 = 0 ;
19934 int val3 ;
19935 int ecode3 = 0 ;
19936 int val4 ;
19937 int ecode4 = 0 ;
19938 int val5 ;
19939 int ecode5 = 0 ;
19940 void *argp6 = 0 ;
19941 int res6 = 0 ;
19942 int val7 ;
19943 int ecode7 = 0 ;
19944 int val8 ;
19945 int ecode8 = 0 ;
19946 int val9 ;
19947 int ecode9 = 0 ;
19948 bool val10 ;
19949 int ecode10 = 0 ;
19950 int val11 ;
19951 int ecode11 = 0 ;
19952 int val12 ;
19953 int ecode12 = 0 ;
19954 PyObject * obj0 = 0 ;
19955 PyObject * obj1 = 0 ;
19956 PyObject * obj2 = 0 ;
19957 PyObject * obj3 = 0 ;
19958 PyObject * obj4 = 0 ;
19959 PyObject * obj5 = 0 ;
19960 PyObject * obj6 = 0 ;
19961 PyObject * obj7 = 0 ;
19962 PyObject * obj8 = 0 ;
19963 PyObject * obj9 = 0 ;
19964 PyObject * obj10 = 0 ;
19965 PyObject * obj11 = 0 ;
19966 char * kwnames[] = {
19967 (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
19968 };
19969
19970 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;
19971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19972 if (!SWIG_IsOK(res1)) {
19973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19974 }
19975 arg1 = reinterpret_cast< wxDC * >(argp1);
19976 ecode2 = SWIG_AsVal_int(obj1, &val2);
19977 if (!SWIG_IsOK(ecode2)) {
19978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19979 }
19980 arg2 = static_cast< int >(val2);
19981 ecode3 = SWIG_AsVal_int(obj2, &val3);
19982 if (!SWIG_IsOK(ecode3)) {
19983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19984 }
19985 arg3 = static_cast< int >(val3);
19986 ecode4 = SWIG_AsVal_int(obj3, &val4);
19987 if (!SWIG_IsOK(ecode4)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19989 }
19990 arg4 = static_cast< int >(val4);
19991 ecode5 = SWIG_AsVal_int(obj4, &val5);
19992 if (!SWIG_IsOK(ecode5)) {
19993 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19994 }
19995 arg5 = static_cast< int >(val5);
19996 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19997 if (!SWIG_IsOK(res6)) {
19998 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19999 }
20000 arg6 = reinterpret_cast< wxDC * >(argp6);
20001 ecode7 = SWIG_AsVal_int(obj6, &val7);
20002 if (!SWIG_IsOK(ecode7)) {
20003 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20004 }
20005 arg7 = static_cast< int >(val7);
20006 ecode8 = SWIG_AsVal_int(obj7, &val8);
20007 if (!SWIG_IsOK(ecode8)) {
20008 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20009 }
20010 arg8 = static_cast< int >(val8);
20011 if (obj8) {
20012 ecode9 = SWIG_AsVal_int(obj8, &val9);
20013 if (!SWIG_IsOK(ecode9)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20015 }
20016 arg9 = static_cast< int >(val9);
20017 }
20018 if (obj9) {
20019 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20020 if (!SWIG_IsOK(ecode10)) {
20021 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20022 }
20023 arg10 = static_cast< bool >(val10);
20024 }
20025 if (obj10) {
20026 ecode11 = SWIG_AsVal_int(obj10, &val11);
20027 if (!SWIG_IsOK(ecode11)) {
20028 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20029 }
20030 arg11 = static_cast< int >(val11);
20031 }
20032 if (obj11) {
20033 ecode12 = SWIG_AsVal_int(obj11, &val12);
20034 if (!SWIG_IsOK(ecode12)) {
20035 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20036 }
20037 arg12 = static_cast< int >(val12);
20038 }
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20042 wxPyEndAllowThreads(__tstate);
20043 if (PyErr_Occurred()) SWIG_fail;
20044 }
20045 {
20046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20047 }
20048 return resultobj;
20049 fail:
20050 return NULL;
20051 }
20052
20053
20054 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20055 PyObject *resultobj = 0;
20056 wxDC *arg1 = (wxDC *) 0 ;
20057 wxPoint *arg2 = 0 ;
20058 wxSize *arg3 = 0 ;
20059 wxDC *arg4 = (wxDC *) 0 ;
20060 wxPoint *arg5 = 0 ;
20061 int arg6 = (int) wxCOPY ;
20062 bool arg7 = (bool) false ;
20063 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20064 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20065 bool result;
20066 void *argp1 = 0 ;
20067 int res1 = 0 ;
20068 wxPoint temp2 ;
20069 wxSize temp3 ;
20070 void *argp4 = 0 ;
20071 int res4 = 0 ;
20072 wxPoint temp5 ;
20073 int val6 ;
20074 int ecode6 = 0 ;
20075 bool val7 ;
20076 int ecode7 = 0 ;
20077 wxPoint temp8 ;
20078 PyObject * obj0 = 0 ;
20079 PyObject * obj1 = 0 ;
20080 PyObject * obj2 = 0 ;
20081 PyObject * obj3 = 0 ;
20082 PyObject * obj4 = 0 ;
20083 PyObject * obj5 = 0 ;
20084 PyObject * obj6 = 0 ;
20085 PyObject * obj7 = 0 ;
20086 char * kwnames[] = {
20087 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20088 };
20089
20090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20092 if (!SWIG_IsOK(res1)) {
20093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20094 }
20095 arg1 = reinterpret_cast< wxDC * >(argp1);
20096 {
20097 arg2 = &temp2;
20098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20099 }
20100 {
20101 arg3 = &temp3;
20102 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20103 }
20104 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20105 if (!SWIG_IsOK(res4)) {
20106 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20107 }
20108 arg4 = reinterpret_cast< wxDC * >(argp4);
20109 {
20110 arg5 = &temp5;
20111 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20112 }
20113 if (obj5) {
20114 ecode6 = SWIG_AsVal_int(obj5, &val6);
20115 if (!SWIG_IsOK(ecode6)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20117 }
20118 arg6 = static_cast< int >(val6);
20119 }
20120 if (obj6) {
20121 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20122 if (!SWIG_IsOK(ecode7)) {
20123 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20124 }
20125 arg7 = static_cast< bool >(val7);
20126 }
20127 if (obj7) {
20128 {
20129 arg8 = &temp8;
20130 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20131 }
20132 }
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 {
20140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20141 }
20142 return resultobj;
20143 fail:
20144 return NULL;
20145 }
20146
20147
20148 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20149 PyObject *resultobj = 0;
20150 wxDC *arg1 = (wxDC *) 0 ;
20151 int arg2 ;
20152 int arg3 ;
20153 int arg4 ;
20154 int arg5 ;
20155 void *argp1 = 0 ;
20156 int res1 = 0 ;
20157 int val2 ;
20158 int ecode2 = 0 ;
20159 int val3 ;
20160 int ecode3 = 0 ;
20161 int val4 ;
20162 int ecode4 = 0 ;
20163 int val5 ;
20164 int ecode5 = 0 ;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 PyObject * obj2 = 0 ;
20168 PyObject * obj3 = 0 ;
20169 PyObject * obj4 = 0 ;
20170 char * kwnames[] = {
20171 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20172 };
20173
20174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20176 if (!SWIG_IsOK(res1)) {
20177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20178 }
20179 arg1 = reinterpret_cast< wxDC * >(argp1);
20180 ecode2 = SWIG_AsVal_int(obj1, &val2);
20181 if (!SWIG_IsOK(ecode2)) {
20182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20183 }
20184 arg2 = static_cast< int >(val2);
20185 ecode3 = SWIG_AsVal_int(obj2, &val3);
20186 if (!SWIG_IsOK(ecode3)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20188 }
20189 arg3 = static_cast< int >(val3);
20190 ecode4 = SWIG_AsVal_int(obj3, &val4);
20191 if (!SWIG_IsOK(ecode4)) {
20192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20193 }
20194 arg4 = static_cast< int >(val4);
20195 ecode5 = SWIG_AsVal_int(obj4, &val5);
20196 if (!SWIG_IsOK(ecode5)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20198 }
20199 arg5 = static_cast< int >(val5);
20200 {
20201 PyThreadState* __tstate = wxPyBeginAllowThreads();
20202 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 resultobj = SWIG_Py_Void();
20207 return resultobj;
20208 fail:
20209 return NULL;
20210 }
20211
20212
20213 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20214 PyObject *resultobj = 0;
20215 wxDC *arg1 = (wxDC *) 0 ;
20216 wxPoint *arg2 = 0 ;
20217 wxSize *arg3 = 0 ;
20218 void *argp1 = 0 ;
20219 int res1 = 0 ;
20220 wxPoint temp2 ;
20221 wxSize temp3 ;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 PyObject * obj2 = 0 ;
20225 char * kwnames[] = {
20226 (char *) "self",(char *) "pt",(char *) "sz", NULL
20227 };
20228
20229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20231 if (!SWIG_IsOK(res1)) {
20232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20233 }
20234 arg1 = reinterpret_cast< wxDC * >(argp1);
20235 {
20236 arg2 = &temp2;
20237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20238 }
20239 {
20240 arg3 = &temp3;
20241 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20242 }
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20246 wxPyEndAllowThreads(__tstate);
20247 if (PyErr_Occurred()) SWIG_fail;
20248 }
20249 resultobj = SWIG_Py_Void();
20250 return resultobj;
20251 fail:
20252 return NULL;
20253 }
20254
20255
20256 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20257 PyObject *resultobj = 0;
20258 wxDC *arg1 = (wxDC *) 0 ;
20259 wxRegion *arg2 = 0 ;
20260 void *argp1 = 0 ;
20261 int res1 = 0 ;
20262 void *argp2 = 0 ;
20263 int res2 = 0 ;
20264 PyObject * obj0 = 0 ;
20265 PyObject * obj1 = 0 ;
20266 char * kwnames[] = {
20267 (char *) "self",(char *) "region", NULL
20268 };
20269
20270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20272 if (!SWIG_IsOK(res1)) {
20273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20274 }
20275 arg1 = reinterpret_cast< wxDC * >(argp1);
20276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20277 if (!SWIG_IsOK(res2)) {
20278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20279 }
20280 if (!argp2) {
20281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20282 }
20283 arg2 = reinterpret_cast< wxRegion * >(argp2);
20284 {
20285 PyThreadState* __tstate = wxPyBeginAllowThreads();
20286 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20287 wxPyEndAllowThreads(__tstate);
20288 if (PyErr_Occurred()) SWIG_fail;
20289 }
20290 resultobj = SWIG_Py_Void();
20291 return resultobj;
20292 fail:
20293 return NULL;
20294 }
20295
20296
20297 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20298 PyObject *resultobj = 0;
20299 wxDC *arg1 = (wxDC *) 0 ;
20300 wxRect *arg2 = 0 ;
20301 void *argp1 = 0 ;
20302 int res1 = 0 ;
20303 wxRect temp2 ;
20304 PyObject * obj0 = 0 ;
20305 PyObject * obj1 = 0 ;
20306 char * kwnames[] = {
20307 (char *) "self",(char *) "rect", NULL
20308 };
20309
20310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20312 if (!SWIG_IsOK(res1)) {
20313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20314 }
20315 arg1 = reinterpret_cast< wxDC * >(argp1);
20316 {
20317 arg2 = &temp2;
20318 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20319 }
20320 {
20321 PyThreadState* __tstate = wxPyBeginAllowThreads();
20322 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20323 wxPyEndAllowThreads(__tstate);
20324 if (PyErr_Occurred()) SWIG_fail;
20325 }
20326 resultobj = SWIG_Py_Void();
20327 return resultobj;
20328 fail:
20329 return NULL;
20330 }
20331
20332
20333 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20334 PyObject *resultobj = 0;
20335 wxDC *arg1 = (wxDC *) 0 ;
20336 int arg2 ;
20337 wxPoint *arg3 = (wxPoint *) 0 ;
20338 int arg4 = (int) 0 ;
20339 int arg5 = (int) 0 ;
20340 void *argp1 = 0 ;
20341 int res1 = 0 ;
20342 int val4 ;
20343 int ecode4 = 0 ;
20344 int val5 ;
20345 int ecode5 = 0 ;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 PyObject * obj2 = 0 ;
20349 PyObject * obj3 = 0 ;
20350 char * kwnames[] = {
20351 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20352 };
20353
20354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20356 if (!SWIG_IsOK(res1)) {
20357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20358 }
20359 arg1 = reinterpret_cast< wxDC * >(argp1);
20360 {
20361 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20362 if (arg3 == NULL) SWIG_fail;
20363 }
20364 if (obj2) {
20365 ecode4 = SWIG_AsVal_int(obj2, &val4);
20366 if (!SWIG_IsOK(ecode4)) {
20367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20368 }
20369 arg4 = static_cast< int >(val4);
20370 }
20371 if (obj3) {
20372 ecode5 = SWIG_AsVal_int(obj3, &val5);
20373 if (!SWIG_IsOK(ecode5)) {
20374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20375 }
20376 arg5 = static_cast< int >(val5);
20377 }
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 resultobj = SWIG_Py_Void();
20385 {
20386 if (arg3) delete [] arg3;
20387 }
20388 return resultobj;
20389 fail:
20390 {
20391 if (arg3) delete [] arg3;
20392 }
20393 return NULL;
20394 }
20395
20396
20397 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20398 PyObject *resultobj = 0;
20399 wxDC *arg1 = (wxDC *) 0 ;
20400 int arg2 ;
20401 wxPoint *arg3 = (wxPoint *) 0 ;
20402 int arg4 = (int) 0 ;
20403 int arg5 = (int) 0 ;
20404 int arg6 = (int) wxODDEVEN_RULE ;
20405 void *argp1 = 0 ;
20406 int res1 = 0 ;
20407 int val4 ;
20408 int ecode4 = 0 ;
20409 int val5 ;
20410 int ecode5 = 0 ;
20411 int val6 ;
20412 int ecode6 = 0 ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 PyObject * obj2 = 0 ;
20416 PyObject * obj3 = 0 ;
20417 PyObject * obj4 = 0 ;
20418 char * kwnames[] = {
20419 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20420 };
20421
20422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20424 if (!SWIG_IsOK(res1)) {
20425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20426 }
20427 arg1 = reinterpret_cast< wxDC * >(argp1);
20428 {
20429 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20430 if (arg3 == NULL) SWIG_fail;
20431 }
20432 if (obj2) {
20433 ecode4 = SWIG_AsVal_int(obj2, &val4);
20434 if (!SWIG_IsOK(ecode4)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20436 }
20437 arg4 = static_cast< int >(val4);
20438 }
20439 if (obj3) {
20440 ecode5 = SWIG_AsVal_int(obj3, &val5);
20441 if (!SWIG_IsOK(ecode5)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20443 }
20444 arg5 = static_cast< int >(val5);
20445 }
20446 if (obj4) {
20447 ecode6 = SWIG_AsVal_int(obj4, &val6);
20448 if (!SWIG_IsOK(ecode6)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20450 }
20451 arg6 = static_cast< int >(val6);
20452 }
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20456 wxPyEndAllowThreads(__tstate);
20457 if (PyErr_Occurred()) SWIG_fail;
20458 }
20459 resultobj = SWIG_Py_Void();
20460 {
20461 if (arg3) delete [] arg3;
20462 }
20463 return resultobj;
20464 fail:
20465 {
20466 if (arg3) delete [] arg3;
20467 }
20468 return NULL;
20469 }
20470
20471
20472 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20473 PyObject *resultobj = 0;
20474 wxDC *arg1 = (wxDC *) 0 ;
20475 wxString *arg2 = 0 ;
20476 wxRect *arg3 = 0 ;
20477 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20478 int arg5 = (int) -1 ;
20479 void *argp1 = 0 ;
20480 int res1 = 0 ;
20481 bool temp2 = false ;
20482 wxRect temp3 ;
20483 int val4 ;
20484 int ecode4 = 0 ;
20485 int val5 ;
20486 int ecode5 = 0 ;
20487 PyObject * obj0 = 0 ;
20488 PyObject * obj1 = 0 ;
20489 PyObject * obj2 = 0 ;
20490 PyObject * obj3 = 0 ;
20491 PyObject * obj4 = 0 ;
20492 char * kwnames[] = {
20493 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20494 };
20495
20496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20498 if (!SWIG_IsOK(res1)) {
20499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20500 }
20501 arg1 = reinterpret_cast< wxDC * >(argp1);
20502 {
20503 arg2 = wxString_in_helper(obj1);
20504 if (arg2 == NULL) SWIG_fail;
20505 temp2 = true;
20506 }
20507 {
20508 arg3 = &temp3;
20509 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20510 }
20511 if (obj3) {
20512 ecode4 = SWIG_AsVal_int(obj3, &val4);
20513 if (!SWIG_IsOK(ecode4)) {
20514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20515 }
20516 arg4 = static_cast< int >(val4);
20517 }
20518 if (obj4) {
20519 ecode5 = SWIG_AsVal_int(obj4, &val5);
20520 if (!SWIG_IsOK(ecode5)) {
20521 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20522 }
20523 arg5 = static_cast< int >(val5);
20524 }
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20528 wxPyEndAllowThreads(__tstate);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 }
20531 resultobj = SWIG_Py_Void();
20532 {
20533 if (temp2)
20534 delete arg2;
20535 }
20536 return resultobj;
20537 fail:
20538 {
20539 if (temp2)
20540 delete arg2;
20541 }
20542 return NULL;
20543 }
20544
20545
20546 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20547 PyObject *resultobj = 0;
20548 wxDC *arg1 = (wxDC *) 0 ;
20549 wxString *arg2 = 0 ;
20550 wxBitmap *arg3 = 0 ;
20551 wxRect *arg4 = 0 ;
20552 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20553 int arg6 = (int) -1 ;
20554 wxRect result;
20555 void *argp1 = 0 ;
20556 int res1 = 0 ;
20557 bool temp2 = false ;
20558 void *argp3 = 0 ;
20559 int res3 = 0 ;
20560 wxRect temp4 ;
20561 int val5 ;
20562 int ecode5 = 0 ;
20563 int val6 ;
20564 int ecode6 = 0 ;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 PyObject * obj2 = 0 ;
20568 PyObject * obj3 = 0 ;
20569 PyObject * obj4 = 0 ;
20570 PyObject * obj5 = 0 ;
20571 char * kwnames[] = {
20572 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20573 };
20574
20575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20577 if (!SWIG_IsOK(res1)) {
20578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20579 }
20580 arg1 = reinterpret_cast< wxDC * >(argp1);
20581 {
20582 arg2 = wxString_in_helper(obj1);
20583 if (arg2 == NULL) SWIG_fail;
20584 temp2 = true;
20585 }
20586 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20587 if (!SWIG_IsOK(res3)) {
20588 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20589 }
20590 if (!argp3) {
20591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20592 }
20593 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20594 {
20595 arg4 = &temp4;
20596 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20597 }
20598 if (obj4) {
20599 ecode5 = SWIG_AsVal_int(obj4, &val5);
20600 if (!SWIG_IsOK(ecode5)) {
20601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20602 }
20603 arg5 = static_cast< int >(val5);
20604 }
20605 if (obj5) {
20606 ecode6 = SWIG_AsVal_int(obj5, &val6);
20607 if (!SWIG_IsOK(ecode6)) {
20608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20609 }
20610 arg6 = static_cast< int >(val6);
20611 }
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
20614 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20615 wxPyEndAllowThreads(__tstate);
20616 if (PyErr_Occurred()) SWIG_fail;
20617 }
20618 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20619 {
20620 if (temp2)
20621 delete arg2;
20622 }
20623 return resultobj;
20624 fail:
20625 {
20626 if (temp2)
20627 delete arg2;
20628 }
20629 return NULL;
20630 }
20631
20632
20633 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj = 0;
20635 wxDC *arg1 = (wxDC *) 0 ;
20636 int arg2 ;
20637 wxPoint *arg3 = (wxPoint *) 0 ;
20638 void *argp1 = 0 ;
20639 int res1 = 0 ;
20640 PyObject * obj0 = 0 ;
20641 PyObject * obj1 = 0 ;
20642 char * kwnames[] = {
20643 (char *) "self",(char *) "points", NULL
20644 };
20645
20646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20648 if (!SWIG_IsOK(res1)) {
20649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20650 }
20651 arg1 = reinterpret_cast< wxDC * >(argp1);
20652 {
20653 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20654 if (arg3 == NULL) SWIG_fail;
20655 }
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 (arg1)->DrawSpline(arg2,arg3);
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_Py_Void();
20663 {
20664 if (arg3) delete [] arg3;
20665 }
20666 return resultobj;
20667 fail:
20668 {
20669 if (arg3) delete [] arg3;
20670 }
20671 return NULL;
20672 }
20673
20674
20675 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20676 PyObject *resultobj = 0;
20677 wxDC *arg1 = (wxDC *) 0 ;
20678 void *argp1 = 0 ;
20679 int res1 = 0 ;
20680 PyObject *swig_obj[1] ;
20681
20682 if (!args) SWIG_fail;
20683 swig_obj[0] = args;
20684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20685 if (!SWIG_IsOK(res1)) {
20686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20687 }
20688 arg1 = reinterpret_cast< wxDC * >(argp1);
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 (arg1)->Clear();
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 resultobj = SWIG_Py_Void();
20696 return resultobj;
20697 fail:
20698 return NULL;
20699 }
20700
20701
20702 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20703 PyObject *resultobj = 0;
20704 wxDC *arg1 = (wxDC *) 0 ;
20705 wxString *arg2 = 0 ;
20706 bool result;
20707 void *argp1 = 0 ;
20708 int res1 = 0 ;
20709 bool temp2 = false ;
20710 PyObject * obj0 = 0 ;
20711 PyObject * obj1 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "self",(char *) "message", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20718 if (!SWIG_IsOK(res1)) {
20719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20720 }
20721 arg1 = reinterpret_cast< wxDC * >(argp1);
20722 {
20723 arg2 = wxString_in_helper(obj1);
20724 if (arg2 == NULL) SWIG_fail;
20725 temp2 = true;
20726 }
20727 {
20728 PyThreadState* __tstate = wxPyBeginAllowThreads();
20729 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20730 wxPyEndAllowThreads(__tstate);
20731 if (PyErr_Occurred()) SWIG_fail;
20732 }
20733 {
20734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20735 }
20736 {
20737 if (temp2)
20738 delete arg2;
20739 }
20740 return resultobj;
20741 fail:
20742 {
20743 if (temp2)
20744 delete arg2;
20745 }
20746 return NULL;
20747 }
20748
20749
20750 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20751 PyObject *resultobj = 0;
20752 wxDC *arg1 = (wxDC *) 0 ;
20753 void *argp1 = 0 ;
20754 int res1 = 0 ;
20755 PyObject *swig_obj[1] ;
20756
20757 if (!args) SWIG_fail;
20758 swig_obj[0] = args;
20759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20760 if (!SWIG_IsOK(res1)) {
20761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20762 }
20763 arg1 = reinterpret_cast< wxDC * >(argp1);
20764 {
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 (arg1)->EndDoc();
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_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20778 PyObject *resultobj = 0;
20779 wxDC *arg1 = (wxDC *) 0 ;
20780 void *argp1 = 0 ;
20781 int res1 = 0 ;
20782 PyObject *swig_obj[1] ;
20783
20784 if (!args) SWIG_fail;
20785 swig_obj[0] = args;
20786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20787 if (!SWIG_IsOK(res1)) {
20788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20789 }
20790 arg1 = reinterpret_cast< wxDC * >(argp1);
20791 {
20792 PyThreadState* __tstate = wxPyBeginAllowThreads();
20793 (arg1)->StartPage();
20794 wxPyEndAllowThreads(__tstate);
20795 if (PyErr_Occurred()) SWIG_fail;
20796 }
20797 resultobj = SWIG_Py_Void();
20798 return resultobj;
20799 fail:
20800 return NULL;
20801 }
20802
20803
20804 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20805 PyObject *resultobj = 0;
20806 wxDC *arg1 = (wxDC *) 0 ;
20807 void *argp1 = 0 ;
20808 int res1 = 0 ;
20809 PyObject *swig_obj[1] ;
20810
20811 if (!args) SWIG_fail;
20812 swig_obj[0] = args;
20813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20814 if (!SWIG_IsOK(res1)) {
20815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20816 }
20817 arg1 = reinterpret_cast< wxDC * >(argp1);
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 (arg1)->EndPage();
20821 wxPyEndAllowThreads(__tstate);
20822 if (PyErr_Occurred()) SWIG_fail;
20823 }
20824 resultobj = SWIG_Py_Void();
20825 return resultobj;
20826 fail:
20827 return NULL;
20828 }
20829
20830
20831 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20832 PyObject *resultobj = 0;
20833 wxDC *arg1 = (wxDC *) 0 ;
20834 wxFont *arg2 = 0 ;
20835 void *argp1 = 0 ;
20836 int res1 = 0 ;
20837 void *argp2 = 0 ;
20838 int res2 = 0 ;
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841 char * kwnames[] = {
20842 (char *) "self",(char *) "font", NULL
20843 };
20844
20845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20847 if (!SWIG_IsOK(res1)) {
20848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20849 }
20850 arg1 = reinterpret_cast< wxDC * >(argp1);
20851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20852 if (!SWIG_IsOK(res2)) {
20853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20854 }
20855 if (!argp2) {
20856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20857 }
20858 arg2 = reinterpret_cast< wxFont * >(argp2);
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 (arg1)->SetFont((wxFont const &)*arg2);
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_Py_Void();
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj = 0;
20874 wxDC *arg1 = (wxDC *) 0 ;
20875 wxPen *arg2 = 0 ;
20876 void *argp1 = 0 ;
20877 int res1 = 0 ;
20878 void *argp2 = 0 ;
20879 int res2 = 0 ;
20880 PyObject * obj0 = 0 ;
20881 PyObject * obj1 = 0 ;
20882 char * kwnames[] = {
20883 (char *) "self",(char *) "pen", NULL
20884 };
20885
20886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20888 if (!SWIG_IsOK(res1)) {
20889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20890 }
20891 arg1 = reinterpret_cast< wxDC * >(argp1);
20892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20893 if (!SWIG_IsOK(res2)) {
20894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20895 }
20896 if (!argp2) {
20897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20898 }
20899 arg2 = reinterpret_cast< wxPen * >(argp2);
20900 {
20901 PyThreadState* __tstate = wxPyBeginAllowThreads();
20902 (arg1)->SetPen((wxPen const &)*arg2);
20903 wxPyEndAllowThreads(__tstate);
20904 if (PyErr_Occurred()) SWIG_fail;
20905 }
20906 resultobj = SWIG_Py_Void();
20907 return resultobj;
20908 fail:
20909 return NULL;
20910 }
20911
20912
20913 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20914 PyObject *resultobj = 0;
20915 wxDC *arg1 = (wxDC *) 0 ;
20916 wxBrush *arg2 = 0 ;
20917 void *argp1 = 0 ;
20918 int res1 = 0 ;
20919 void *argp2 = 0 ;
20920 int res2 = 0 ;
20921 PyObject * obj0 = 0 ;
20922 PyObject * obj1 = 0 ;
20923 char * kwnames[] = {
20924 (char *) "self",(char *) "brush", NULL
20925 };
20926
20927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20929 if (!SWIG_IsOK(res1)) {
20930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20931 }
20932 arg1 = reinterpret_cast< wxDC * >(argp1);
20933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20934 if (!SWIG_IsOK(res2)) {
20935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20936 }
20937 if (!argp2) {
20938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20939 }
20940 arg2 = reinterpret_cast< wxBrush * >(argp2);
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 (arg1)->SetBrush((wxBrush const &)*arg2);
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_Py_Void();
20948 return resultobj;
20949 fail:
20950 return NULL;
20951 }
20952
20953
20954 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20955 PyObject *resultobj = 0;
20956 wxDC *arg1 = (wxDC *) 0 ;
20957 wxBrush *arg2 = 0 ;
20958 void *argp1 = 0 ;
20959 int res1 = 0 ;
20960 void *argp2 = 0 ;
20961 int res2 = 0 ;
20962 PyObject * obj0 = 0 ;
20963 PyObject * obj1 = 0 ;
20964 char * kwnames[] = {
20965 (char *) "self",(char *) "brush", NULL
20966 };
20967
20968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20970 if (!SWIG_IsOK(res1)) {
20971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20972 }
20973 arg1 = reinterpret_cast< wxDC * >(argp1);
20974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20975 if (!SWIG_IsOK(res2)) {
20976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20977 }
20978 if (!argp2) {
20979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20980 }
20981 arg2 = reinterpret_cast< wxBrush * >(argp2);
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 (arg1)->SetBackground((wxBrush const &)*arg2);
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 resultobj = SWIG_Py_Void();
20989 return resultobj;
20990 fail:
20991 return NULL;
20992 }
20993
20994
20995 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20996 PyObject *resultobj = 0;
20997 wxDC *arg1 = (wxDC *) 0 ;
20998 int arg2 ;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 int val2 ;
21002 int ecode2 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 char * kwnames[] = {
21006 (char *) "self",(char *) "mode", NULL
21007 };
21008
21009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21011 if (!SWIG_IsOK(res1)) {
21012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21013 }
21014 arg1 = reinterpret_cast< wxDC * >(argp1);
21015 ecode2 = SWIG_AsVal_int(obj1, &val2);
21016 if (!SWIG_IsOK(ecode2)) {
21017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21018 }
21019 arg2 = static_cast< int >(val2);
21020 {
21021 PyThreadState* __tstate = wxPyBeginAllowThreads();
21022 (arg1)->SetBackgroundMode(arg2);
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 resultobj = SWIG_Py_Void();
21027 return resultobj;
21028 fail:
21029 return NULL;
21030 }
21031
21032
21033 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21034 PyObject *resultobj = 0;
21035 wxDC *arg1 = (wxDC *) 0 ;
21036 wxPalette *arg2 = 0 ;
21037 void *argp1 = 0 ;
21038 int res1 = 0 ;
21039 void *argp2 = 0 ;
21040 int res2 = 0 ;
21041 PyObject * obj0 = 0 ;
21042 PyObject * obj1 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "self",(char *) "palette", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21051 }
21052 arg1 = reinterpret_cast< wxDC * >(argp1);
21053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21054 if (!SWIG_IsOK(res2)) {
21055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21056 }
21057 if (!argp2) {
21058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21059 }
21060 arg2 = reinterpret_cast< wxPalette * >(argp2);
21061 {
21062 PyThreadState* __tstate = wxPyBeginAllowThreads();
21063 (arg1)->SetPalette((wxPalette const &)*arg2);
21064 wxPyEndAllowThreads(__tstate);
21065 if (PyErr_Occurred()) SWIG_fail;
21066 }
21067 resultobj = SWIG_Py_Void();
21068 return resultobj;
21069 fail:
21070 return NULL;
21071 }
21072
21073
21074 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21075 PyObject *resultobj = 0;
21076 wxDC *arg1 = (wxDC *) 0 ;
21077 void *argp1 = 0 ;
21078 int res1 = 0 ;
21079 PyObject *swig_obj[1] ;
21080
21081 if (!args) SWIG_fail;
21082 swig_obj[0] = args;
21083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21084 if (!SWIG_IsOK(res1)) {
21085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21086 }
21087 arg1 = reinterpret_cast< wxDC * >(argp1);
21088 {
21089 PyThreadState* __tstate = wxPyBeginAllowThreads();
21090 (arg1)->DestroyClippingRegion();
21091 wxPyEndAllowThreads(__tstate);
21092 if (PyErr_Occurred()) SWIG_fail;
21093 }
21094 resultobj = SWIG_Py_Void();
21095 return resultobj;
21096 fail:
21097 return NULL;
21098 }
21099
21100
21101 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21102 PyObject *resultobj = 0;
21103 wxDC *arg1 = (wxDC *) 0 ;
21104 int *arg2 = (int *) 0 ;
21105 int *arg3 = (int *) 0 ;
21106 int *arg4 = (int *) 0 ;
21107 int *arg5 = (int *) 0 ;
21108 void *argp1 = 0 ;
21109 int res1 = 0 ;
21110 int temp2 ;
21111 int res2 = SWIG_TMPOBJ ;
21112 int temp3 ;
21113 int res3 = SWIG_TMPOBJ ;
21114 int temp4 ;
21115 int res4 = SWIG_TMPOBJ ;
21116 int temp5 ;
21117 int res5 = SWIG_TMPOBJ ;
21118 PyObject *swig_obj[1] ;
21119
21120 arg2 = &temp2;
21121 arg3 = &temp3;
21122 arg4 = &temp4;
21123 arg5 = &temp5;
21124 if (!args) SWIG_fail;
21125 swig_obj[0] = args;
21126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21127 if (!SWIG_IsOK(res1)) {
21128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21129 }
21130 arg1 = reinterpret_cast< wxDC * >(argp1);
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21134 wxPyEndAllowThreads(__tstate);
21135 if (PyErr_Occurred()) SWIG_fail;
21136 }
21137 resultobj = SWIG_Py_Void();
21138 if (SWIG_IsTmpObj(res2)) {
21139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21140 } else {
21141 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21143 }
21144 if (SWIG_IsTmpObj(res3)) {
21145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21146 } else {
21147 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21149 }
21150 if (SWIG_IsTmpObj(res4)) {
21151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21152 } else {
21153 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21155 }
21156 if (SWIG_IsTmpObj(res5)) {
21157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21158 } else {
21159 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21161 }
21162 return resultobj;
21163 fail:
21164 return NULL;
21165 }
21166
21167
21168 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21169 PyObject *resultobj = 0;
21170 wxDC *arg1 = (wxDC *) 0 ;
21171 wxRect result;
21172 void *argp1 = 0 ;
21173 int res1 = 0 ;
21174 PyObject *swig_obj[1] ;
21175
21176 if (!args) SWIG_fail;
21177 swig_obj[0] = args;
21178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21179 if (!SWIG_IsOK(res1)) {
21180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21181 }
21182 arg1 = reinterpret_cast< wxDC * >(argp1);
21183 {
21184 PyThreadState* __tstate = wxPyBeginAllowThreads();
21185 result = wxDC_GetClippingRect(arg1);
21186 wxPyEndAllowThreads(__tstate);
21187 if (PyErr_Occurred()) SWIG_fail;
21188 }
21189 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21190 return resultobj;
21191 fail:
21192 return NULL;
21193 }
21194
21195
21196 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21197 PyObject *resultobj = 0;
21198 wxDC *arg1 = (wxDC *) 0 ;
21199 int result;
21200 void *argp1 = 0 ;
21201 int res1 = 0 ;
21202 PyObject *swig_obj[1] ;
21203
21204 if (!args) SWIG_fail;
21205 swig_obj[0] = args;
21206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21207 if (!SWIG_IsOK(res1)) {
21208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21209 }
21210 arg1 = reinterpret_cast< wxDC * >(argp1);
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 result = (int)((wxDC const *)arg1)->GetCharHeight();
21214 wxPyEndAllowThreads(__tstate);
21215 if (PyErr_Occurred()) SWIG_fail;
21216 }
21217 resultobj = SWIG_From_int(static_cast< int >(result));
21218 return resultobj;
21219 fail:
21220 return NULL;
21221 }
21222
21223
21224 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21225 PyObject *resultobj = 0;
21226 wxDC *arg1 = (wxDC *) 0 ;
21227 int result;
21228 void *argp1 = 0 ;
21229 int res1 = 0 ;
21230 PyObject *swig_obj[1] ;
21231
21232 if (!args) SWIG_fail;
21233 swig_obj[0] = args;
21234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21235 if (!SWIG_IsOK(res1)) {
21236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21237 }
21238 arg1 = reinterpret_cast< wxDC * >(argp1);
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 result = (int)((wxDC const *)arg1)->GetCharWidth();
21242 wxPyEndAllowThreads(__tstate);
21243 if (PyErr_Occurred()) SWIG_fail;
21244 }
21245 resultobj = SWIG_From_int(static_cast< int >(result));
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj = 0;
21254 wxDC *arg1 = (wxDC *) 0 ;
21255 wxString *arg2 = 0 ;
21256 int *arg3 = (int *) 0 ;
21257 int *arg4 = (int *) 0 ;
21258 void *argp1 = 0 ;
21259 int res1 = 0 ;
21260 bool temp2 = false ;
21261 int temp3 ;
21262 int res3 = SWIG_TMPOBJ ;
21263 int temp4 ;
21264 int res4 = SWIG_TMPOBJ ;
21265 PyObject * obj0 = 0 ;
21266 PyObject * obj1 = 0 ;
21267 char * kwnames[] = {
21268 (char *) "self",(char *) "string", NULL
21269 };
21270
21271 arg3 = &temp3;
21272 arg4 = &temp4;
21273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21275 if (!SWIG_IsOK(res1)) {
21276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21277 }
21278 arg1 = reinterpret_cast< wxDC * >(argp1);
21279 {
21280 arg2 = wxString_in_helper(obj1);
21281 if (arg2 == NULL) SWIG_fail;
21282 temp2 = true;
21283 }
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21287 wxPyEndAllowThreads(__tstate);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 }
21290 resultobj = SWIG_Py_Void();
21291 if (SWIG_IsTmpObj(res3)) {
21292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21293 } else {
21294 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21296 }
21297 if (SWIG_IsTmpObj(res4)) {
21298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21299 } else {
21300 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21302 }
21303 {
21304 if (temp2)
21305 delete arg2;
21306 }
21307 return resultobj;
21308 fail:
21309 {
21310 if (temp2)
21311 delete arg2;
21312 }
21313 return NULL;
21314 }
21315
21316
21317 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj = 0;
21319 wxDC *arg1 = (wxDC *) 0 ;
21320 wxString *arg2 = 0 ;
21321 int *arg3 = (int *) 0 ;
21322 int *arg4 = (int *) 0 ;
21323 int *arg5 = (int *) 0 ;
21324 int *arg6 = (int *) 0 ;
21325 wxFont *arg7 = (wxFont *) NULL ;
21326 void *argp1 = 0 ;
21327 int res1 = 0 ;
21328 bool temp2 = false ;
21329 int temp3 ;
21330 int res3 = SWIG_TMPOBJ ;
21331 int temp4 ;
21332 int res4 = SWIG_TMPOBJ ;
21333 int temp5 ;
21334 int res5 = SWIG_TMPOBJ ;
21335 int temp6 ;
21336 int res6 = SWIG_TMPOBJ ;
21337 void *argp7 = 0 ;
21338 int res7 = 0 ;
21339 PyObject * obj0 = 0 ;
21340 PyObject * obj1 = 0 ;
21341 PyObject * obj2 = 0 ;
21342 char * kwnames[] = {
21343 (char *) "self",(char *) "string",(char *) "font", NULL
21344 };
21345
21346 arg3 = &temp3;
21347 arg4 = &temp4;
21348 arg5 = &temp5;
21349 arg6 = &temp6;
21350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21352 if (!SWIG_IsOK(res1)) {
21353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21354 }
21355 arg1 = reinterpret_cast< wxDC * >(argp1);
21356 {
21357 arg2 = wxString_in_helper(obj1);
21358 if (arg2 == NULL) SWIG_fail;
21359 temp2 = true;
21360 }
21361 if (obj2) {
21362 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21363 if (!SWIG_IsOK(res7)) {
21364 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21365 }
21366 arg7 = reinterpret_cast< wxFont * >(argp7);
21367 }
21368 {
21369 PyThreadState* __tstate = wxPyBeginAllowThreads();
21370 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21371 wxPyEndAllowThreads(__tstate);
21372 if (PyErr_Occurred()) SWIG_fail;
21373 }
21374 resultobj = SWIG_Py_Void();
21375 if (SWIG_IsTmpObj(res3)) {
21376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21377 } else {
21378 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21380 }
21381 if (SWIG_IsTmpObj(res4)) {
21382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21383 } else {
21384 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21386 }
21387 if (SWIG_IsTmpObj(res5)) {
21388 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21389 } else {
21390 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21392 }
21393 if (SWIG_IsTmpObj(res6)) {
21394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21395 } else {
21396 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21398 }
21399 {
21400 if (temp2)
21401 delete arg2;
21402 }
21403 return resultobj;
21404 fail:
21405 {
21406 if (temp2)
21407 delete arg2;
21408 }
21409 return NULL;
21410 }
21411
21412
21413 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21414 PyObject *resultobj = 0;
21415 wxDC *arg1 = (wxDC *) 0 ;
21416 wxString *arg2 = 0 ;
21417 int *arg3 = (int *) 0 ;
21418 int *arg4 = (int *) 0 ;
21419 int *arg5 = (int *) 0 ;
21420 wxFont *arg6 = (wxFont *) NULL ;
21421 void *argp1 = 0 ;
21422 int res1 = 0 ;
21423 bool temp2 = false ;
21424 int temp3 ;
21425 int res3 = SWIG_TMPOBJ ;
21426 int temp4 ;
21427 int res4 = SWIG_TMPOBJ ;
21428 int temp5 ;
21429 int res5 = SWIG_TMPOBJ ;
21430 void *argp6 = 0 ;
21431 int res6 = 0 ;
21432 PyObject * obj0 = 0 ;
21433 PyObject * obj1 = 0 ;
21434 PyObject * obj2 = 0 ;
21435 char * kwnames[] = {
21436 (char *) "self",(char *) "text",(char *) "font", NULL
21437 };
21438
21439 arg3 = &temp3;
21440 arg4 = &temp4;
21441 arg5 = &temp5;
21442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21444 if (!SWIG_IsOK(res1)) {
21445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21446 }
21447 arg1 = reinterpret_cast< wxDC * >(argp1);
21448 {
21449 arg2 = wxString_in_helper(obj1);
21450 if (arg2 == NULL) SWIG_fail;
21451 temp2 = true;
21452 }
21453 if (obj2) {
21454 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21455 if (!SWIG_IsOK(res6)) {
21456 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21457 }
21458 arg6 = reinterpret_cast< wxFont * >(argp6);
21459 }
21460 {
21461 PyThreadState* __tstate = wxPyBeginAllowThreads();
21462 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 resultobj = SWIG_Py_Void();
21467 if (SWIG_IsTmpObj(res3)) {
21468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21469 } else {
21470 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21472 }
21473 if (SWIG_IsTmpObj(res4)) {
21474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21475 } else {
21476 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21478 }
21479 if (SWIG_IsTmpObj(res5)) {
21480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21481 } else {
21482 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21484 }
21485 {
21486 if (temp2)
21487 delete arg2;
21488 }
21489 return resultobj;
21490 fail:
21491 {
21492 if (temp2)
21493 delete arg2;
21494 }
21495 return NULL;
21496 }
21497
21498
21499 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21500 PyObject *resultobj = 0;
21501 wxDC *arg1 = (wxDC *) 0 ;
21502 wxString *arg2 = 0 ;
21503 wxArrayInt result;
21504 void *argp1 = 0 ;
21505 int res1 = 0 ;
21506 bool temp2 = false ;
21507 PyObject * obj0 = 0 ;
21508 PyObject * obj1 = 0 ;
21509 char * kwnames[] = {
21510 (char *) "self",(char *) "text", NULL
21511 };
21512
21513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21515 if (!SWIG_IsOK(res1)) {
21516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21517 }
21518 arg1 = reinterpret_cast< wxDC * >(argp1);
21519 {
21520 arg2 = wxString_in_helper(obj1);
21521 if (arg2 == NULL) SWIG_fail;
21522 temp2 = true;
21523 }
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 {
21531 resultobj = wxArrayInt2PyList_helper(result);
21532 }
21533 {
21534 if (temp2)
21535 delete arg2;
21536 }
21537 return resultobj;
21538 fail:
21539 {
21540 if (temp2)
21541 delete arg2;
21542 }
21543 return NULL;
21544 }
21545
21546
21547 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21548 PyObject *resultobj = 0;
21549 wxDC *arg1 = (wxDC *) 0 ;
21550 wxSize result;
21551 void *argp1 = 0 ;
21552 int res1 = 0 ;
21553 PyObject *swig_obj[1] ;
21554
21555 if (!args) SWIG_fail;
21556 swig_obj[0] = args;
21557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 result = (arg1)->GetSize();
21565 wxPyEndAllowThreads(__tstate);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21569 return resultobj;
21570 fail:
21571 return NULL;
21572 }
21573
21574
21575 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21576 PyObject *resultobj = 0;
21577 wxDC *arg1 = (wxDC *) 0 ;
21578 int *arg2 = (int *) 0 ;
21579 int *arg3 = (int *) 0 ;
21580 void *argp1 = 0 ;
21581 int res1 = 0 ;
21582 int temp2 ;
21583 int res2 = SWIG_TMPOBJ ;
21584 int temp3 ;
21585 int res3 = SWIG_TMPOBJ ;
21586 PyObject *swig_obj[1] ;
21587
21588 arg2 = &temp2;
21589 arg3 = &temp3;
21590 if (!args) SWIG_fail;
21591 swig_obj[0] = args;
21592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21593 if (!SWIG_IsOK(res1)) {
21594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21595 }
21596 arg1 = reinterpret_cast< wxDC * >(argp1);
21597 {
21598 PyThreadState* __tstate = wxPyBeginAllowThreads();
21599 (arg1)->GetSize(arg2,arg3);
21600 wxPyEndAllowThreads(__tstate);
21601 if (PyErr_Occurred()) SWIG_fail;
21602 }
21603 resultobj = SWIG_Py_Void();
21604 if (SWIG_IsTmpObj(res2)) {
21605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21606 } else {
21607 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21609 }
21610 if (SWIG_IsTmpObj(res3)) {
21611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21612 } else {
21613 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21615 }
21616 return resultobj;
21617 fail:
21618 return NULL;
21619 }
21620
21621
21622 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21623 PyObject *resultobj = 0;
21624 wxDC *arg1 = (wxDC *) 0 ;
21625 wxSize result;
21626 void *argp1 = 0 ;
21627 int res1 = 0 ;
21628 PyObject *swig_obj[1] ;
21629
21630 if (!args) SWIG_fail;
21631 swig_obj[0] = args;
21632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21633 if (!SWIG_IsOK(res1)) {
21634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21635 }
21636 arg1 = reinterpret_cast< wxDC * >(argp1);
21637 {
21638 PyThreadState* __tstate = wxPyBeginAllowThreads();
21639 result = ((wxDC const *)arg1)->GetSizeMM();
21640 wxPyEndAllowThreads(__tstate);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 }
21643 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21644 return resultobj;
21645 fail:
21646 return NULL;
21647 }
21648
21649
21650 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21651 PyObject *resultobj = 0;
21652 wxDC *arg1 = (wxDC *) 0 ;
21653 int *arg2 = (int *) 0 ;
21654 int *arg3 = (int *) 0 ;
21655 void *argp1 = 0 ;
21656 int res1 = 0 ;
21657 int temp2 ;
21658 int res2 = SWIG_TMPOBJ ;
21659 int temp3 ;
21660 int res3 = SWIG_TMPOBJ ;
21661 PyObject *swig_obj[1] ;
21662
21663 arg2 = &temp2;
21664 arg3 = &temp3;
21665 if (!args) SWIG_fail;
21666 swig_obj[0] = args;
21667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21668 if (!SWIG_IsOK(res1)) {
21669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21670 }
21671 arg1 = reinterpret_cast< wxDC * >(argp1);
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21675 wxPyEndAllowThreads(__tstate);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 }
21678 resultobj = SWIG_Py_Void();
21679 if (SWIG_IsTmpObj(res2)) {
21680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21681 } else {
21682 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21684 }
21685 if (SWIG_IsTmpObj(res3)) {
21686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21687 } else {
21688 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21690 }
21691 return resultobj;
21692 fail:
21693 return NULL;
21694 }
21695
21696
21697 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21698 PyObject *resultobj = 0;
21699 wxDC *arg1 = (wxDC *) 0 ;
21700 int arg2 ;
21701 int result;
21702 void *argp1 = 0 ;
21703 int res1 = 0 ;
21704 int val2 ;
21705 int ecode2 = 0 ;
21706 PyObject * obj0 = 0 ;
21707 PyObject * obj1 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "self",(char *) "x", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21716 }
21717 arg1 = reinterpret_cast< wxDC * >(argp1);
21718 ecode2 = SWIG_AsVal_int(obj1, &val2);
21719 if (!SWIG_IsOK(ecode2)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21721 }
21722 arg2 = static_cast< int >(val2);
21723 {
21724 PyThreadState* __tstate = wxPyBeginAllowThreads();
21725 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 resultobj = SWIG_From_int(static_cast< int >(result));
21730 return resultobj;
21731 fail:
21732 return NULL;
21733 }
21734
21735
21736 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj = 0;
21738 wxDC *arg1 = (wxDC *) 0 ;
21739 int arg2 ;
21740 int result;
21741 void *argp1 = 0 ;
21742 int res1 = 0 ;
21743 int val2 ;
21744 int ecode2 = 0 ;
21745 PyObject * obj0 = 0 ;
21746 PyObject * obj1 = 0 ;
21747 char * kwnames[] = {
21748 (char *) "self",(char *) "y", NULL
21749 };
21750
21751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21753 if (!SWIG_IsOK(res1)) {
21754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21755 }
21756 arg1 = reinterpret_cast< wxDC * >(argp1);
21757 ecode2 = SWIG_AsVal_int(obj1, &val2);
21758 if (!SWIG_IsOK(ecode2)) {
21759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21760 }
21761 arg2 = static_cast< int >(val2);
21762 {
21763 PyThreadState* __tstate = wxPyBeginAllowThreads();
21764 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21765 wxPyEndAllowThreads(__tstate);
21766 if (PyErr_Occurred()) SWIG_fail;
21767 }
21768 resultobj = SWIG_From_int(static_cast< int >(result));
21769 return resultobj;
21770 fail:
21771 return NULL;
21772 }
21773
21774
21775 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj = 0;
21777 wxDC *arg1 = (wxDC *) 0 ;
21778 int arg2 ;
21779 int result;
21780 void *argp1 = 0 ;
21781 int res1 = 0 ;
21782 int val2 ;
21783 int ecode2 = 0 ;
21784 PyObject * obj0 = 0 ;
21785 PyObject * obj1 = 0 ;
21786 char * kwnames[] = {
21787 (char *) "self",(char *) "x", NULL
21788 };
21789
21790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21792 if (!SWIG_IsOK(res1)) {
21793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21794 }
21795 arg1 = reinterpret_cast< wxDC * >(argp1);
21796 ecode2 = SWIG_AsVal_int(obj1, &val2);
21797 if (!SWIG_IsOK(ecode2)) {
21798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21799 }
21800 arg2 = static_cast< int >(val2);
21801 {
21802 PyThreadState* __tstate = wxPyBeginAllowThreads();
21803 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21804 wxPyEndAllowThreads(__tstate);
21805 if (PyErr_Occurred()) SWIG_fail;
21806 }
21807 resultobj = SWIG_From_int(static_cast< int >(result));
21808 return resultobj;
21809 fail:
21810 return NULL;
21811 }
21812
21813
21814 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21815 PyObject *resultobj = 0;
21816 wxDC *arg1 = (wxDC *) 0 ;
21817 int arg2 ;
21818 int result;
21819 void *argp1 = 0 ;
21820 int res1 = 0 ;
21821 int val2 ;
21822 int ecode2 = 0 ;
21823 PyObject * obj0 = 0 ;
21824 PyObject * obj1 = 0 ;
21825 char * kwnames[] = {
21826 (char *) "self",(char *) "y", NULL
21827 };
21828
21829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21831 if (!SWIG_IsOK(res1)) {
21832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21833 }
21834 arg1 = reinterpret_cast< wxDC * >(argp1);
21835 ecode2 = SWIG_AsVal_int(obj1, &val2);
21836 if (!SWIG_IsOK(ecode2)) {
21837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21838 }
21839 arg2 = static_cast< int >(val2);
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_From_int(static_cast< int >(result));
21847 return resultobj;
21848 fail:
21849 return NULL;
21850 }
21851
21852
21853 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21854 PyObject *resultobj = 0;
21855 wxDC *arg1 = (wxDC *) 0 ;
21856 int arg2 ;
21857 int result;
21858 void *argp1 = 0 ;
21859 int res1 = 0 ;
21860 int val2 ;
21861 int ecode2 = 0 ;
21862 PyObject * obj0 = 0 ;
21863 PyObject * obj1 = 0 ;
21864 char * kwnames[] = {
21865 (char *) "self",(char *) "x", NULL
21866 };
21867
21868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21870 if (!SWIG_IsOK(res1)) {
21871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21872 }
21873 arg1 = reinterpret_cast< wxDC * >(argp1);
21874 ecode2 = SWIG_AsVal_int(obj1, &val2);
21875 if (!SWIG_IsOK(ecode2)) {
21876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21877 }
21878 arg2 = static_cast< int >(val2);
21879 {
21880 PyThreadState* __tstate = wxPyBeginAllowThreads();
21881 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21882 wxPyEndAllowThreads(__tstate);
21883 if (PyErr_Occurred()) SWIG_fail;
21884 }
21885 resultobj = SWIG_From_int(static_cast< int >(result));
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21893 PyObject *resultobj = 0;
21894 wxDC *arg1 = (wxDC *) 0 ;
21895 int arg2 ;
21896 int result;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 int val2 ;
21900 int ecode2 = 0 ;
21901 PyObject * obj0 = 0 ;
21902 PyObject * obj1 = 0 ;
21903 char * kwnames[] = {
21904 (char *) "self",(char *) "y", NULL
21905 };
21906
21907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21909 if (!SWIG_IsOK(res1)) {
21910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21911 }
21912 arg1 = reinterpret_cast< wxDC * >(argp1);
21913 ecode2 = SWIG_AsVal_int(obj1, &val2);
21914 if (!SWIG_IsOK(ecode2)) {
21915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21916 }
21917 arg2 = static_cast< int >(val2);
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21921 wxPyEndAllowThreads(__tstate);
21922 if (PyErr_Occurred()) SWIG_fail;
21923 }
21924 resultobj = SWIG_From_int(static_cast< int >(result));
21925 return resultobj;
21926 fail:
21927 return NULL;
21928 }
21929
21930
21931 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21932 PyObject *resultobj = 0;
21933 wxDC *arg1 = (wxDC *) 0 ;
21934 int arg2 ;
21935 int result;
21936 void *argp1 = 0 ;
21937 int res1 = 0 ;
21938 int val2 ;
21939 int ecode2 = 0 ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char * kwnames[] = {
21943 (char *) "self",(char *) "x", NULL
21944 };
21945
21946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21948 if (!SWIG_IsOK(res1)) {
21949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21950 }
21951 arg1 = reinterpret_cast< wxDC * >(argp1);
21952 ecode2 = SWIG_AsVal_int(obj1, &val2);
21953 if (!SWIG_IsOK(ecode2)) {
21954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21955 }
21956 arg2 = static_cast< int >(val2);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_From_int(static_cast< int >(result));
21964 return resultobj;
21965 fail:
21966 return NULL;
21967 }
21968
21969
21970 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 int arg2 ;
21974 int result;
21975 void *argp1 = 0 ;
21976 int res1 = 0 ;
21977 int val2 ;
21978 int ecode2 = 0 ;
21979 PyObject * obj0 = 0 ;
21980 PyObject * obj1 = 0 ;
21981 char * kwnames[] = {
21982 (char *) "self",(char *) "y", NULL
21983 };
21984
21985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21987 if (!SWIG_IsOK(res1)) {
21988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21989 }
21990 arg1 = reinterpret_cast< wxDC * >(argp1);
21991 ecode2 = SWIG_AsVal_int(obj1, &val2);
21992 if (!SWIG_IsOK(ecode2)) {
21993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21994 }
21995 arg2 = static_cast< int >(val2);
21996 {
21997 PyThreadState* __tstate = wxPyBeginAllowThreads();
21998 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21999 wxPyEndAllowThreads(__tstate);
22000 if (PyErr_Occurred()) SWIG_fail;
22001 }
22002 resultobj = SWIG_From_int(static_cast< int >(result));
22003 return resultobj;
22004 fail:
22005 return NULL;
22006 }
22007
22008
22009 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22010 PyObject *resultobj = 0;
22011 wxDC *arg1 = (wxDC *) 0 ;
22012 bool result;
22013 void *argp1 = 0 ;
22014 int res1 = 0 ;
22015 PyObject *swig_obj[1] ;
22016
22017 if (!args) SWIG_fail;
22018 swig_obj[0] = args;
22019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22020 if (!SWIG_IsOK(res1)) {
22021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22022 }
22023 arg1 = reinterpret_cast< wxDC * >(argp1);
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 {
22031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22032 }
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22040 PyObject *resultobj = 0;
22041 wxDC *arg1 = (wxDC *) 0 ;
22042 bool result;
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_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22052 }
22053 arg1 = reinterpret_cast< wxDC * >(argp1);
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 {
22061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22062 }
22063 return resultobj;
22064 fail:
22065 return NULL;
22066 }
22067
22068
22069 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22070 PyObject *resultobj = 0;
22071 wxDC *arg1 = (wxDC *) 0 ;
22072 int result;
22073 void *argp1 = 0 ;
22074 int res1 = 0 ;
22075 PyObject *swig_obj[1] ;
22076
22077 if (!args) SWIG_fail;
22078 swig_obj[0] = args;
22079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22082 }
22083 arg1 = reinterpret_cast< wxDC * >(argp1);
22084 {
22085 PyThreadState* __tstate = wxPyBeginAllowThreads();
22086 result = (int)((wxDC const *)arg1)->GetDepth();
22087 wxPyEndAllowThreads(__tstate);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 }
22090 resultobj = SWIG_From_int(static_cast< int >(result));
22091 return resultobj;
22092 fail:
22093 return NULL;
22094 }
22095
22096
22097 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22098 PyObject *resultobj = 0;
22099 wxDC *arg1 = (wxDC *) 0 ;
22100 wxSize result;
22101 void *argp1 = 0 ;
22102 int res1 = 0 ;
22103 PyObject *swig_obj[1] ;
22104
22105 if (!args) SWIG_fail;
22106 swig_obj[0] = args;
22107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22110 }
22111 arg1 = reinterpret_cast< wxDC * >(argp1);
22112 {
22113 PyThreadState* __tstate = wxPyBeginAllowThreads();
22114 result = ((wxDC const *)arg1)->GetPPI();
22115 wxPyEndAllowThreads(__tstate);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 }
22118 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22119 return resultobj;
22120 fail:
22121 return NULL;
22122 }
22123
22124
22125 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22126 PyObject *resultobj = 0;
22127 wxDC *arg1 = (wxDC *) 0 ;
22128 bool result;
22129 void *argp1 = 0 ;
22130 int res1 = 0 ;
22131 PyObject *swig_obj[1] ;
22132
22133 if (!args) SWIG_fail;
22134 swig_obj[0] = args;
22135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22136 if (!SWIG_IsOK(res1)) {
22137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22138 }
22139 arg1 = reinterpret_cast< wxDC * >(argp1);
22140 {
22141 PyThreadState* __tstate = wxPyBeginAllowThreads();
22142 result = (bool)((wxDC const *)arg1)->IsOk();
22143 wxPyEndAllowThreads(__tstate);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 {
22147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22148 }
22149 return resultobj;
22150 fail:
22151 return NULL;
22152 }
22153
22154
22155 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22156 PyObject *resultobj = 0;
22157 wxDC *arg1 = (wxDC *) 0 ;
22158 int result;
22159 void *argp1 = 0 ;
22160 int res1 = 0 ;
22161 PyObject *swig_obj[1] ;
22162
22163 if (!args) SWIG_fail;
22164 swig_obj[0] = args;
22165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22166 if (!SWIG_IsOK(res1)) {
22167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22168 }
22169 arg1 = reinterpret_cast< wxDC * >(argp1);
22170 {
22171 PyThreadState* __tstate = wxPyBeginAllowThreads();
22172 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22173 wxPyEndAllowThreads(__tstate);
22174 if (PyErr_Occurred()) SWIG_fail;
22175 }
22176 resultobj = SWIG_From_int(static_cast< int >(result));
22177 return resultobj;
22178 fail:
22179 return NULL;
22180 }
22181
22182
22183 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22184 PyObject *resultobj = 0;
22185 wxDC *arg1 = (wxDC *) 0 ;
22186 wxBrush *result = 0 ;
22187 void *argp1 = 0 ;
22188 int res1 = 0 ;
22189 PyObject *swig_obj[1] ;
22190
22191 if (!args) SWIG_fail;
22192 swig_obj[0] = args;
22193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22196 }
22197 arg1 = reinterpret_cast< wxDC * >(argp1);
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 {
22201 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22202 result = (wxBrush *) &_result_ref;
22203 }
22204 wxPyEndAllowThreads(__tstate);
22205 if (PyErr_Occurred()) SWIG_fail;
22206 }
22207 {
22208 wxBrush* resultptr = new wxBrush(*result);
22209 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22210 }
22211 return resultobj;
22212 fail:
22213 return NULL;
22214 }
22215
22216
22217 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *resultobj = 0;
22219 wxDC *arg1 = (wxDC *) 0 ;
22220 wxBrush *result = 0 ;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 PyObject *swig_obj[1] ;
22224
22225 if (!args) SWIG_fail;
22226 swig_obj[0] = args;
22227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22230 }
22231 arg1 = reinterpret_cast< wxDC * >(argp1);
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 {
22235 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22236 result = (wxBrush *) &_result_ref;
22237 }
22238 wxPyEndAllowThreads(__tstate);
22239 if (PyErr_Occurred()) SWIG_fail;
22240 }
22241 {
22242 wxBrush* resultptr = new wxBrush(*result);
22243 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22244 }
22245 return resultobj;
22246 fail:
22247 return NULL;
22248 }
22249
22250
22251 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22252 PyObject *resultobj = 0;
22253 wxDC *arg1 = (wxDC *) 0 ;
22254 wxFont *result = 0 ;
22255 void *argp1 = 0 ;
22256 int res1 = 0 ;
22257 PyObject *swig_obj[1] ;
22258
22259 if (!args) SWIG_fail;
22260 swig_obj[0] = args;
22261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22262 if (!SWIG_IsOK(res1)) {
22263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22264 }
22265 arg1 = reinterpret_cast< wxDC * >(argp1);
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 {
22269 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22270 result = (wxFont *) &_result_ref;
22271 }
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 {
22276 wxFont* resultptr = new wxFont(*result);
22277 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22278 }
22279 return resultobj;
22280 fail:
22281 return NULL;
22282 }
22283
22284
22285 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22286 PyObject *resultobj = 0;
22287 wxDC *arg1 = (wxDC *) 0 ;
22288 wxPen *result = 0 ;
22289 void *argp1 = 0 ;
22290 int res1 = 0 ;
22291 PyObject *swig_obj[1] ;
22292
22293 if (!args) SWIG_fail;
22294 swig_obj[0] = args;
22295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22296 if (!SWIG_IsOK(res1)) {
22297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22298 }
22299 arg1 = reinterpret_cast< wxDC * >(argp1);
22300 {
22301 PyThreadState* __tstate = wxPyBeginAllowThreads();
22302 {
22303 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22304 result = (wxPen *) &_result_ref;
22305 }
22306 wxPyEndAllowThreads(__tstate);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 {
22310 wxPen* resultptr = new wxPen(*result);
22311 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22312 }
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22320 PyObject *resultobj = 0;
22321 wxDC *arg1 = (wxDC *) 0 ;
22322 wxColour *result = 0 ;
22323 void *argp1 = 0 ;
22324 int res1 = 0 ;
22325 PyObject *swig_obj[1] ;
22326
22327 if (!args) SWIG_fail;
22328 swig_obj[0] = args;
22329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22330 if (!SWIG_IsOK(res1)) {
22331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22332 }
22333 arg1 = reinterpret_cast< wxDC * >(argp1);
22334 {
22335 PyThreadState* __tstate = wxPyBeginAllowThreads();
22336 {
22337 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22338 result = (wxColour *) &_result_ref;
22339 }
22340 wxPyEndAllowThreads(__tstate);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22344 return resultobj;
22345 fail:
22346 return NULL;
22347 }
22348
22349
22350 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22351 PyObject *resultobj = 0;
22352 wxDC *arg1 = (wxDC *) 0 ;
22353 wxColour *result = 0 ;
22354 void *argp1 = 0 ;
22355 int res1 = 0 ;
22356 PyObject *swig_obj[1] ;
22357
22358 if (!args) SWIG_fail;
22359 swig_obj[0] = args;
22360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22363 }
22364 arg1 = reinterpret_cast< wxDC * >(argp1);
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 {
22368 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22369 result = (wxColour *) &_result_ref;
22370 }
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22375 return resultobj;
22376 fail:
22377 return NULL;
22378 }
22379
22380
22381 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22382 PyObject *resultobj = 0;
22383 wxDC *arg1 = (wxDC *) 0 ;
22384 wxColour *arg2 = 0 ;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 wxColour temp2 ;
22388 PyObject * obj0 = 0 ;
22389 PyObject * obj1 = 0 ;
22390 char * kwnames[] = {
22391 (char *) "self",(char *) "colour", NULL
22392 };
22393
22394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22396 if (!SWIG_IsOK(res1)) {
22397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22398 }
22399 arg1 = reinterpret_cast< wxDC * >(argp1);
22400 {
22401 arg2 = &temp2;
22402 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22403 }
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 (arg1)->SetTextForeground((wxColour const &)*arg2);
22407 wxPyEndAllowThreads(__tstate);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 }
22410 resultobj = SWIG_Py_Void();
22411 return resultobj;
22412 fail:
22413 return NULL;
22414 }
22415
22416
22417 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22418 PyObject *resultobj = 0;
22419 wxDC *arg1 = (wxDC *) 0 ;
22420 wxColour *arg2 = 0 ;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 wxColour temp2 ;
22424 PyObject * obj0 = 0 ;
22425 PyObject * obj1 = 0 ;
22426 char * kwnames[] = {
22427 (char *) "self",(char *) "colour", NULL
22428 };
22429
22430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22432 if (!SWIG_IsOK(res1)) {
22433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22434 }
22435 arg1 = reinterpret_cast< wxDC * >(argp1);
22436 {
22437 arg2 = &temp2;
22438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22439 }
22440 {
22441 PyThreadState* __tstate = wxPyBeginAllowThreads();
22442 (arg1)->SetTextBackground((wxColour const &)*arg2);
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 resultobj = SWIG_Py_Void();
22447 return resultobj;
22448 fail:
22449 return NULL;
22450 }
22451
22452
22453 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22454 PyObject *resultobj = 0;
22455 wxDC *arg1 = (wxDC *) 0 ;
22456 int result;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 PyObject *swig_obj[1] ;
22460
22461 if (!args) SWIG_fail;
22462 swig_obj[0] = args;
22463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22464 if (!SWIG_IsOK(res1)) {
22465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22466 }
22467 arg1 = reinterpret_cast< wxDC * >(argp1);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 result = (int)((wxDC const *)arg1)->GetMapMode();
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 resultobj = SWIG_From_int(static_cast< int >(result));
22475 return resultobj;
22476 fail:
22477 return NULL;
22478 }
22479
22480
22481 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22482 PyObject *resultobj = 0;
22483 wxDC *arg1 = (wxDC *) 0 ;
22484 int arg2 ;
22485 void *argp1 = 0 ;
22486 int res1 = 0 ;
22487 int val2 ;
22488 int ecode2 = 0 ;
22489 PyObject * obj0 = 0 ;
22490 PyObject * obj1 = 0 ;
22491 char * kwnames[] = {
22492 (char *) "self",(char *) "mode", NULL
22493 };
22494
22495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22497 if (!SWIG_IsOK(res1)) {
22498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22499 }
22500 arg1 = reinterpret_cast< wxDC * >(argp1);
22501 ecode2 = SWIG_AsVal_int(obj1, &val2);
22502 if (!SWIG_IsOK(ecode2)) {
22503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22504 }
22505 arg2 = static_cast< int >(val2);
22506 {
22507 PyThreadState* __tstate = wxPyBeginAllowThreads();
22508 (arg1)->SetMapMode(arg2);
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 resultobj = SWIG_Py_Void();
22513 return resultobj;
22514 fail:
22515 return NULL;
22516 }
22517
22518
22519 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22520 PyObject *resultobj = 0;
22521 wxDC *arg1 = (wxDC *) 0 ;
22522 double *arg2 = (double *) 0 ;
22523 double *arg3 = (double *) 0 ;
22524 void *argp1 = 0 ;
22525 int res1 = 0 ;
22526 double temp2 ;
22527 int res2 = SWIG_TMPOBJ ;
22528 double temp3 ;
22529 int res3 = SWIG_TMPOBJ ;
22530 PyObject *swig_obj[1] ;
22531
22532 arg2 = &temp2;
22533 arg3 = &temp3;
22534 if (!args) SWIG_fail;
22535 swig_obj[0] = args;
22536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22537 if (!SWIG_IsOK(res1)) {
22538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22539 }
22540 arg1 = reinterpret_cast< wxDC * >(argp1);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_Py_Void();
22548 if (SWIG_IsTmpObj(res2)) {
22549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22550 } else {
22551 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22553 }
22554 if (SWIG_IsTmpObj(res3)) {
22555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22556 } else {
22557 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22559 }
22560 return resultobj;
22561 fail:
22562 return NULL;
22563 }
22564
22565
22566 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22567 PyObject *resultobj = 0;
22568 wxDC *arg1 = (wxDC *) 0 ;
22569 double arg2 ;
22570 double arg3 ;
22571 void *argp1 = 0 ;
22572 int res1 = 0 ;
22573 double val2 ;
22574 int ecode2 = 0 ;
22575 double val3 ;
22576 int ecode3 = 0 ;
22577 PyObject * obj0 = 0 ;
22578 PyObject * obj1 = 0 ;
22579 PyObject * obj2 = 0 ;
22580 char * kwnames[] = {
22581 (char *) "self",(char *) "x",(char *) "y", NULL
22582 };
22583
22584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22586 if (!SWIG_IsOK(res1)) {
22587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22588 }
22589 arg1 = reinterpret_cast< wxDC * >(argp1);
22590 ecode2 = SWIG_AsVal_double(obj1, &val2);
22591 if (!SWIG_IsOK(ecode2)) {
22592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22593 }
22594 arg2 = static_cast< double >(val2);
22595 ecode3 = SWIG_AsVal_double(obj2, &val3);
22596 if (!SWIG_IsOK(ecode3)) {
22597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22598 }
22599 arg3 = static_cast< double >(val3);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->SetUserScale(arg2,arg3);
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *resultobj = 0;
22615 wxDC *arg1 = (wxDC *) 0 ;
22616 double *arg2 = (double *) 0 ;
22617 double *arg3 = (double *) 0 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 double temp2 ;
22621 int res2 = SWIG_TMPOBJ ;
22622 double temp3 ;
22623 int res3 = SWIG_TMPOBJ ;
22624 PyObject *swig_obj[1] ;
22625
22626 arg2 = &temp2;
22627 arg3 = &temp3;
22628 if (!args) SWIG_fail;
22629 swig_obj[0] = args;
22630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22631 if (!SWIG_IsOK(res1)) {
22632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22633 }
22634 arg1 = reinterpret_cast< wxDC * >(argp1);
22635 {
22636 PyThreadState* __tstate = wxPyBeginAllowThreads();
22637 (arg1)->GetLogicalScale(arg2,arg3);
22638 wxPyEndAllowThreads(__tstate);
22639 if (PyErr_Occurred()) SWIG_fail;
22640 }
22641 resultobj = SWIG_Py_Void();
22642 if (SWIG_IsTmpObj(res2)) {
22643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22644 } else {
22645 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22647 }
22648 if (SWIG_IsTmpObj(res3)) {
22649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22650 } else {
22651 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22653 }
22654 return resultobj;
22655 fail:
22656 return NULL;
22657 }
22658
22659
22660 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22661 PyObject *resultobj = 0;
22662 wxDC *arg1 = (wxDC *) 0 ;
22663 double arg2 ;
22664 double arg3 ;
22665 void *argp1 = 0 ;
22666 int res1 = 0 ;
22667 double val2 ;
22668 int ecode2 = 0 ;
22669 double val3 ;
22670 int ecode3 = 0 ;
22671 PyObject * obj0 = 0 ;
22672 PyObject * obj1 = 0 ;
22673 PyObject * obj2 = 0 ;
22674 char * kwnames[] = {
22675 (char *) "self",(char *) "x",(char *) "y", NULL
22676 };
22677
22678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22680 if (!SWIG_IsOK(res1)) {
22681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22682 }
22683 arg1 = reinterpret_cast< wxDC * >(argp1);
22684 ecode2 = SWIG_AsVal_double(obj1, &val2);
22685 if (!SWIG_IsOK(ecode2)) {
22686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22687 }
22688 arg2 = static_cast< double >(val2);
22689 ecode3 = SWIG_AsVal_double(obj2, &val3);
22690 if (!SWIG_IsOK(ecode3)) {
22691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22692 }
22693 arg3 = static_cast< double >(val3);
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 (arg1)->SetLogicalScale(arg2,arg3);
22697 wxPyEndAllowThreads(__tstate);
22698 if (PyErr_Occurred()) SWIG_fail;
22699 }
22700 resultobj = SWIG_Py_Void();
22701 return resultobj;
22702 fail:
22703 return NULL;
22704 }
22705
22706
22707 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22708 PyObject *resultobj = 0;
22709 wxDC *arg1 = (wxDC *) 0 ;
22710 wxPoint result;
22711 void *argp1 = 0 ;
22712 int res1 = 0 ;
22713 PyObject *swig_obj[1] ;
22714
22715 if (!args) SWIG_fail;
22716 swig_obj[0] = args;
22717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22720 }
22721 arg1 = reinterpret_cast< wxDC * >(argp1);
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22736 PyObject *resultobj = 0;
22737 wxDC *arg1 = (wxDC *) 0 ;
22738 int *arg2 = (int *) 0 ;
22739 int *arg3 = (int *) 0 ;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 int temp2 ;
22743 int res2 = SWIG_TMPOBJ ;
22744 int temp3 ;
22745 int res3 = SWIG_TMPOBJ ;
22746 PyObject *swig_obj[1] ;
22747
22748 arg2 = &temp2;
22749 arg3 = &temp3;
22750 if (!args) SWIG_fail;
22751 swig_obj[0] = args;
22752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22753 if (!SWIG_IsOK(res1)) {
22754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22755 }
22756 arg1 = reinterpret_cast< wxDC * >(argp1);
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 resultobj = SWIG_Py_Void();
22764 if (SWIG_IsTmpObj(res2)) {
22765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22766 } else {
22767 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22769 }
22770 if (SWIG_IsTmpObj(res3)) {
22771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22772 } else {
22773 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22775 }
22776 return resultobj;
22777 fail:
22778 return NULL;
22779 }
22780
22781
22782 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22783 PyObject *resultobj = 0;
22784 wxDC *arg1 = (wxDC *) 0 ;
22785 int arg2 ;
22786 int arg3 ;
22787 void *argp1 = 0 ;
22788 int res1 = 0 ;
22789 int val2 ;
22790 int ecode2 = 0 ;
22791 int val3 ;
22792 int ecode3 = 0 ;
22793 PyObject * obj0 = 0 ;
22794 PyObject * obj1 = 0 ;
22795 PyObject * obj2 = 0 ;
22796 char * kwnames[] = {
22797 (char *) "self",(char *) "x",(char *) "y", NULL
22798 };
22799
22800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22804 }
22805 arg1 = reinterpret_cast< wxDC * >(argp1);
22806 ecode2 = SWIG_AsVal_int(obj1, &val2);
22807 if (!SWIG_IsOK(ecode2)) {
22808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22809 }
22810 arg2 = static_cast< int >(val2);
22811 ecode3 = SWIG_AsVal_int(obj2, &val3);
22812 if (!SWIG_IsOK(ecode3)) {
22813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22814 }
22815 arg3 = static_cast< int >(val3);
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 (arg1)->SetLogicalOrigin(arg2,arg3);
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 resultobj = SWIG_Py_Void();
22823 return resultobj;
22824 fail:
22825 return NULL;
22826 }
22827
22828
22829 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22830 PyObject *resultobj = 0;
22831 wxDC *arg1 = (wxDC *) 0 ;
22832 wxPoint *arg2 = 0 ;
22833 void *argp1 = 0 ;
22834 int res1 = 0 ;
22835 wxPoint temp2 ;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22838 char * kwnames[] = {
22839 (char *) "self",(char *) "point", NULL
22840 };
22841
22842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22844 if (!SWIG_IsOK(res1)) {
22845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22846 }
22847 arg1 = reinterpret_cast< wxDC * >(argp1);
22848 {
22849 arg2 = &temp2;
22850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22851 }
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 resultobj = SWIG_Py_Void();
22859 return resultobj;
22860 fail:
22861 return NULL;
22862 }
22863
22864
22865 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22866 PyObject *resultobj = 0;
22867 wxDC *arg1 = (wxDC *) 0 ;
22868 wxPoint result;
22869 void *argp1 = 0 ;
22870 int res1 = 0 ;
22871 PyObject *swig_obj[1] ;
22872
22873 if (!args) SWIG_fail;
22874 swig_obj[0] = args;
22875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22878 }
22879 arg1 = reinterpret_cast< wxDC * >(argp1);
22880 {
22881 PyThreadState* __tstate = wxPyBeginAllowThreads();
22882 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22894 PyObject *resultobj = 0;
22895 wxDC *arg1 = (wxDC *) 0 ;
22896 int *arg2 = (int *) 0 ;
22897 int *arg3 = (int *) 0 ;
22898 void *argp1 = 0 ;
22899 int res1 = 0 ;
22900 int temp2 ;
22901 int res2 = SWIG_TMPOBJ ;
22902 int temp3 ;
22903 int res3 = SWIG_TMPOBJ ;
22904 PyObject *swig_obj[1] ;
22905
22906 arg2 = &temp2;
22907 arg3 = &temp3;
22908 if (!args) SWIG_fail;
22909 swig_obj[0] = args;
22910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22911 if (!SWIG_IsOK(res1)) {
22912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22913 }
22914 arg1 = reinterpret_cast< wxDC * >(argp1);
22915 {
22916 PyThreadState* __tstate = wxPyBeginAllowThreads();
22917 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22918 wxPyEndAllowThreads(__tstate);
22919 if (PyErr_Occurred()) SWIG_fail;
22920 }
22921 resultobj = SWIG_Py_Void();
22922 if (SWIG_IsTmpObj(res2)) {
22923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22924 } else {
22925 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22927 }
22928 if (SWIG_IsTmpObj(res3)) {
22929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22930 } else {
22931 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22933 }
22934 return resultobj;
22935 fail:
22936 return NULL;
22937 }
22938
22939
22940 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj = 0;
22942 wxDC *arg1 = (wxDC *) 0 ;
22943 int arg2 ;
22944 int arg3 ;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 int val2 ;
22948 int ecode2 = 0 ;
22949 int val3 ;
22950 int ecode3 = 0 ;
22951 PyObject * obj0 = 0 ;
22952 PyObject * obj1 = 0 ;
22953 PyObject * obj2 = 0 ;
22954 char * kwnames[] = {
22955 (char *) "self",(char *) "x",(char *) "y", NULL
22956 };
22957
22958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22962 }
22963 arg1 = reinterpret_cast< wxDC * >(argp1);
22964 ecode2 = SWIG_AsVal_int(obj1, &val2);
22965 if (!SWIG_IsOK(ecode2)) {
22966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22967 }
22968 arg2 = static_cast< int >(val2);
22969 ecode3 = SWIG_AsVal_int(obj2, &val3);
22970 if (!SWIG_IsOK(ecode3)) {
22971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22972 }
22973 arg3 = static_cast< int >(val3);
22974 {
22975 PyThreadState* __tstate = wxPyBeginAllowThreads();
22976 (arg1)->SetDeviceOrigin(arg2,arg3);
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 resultobj = SWIG_Py_Void();
22981 return resultobj;
22982 fail:
22983 return NULL;
22984 }
22985
22986
22987 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22988 PyObject *resultobj = 0;
22989 wxDC *arg1 = (wxDC *) 0 ;
22990 wxPoint *arg2 = 0 ;
22991 void *argp1 = 0 ;
22992 int res1 = 0 ;
22993 wxPoint temp2 ;
22994 PyObject * obj0 = 0 ;
22995 PyObject * obj1 = 0 ;
22996 char * kwnames[] = {
22997 (char *) "self",(char *) "point", NULL
22998 };
22999
23000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23002 if (!SWIG_IsOK(res1)) {
23003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23004 }
23005 arg1 = reinterpret_cast< wxDC * >(argp1);
23006 {
23007 arg2 = &temp2;
23008 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23009 }
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 resultobj = SWIG_Py_Void();
23017 return resultobj;
23018 fail:
23019 return NULL;
23020 }
23021
23022
23023 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23024 PyObject *resultobj = 0;
23025 wxDC *arg1 = (wxDC *) 0 ;
23026 bool arg2 ;
23027 bool arg3 ;
23028 void *argp1 = 0 ;
23029 int res1 = 0 ;
23030 bool val2 ;
23031 int ecode2 = 0 ;
23032 bool val3 ;
23033 int ecode3 = 0 ;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 PyObject * obj2 = 0 ;
23037 char * kwnames[] = {
23038 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23039 };
23040
23041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23048 if (!SWIG_IsOK(ecode2)) {
23049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23050 }
23051 arg2 = static_cast< bool >(val2);
23052 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23053 if (!SWIG_IsOK(ecode3)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23055 }
23056 arg3 = static_cast< bool >(val3);
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 (arg1)->SetAxisOrientation(arg2,arg3);
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_Py_Void();
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 int result;
23074 void *argp1 = 0 ;
23075 int res1 = 0 ;
23076 PyObject *swig_obj[1] ;
23077
23078 if (!args) SWIG_fail;
23079 swig_obj[0] = args;
23080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23081 if (!SWIG_IsOK(res1)) {
23082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23083 }
23084 arg1 = reinterpret_cast< wxDC * >(argp1);
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 resultobj = SWIG_From_int(static_cast< int >(result));
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj = 0;
23100 wxDC *arg1 = (wxDC *) 0 ;
23101 int arg2 ;
23102 void *argp1 = 0 ;
23103 int res1 = 0 ;
23104 int val2 ;
23105 int ecode2 = 0 ;
23106 PyObject * obj0 = 0 ;
23107 PyObject * obj1 = 0 ;
23108 char * kwnames[] = {
23109 (char *) "self",(char *) "function", NULL
23110 };
23111
23112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23114 if (!SWIG_IsOK(res1)) {
23115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23116 }
23117 arg1 = reinterpret_cast< wxDC * >(argp1);
23118 ecode2 = SWIG_AsVal_int(obj1, &val2);
23119 if (!SWIG_IsOK(ecode2)) {
23120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23121 }
23122 arg2 = static_cast< int >(val2);
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 (arg1)->SetLogicalFunction(arg2);
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_Py_Void();
23130 return resultobj;
23131 fail:
23132 return NULL;
23133 }
23134
23135
23136 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23137 PyObject *resultobj = 0;
23138 wxDC *arg1 = (wxDC *) 0 ;
23139 void *argp1 = 0 ;
23140 int res1 = 0 ;
23141 PyObject *swig_obj[1] ;
23142
23143 if (!args) SWIG_fail;
23144 swig_obj[0] = args;
23145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23146 if (!SWIG_IsOK(res1)) {
23147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23148 }
23149 arg1 = reinterpret_cast< wxDC * >(argp1);
23150 {
23151 PyThreadState* __tstate = wxPyBeginAllowThreads();
23152 (arg1)->ComputeScaleAndOrigin();
23153 wxPyEndAllowThreads(__tstate);
23154 if (PyErr_Occurred()) SWIG_fail;
23155 }
23156 resultobj = SWIG_Py_Void();
23157 return resultobj;
23158 fail:
23159 return NULL;
23160 }
23161
23162
23163 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23164 PyObject *resultobj = 0;
23165 wxDC *arg1 = (wxDC *) 0 ;
23166 int arg2 ;
23167 int arg3 ;
23168 void *argp1 = 0 ;
23169 int res1 = 0 ;
23170 int val2 ;
23171 int ecode2 = 0 ;
23172 int val3 ;
23173 int ecode3 = 0 ;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 PyObject * obj2 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "x",(char *) "y", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23185 }
23186 arg1 = reinterpret_cast< wxDC * >(argp1);
23187 ecode2 = SWIG_AsVal_int(obj1, &val2);
23188 if (!SWIG_IsOK(ecode2)) {
23189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23190 }
23191 arg2 = static_cast< int >(val2);
23192 ecode3 = SWIG_AsVal_int(obj2, &val3);
23193 if (!SWIG_IsOK(ecode3)) {
23194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23195 }
23196 arg3 = static_cast< int >(val3);
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 (arg1)->CalcBoundingBox(arg2,arg3);
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 resultobj = SWIG_Py_Void();
23204 return resultobj;
23205 fail:
23206 return NULL;
23207 }
23208
23209
23210 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj = 0;
23212 wxDC *arg1 = (wxDC *) 0 ;
23213 wxPoint *arg2 = 0 ;
23214 void *argp1 = 0 ;
23215 int res1 = 0 ;
23216 wxPoint temp2 ;
23217 PyObject * obj0 = 0 ;
23218 PyObject * obj1 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "point", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23227 }
23228 arg1 = reinterpret_cast< wxDC * >(argp1);
23229 {
23230 arg2 = &temp2;
23231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23232 }
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23247 PyObject *resultobj = 0;
23248 wxDC *arg1 = (wxDC *) 0 ;
23249 void *argp1 = 0 ;
23250 int res1 = 0 ;
23251 PyObject *swig_obj[1] ;
23252
23253 if (!args) SWIG_fail;
23254 swig_obj[0] = args;
23255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23258 }
23259 arg1 = reinterpret_cast< wxDC * >(argp1);
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 (arg1)->ResetBoundingBox();
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 resultobj = SWIG_Py_Void();
23267 return resultobj;
23268 fail:
23269 return NULL;
23270 }
23271
23272
23273 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23274 PyObject *resultobj = 0;
23275 wxDC *arg1 = (wxDC *) 0 ;
23276 int result;
23277 void *argp1 = 0 ;
23278 int res1 = 0 ;
23279 PyObject *swig_obj[1] ;
23280
23281 if (!args) SWIG_fail;
23282 swig_obj[0] = args;
23283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23284 if (!SWIG_IsOK(res1)) {
23285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23286 }
23287 arg1 = reinterpret_cast< wxDC * >(argp1);
23288 {
23289 PyThreadState* __tstate = wxPyBeginAllowThreads();
23290 result = (int)((wxDC const *)arg1)->MinX();
23291 wxPyEndAllowThreads(__tstate);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 }
23294 resultobj = SWIG_From_int(static_cast< int >(result));
23295 return resultobj;
23296 fail:
23297 return NULL;
23298 }
23299
23300
23301 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23302 PyObject *resultobj = 0;
23303 wxDC *arg1 = (wxDC *) 0 ;
23304 int result;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 PyObject *swig_obj[1] ;
23308
23309 if (!args) SWIG_fail;
23310 swig_obj[0] = args;
23311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23312 if (!SWIG_IsOK(res1)) {
23313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23314 }
23315 arg1 = reinterpret_cast< wxDC * >(argp1);
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (int)((wxDC const *)arg1)->MaxX();
23319 wxPyEndAllowThreads(__tstate);
23320 if (PyErr_Occurred()) SWIG_fail;
23321 }
23322 resultobj = SWIG_From_int(static_cast< int >(result));
23323 return resultobj;
23324 fail:
23325 return NULL;
23326 }
23327
23328
23329 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23330 PyObject *resultobj = 0;
23331 wxDC *arg1 = (wxDC *) 0 ;
23332 int result;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject *swig_obj[1] ;
23336
23337 if (!args) SWIG_fail;
23338 swig_obj[0] = args;
23339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23342 }
23343 arg1 = reinterpret_cast< wxDC * >(argp1);
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 result = (int)((wxDC const *)arg1)->MinY();
23347 wxPyEndAllowThreads(__tstate);
23348 if (PyErr_Occurred()) SWIG_fail;
23349 }
23350 resultobj = SWIG_From_int(static_cast< int >(result));
23351 return resultobj;
23352 fail:
23353 return NULL;
23354 }
23355
23356
23357 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23358 PyObject *resultobj = 0;
23359 wxDC *arg1 = (wxDC *) 0 ;
23360 int result;
23361 void *argp1 = 0 ;
23362 int res1 = 0 ;
23363 PyObject *swig_obj[1] ;
23364
23365 if (!args) SWIG_fail;
23366 swig_obj[0] = args;
23367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23368 if (!SWIG_IsOK(res1)) {
23369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23370 }
23371 arg1 = reinterpret_cast< wxDC * >(argp1);
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 result = (int)((wxDC const *)arg1)->MaxY();
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_From_int(static_cast< int >(result));
23379 return resultobj;
23380 fail:
23381 return NULL;
23382 }
23383
23384
23385 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23386 PyObject *resultobj = 0;
23387 wxDC *arg1 = (wxDC *) 0 ;
23388 int *arg2 = (int *) 0 ;
23389 int *arg3 = (int *) 0 ;
23390 int *arg4 = (int *) 0 ;
23391 int *arg5 = (int *) 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 int temp2 ;
23395 int res2 = SWIG_TMPOBJ ;
23396 int temp3 ;
23397 int res3 = SWIG_TMPOBJ ;
23398 int temp4 ;
23399 int res4 = SWIG_TMPOBJ ;
23400 int temp5 ;
23401 int res5 = SWIG_TMPOBJ ;
23402 PyObject *swig_obj[1] ;
23403
23404 arg2 = &temp2;
23405 arg3 = &temp3;
23406 arg4 = &temp4;
23407 arg5 = &temp5;
23408 if (!args) SWIG_fail;
23409 swig_obj[0] = args;
23410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23411 if (!SWIG_IsOK(res1)) {
23412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23413 }
23414 arg1 = reinterpret_cast< wxDC * >(argp1);
23415 {
23416 PyThreadState* __tstate = wxPyBeginAllowThreads();
23417 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23418 wxPyEndAllowThreads(__tstate);
23419 if (PyErr_Occurred()) SWIG_fail;
23420 }
23421 resultobj = SWIG_Py_Void();
23422 if (SWIG_IsTmpObj(res2)) {
23423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23424 } else {
23425 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23427 }
23428 if (SWIG_IsTmpObj(res3)) {
23429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23430 } else {
23431 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23433 }
23434 if (SWIG_IsTmpObj(res4)) {
23435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23436 } else {
23437 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23439 }
23440 if (SWIG_IsTmpObj(res5)) {
23441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23442 } else {
23443 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23445 }
23446 return resultobj;
23447 fail:
23448 return NULL;
23449 }
23450
23451
23452 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23453 PyObject *resultobj = 0;
23454 wxDC *arg1 = (wxDC *) 0 ;
23455 wxLayoutDirection result;
23456 void *argp1 = 0 ;
23457 int res1 = 0 ;
23458 PyObject *swig_obj[1] ;
23459
23460 if (!args) SWIG_fail;
23461 swig_obj[0] = args;
23462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23463 if (!SWIG_IsOK(res1)) {
23464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23465 }
23466 arg1 = reinterpret_cast< wxDC * >(argp1);
23467 {
23468 PyThreadState* __tstate = wxPyBeginAllowThreads();
23469 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 resultobj = SWIG_From_int(static_cast< int >(result));
23474 return resultobj;
23475 fail:
23476 return NULL;
23477 }
23478
23479
23480 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23481 PyObject *resultobj = 0;
23482 wxDC *arg1 = (wxDC *) 0 ;
23483 wxLayoutDirection arg2 ;
23484 void *argp1 = 0 ;
23485 int res1 = 0 ;
23486 int val2 ;
23487 int ecode2 = 0 ;
23488 PyObject * obj0 = 0 ;
23489 PyObject * obj1 = 0 ;
23490 char * kwnames[] = {
23491 (char *) "self",(char *) "dir", NULL
23492 };
23493
23494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23496 if (!SWIG_IsOK(res1)) {
23497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23498 }
23499 arg1 = reinterpret_cast< wxDC * >(argp1);
23500 ecode2 = SWIG_AsVal_int(obj1, &val2);
23501 if (!SWIG_IsOK(ecode2)) {
23502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23503 }
23504 arg2 = static_cast< wxLayoutDirection >(val2);
23505 {
23506 PyThreadState* __tstate = wxPyBeginAllowThreads();
23507 (arg1)->SetLayoutDirection(arg2);
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_Py_Void();
23512 return resultobj;
23513 fail:
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23519 PyObject *resultobj = 0;
23520 wxDC *arg1 = (wxDC *) 0 ;
23521 long result;
23522 void *argp1 = 0 ;
23523 int res1 = 0 ;
23524 PyObject *swig_obj[1] ;
23525
23526 if (!args) SWIG_fail;
23527 swig_obj[0] = args;
23528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23529 if (!SWIG_IsOK(res1)) {
23530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23531 }
23532 arg1 = reinterpret_cast< wxDC * >(argp1);
23533 {
23534 PyThreadState* __tstate = wxPyBeginAllowThreads();
23535 result = (long)(arg1)->GetHDC();
23536 wxPyEndAllowThreads(__tstate);
23537 if (PyErr_Occurred()) SWIG_fail;
23538 }
23539 resultobj = SWIG_From_long(static_cast< long >(result));
23540 return resultobj;
23541 fail:
23542 return NULL;
23543 }
23544
23545
23546 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23547 PyObject *resultobj = 0;
23548 wxDC *arg1 = (wxDC *) 0 ;
23549 PyObject *arg2 = (PyObject *) 0 ;
23550 PyObject *arg3 = (PyObject *) 0 ;
23551 PyObject *arg4 = (PyObject *) 0 ;
23552 PyObject *result = 0 ;
23553 void *argp1 = 0 ;
23554 int res1 = 0 ;
23555 PyObject * obj0 = 0 ;
23556 PyObject * obj1 = 0 ;
23557 PyObject * obj2 = 0 ;
23558 PyObject * obj3 = 0 ;
23559 char * kwnames[] = {
23560 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23561 };
23562
23563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23565 if (!SWIG_IsOK(res1)) {
23566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23567 }
23568 arg1 = reinterpret_cast< wxDC * >(argp1);
23569 arg2 = obj1;
23570 arg3 = obj2;
23571 arg4 = obj3;
23572 {
23573 PyThreadState* __tstate = wxPyBeginAllowThreads();
23574 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 resultobj = result;
23579 return resultobj;
23580 fail:
23581 return NULL;
23582 }
23583
23584
23585 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23586 PyObject *resultobj = 0;
23587 wxDC *arg1 = (wxDC *) 0 ;
23588 PyObject *arg2 = (PyObject *) 0 ;
23589 PyObject *arg3 = (PyObject *) 0 ;
23590 PyObject *arg4 = (PyObject *) 0 ;
23591 PyObject *result = 0 ;
23592 void *argp1 = 0 ;
23593 int res1 = 0 ;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 PyObject * obj2 = 0 ;
23597 PyObject * obj3 = 0 ;
23598 char * kwnames[] = {
23599 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23600 };
23601
23602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23604 if (!SWIG_IsOK(res1)) {
23605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23606 }
23607 arg1 = reinterpret_cast< wxDC * >(argp1);
23608 arg2 = obj1;
23609 arg3 = obj2;
23610 arg4 = obj3;
23611 {
23612 PyThreadState* __tstate = wxPyBeginAllowThreads();
23613 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23614 wxPyEndAllowThreads(__tstate);
23615 if (PyErr_Occurred()) SWIG_fail;
23616 }
23617 resultobj = result;
23618 return resultobj;
23619 fail:
23620 return NULL;
23621 }
23622
23623
23624 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23625 PyObject *resultobj = 0;
23626 wxDC *arg1 = (wxDC *) 0 ;
23627 PyObject *arg2 = (PyObject *) 0 ;
23628 PyObject *arg3 = (PyObject *) 0 ;
23629 PyObject *arg4 = (PyObject *) 0 ;
23630 PyObject *result = 0 ;
23631 void *argp1 = 0 ;
23632 int res1 = 0 ;
23633 PyObject * obj0 = 0 ;
23634 PyObject * obj1 = 0 ;
23635 PyObject * obj2 = 0 ;
23636 PyObject * obj3 = 0 ;
23637 char * kwnames[] = {
23638 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23639 };
23640
23641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23643 if (!SWIG_IsOK(res1)) {
23644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23645 }
23646 arg1 = reinterpret_cast< wxDC * >(argp1);
23647 arg2 = obj1;
23648 arg3 = obj2;
23649 arg4 = obj3;
23650 {
23651 PyThreadState* __tstate = wxPyBeginAllowThreads();
23652 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23653 wxPyEndAllowThreads(__tstate);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 }
23656 resultobj = result;
23657 return resultobj;
23658 fail:
23659 return NULL;
23660 }
23661
23662
23663 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj = 0;
23665 wxDC *arg1 = (wxDC *) 0 ;
23666 PyObject *arg2 = (PyObject *) 0 ;
23667 PyObject *arg3 = (PyObject *) 0 ;
23668 PyObject *arg4 = (PyObject *) 0 ;
23669 PyObject *result = 0 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 PyObject * obj0 = 0 ;
23673 PyObject * obj1 = 0 ;
23674 PyObject * obj2 = 0 ;
23675 PyObject * obj3 = 0 ;
23676 char * kwnames[] = {
23677 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23678 };
23679
23680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23682 if (!SWIG_IsOK(res1)) {
23683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23684 }
23685 arg1 = reinterpret_cast< wxDC * >(argp1);
23686 arg2 = obj1;
23687 arg3 = obj2;
23688 arg4 = obj3;
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
23691 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = result;
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23703 PyObject *resultobj = 0;
23704 wxDC *arg1 = (wxDC *) 0 ;
23705 PyObject *arg2 = (PyObject *) 0 ;
23706 PyObject *arg3 = (PyObject *) 0 ;
23707 PyObject *arg4 = (PyObject *) 0 ;
23708 PyObject *result = 0 ;
23709 void *argp1 = 0 ;
23710 int res1 = 0 ;
23711 PyObject * obj0 = 0 ;
23712 PyObject * obj1 = 0 ;
23713 PyObject * obj2 = 0 ;
23714 PyObject * obj3 = 0 ;
23715 char * kwnames[] = {
23716 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23717 };
23718
23719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23723 }
23724 arg1 = reinterpret_cast< wxDC * >(argp1);
23725 arg2 = obj1;
23726 arg3 = obj2;
23727 arg4 = obj3;
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = result;
23735 return resultobj;
23736 fail:
23737 return NULL;
23738 }
23739
23740
23741 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23742 PyObject *resultobj = 0;
23743 wxDC *arg1 = (wxDC *) 0 ;
23744 PyObject *arg2 = (PyObject *) 0 ;
23745 PyObject *arg3 = (PyObject *) 0 ;
23746 PyObject *arg4 = (PyObject *) 0 ;
23747 PyObject *arg5 = (PyObject *) 0 ;
23748 PyObject *result = 0 ;
23749 void *argp1 = 0 ;
23750 int res1 = 0 ;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 PyObject * obj2 = 0 ;
23754 PyObject * obj3 = 0 ;
23755 PyObject * obj4 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23764 }
23765 arg1 = reinterpret_cast< wxDC * >(argp1);
23766 arg2 = obj1;
23767 arg3 = obj2;
23768 arg4 = obj3;
23769 arg5 = obj4;
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 resultobj = result;
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23784 PyObject *obj;
23785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23786 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23787 return SWIG_Py_Void();
23788 }
23789
23790 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23791 PyObject *resultobj = 0;
23792 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23793 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23794 wxMemoryDC *result = 0 ;
23795 void *argp1 = 0 ;
23796 int res1 = 0 ;
23797 PyObject * obj0 = 0 ;
23798 char * kwnames[] = {
23799 (char *) "bitmap", NULL
23800 };
23801
23802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23803 if (obj0) {
23804 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23805 if (!SWIG_IsOK(res1)) {
23806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23807 }
23808 if (!argp1) {
23809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23810 }
23811 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23812 }
23813 {
23814 if (!wxPyCheckForApp()) SWIG_fail;
23815 PyThreadState* __tstate = wxPyBeginAllowThreads();
23816 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23817 wxPyEndAllowThreads(__tstate);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 }
23820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23821 return resultobj;
23822 fail:
23823 return NULL;
23824 }
23825
23826
23827 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23828 PyObject *resultobj = 0;
23829 wxDC *arg1 = (wxDC *) 0 ;
23830 wxMemoryDC *result = 0 ;
23831 void *argp1 = 0 ;
23832 int res1 = 0 ;
23833 PyObject * obj0 = 0 ;
23834 char * kwnames[] = {
23835 (char *) "oldDC", NULL
23836 };
23837
23838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23840 if (!SWIG_IsOK(res1)) {
23841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23842 }
23843 arg1 = reinterpret_cast< wxDC * >(argp1);
23844 {
23845 if (!wxPyCheckForApp()) SWIG_fail;
23846 PyThreadState* __tstate = wxPyBeginAllowThreads();
23847 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23848 wxPyEndAllowThreads(__tstate);
23849 if (PyErr_Occurred()) SWIG_fail;
23850 }
23851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj = 0;
23860 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23861 wxBitmap *arg2 = 0 ;
23862 void *argp1 = 0 ;
23863 int res1 = 0 ;
23864 void *argp2 = 0 ;
23865 int res2 = 0 ;
23866 PyObject * obj0 = 0 ;
23867 PyObject * obj1 = 0 ;
23868 char * kwnames[] = {
23869 (char *) "self",(char *) "bitmap", NULL
23870 };
23871
23872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23874 if (!SWIG_IsOK(res1)) {
23875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23876 }
23877 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23879 if (!SWIG_IsOK(res2)) {
23880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23881 }
23882 if (!argp2) {
23883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23884 }
23885 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23886 {
23887 PyThreadState* __tstate = wxPyBeginAllowThreads();
23888 (arg1)->SelectObject((wxBitmap const &)*arg2);
23889 wxPyEndAllowThreads(__tstate);
23890 if (PyErr_Occurred()) SWIG_fail;
23891 }
23892 resultobj = SWIG_Py_Void();
23893 return resultobj;
23894 fail:
23895 return NULL;
23896 }
23897
23898
23899 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23900 PyObject *obj;
23901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23902 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23903 return SWIG_Py_Void();
23904 }
23905
23906 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23907 return SWIG_Python_InitShadowInstance(args);
23908 }
23909
23910 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23911 PyObject *resultobj = 0;
23912 wxDC *arg1 = (wxDC *) 0 ;
23913 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23914 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23915 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23916 wxBufferedDC *result = 0 ;
23917 void *argp1 = 0 ;
23918 int res1 = 0 ;
23919 void *argp2 = 0 ;
23920 int res2 = 0 ;
23921 int val3 ;
23922 int ecode3 = 0 ;
23923
23924 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23926 if (!SWIG_IsOK(res1)) {
23927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23928 }
23929 arg1 = reinterpret_cast< wxDC * >(argp1);
23930 if (swig_obj[1]) {
23931 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23932 if (!SWIG_IsOK(res2)) {
23933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23934 }
23935 if (!argp2) {
23936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23937 }
23938 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23939 }
23940 if (swig_obj[2]) {
23941 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23942 if (!SWIG_IsOK(ecode3)) {
23943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23944 }
23945 arg3 = static_cast< int >(val3);
23946 }
23947 {
23948 if (!wxPyCheckForApp()) SWIG_fail;
23949 PyThreadState* __tstate = wxPyBeginAllowThreads();
23950 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23951 wxPyEndAllowThreads(__tstate);
23952 if (PyErr_Occurred()) SWIG_fail;
23953 }
23954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23955 return resultobj;
23956 fail:
23957 return NULL;
23958 }
23959
23960
23961 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23962 PyObject *resultobj = 0;
23963 wxDC *arg1 = (wxDC *) 0 ;
23964 wxSize *arg2 = 0 ;
23965 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23966 wxBufferedDC *result = 0 ;
23967 void *argp1 = 0 ;
23968 int res1 = 0 ;
23969 wxSize temp2 ;
23970 int val3 ;
23971 int ecode3 = 0 ;
23972
23973 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23975 if (!SWIG_IsOK(res1)) {
23976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23977 }
23978 arg1 = reinterpret_cast< wxDC * >(argp1);
23979 {
23980 arg2 = &temp2;
23981 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23982 }
23983 if (swig_obj[2]) {
23984 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23985 if (!SWIG_IsOK(ecode3)) {
23986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23987 }
23988 arg3 = static_cast< int >(val3);
23989 }
23990 {
23991 if (!wxPyCheckForApp()) SWIG_fail;
23992 PyThreadState* __tstate = wxPyBeginAllowThreads();
23993 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23994 wxPyEndAllowThreads(__tstate);
23995 if (PyErr_Occurred()) SWIG_fail;
23996 }
23997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23998 return resultobj;
23999 fail:
24000 return NULL;
24001 }
24002
24003
24004 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24005 int argc;
24006 PyObject *argv[4];
24007
24008 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24009 --argc;
24010 if ((argc >= 1) && (argc <= 3)) {
24011 int _v = 0;
24012 if (argc > 1) {
24013 {
24014 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24015 _v = SWIG_CheckState(res);
24016 }
24017 if (!_v) goto check_1;
24018 }
24019 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24020 }
24021 check_1:
24022
24023 if ((argc >= 2) && (argc <= 3)) {
24024 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24025 }
24026
24027 fail:
24028 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24029 return NULL;
24030 }
24031
24032
24033 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24034 PyObject *resultobj = 0;
24035 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24036 void *argp1 = 0 ;
24037 int res1 = 0 ;
24038 PyObject *swig_obj[1] ;
24039
24040 if (!args) SWIG_fail;
24041 swig_obj[0] = args;
24042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24045 }
24046 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24047 {
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 delete arg1;
24050
24051 wxPyEndAllowThreads(__tstate);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 resultobj = SWIG_Py_Void();
24055 return resultobj;
24056 fail:
24057 return NULL;
24058 }
24059
24060
24061 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24062 PyObject *resultobj = 0;
24063 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24064 void *argp1 = 0 ;
24065 int res1 = 0 ;
24066 PyObject *swig_obj[1] ;
24067
24068 if (!args) SWIG_fail;
24069 swig_obj[0] = args;
24070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24071 if (!SWIG_IsOK(res1)) {
24072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24073 }
24074 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24075 {
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 (arg1)->UnMask();
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 resultobj = SWIG_Py_Void();
24082 return resultobj;
24083 fail:
24084 return NULL;
24085 }
24086
24087
24088 SWIGINTERN PyObject *BufferedDC_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_wxBufferedDC, SWIG_NewClientData(obj));
24092 return SWIG_Py_Void();
24093 }
24094
24095 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24096 return SWIG_Python_InitShadowInstance(args);
24097 }
24098
24099 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24100 PyObject *resultobj = 0;
24101 wxWindow *arg1 = (wxWindow *) 0 ;
24102 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24103 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24104 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24105 wxBufferedPaintDC *result = 0 ;
24106 void *argp1 = 0 ;
24107 int res1 = 0 ;
24108 void *argp2 = 0 ;
24109 int res2 = 0 ;
24110 int val3 ;
24111 int ecode3 = 0 ;
24112 PyObject * obj0 = 0 ;
24113 PyObject * obj1 = 0 ;
24114 PyObject * obj2 = 0 ;
24115 char * kwnames[] = {
24116 (char *) "window",(char *) "buffer",(char *) "style", NULL
24117 };
24118
24119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24121 if (!SWIG_IsOK(res1)) {
24122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24123 }
24124 arg1 = reinterpret_cast< wxWindow * >(argp1);
24125 if (obj1) {
24126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24127 if (!SWIG_IsOK(res2)) {
24128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24129 }
24130 if (!argp2) {
24131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24132 }
24133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24134 }
24135 if (obj2) {
24136 ecode3 = SWIG_AsVal_int(obj2, &val3);
24137 if (!SWIG_IsOK(ecode3)) {
24138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24139 }
24140 arg3 = static_cast< int >(val3);
24141 }
24142 {
24143 if (!wxPyCheckForApp()) SWIG_fail;
24144 PyThreadState* __tstate = wxPyBeginAllowThreads();
24145 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24150 return resultobj;
24151 fail:
24152 return NULL;
24153 }
24154
24155
24156 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24157 PyObject *obj;
24158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24159 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24160 return SWIG_Py_Void();
24161 }
24162
24163 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24164 return SWIG_Python_InitShadowInstance(args);
24165 }
24166
24167 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24168 PyObject *resultobj = 0;
24169 wxScreenDC *result = 0 ;
24170
24171 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24172 {
24173 if (!wxPyCheckForApp()) SWIG_fail;
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (wxScreenDC *)new wxScreenDC();
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24187 PyObject *resultobj = 0;
24188 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24189 wxWindow *arg2 = (wxWindow *) 0 ;
24190 bool result;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 void *argp2 = 0 ;
24194 int res2 = 0 ;
24195 PyObject * obj0 = 0 ;
24196 PyObject * obj1 = 0 ;
24197 char * kwnames[] = {
24198 (char *) "self",(char *) "window", NULL
24199 };
24200
24201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24203 if (!SWIG_IsOK(res1)) {
24204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24205 }
24206 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24208 if (!SWIG_IsOK(res2)) {
24209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24210 }
24211 arg2 = reinterpret_cast< wxWindow * >(argp2);
24212 {
24213 PyThreadState* __tstate = wxPyBeginAllowThreads();
24214 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24215 wxPyEndAllowThreads(__tstate);
24216 if (PyErr_Occurred()) SWIG_fail;
24217 }
24218 {
24219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24220 }
24221 return resultobj;
24222 fail:
24223 return NULL;
24224 }
24225
24226
24227 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24228 PyObject *resultobj = 0;
24229 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24230 wxRect *arg2 = (wxRect *) NULL ;
24231 bool result;
24232 void *argp1 = 0 ;
24233 int res1 = 0 ;
24234 void *argp2 = 0 ;
24235 int res2 = 0 ;
24236 PyObject * obj0 = 0 ;
24237 PyObject * obj1 = 0 ;
24238 char * kwnames[] = {
24239 (char *) "self",(char *) "rect", NULL
24240 };
24241
24242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24244 if (!SWIG_IsOK(res1)) {
24245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24246 }
24247 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24248 if (obj1) {
24249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24250 if (!SWIG_IsOK(res2)) {
24251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24252 }
24253 arg2 = reinterpret_cast< wxRect * >(argp2);
24254 }
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 {
24262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24263 }
24264 return resultobj;
24265 fail:
24266 return NULL;
24267 }
24268
24269
24270 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24271 PyObject *resultobj = 0;
24272 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24273 bool result;
24274 void *argp1 = 0 ;
24275 int res1 = 0 ;
24276 PyObject *swig_obj[1] ;
24277
24278 if (!args) SWIG_fail;
24279 swig_obj[0] = args;
24280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24281 if (!SWIG_IsOK(res1)) {
24282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24283 }
24284 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24285 {
24286 PyThreadState* __tstate = wxPyBeginAllowThreads();
24287 result = (bool)(arg1)->EndDrawingOnTop();
24288 wxPyEndAllowThreads(__tstate);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 {
24292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24293 }
24294 return resultobj;
24295 fail:
24296 return NULL;
24297 }
24298
24299
24300 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24301 PyObject *obj;
24302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24303 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24304 return SWIG_Py_Void();
24305 }
24306
24307 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24308 return SWIG_Python_InitShadowInstance(args);
24309 }
24310
24311 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24312 PyObject *resultobj = 0;
24313 wxWindow *arg1 = (wxWindow *) 0 ;
24314 wxWindowDC *result = 0 ;
24315 void *argp1 = 0 ;
24316 int res1 = 0 ;
24317 PyObject * obj0 = 0 ;
24318 char * kwnames[] = {
24319 (char *) "win", NULL
24320 };
24321
24322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24324 if (!SWIG_IsOK(res1)) {
24325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24326 }
24327 arg1 = reinterpret_cast< wxWindow * >(argp1);
24328 {
24329 if (!wxPyCheckForApp()) SWIG_fail;
24330 PyThreadState* __tstate = wxPyBeginAllowThreads();
24331 result = (wxWindowDC *)new wxWindowDC(arg1);
24332 wxPyEndAllowThreads(__tstate);
24333 if (PyErr_Occurred()) SWIG_fail;
24334 }
24335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24336 return resultobj;
24337 fail:
24338 return NULL;
24339 }
24340
24341
24342 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24343 PyObject *obj;
24344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24345 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24346 return SWIG_Py_Void();
24347 }
24348
24349 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24350 return SWIG_Python_InitShadowInstance(args);
24351 }
24352
24353 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24354 PyObject *resultobj = 0;
24355 wxWindow *arg1 = (wxWindow *) 0 ;
24356 wxClientDC *result = 0 ;
24357 void *argp1 = 0 ;
24358 int res1 = 0 ;
24359 PyObject * obj0 = 0 ;
24360 char * kwnames[] = {
24361 (char *) "win", NULL
24362 };
24363
24364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24366 if (!SWIG_IsOK(res1)) {
24367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24368 }
24369 arg1 = reinterpret_cast< wxWindow * >(argp1);
24370 {
24371 if (!wxPyCheckForApp()) SWIG_fail;
24372 PyThreadState* __tstate = wxPyBeginAllowThreads();
24373 result = (wxClientDC *)new wxClientDC(arg1);
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24378 return resultobj;
24379 fail:
24380 return NULL;
24381 }
24382
24383
24384 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24385 PyObject *obj;
24386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24387 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24388 return SWIG_Py_Void();
24389 }
24390
24391 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24392 return SWIG_Python_InitShadowInstance(args);
24393 }
24394
24395 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24396 PyObject *resultobj = 0;
24397 wxWindow *arg1 = (wxWindow *) 0 ;
24398 wxPaintDC *result = 0 ;
24399 void *argp1 = 0 ;
24400 int res1 = 0 ;
24401 PyObject * obj0 = 0 ;
24402 char * kwnames[] = {
24403 (char *) "win", NULL
24404 };
24405
24406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24408 if (!SWIG_IsOK(res1)) {
24409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24410 }
24411 arg1 = reinterpret_cast< wxWindow * >(argp1);
24412 {
24413 if (!wxPyCheckForApp()) SWIG_fail;
24414 PyThreadState* __tstate = wxPyBeginAllowThreads();
24415 result = (wxPaintDC *)new wxPaintDC(arg1);
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24420 return resultobj;
24421 fail:
24422 return NULL;
24423 }
24424
24425
24426 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24427 PyObject *obj;
24428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24429 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24430 return SWIG_Py_Void();
24431 }
24432
24433 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 return SWIG_Python_InitShadowInstance(args);
24435 }
24436
24437 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24438 PyObject *resultobj = 0;
24439 wxWindow *arg1 = (wxWindow *) 0 ;
24440 wxDC *result = 0 ;
24441 void *argp1 = 0 ;
24442 int res1 = 0 ;
24443 PyObject * obj0 = 0 ;
24444 char * kwnames[] = {
24445 (char *) "window", NULL
24446 };
24447
24448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24450 if (!SWIG_IsOK(res1)) {
24451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24452 }
24453 arg1 = reinterpret_cast< wxWindow * >(argp1);
24454 {
24455 PyThreadState* __tstate = wxPyBeginAllowThreads();
24456 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24457 wxPyEndAllowThreads(__tstate);
24458 if (PyErr_Occurred()) SWIG_fail;
24459 }
24460 {
24461 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24462 }
24463 return resultobj;
24464 fail:
24465 return NULL;
24466 }
24467
24468
24469 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24470 PyObject *resultobj = 0;
24471 wxDC *arg1 = 0 ;
24472 bool arg2 ;
24473 wxMirrorDC *result = 0 ;
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
24476 bool val2 ;
24477 int ecode2 = 0 ;
24478 PyObject * obj0 = 0 ;
24479 PyObject * obj1 = 0 ;
24480 char * kwnames[] = {
24481 (char *) "dc",(char *) "mirror", NULL
24482 };
24483
24484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24485 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24486 if (!SWIG_IsOK(res1)) {
24487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24488 }
24489 if (!argp1) {
24490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24491 }
24492 arg1 = reinterpret_cast< wxDC * >(argp1);
24493 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24494 if (!SWIG_IsOK(ecode2)) {
24495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24496 }
24497 arg2 = static_cast< bool >(val2);
24498 {
24499 if (!wxPyCheckForApp()) SWIG_fail;
24500 PyThreadState* __tstate = wxPyBeginAllowThreads();
24501 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24502 wxPyEndAllowThreads(__tstate);
24503 if (PyErr_Occurred()) SWIG_fail;
24504 }
24505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24506 return resultobj;
24507 fail:
24508 return NULL;
24509 }
24510
24511
24512 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24513 PyObject *obj;
24514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24515 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24516 return SWIG_Py_Void();
24517 }
24518
24519 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24520 return SWIG_Python_InitShadowInstance(args);
24521 }
24522
24523 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24524 PyObject *resultobj = 0;
24525 wxPrintData *arg1 = 0 ;
24526 wxPostScriptDC *result = 0 ;
24527 void *argp1 = 0 ;
24528 int res1 = 0 ;
24529 PyObject * obj0 = 0 ;
24530 char * kwnames[] = {
24531 (char *) "printData", NULL
24532 };
24533
24534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24538 }
24539 if (!argp1) {
24540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24541 }
24542 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24543 {
24544 if (!wxPyCheckForApp()) SWIG_fail;
24545 PyThreadState* __tstate = wxPyBeginAllowThreads();
24546 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24551 return resultobj;
24552 fail:
24553 return NULL;
24554 }
24555
24556
24557 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24558 PyObject *resultobj = 0;
24559 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24560 wxPrintData *result = 0 ;
24561 void *argp1 = 0 ;
24562 int res1 = 0 ;
24563 PyObject *swig_obj[1] ;
24564
24565 if (!args) SWIG_fail;
24566 swig_obj[0] = args;
24567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24568 if (!SWIG_IsOK(res1)) {
24569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24570 }
24571 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24572 {
24573 PyThreadState* __tstate = wxPyBeginAllowThreads();
24574 {
24575 wxPrintData &_result_ref = (arg1)->GetPrintData();
24576 result = (wxPrintData *) &_result_ref;
24577 }
24578 wxPyEndAllowThreads(__tstate);
24579 if (PyErr_Occurred()) SWIG_fail;
24580 }
24581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24582 return resultobj;
24583 fail:
24584 return NULL;
24585 }
24586
24587
24588 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24589 PyObject *resultobj = 0;
24590 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24591 wxPrintData *arg2 = 0 ;
24592 void *argp1 = 0 ;
24593 int res1 = 0 ;
24594 void *argp2 = 0 ;
24595 int res2 = 0 ;
24596 PyObject * obj0 = 0 ;
24597 PyObject * obj1 = 0 ;
24598 char * kwnames[] = {
24599 (char *) "self",(char *) "data", NULL
24600 };
24601
24602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24604 if (!SWIG_IsOK(res1)) {
24605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24606 }
24607 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24609 if (!SWIG_IsOK(res2)) {
24610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24611 }
24612 if (!argp2) {
24613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24614 }
24615 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24616 {
24617 PyThreadState* __tstate = wxPyBeginAllowThreads();
24618 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24619 wxPyEndAllowThreads(__tstate);
24620 if (PyErr_Occurred()) SWIG_fail;
24621 }
24622 resultobj = SWIG_Py_Void();
24623 return resultobj;
24624 fail:
24625 return NULL;
24626 }
24627
24628
24629 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24630 PyObject *resultobj = 0;
24631 int arg1 ;
24632 int val1 ;
24633 int ecode1 = 0 ;
24634 PyObject * obj0 = 0 ;
24635 char * kwnames[] = {
24636 (char *) "ppi", NULL
24637 };
24638
24639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24640 ecode1 = SWIG_AsVal_int(obj0, &val1);
24641 if (!SWIG_IsOK(ecode1)) {
24642 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24643 }
24644 arg1 = static_cast< int >(val1);
24645 {
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 wxPostScriptDC::SetResolution(arg1);
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 resultobj = SWIG_Py_Void();
24652 return resultobj;
24653 fail:
24654 return NULL;
24655 }
24656
24657
24658 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24659 PyObject *resultobj = 0;
24660 int result;
24661
24662 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24663 {
24664 PyThreadState* __tstate = wxPyBeginAllowThreads();
24665 result = (int)wxPostScriptDC::GetResolution();
24666 wxPyEndAllowThreads(__tstate);
24667 if (PyErr_Occurred()) SWIG_fail;
24668 }
24669 resultobj = SWIG_From_int(static_cast< int >(result));
24670 return resultobj;
24671 fail:
24672 return NULL;
24673 }
24674
24675
24676 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24677 PyObject *obj;
24678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24679 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24680 return SWIG_Py_Void();
24681 }
24682
24683 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24684 return SWIG_Python_InitShadowInstance(args);
24685 }
24686
24687 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24688 PyObject *resultobj = 0;
24689 wxString const &arg1_defvalue = wxPyEmptyString ;
24690 wxString *arg1 = (wxString *) &arg1_defvalue ;
24691 wxMetaFile *result = 0 ;
24692 bool temp1 = false ;
24693 PyObject * obj0 = 0 ;
24694 char * kwnames[] = {
24695 (char *) "filename", NULL
24696 };
24697
24698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24699 if (obj0) {
24700 {
24701 arg1 = wxString_in_helper(obj0);
24702 if (arg1 == NULL) SWIG_fail;
24703 temp1 = true;
24704 }
24705 }
24706 {
24707 if (!wxPyCheckForApp()) SWIG_fail;
24708 PyThreadState* __tstate = wxPyBeginAllowThreads();
24709 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24714 {
24715 if (temp1)
24716 delete arg1;
24717 }
24718 return resultobj;
24719 fail:
24720 {
24721 if (temp1)
24722 delete arg1;
24723 }
24724 return NULL;
24725 }
24726
24727
24728 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24729 PyObject *resultobj = 0;
24730 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24731 void *argp1 = 0 ;
24732 int res1 = 0 ;
24733 PyObject *swig_obj[1] ;
24734
24735 if (!args) SWIG_fail;
24736 swig_obj[0] = args;
24737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24738 if (!SWIG_IsOK(res1)) {
24739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24740 }
24741 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24742 {
24743 PyThreadState* __tstate = wxPyBeginAllowThreads();
24744 delete arg1;
24745
24746 wxPyEndAllowThreads(__tstate);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 }
24749 resultobj = SWIG_Py_Void();
24750 return resultobj;
24751 fail:
24752 return NULL;
24753 }
24754
24755
24756 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24757 PyObject *resultobj = 0;
24758 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24759 bool result;
24760 void *argp1 = 0 ;
24761 int res1 = 0 ;
24762 PyObject *swig_obj[1] ;
24763
24764 if (!args) SWIG_fail;
24765 swig_obj[0] = args;
24766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24767 if (!SWIG_IsOK(res1)) {
24768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24769 }
24770 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24771 {
24772 PyThreadState* __tstate = wxPyBeginAllowThreads();
24773 result = (bool)(arg1)->IsOk();
24774 wxPyEndAllowThreads(__tstate);
24775 if (PyErr_Occurred()) SWIG_fail;
24776 }
24777 {
24778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24779 }
24780 return resultobj;
24781 fail:
24782 return NULL;
24783 }
24784
24785
24786 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24787 PyObject *resultobj = 0;
24788 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24789 int arg2 = (int) 0 ;
24790 int arg3 = (int) 0 ;
24791 bool result;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 int val2 ;
24795 int ecode2 = 0 ;
24796 int val3 ;
24797 int ecode3 = 0 ;
24798 PyObject * obj0 = 0 ;
24799 PyObject * obj1 = 0 ;
24800 PyObject * obj2 = 0 ;
24801 char * kwnames[] = {
24802 (char *) "self",(char *) "width",(char *) "height", NULL
24803 };
24804
24805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24807 if (!SWIG_IsOK(res1)) {
24808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24809 }
24810 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24811 if (obj1) {
24812 ecode2 = SWIG_AsVal_int(obj1, &val2);
24813 if (!SWIG_IsOK(ecode2)) {
24814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24815 }
24816 arg2 = static_cast< int >(val2);
24817 }
24818 if (obj2) {
24819 ecode3 = SWIG_AsVal_int(obj2, &val3);
24820 if (!SWIG_IsOK(ecode3)) {
24821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24822 }
24823 arg3 = static_cast< int >(val3);
24824 }
24825 {
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24828 wxPyEndAllowThreads(__tstate);
24829 if (PyErr_Occurred()) SWIG_fail;
24830 }
24831 {
24832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24833 }
24834 return resultobj;
24835 fail:
24836 return NULL;
24837 }
24838
24839
24840 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24841 PyObject *resultobj = 0;
24842 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24843 wxSize result;
24844 void *argp1 = 0 ;
24845 int res1 = 0 ;
24846 PyObject *swig_obj[1] ;
24847
24848 if (!args) SWIG_fail;
24849 swig_obj[0] = args;
24850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24851 if (!SWIG_IsOK(res1)) {
24852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24853 }
24854 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 result = (arg1)->GetSize();
24858 wxPyEndAllowThreads(__tstate);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24862 return resultobj;
24863 fail:
24864 return NULL;
24865 }
24866
24867
24868 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24869 PyObject *resultobj = 0;
24870 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24871 int result;
24872 void *argp1 = 0 ;
24873 int res1 = 0 ;
24874 PyObject *swig_obj[1] ;
24875
24876 if (!args) SWIG_fail;
24877 swig_obj[0] = args;
24878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24879 if (!SWIG_IsOK(res1)) {
24880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24881 }
24882 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 result = (int)(arg1)->GetWidth();
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_From_int(static_cast< int >(result));
24890 return resultobj;
24891 fail:
24892 return NULL;
24893 }
24894
24895
24896 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24897 PyObject *resultobj = 0;
24898 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24899 int result;
24900 void *argp1 = 0 ;
24901 int res1 = 0 ;
24902 PyObject *swig_obj[1] ;
24903
24904 if (!args) SWIG_fail;
24905 swig_obj[0] = args;
24906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24907 if (!SWIG_IsOK(res1)) {
24908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24909 }
24910 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24911 {
24912 PyThreadState* __tstate = wxPyBeginAllowThreads();
24913 result = (int)(arg1)->GetHeight();
24914 wxPyEndAllowThreads(__tstate);
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 resultobj = SWIG_From_int(static_cast< int >(result));
24918 return resultobj;
24919 fail:
24920 return NULL;
24921 }
24922
24923
24924 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24925 PyObject *resultobj = 0;
24926 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24927 wxString *result = 0 ;
24928 void *argp1 = 0 ;
24929 int res1 = 0 ;
24930 PyObject *swig_obj[1] ;
24931
24932 if (!args) SWIG_fail;
24933 swig_obj[0] = args;
24934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24935 if (!SWIG_IsOK(res1)) {
24936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24937 }
24938 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24939 {
24940 PyThreadState* __tstate = wxPyBeginAllowThreads();
24941 {
24942 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24943 result = (wxString *) &_result_ref;
24944 }
24945 wxPyEndAllowThreads(__tstate);
24946 if (PyErr_Occurred()) SWIG_fail;
24947 }
24948 {
24949 #if wxUSE_UNICODE
24950 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24951 #else
24952 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24953 #endif
24954 }
24955 return resultobj;
24956 fail:
24957 return NULL;
24958 }
24959
24960
24961 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24962 PyObject *obj;
24963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24964 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24965 return SWIG_Py_Void();
24966 }
24967
24968 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24969 return SWIG_Python_InitShadowInstance(args);
24970 }
24971
24972 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24973 PyObject *resultobj = 0;
24974 wxString const &arg1_defvalue = wxPyEmptyString ;
24975 wxString *arg1 = (wxString *) &arg1_defvalue ;
24976 int arg2 = (int) 0 ;
24977 int arg3 = (int) 0 ;
24978 wxString const &arg4_defvalue = wxPyEmptyString ;
24979 wxString *arg4 = (wxString *) &arg4_defvalue ;
24980 wxMetaFileDC *result = 0 ;
24981 bool temp1 = false ;
24982 int val2 ;
24983 int ecode2 = 0 ;
24984 int val3 ;
24985 int ecode3 = 0 ;
24986 bool temp4 = false ;
24987 PyObject * obj0 = 0 ;
24988 PyObject * obj1 = 0 ;
24989 PyObject * obj2 = 0 ;
24990 PyObject * obj3 = 0 ;
24991 char * kwnames[] = {
24992 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24993 };
24994
24995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24996 if (obj0) {
24997 {
24998 arg1 = wxString_in_helper(obj0);
24999 if (arg1 == NULL) SWIG_fail;
25000 temp1 = true;
25001 }
25002 }
25003 if (obj1) {
25004 ecode2 = SWIG_AsVal_int(obj1, &val2);
25005 if (!SWIG_IsOK(ecode2)) {
25006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25007 }
25008 arg2 = static_cast< int >(val2);
25009 }
25010 if (obj2) {
25011 ecode3 = SWIG_AsVal_int(obj2, &val3);
25012 if (!SWIG_IsOK(ecode3)) {
25013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25014 }
25015 arg3 = static_cast< int >(val3);
25016 }
25017 if (obj3) {
25018 {
25019 arg4 = wxString_in_helper(obj3);
25020 if (arg4 == NULL) SWIG_fail;
25021 temp4 = true;
25022 }
25023 }
25024 {
25025 if (!wxPyCheckForApp()) SWIG_fail;
25026 PyThreadState* __tstate = wxPyBeginAllowThreads();
25027 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25028 wxPyEndAllowThreads(__tstate);
25029 if (PyErr_Occurred()) SWIG_fail;
25030 }
25031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25032 {
25033 if (temp1)
25034 delete arg1;
25035 }
25036 {
25037 if (temp4)
25038 delete arg4;
25039 }
25040 return resultobj;
25041 fail:
25042 {
25043 if (temp1)
25044 delete arg1;
25045 }
25046 {
25047 if (temp4)
25048 delete arg4;
25049 }
25050 return NULL;
25051 }
25052
25053
25054 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25055 PyObject *resultobj = 0;
25056 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25057 wxMetaFile *result = 0 ;
25058 void *argp1 = 0 ;
25059 int res1 = 0 ;
25060 PyObject *swig_obj[1] ;
25061
25062 if (!args) SWIG_fail;
25063 swig_obj[0] = args;
25064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25065 if (!SWIG_IsOK(res1)) {
25066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25067 }
25068 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25069 {
25070 PyThreadState* __tstate = wxPyBeginAllowThreads();
25071 result = (wxMetaFile *)(arg1)->Close();
25072 wxPyEndAllowThreads(__tstate);
25073 if (PyErr_Occurred()) SWIG_fail;
25074 }
25075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25076 return resultobj;
25077 fail:
25078 return NULL;
25079 }
25080
25081
25082 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25083 PyObject *obj;
25084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25085 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25086 return SWIG_Py_Void();
25087 }
25088
25089 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25090 return SWIG_Python_InitShadowInstance(args);
25091 }
25092
25093 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25094 PyObject *resultobj = 0;
25095 wxPrintData *arg1 = 0 ;
25096 wxPrinterDC *result = 0 ;
25097 void *argp1 = 0 ;
25098 int res1 = 0 ;
25099 PyObject * obj0 = 0 ;
25100 char * kwnames[] = {
25101 (char *) "printData", NULL
25102 };
25103
25104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25105 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25106 if (!SWIG_IsOK(res1)) {
25107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25108 }
25109 if (!argp1) {
25110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25111 }
25112 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25113 {
25114 if (!wxPyCheckForApp()) SWIG_fail;
25115 PyThreadState* __tstate = wxPyBeginAllowThreads();
25116 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25117 wxPyEndAllowThreads(__tstate);
25118 if (PyErr_Occurred()) SWIG_fail;
25119 }
25120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25121 return resultobj;
25122 fail:
25123 return NULL;
25124 }
25125
25126
25127 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25128 PyObject *obj;
25129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25130 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25131 return SWIG_Py_Void();
25132 }
25133
25134 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25135 return SWIG_Python_InitShadowInstance(args);
25136 }
25137
25138 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139 PyObject *resultobj = 0;
25140 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25141 void *argp1 = 0 ;
25142 int res1 = 0 ;
25143 PyObject *swig_obj[1] ;
25144
25145 if (!args) SWIG_fail;
25146 swig_obj[0] = args;
25147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25148 if (!SWIG_IsOK(res1)) {
25149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25150 }
25151 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25152 {
25153 delete arg1;
25154
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 resultobj = SWIG_Py_Void();
25158 return resultobj;
25159 fail:
25160 return NULL;
25161 }
25162
25163
25164 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25165 PyObject *resultobj = 0;
25166 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25167 wxDouble arg2 ;
25168 wxDouble arg3 ;
25169 void *argp1 = 0 ;
25170 int res1 = 0 ;
25171 double val2 ;
25172 int ecode2 = 0 ;
25173 double val3 ;
25174 int ecode3 = 0 ;
25175 PyObject * obj0 = 0 ;
25176 PyObject * obj1 = 0 ;
25177 PyObject * obj2 = 0 ;
25178 char * kwnames[] = {
25179 (char *) "self",(char *) "x",(char *) "y", NULL
25180 };
25181
25182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25184 if (!SWIG_IsOK(res1)) {
25185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25186 }
25187 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25188 ecode2 = SWIG_AsVal_double(obj1, &val2);
25189 if (!SWIG_IsOK(ecode2)) {
25190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25191 }
25192 arg2 = static_cast< wxDouble >(val2);
25193 ecode3 = SWIG_AsVal_double(obj2, &val3);
25194 if (!SWIG_IsOK(ecode3)) {
25195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25196 }
25197 arg3 = static_cast< wxDouble >(val3);
25198 {
25199 (arg1)->MoveToPoint(arg2,arg3);
25200 if (PyErr_Occurred()) SWIG_fail;
25201 }
25202 resultobj = SWIG_Py_Void();
25203 return resultobj;
25204 fail:
25205 return NULL;
25206 }
25207
25208
25209 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25210 PyObject *resultobj = 0;
25211 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25212 wxDouble arg2 ;
25213 wxDouble arg3 ;
25214 void *argp1 = 0 ;
25215 int res1 = 0 ;
25216 double val2 ;
25217 int ecode2 = 0 ;
25218 double val3 ;
25219 int ecode3 = 0 ;
25220 PyObject * obj0 = 0 ;
25221 PyObject * obj1 = 0 ;
25222 PyObject * obj2 = 0 ;
25223 char * kwnames[] = {
25224 (char *) "self",(char *) "x",(char *) "y", NULL
25225 };
25226
25227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25229 if (!SWIG_IsOK(res1)) {
25230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25231 }
25232 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25233 ecode2 = SWIG_AsVal_double(obj1, &val2);
25234 if (!SWIG_IsOK(ecode2)) {
25235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25236 }
25237 arg2 = static_cast< wxDouble >(val2);
25238 ecode3 = SWIG_AsVal_double(obj2, &val3);
25239 if (!SWIG_IsOK(ecode3)) {
25240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25241 }
25242 arg3 = static_cast< wxDouble >(val3);
25243 {
25244 (arg1)->AddLineToPoint(arg2,arg3);
25245 if (PyErr_Occurred()) SWIG_fail;
25246 }
25247 resultobj = SWIG_Py_Void();
25248 return resultobj;
25249 fail:
25250 return NULL;
25251 }
25252
25253
25254 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25255 PyObject *resultobj = 0;
25256 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25257 wxDouble arg2 ;
25258 wxDouble arg3 ;
25259 wxDouble arg4 ;
25260 wxDouble arg5 ;
25261 wxDouble arg6 ;
25262 wxDouble arg7 ;
25263 void *argp1 = 0 ;
25264 int res1 = 0 ;
25265 double val2 ;
25266 int ecode2 = 0 ;
25267 double val3 ;
25268 int ecode3 = 0 ;
25269 double val4 ;
25270 int ecode4 = 0 ;
25271 double val5 ;
25272 int ecode5 = 0 ;
25273 double val6 ;
25274 int ecode6 = 0 ;
25275 double val7 ;
25276 int ecode7 = 0 ;
25277 PyObject * obj0 = 0 ;
25278 PyObject * obj1 = 0 ;
25279 PyObject * obj2 = 0 ;
25280 PyObject * obj3 = 0 ;
25281 PyObject * obj4 = 0 ;
25282 PyObject * obj5 = 0 ;
25283 PyObject * obj6 = 0 ;
25284 char * kwnames[] = {
25285 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25286 };
25287
25288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25290 if (!SWIG_IsOK(res1)) {
25291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25292 }
25293 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25294 ecode2 = SWIG_AsVal_double(obj1, &val2);
25295 if (!SWIG_IsOK(ecode2)) {
25296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25297 }
25298 arg2 = static_cast< wxDouble >(val2);
25299 ecode3 = SWIG_AsVal_double(obj2, &val3);
25300 if (!SWIG_IsOK(ecode3)) {
25301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25302 }
25303 arg3 = static_cast< wxDouble >(val3);
25304 ecode4 = SWIG_AsVal_double(obj3, &val4);
25305 if (!SWIG_IsOK(ecode4)) {
25306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25307 }
25308 arg4 = static_cast< wxDouble >(val4);
25309 ecode5 = SWIG_AsVal_double(obj4, &val5);
25310 if (!SWIG_IsOK(ecode5)) {
25311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25312 }
25313 arg5 = static_cast< wxDouble >(val5);
25314 ecode6 = SWIG_AsVal_double(obj5, &val6);
25315 if (!SWIG_IsOK(ecode6)) {
25316 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25317 }
25318 arg6 = static_cast< wxDouble >(val6);
25319 ecode7 = SWIG_AsVal_double(obj6, &val7);
25320 if (!SWIG_IsOK(ecode7)) {
25321 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25322 }
25323 arg7 = static_cast< wxDouble >(val7);
25324 {
25325 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25326 if (PyErr_Occurred()) SWIG_fail;
25327 }
25328 resultobj = SWIG_Py_Void();
25329 return resultobj;
25330 fail:
25331 return NULL;
25332 }
25333
25334
25335 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25336 PyObject *resultobj = 0;
25337 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25338 void *argp1 = 0 ;
25339 int res1 = 0 ;
25340 PyObject *swig_obj[1] ;
25341
25342 if (!args) SWIG_fail;
25343 swig_obj[0] = args;
25344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25345 if (!SWIG_IsOK(res1)) {
25346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25347 }
25348 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25349 {
25350 (arg1)->CloseSubpath();
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 resultobj = SWIG_Py_Void();
25354 return resultobj;
25355 fail:
25356 return NULL;
25357 }
25358
25359
25360 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25361 PyObject *resultobj = 0;
25362 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25363 wxPoint2D result;
25364 void *argp1 = 0 ;
25365 int res1 = 0 ;
25366 PyObject *swig_obj[1] ;
25367
25368 if (!args) SWIG_fail;
25369 swig_obj[0] = args;
25370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25371 if (!SWIG_IsOK(res1)) {
25372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25373 }
25374 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25375 {
25376 result = (arg1)->GetCurrentPoint();
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25387 PyObject *resultobj = 0;
25388 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25389 wxDouble arg2 ;
25390 wxDouble arg3 ;
25391 wxDouble arg4 ;
25392 wxDouble arg5 ;
25393 wxDouble arg6 ;
25394 bool arg7 ;
25395 void *argp1 = 0 ;
25396 int res1 = 0 ;
25397 double val2 ;
25398 int ecode2 = 0 ;
25399 double val3 ;
25400 int ecode3 = 0 ;
25401 double val4 ;
25402 int ecode4 = 0 ;
25403 double val5 ;
25404 int ecode5 = 0 ;
25405 double val6 ;
25406 int ecode6 = 0 ;
25407 bool val7 ;
25408 int ecode7 = 0 ;
25409 PyObject * obj0 = 0 ;
25410 PyObject * obj1 = 0 ;
25411 PyObject * obj2 = 0 ;
25412 PyObject * obj3 = 0 ;
25413 PyObject * obj4 = 0 ;
25414 PyObject * obj5 = 0 ;
25415 PyObject * obj6 = 0 ;
25416 char * kwnames[] = {
25417 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25418 };
25419
25420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25422 if (!SWIG_IsOK(res1)) {
25423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25424 }
25425 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25426 ecode2 = SWIG_AsVal_double(obj1, &val2);
25427 if (!SWIG_IsOK(ecode2)) {
25428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25429 }
25430 arg2 = static_cast< wxDouble >(val2);
25431 ecode3 = SWIG_AsVal_double(obj2, &val3);
25432 if (!SWIG_IsOK(ecode3)) {
25433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25434 }
25435 arg3 = static_cast< wxDouble >(val3);
25436 ecode4 = SWIG_AsVal_double(obj3, &val4);
25437 if (!SWIG_IsOK(ecode4)) {
25438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25439 }
25440 arg4 = static_cast< wxDouble >(val4);
25441 ecode5 = SWIG_AsVal_double(obj4, &val5);
25442 if (!SWIG_IsOK(ecode5)) {
25443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25444 }
25445 arg5 = static_cast< wxDouble >(val5);
25446 ecode6 = SWIG_AsVal_double(obj5, &val6);
25447 if (!SWIG_IsOK(ecode6)) {
25448 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25449 }
25450 arg6 = static_cast< wxDouble >(val6);
25451 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25452 if (!SWIG_IsOK(ecode7)) {
25453 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25454 }
25455 arg7 = static_cast< bool >(val7);
25456 {
25457 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_Py_Void();
25461 return resultobj;
25462 fail:
25463 return NULL;
25464 }
25465
25466
25467 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25468 PyObject *resultobj = 0;
25469 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25470 wxDouble arg2 ;
25471 wxDouble arg3 ;
25472 wxDouble arg4 ;
25473 wxDouble arg5 ;
25474 void *argp1 = 0 ;
25475 int res1 = 0 ;
25476 double val2 ;
25477 int ecode2 = 0 ;
25478 double val3 ;
25479 int ecode3 = 0 ;
25480 double val4 ;
25481 int ecode4 = 0 ;
25482 double val5 ;
25483 int ecode5 = 0 ;
25484 PyObject * obj0 = 0 ;
25485 PyObject * obj1 = 0 ;
25486 PyObject * obj2 = 0 ;
25487 PyObject * obj3 = 0 ;
25488 PyObject * obj4 = 0 ;
25489 char * kwnames[] = {
25490 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25491 };
25492
25493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25495 if (!SWIG_IsOK(res1)) {
25496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25497 }
25498 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25499 ecode2 = SWIG_AsVal_double(obj1, &val2);
25500 if (!SWIG_IsOK(ecode2)) {
25501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25502 }
25503 arg2 = static_cast< wxDouble >(val2);
25504 ecode3 = SWIG_AsVal_double(obj2, &val3);
25505 if (!SWIG_IsOK(ecode3)) {
25506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25507 }
25508 arg3 = static_cast< wxDouble >(val3);
25509 ecode4 = SWIG_AsVal_double(obj3, &val4);
25510 if (!SWIG_IsOK(ecode4)) {
25511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25512 }
25513 arg4 = static_cast< wxDouble >(val4);
25514 ecode5 = SWIG_AsVal_double(obj4, &val5);
25515 if (!SWIG_IsOK(ecode5)) {
25516 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25517 }
25518 arg5 = static_cast< wxDouble >(val5);
25519 {
25520 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25521 if (PyErr_Occurred()) SWIG_fail;
25522 }
25523 resultobj = SWIG_Py_Void();
25524 return resultobj;
25525 fail:
25526 return NULL;
25527 }
25528
25529
25530 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25531 PyObject *resultobj = 0;
25532 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25533 wxDouble arg2 ;
25534 wxDouble arg3 ;
25535 wxDouble arg4 ;
25536 wxDouble arg5 ;
25537 void *argp1 = 0 ;
25538 int res1 = 0 ;
25539 double val2 ;
25540 int ecode2 = 0 ;
25541 double val3 ;
25542 int ecode3 = 0 ;
25543 double val4 ;
25544 int ecode4 = 0 ;
25545 double val5 ;
25546 int ecode5 = 0 ;
25547 PyObject * obj0 = 0 ;
25548 PyObject * obj1 = 0 ;
25549 PyObject * obj2 = 0 ;
25550 PyObject * obj3 = 0 ;
25551 PyObject * obj4 = 0 ;
25552 char * kwnames[] = {
25553 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25554 };
25555
25556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25558 if (!SWIG_IsOK(res1)) {
25559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25560 }
25561 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25562 ecode2 = SWIG_AsVal_double(obj1, &val2);
25563 if (!SWIG_IsOK(ecode2)) {
25564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25565 }
25566 arg2 = static_cast< wxDouble >(val2);
25567 ecode3 = SWIG_AsVal_double(obj2, &val3);
25568 if (!SWIG_IsOK(ecode3)) {
25569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25570 }
25571 arg3 = static_cast< wxDouble >(val3);
25572 ecode4 = SWIG_AsVal_double(obj3, &val4);
25573 if (!SWIG_IsOK(ecode4)) {
25574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25575 }
25576 arg4 = static_cast< wxDouble >(val4);
25577 ecode5 = SWIG_AsVal_double(obj4, &val5);
25578 if (!SWIG_IsOK(ecode5)) {
25579 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25580 }
25581 arg5 = static_cast< wxDouble >(val5);
25582 {
25583 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_Py_Void();
25587 return resultobj;
25588 fail:
25589 return NULL;
25590 }
25591
25592
25593 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj = 0;
25595 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25596 wxDouble arg2 ;
25597 wxDouble arg3 ;
25598 wxDouble arg4 ;
25599 void *argp1 = 0 ;
25600 int res1 = 0 ;
25601 double val2 ;
25602 int ecode2 = 0 ;
25603 double val3 ;
25604 int ecode3 = 0 ;
25605 double val4 ;
25606 int ecode4 = 0 ;
25607 PyObject * obj0 = 0 ;
25608 PyObject * obj1 = 0 ;
25609 PyObject * obj2 = 0 ;
25610 PyObject * obj3 = 0 ;
25611 char * kwnames[] = {
25612 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25613 };
25614
25615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25617 if (!SWIG_IsOK(res1)) {
25618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25619 }
25620 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25621 ecode2 = SWIG_AsVal_double(obj1, &val2);
25622 if (!SWIG_IsOK(ecode2)) {
25623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25624 }
25625 arg2 = static_cast< wxDouble >(val2);
25626 ecode3 = SWIG_AsVal_double(obj2, &val3);
25627 if (!SWIG_IsOK(ecode3)) {
25628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25629 }
25630 arg3 = static_cast< wxDouble >(val3);
25631 ecode4 = SWIG_AsVal_double(obj3, &val4);
25632 if (!SWIG_IsOK(ecode4)) {
25633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25634 }
25635 arg4 = static_cast< wxDouble >(val4);
25636 {
25637 (arg1)->AddCircle(arg2,arg3,arg4);
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_Py_Void();
25641 return resultobj;
25642 fail:
25643 return NULL;
25644 }
25645
25646
25647 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25648 PyObject *resultobj = 0;
25649 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25650 wxDouble arg2 ;
25651 wxDouble arg3 ;
25652 wxDouble arg4 ;
25653 wxDouble arg5 ;
25654 wxDouble arg6 ;
25655 void *argp1 = 0 ;
25656 int res1 = 0 ;
25657 double val2 ;
25658 int ecode2 = 0 ;
25659 double val3 ;
25660 int ecode3 = 0 ;
25661 double val4 ;
25662 int ecode4 = 0 ;
25663 double val5 ;
25664 int ecode5 = 0 ;
25665 double val6 ;
25666 int ecode6 = 0 ;
25667 PyObject * obj0 = 0 ;
25668 PyObject * obj1 = 0 ;
25669 PyObject * obj2 = 0 ;
25670 PyObject * obj3 = 0 ;
25671 PyObject * obj4 = 0 ;
25672 PyObject * obj5 = 0 ;
25673 char * kwnames[] = {
25674 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25675 };
25676
25677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25679 if (!SWIG_IsOK(res1)) {
25680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25681 }
25682 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25683 ecode2 = SWIG_AsVal_double(obj1, &val2);
25684 if (!SWIG_IsOK(ecode2)) {
25685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25686 }
25687 arg2 = static_cast< wxDouble >(val2);
25688 ecode3 = SWIG_AsVal_double(obj2, &val3);
25689 if (!SWIG_IsOK(ecode3)) {
25690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25691 }
25692 arg3 = static_cast< wxDouble >(val3);
25693 ecode4 = SWIG_AsVal_double(obj3, &val4);
25694 if (!SWIG_IsOK(ecode4)) {
25695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25696 }
25697 arg4 = static_cast< wxDouble >(val4);
25698 ecode5 = SWIG_AsVal_double(obj4, &val5);
25699 if (!SWIG_IsOK(ecode5)) {
25700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25701 }
25702 arg5 = static_cast< wxDouble >(val5);
25703 ecode6 = SWIG_AsVal_double(obj5, &val6);
25704 if (!SWIG_IsOK(ecode6)) {
25705 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25706 }
25707 arg6 = static_cast< wxDouble >(val6);
25708 {
25709 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25710 if (PyErr_Occurred()) SWIG_fail;
25711 }
25712 resultobj = SWIG_Py_Void();
25713 return resultobj;
25714 fail:
25715 return NULL;
25716 }
25717
25718
25719 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25720 PyObject *obj;
25721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25722 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25723 return SWIG_Py_Void();
25724 }
25725
25726 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25727 PyObject *resultobj = 0;
25728 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25729 void *argp1 = 0 ;
25730 int res1 = 0 ;
25731 PyObject *swig_obj[1] ;
25732
25733 if (!args) SWIG_fail;
25734 swig_obj[0] = args;
25735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25736 if (!SWIG_IsOK(res1)) {
25737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25738 }
25739 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25740 {
25741 delete arg1;
25742
25743 if (PyErr_Occurred()) SWIG_fail;
25744 }
25745 resultobj = SWIG_Py_Void();
25746 return resultobj;
25747 fail:
25748 return NULL;
25749 }
25750
25751
25752 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25753 PyObject *resultobj = 0;
25754 wxWindowDC *arg1 = 0 ;
25755 wxGraphicsContext *result = 0 ;
25756 void *argp1 = 0 ;
25757 int res1 = 0 ;
25758 PyObject * obj0 = 0 ;
25759 char * kwnames[] = {
25760 (char *) "dc", NULL
25761 };
25762
25763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25764 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25765 if (!SWIG_IsOK(res1)) {
25766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25767 }
25768 if (!argp1) {
25769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25770 }
25771 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25772 {
25773 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25777 return resultobj;
25778 fail:
25779 return NULL;
25780 }
25781
25782
25783 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25784 PyObject *resultobj = 0;
25785 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25786 wxGraphicsPath *result = 0 ;
25787 void *argp1 = 0 ;
25788 int res1 = 0 ;
25789 PyObject *swig_obj[1] ;
25790
25791 if (!args) SWIG_fail;
25792 swig_obj[0] = args;
25793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25794 if (!SWIG_IsOK(res1)) {
25795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25796 }
25797 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25798 {
25799 result = (wxGraphicsPath *)(arg1)->CreatePath();
25800 if (PyErr_Occurred()) SWIG_fail;
25801 }
25802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25803 return resultobj;
25804 fail:
25805 return NULL;
25806 }
25807
25808
25809 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25810 PyObject *resultobj = 0;
25811 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25812 void *argp1 = 0 ;
25813 int res1 = 0 ;
25814 PyObject *swig_obj[1] ;
25815
25816 if (!args) SWIG_fail;
25817 swig_obj[0] = args;
25818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25819 if (!SWIG_IsOK(res1)) {
25820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25821 }
25822 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25823 {
25824 (arg1)->PushState();
25825 if (PyErr_Occurred()) SWIG_fail;
25826 }
25827 resultobj = SWIG_Py_Void();
25828 return resultobj;
25829 fail:
25830 return NULL;
25831 }
25832
25833
25834 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25835 PyObject *resultobj = 0;
25836 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25837 void *argp1 = 0 ;
25838 int res1 = 0 ;
25839 PyObject *swig_obj[1] ;
25840
25841 if (!args) SWIG_fail;
25842 swig_obj[0] = args;
25843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25844 if (!SWIG_IsOK(res1)) {
25845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25846 }
25847 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25848 {
25849 (arg1)->PopState();
25850 if (PyErr_Occurred()) SWIG_fail;
25851 }
25852 resultobj = SWIG_Py_Void();
25853 return resultobj;
25854 fail:
25855 return NULL;
25856 }
25857
25858
25859 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25860 PyObject *resultobj = 0;
25861 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25862 wxRegion *arg2 = 0 ;
25863 void *argp1 = 0 ;
25864 int res1 = 0 ;
25865 void *argp2 = 0 ;
25866 int res2 = 0 ;
25867 PyObject * obj0 = 0 ;
25868 PyObject * obj1 = 0 ;
25869 char * kwnames[] = {
25870 (char *) "self",(char *) "region", NULL
25871 };
25872
25873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25875 if (!SWIG_IsOK(res1)) {
25876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25877 }
25878 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25880 if (!SWIG_IsOK(res2)) {
25881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25882 }
25883 if (!argp2) {
25884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25885 }
25886 arg2 = reinterpret_cast< wxRegion * >(argp2);
25887 {
25888 (arg1)->Clip((wxRegion const &)*arg2);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 resultobj = SWIG_Py_Void();
25892 return resultobj;
25893 fail:
25894 return NULL;
25895 }
25896
25897
25898 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25899 PyObject *resultobj = 0;
25900 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25901 wxDouble arg2 ;
25902 wxDouble arg3 ;
25903 void *argp1 = 0 ;
25904 int res1 = 0 ;
25905 double val2 ;
25906 int ecode2 = 0 ;
25907 double val3 ;
25908 int ecode3 = 0 ;
25909 PyObject * obj0 = 0 ;
25910 PyObject * obj1 = 0 ;
25911 PyObject * obj2 = 0 ;
25912 char * kwnames[] = {
25913 (char *) "self",(char *) "dx",(char *) "dy", NULL
25914 };
25915
25916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25918 if (!SWIG_IsOK(res1)) {
25919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25920 }
25921 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25922 ecode2 = SWIG_AsVal_double(obj1, &val2);
25923 if (!SWIG_IsOK(ecode2)) {
25924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25925 }
25926 arg2 = static_cast< wxDouble >(val2);
25927 ecode3 = SWIG_AsVal_double(obj2, &val3);
25928 if (!SWIG_IsOK(ecode3)) {
25929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25930 }
25931 arg3 = static_cast< wxDouble >(val3);
25932 {
25933 (arg1)->Translate(arg2,arg3);
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 resultobj = SWIG_Py_Void();
25937 return resultobj;
25938 fail:
25939 return NULL;
25940 }
25941
25942
25943 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25944 PyObject *resultobj = 0;
25945 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25946 wxDouble arg2 ;
25947 wxDouble arg3 ;
25948 void *argp1 = 0 ;
25949 int res1 = 0 ;
25950 double val2 ;
25951 int ecode2 = 0 ;
25952 double val3 ;
25953 int ecode3 = 0 ;
25954 PyObject * obj0 = 0 ;
25955 PyObject * obj1 = 0 ;
25956 PyObject * obj2 = 0 ;
25957 char * kwnames[] = {
25958 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25959 };
25960
25961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25963 if (!SWIG_IsOK(res1)) {
25964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25965 }
25966 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25967 ecode2 = SWIG_AsVal_double(obj1, &val2);
25968 if (!SWIG_IsOK(ecode2)) {
25969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25970 }
25971 arg2 = static_cast< wxDouble >(val2);
25972 ecode3 = SWIG_AsVal_double(obj2, &val3);
25973 if (!SWIG_IsOK(ecode3)) {
25974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25975 }
25976 arg3 = static_cast< wxDouble >(val3);
25977 {
25978 (arg1)->Scale(arg2,arg3);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 }
25981 resultobj = SWIG_Py_Void();
25982 return resultobj;
25983 fail:
25984 return NULL;
25985 }
25986
25987
25988 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj = 0;
25990 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25991 wxDouble arg2 ;
25992 void *argp1 = 0 ;
25993 int res1 = 0 ;
25994 double val2 ;
25995 int ecode2 = 0 ;
25996 PyObject * obj0 = 0 ;
25997 PyObject * obj1 = 0 ;
25998 char * kwnames[] = {
25999 (char *) "self",(char *) "angle", NULL
26000 };
26001
26002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26004 if (!SWIG_IsOK(res1)) {
26005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26006 }
26007 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26008 ecode2 = SWIG_AsVal_double(obj1, &val2);
26009 if (!SWIG_IsOK(ecode2)) {
26010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26011 }
26012 arg2 = static_cast< wxDouble >(val2);
26013 {
26014 (arg1)->Rotate(arg2);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 resultobj = SWIG_Py_Void();
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj = 0;
26026 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26027 wxPen *arg2 = 0 ;
26028 void *argp1 = 0 ;
26029 int res1 = 0 ;
26030 void *argp2 = 0 ;
26031 int res2 = 0 ;
26032 PyObject * obj0 = 0 ;
26033 PyObject * obj1 = 0 ;
26034 char * kwnames[] = {
26035 (char *) "self",(char *) "pen", NULL
26036 };
26037
26038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26040 if (!SWIG_IsOK(res1)) {
26041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26042 }
26043 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26045 if (!SWIG_IsOK(res2)) {
26046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26047 }
26048 if (!argp2) {
26049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26050 }
26051 arg2 = reinterpret_cast< wxPen * >(argp2);
26052 {
26053 (arg1)->SetPen((wxPen const &)*arg2);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 resultobj = SWIG_Py_Void();
26057 return resultobj;
26058 fail:
26059 return NULL;
26060 }
26061
26062
26063 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj = 0;
26065 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26066 wxBrush *arg2 = 0 ;
26067 void *argp1 = 0 ;
26068 int res1 = 0 ;
26069 void *argp2 = 0 ;
26070 int res2 = 0 ;
26071 PyObject * obj0 = 0 ;
26072 PyObject * obj1 = 0 ;
26073 char * kwnames[] = {
26074 (char *) "self",(char *) "brush", NULL
26075 };
26076
26077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26079 if (!SWIG_IsOK(res1)) {
26080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26081 }
26082 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26084 if (!SWIG_IsOK(res2)) {
26085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26086 }
26087 if (!argp2) {
26088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26089 }
26090 arg2 = reinterpret_cast< wxBrush * >(argp2);
26091 {
26092 (arg1)->SetBrush((wxBrush const &)*arg2);
26093 if (PyErr_Occurred()) SWIG_fail;
26094 }
26095 resultobj = SWIG_Py_Void();
26096 return resultobj;
26097 fail:
26098 return NULL;
26099 }
26100
26101
26102 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26103 PyObject *resultobj = 0;
26104 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26105 wxDouble arg2 ;
26106 wxDouble arg3 ;
26107 wxDouble arg4 ;
26108 wxDouble arg5 ;
26109 wxColour *arg6 = 0 ;
26110 wxColour *arg7 = 0 ;
26111 void *argp1 = 0 ;
26112 int res1 = 0 ;
26113 double val2 ;
26114 int ecode2 = 0 ;
26115 double val3 ;
26116 int ecode3 = 0 ;
26117 double val4 ;
26118 int ecode4 = 0 ;
26119 double val5 ;
26120 int ecode5 = 0 ;
26121 wxColour temp6 ;
26122 wxColour temp7 ;
26123 PyObject * obj0 = 0 ;
26124 PyObject * obj1 = 0 ;
26125 PyObject * obj2 = 0 ;
26126 PyObject * obj3 = 0 ;
26127 PyObject * obj4 = 0 ;
26128 PyObject * obj5 = 0 ;
26129 PyObject * obj6 = 0 ;
26130 char * kwnames[] = {
26131 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26132 };
26133
26134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26136 if (!SWIG_IsOK(res1)) {
26137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26138 }
26139 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26140 ecode2 = SWIG_AsVal_double(obj1, &val2);
26141 if (!SWIG_IsOK(ecode2)) {
26142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26143 }
26144 arg2 = static_cast< wxDouble >(val2);
26145 ecode3 = SWIG_AsVal_double(obj2, &val3);
26146 if (!SWIG_IsOK(ecode3)) {
26147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26148 }
26149 arg3 = static_cast< wxDouble >(val3);
26150 ecode4 = SWIG_AsVal_double(obj3, &val4);
26151 if (!SWIG_IsOK(ecode4)) {
26152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26153 }
26154 arg4 = static_cast< wxDouble >(val4);
26155 ecode5 = SWIG_AsVal_double(obj4, &val5);
26156 if (!SWIG_IsOK(ecode5)) {
26157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26158 }
26159 arg5 = static_cast< wxDouble >(val5);
26160 {
26161 arg6 = &temp6;
26162 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26163 }
26164 {
26165 arg7 = &temp7;
26166 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26167 }
26168 {
26169 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 resultobj = SWIG_Py_Void();
26173 return resultobj;
26174 fail:
26175 return NULL;
26176 }
26177
26178
26179 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26180 PyObject *resultobj = 0;
26181 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26182 wxDouble arg2 ;
26183 wxDouble arg3 ;
26184 wxDouble arg4 ;
26185 wxDouble arg5 ;
26186 wxDouble arg6 ;
26187 wxColour *arg7 = 0 ;
26188 wxColour *arg8 = 0 ;
26189 void *argp1 = 0 ;
26190 int res1 = 0 ;
26191 double val2 ;
26192 int ecode2 = 0 ;
26193 double val3 ;
26194 int ecode3 = 0 ;
26195 double val4 ;
26196 int ecode4 = 0 ;
26197 double val5 ;
26198 int ecode5 = 0 ;
26199 double val6 ;
26200 int ecode6 = 0 ;
26201 wxColour temp7 ;
26202 wxColour temp8 ;
26203 PyObject * obj0 = 0 ;
26204 PyObject * obj1 = 0 ;
26205 PyObject * obj2 = 0 ;
26206 PyObject * obj3 = 0 ;
26207 PyObject * obj4 = 0 ;
26208 PyObject * obj5 = 0 ;
26209 PyObject * obj6 = 0 ;
26210 PyObject * obj7 = 0 ;
26211 char * kwnames[] = {
26212 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26213 };
26214
26215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26217 if (!SWIG_IsOK(res1)) {
26218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26219 }
26220 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26221 ecode2 = SWIG_AsVal_double(obj1, &val2);
26222 if (!SWIG_IsOK(ecode2)) {
26223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26224 }
26225 arg2 = static_cast< wxDouble >(val2);
26226 ecode3 = SWIG_AsVal_double(obj2, &val3);
26227 if (!SWIG_IsOK(ecode3)) {
26228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26229 }
26230 arg3 = static_cast< wxDouble >(val3);
26231 ecode4 = SWIG_AsVal_double(obj3, &val4);
26232 if (!SWIG_IsOK(ecode4)) {
26233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26234 }
26235 arg4 = static_cast< wxDouble >(val4);
26236 ecode5 = SWIG_AsVal_double(obj4, &val5);
26237 if (!SWIG_IsOK(ecode5)) {
26238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26239 }
26240 arg5 = static_cast< wxDouble >(val5);
26241 ecode6 = SWIG_AsVal_double(obj5, &val6);
26242 if (!SWIG_IsOK(ecode6)) {
26243 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26244 }
26245 arg6 = static_cast< wxDouble >(val6);
26246 {
26247 arg7 = &temp7;
26248 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26249 }
26250 {
26251 arg8 = &temp8;
26252 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26253 }
26254 {
26255 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26256 if (PyErr_Occurred()) SWIG_fail;
26257 }
26258 resultobj = SWIG_Py_Void();
26259 return resultobj;
26260 fail:
26261 return NULL;
26262 }
26263
26264
26265 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26266 PyObject *resultobj = 0;
26267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26268 wxFont *arg2 = 0 ;
26269 void *argp1 = 0 ;
26270 int res1 = 0 ;
26271 void *argp2 = 0 ;
26272 int res2 = 0 ;
26273 PyObject * obj0 = 0 ;
26274 PyObject * obj1 = 0 ;
26275 char * kwnames[] = {
26276 (char *) "self",(char *) "font", NULL
26277 };
26278
26279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26281 if (!SWIG_IsOK(res1)) {
26282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26283 }
26284 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26286 if (!SWIG_IsOK(res2)) {
26287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26288 }
26289 if (!argp2) {
26290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26291 }
26292 arg2 = reinterpret_cast< wxFont * >(argp2);
26293 {
26294 (arg1)->SetFont((wxFont const &)*arg2);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 }
26297 resultobj = SWIG_Py_Void();
26298 return resultobj;
26299 fail:
26300 return NULL;
26301 }
26302
26303
26304 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26305 PyObject *resultobj = 0;
26306 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26307 wxColour *arg2 = 0 ;
26308 void *argp1 = 0 ;
26309 int res1 = 0 ;
26310 wxColour temp2 ;
26311 PyObject * obj0 = 0 ;
26312 PyObject * obj1 = 0 ;
26313 char * kwnames[] = {
26314 (char *) "self",(char *) "col", NULL
26315 };
26316
26317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26319 if (!SWIG_IsOK(res1)) {
26320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26321 }
26322 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26323 {
26324 arg2 = &temp2;
26325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26326 }
26327 {
26328 (arg1)->SetTextColor((wxColour const &)*arg2);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 resultobj = SWIG_Py_Void();
26332 return resultobj;
26333 fail:
26334 return NULL;
26335 }
26336
26337
26338 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj = 0;
26340 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26341 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26342 void *argp1 = 0 ;
26343 int res1 = 0 ;
26344 void *argp2 = 0 ;
26345 int res2 = 0 ;
26346 PyObject * obj0 = 0 ;
26347 PyObject * obj1 = 0 ;
26348 char * kwnames[] = {
26349 (char *) "self",(char *) "path", NULL
26350 };
26351
26352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26354 if (!SWIG_IsOK(res1)) {
26355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26356 }
26357 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26359 if (!SWIG_IsOK(res2)) {
26360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26361 }
26362 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26363 {
26364 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26365 if (PyErr_Occurred()) SWIG_fail;
26366 }
26367 resultobj = SWIG_Py_Void();
26368 return resultobj;
26369 fail:
26370 return NULL;
26371 }
26372
26373
26374 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26375 PyObject *resultobj = 0;
26376 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26377 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26378 int arg3 = (int) wxWINDING_RULE ;
26379 void *argp1 = 0 ;
26380 int res1 = 0 ;
26381 void *argp2 = 0 ;
26382 int res2 = 0 ;
26383 int val3 ;
26384 int ecode3 = 0 ;
26385 PyObject * obj0 = 0 ;
26386 PyObject * obj1 = 0 ;
26387 PyObject * obj2 = 0 ;
26388 char * kwnames[] = {
26389 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26390 };
26391
26392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26396 }
26397 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26399 if (!SWIG_IsOK(res2)) {
26400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26401 }
26402 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26403 if (obj2) {
26404 ecode3 = SWIG_AsVal_int(obj2, &val3);
26405 if (!SWIG_IsOK(ecode3)) {
26406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26407 }
26408 arg3 = static_cast< int >(val3);
26409 }
26410 {
26411 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26412 if (PyErr_Occurred()) SWIG_fail;
26413 }
26414 resultobj = SWIG_Py_Void();
26415 return resultobj;
26416 fail:
26417 return NULL;
26418 }
26419
26420
26421 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26422 PyObject *resultobj = 0;
26423 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26424 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26425 int arg3 = (int) wxWINDING_RULE ;
26426 void *argp1 = 0 ;
26427 int res1 = 0 ;
26428 void *argp2 = 0 ;
26429 int res2 = 0 ;
26430 int val3 ;
26431 int ecode3 = 0 ;
26432 PyObject * obj0 = 0 ;
26433 PyObject * obj1 = 0 ;
26434 PyObject * obj2 = 0 ;
26435 char * kwnames[] = {
26436 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26437 };
26438
26439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26441 if (!SWIG_IsOK(res1)) {
26442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26443 }
26444 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26445 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26446 if (!SWIG_IsOK(res2)) {
26447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26448 }
26449 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26450 if (obj2) {
26451 ecode3 = SWIG_AsVal_int(obj2, &val3);
26452 if (!SWIG_IsOK(ecode3)) {
26453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26454 }
26455 arg3 = static_cast< int >(val3);
26456 }
26457 {
26458 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 resultobj = SWIG_Py_Void();
26462 return resultobj;
26463 fail:
26464 return NULL;
26465 }
26466
26467
26468 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26469 PyObject *resultobj = 0;
26470 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26471 wxString *arg2 = 0 ;
26472 wxDouble arg3 ;
26473 wxDouble arg4 ;
26474 void *argp1 = 0 ;
26475 int res1 = 0 ;
26476 bool temp2 = false ;
26477 double val3 ;
26478 int ecode3 = 0 ;
26479 double val4 ;
26480 int ecode4 = 0 ;
26481 PyObject * obj0 = 0 ;
26482 PyObject * obj1 = 0 ;
26483 PyObject * obj2 = 0 ;
26484 PyObject * obj3 = 0 ;
26485 char * kwnames[] = {
26486 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26487 };
26488
26489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26491 if (!SWIG_IsOK(res1)) {
26492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26493 }
26494 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26495 {
26496 arg2 = wxString_in_helper(obj1);
26497 if (arg2 == NULL) SWIG_fail;
26498 temp2 = true;
26499 }
26500 ecode3 = SWIG_AsVal_double(obj2, &val3);
26501 if (!SWIG_IsOK(ecode3)) {
26502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26503 }
26504 arg3 = static_cast< wxDouble >(val3);
26505 ecode4 = SWIG_AsVal_double(obj3, &val4);
26506 if (!SWIG_IsOK(ecode4)) {
26507 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26508 }
26509 arg4 = static_cast< wxDouble >(val4);
26510 {
26511 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26512 if (PyErr_Occurred()) SWIG_fail;
26513 }
26514 resultobj = SWIG_Py_Void();
26515 {
26516 if (temp2)
26517 delete arg2;
26518 }
26519 return resultobj;
26520 fail:
26521 {
26522 if (temp2)
26523 delete arg2;
26524 }
26525 return NULL;
26526 }
26527
26528
26529 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26530 PyObject *resultobj = 0;
26531 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26532 wxString *arg2 = 0 ;
26533 wxDouble arg3 ;
26534 wxDouble arg4 ;
26535 wxDouble arg5 ;
26536 void *argp1 = 0 ;
26537 int res1 = 0 ;
26538 bool temp2 = false ;
26539 double val3 ;
26540 int ecode3 = 0 ;
26541 double val4 ;
26542 int ecode4 = 0 ;
26543 double val5 ;
26544 int ecode5 = 0 ;
26545 PyObject * obj0 = 0 ;
26546 PyObject * obj1 = 0 ;
26547 PyObject * obj2 = 0 ;
26548 PyObject * obj3 = 0 ;
26549 PyObject * obj4 = 0 ;
26550 char * kwnames[] = {
26551 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26552 };
26553
26554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26556 if (!SWIG_IsOK(res1)) {
26557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26558 }
26559 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26560 {
26561 arg2 = wxString_in_helper(obj1);
26562 if (arg2 == NULL) SWIG_fail;
26563 temp2 = true;
26564 }
26565 ecode3 = SWIG_AsVal_double(obj2, &val3);
26566 if (!SWIG_IsOK(ecode3)) {
26567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26568 }
26569 arg3 = static_cast< wxDouble >(val3);
26570 ecode4 = SWIG_AsVal_double(obj3, &val4);
26571 if (!SWIG_IsOK(ecode4)) {
26572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26573 }
26574 arg4 = static_cast< wxDouble >(val4);
26575 ecode5 = SWIG_AsVal_double(obj4, &val5);
26576 if (!SWIG_IsOK(ecode5)) {
26577 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26578 }
26579 arg5 = static_cast< wxDouble >(val5);
26580 {
26581 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
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 *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26600 PyObject *resultobj = 0;
26601 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26602 wxString *arg2 = 0 ;
26603 wxDouble *arg3 = (wxDouble *) 0 ;
26604 wxDouble *arg4 = (wxDouble *) 0 ;
26605 wxDouble *arg5 = (wxDouble *) 0 ;
26606 wxDouble *arg6 = (wxDouble *) 0 ;
26607 void *argp1 = 0 ;
26608 int res1 = 0 ;
26609 bool temp2 = false ;
26610 wxDouble temp3 ;
26611 int res3 = SWIG_TMPOBJ ;
26612 wxDouble temp4 ;
26613 int res4 = SWIG_TMPOBJ ;
26614 wxDouble temp5 ;
26615 int res5 = SWIG_TMPOBJ ;
26616 wxDouble temp6 ;
26617 int res6 = SWIG_TMPOBJ ;
26618 PyObject * obj0 = 0 ;
26619 PyObject * obj1 = 0 ;
26620 char * kwnames[] = {
26621 (char *) "self",(char *) "text", NULL
26622 };
26623
26624 arg3 = &temp3;
26625 arg4 = &temp4;
26626 arg5 = &temp5;
26627 arg6 = &temp6;
26628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26630 if (!SWIG_IsOK(res1)) {
26631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26632 }
26633 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26634 {
26635 arg2 = wxString_in_helper(obj1);
26636 if (arg2 == NULL) SWIG_fail;
26637 temp2 = true;
26638 }
26639 {
26640 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 resultobj = SWIG_Py_Void();
26644 if (SWIG_IsTmpObj(res3)) {
26645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26646 } else {
26647 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26649 }
26650 if (SWIG_IsTmpObj(res4)) {
26651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26652 } else {
26653 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26655 }
26656 if (SWIG_IsTmpObj(res5)) {
26657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26658 } else {
26659 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26661 }
26662 if (SWIG_IsTmpObj(res6)) {
26663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26664 } else {
26665 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26667 }
26668 {
26669 if (temp2)
26670 delete arg2;
26671 }
26672 return resultobj;
26673 fail:
26674 {
26675 if (temp2)
26676 delete arg2;
26677 }
26678 return NULL;
26679 }
26680
26681
26682 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26683 PyObject *resultobj = 0;
26684 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26685 wxString *arg2 = 0 ;
26686 wxArrayDouble result;
26687 void *argp1 = 0 ;
26688 int res1 = 0 ;
26689 bool temp2 = false ;
26690 PyObject * obj0 = 0 ;
26691 PyObject * obj1 = 0 ;
26692 char * kwnames[] = {
26693 (char *) "self",(char *) "text", NULL
26694 };
26695
26696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26698 if (!SWIG_IsOK(res1)) {
26699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26700 }
26701 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26702 {
26703 arg2 = wxString_in_helper(obj1);
26704 if (arg2 == NULL) SWIG_fail;
26705 temp2 = true;
26706 }
26707 {
26708 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26709 if (PyErr_Occurred()) SWIG_fail;
26710 }
26711 {
26712 resultobj = wxArrayDouble2PyList_helper(result);
26713 }
26714 {
26715 if (temp2)
26716 delete arg2;
26717 }
26718 return resultobj;
26719 fail:
26720 {
26721 if (temp2)
26722 delete arg2;
26723 }
26724 return NULL;
26725 }
26726
26727
26728 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26729 PyObject *resultobj = 0;
26730 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26731 wxBitmap *arg2 = 0 ;
26732 wxDouble arg3 ;
26733 wxDouble arg4 ;
26734 wxDouble arg5 ;
26735 wxDouble arg6 ;
26736 void *argp1 = 0 ;
26737 int res1 = 0 ;
26738 void *argp2 = 0 ;
26739 int res2 = 0 ;
26740 double val3 ;
26741 int ecode3 = 0 ;
26742 double val4 ;
26743 int ecode4 = 0 ;
26744 double val5 ;
26745 int ecode5 = 0 ;
26746 double val6 ;
26747 int ecode6 = 0 ;
26748 PyObject * obj0 = 0 ;
26749 PyObject * obj1 = 0 ;
26750 PyObject * obj2 = 0 ;
26751 PyObject * obj3 = 0 ;
26752 PyObject * obj4 = 0 ;
26753 PyObject * obj5 = 0 ;
26754 char * kwnames[] = {
26755 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26756 };
26757
26758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26760 if (!SWIG_IsOK(res1)) {
26761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26762 }
26763 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26765 if (!SWIG_IsOK(res2)) {
26766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26767 }
26768 if (!argp2) {
26769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26770 }
26771 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26772 ecode3 = SWIG_AsVal_double(obj2, &val3);
26773 if (!SWIG_IsOK(ecode3)) {
26774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26775 }
26776 arg3 = static_cast< wxDouble >(val3);
26777 ecode4 = SWIG_AsVal_double(obj3, &val4);
26778 if (!SWIG_IsOK(ecode4)) {
26779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26780 }
26781 arg4 = static_cast< wxDouble >(val4);
26782 ecode5 = SWIG_AsVal_double(obj4, &val5);
26783 if (!SWIG_IsOK(ecode5)) {
26784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26785 }
26786 arg5 = static_cast< wxDouble >(val5);
26787 ecode6 = SWIG_AsVal_double(obj5, &val6);
26788 if (!SWIG_IsOK(ecode6)) {
26789 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26790 }
26791 arg6 = static_cast< wxDouble >(val6);
26792 {
26793 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
26796 resultobj = SWIG_Py_Void();
26797 return resultobj;
26798 fail:
26799 return NULL;
26800 }
26801
26802
26803 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26804 PyObject *resultobj = 0;
26805 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26806 wxIcon *arg2 = 0 ;
26807 wxDouble arg3 ;
26808 wxDouble arg4 ;
26809 wxDouble arg5 ;
26810 wxDouble arg6 ;
26811 void *argp1 = 0 ;
26812 int res1 = 0 ;
26813 void *argp2 = 0 ;
26814 int res2 = 0 ;
26815 double val3 ;
26816 int ecode3 = 0 ;
26817 double val4 ;
26818 int ecode4 = 0 ;
26819 double val5 ;
26820 int ecode5 = 0 ;
26821 double val6 ;
26822 int ecode6 = 0 ;
26823 PyObject * obj0 = 0 ;
26824 PyObject * obj1 = 0 ;
26825 PyObject * obj2 = 0 ;
26826 PyObject * obj3 = 0 ;
26827 PyObject * obj4 = 0 ;
26828 PyObject * obj5 = 0 ;
26829 char * kwnames[] = {
26830 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26831 };
26832
26833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26835 if (!SWIG_IsOK(res1)) {
26836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26837 }
26838 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26840 if (!SWIG_IsOK(res2)) {
26841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26842 }
26843 if (!argp2) {
26844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26845 }
26846 arg2 = reinterpret_cast< wxIcon * >(argp2);
26847 ecode3 = SWIG_AsVal_double(obj2, &val3);
26848 if (!SWIG_IsOK(ecode3)) {
26849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26850 }
26851 arg3 = static_cast< wxDouble >(val3);
26852 ecode4 = SWIG_AsVal_double(obj3, &val4);
26853 if (!SWIG_IsOK(ecode4)) {
26854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26855 }
26856 arg4 = static_cast< wxDouble >(val4);
26857 ecode5 = SWIG_AsVal_double(obj4, &val5);
26858 if (!SWIG_IsOK(ecode5)) {
26859 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26860 }
26861 arg5 = static_cast< wxDouble >(val5);
26862 ecode6 = SWIG_AsVal_double(obj5, &val6);
26863 if (!SWIG_IsOK(ecode6)) {
26864 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26865 }
26866 arg6 = static_cast< wxDouble >(val6);
26867 {
26868 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26869 if (PyErr_Occurred()) SWIG_fail;
26870 }
26871 resultobj = SWIG_Py_Void();
26872 return resultobj;
26873 fail:
26874 return NULL;
26875 }
26876
26877
26878 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26879 PyObject *resultobj = 0;
26880 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26881 wxDouble arg2 ;
26882 wxDouble arg3 ;
26883 wxDouble arg4 ;
26884 wxDouble arg5 ;
26885 void *argp1 = 0 ;
26886 int res1 = 0 ;
26887 double val2 ;
26888 int ecode2 = 0 ;
26889 double val3 ;
26890 int ecode3 = 0 ;
26891 double val4 ;
26892 int ecode4 = 0 ;
26893 double val5 ;
26894 int ecode5 = 0 ;
26895 PyObject * obj0 = 0 ;
26896 PyObject * obj1 = 0 ;
26897 PyObject * obj2 = 0 ;
26898 PyObject * obj3 = 0 ;
26899 PyObject * obj4 = 0 ;
26900 char * kwnames[] = {
26901 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26902 };
26903
26904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26906 if (!SWIG_IsOK(res1)) {
26907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26908 }
26909 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26910 ecode2 = SWIG_AsVal_double(obj1, &val2);
26911 if (!SWIG_IsOK(ecode2)) {
26912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26913 }
26914 arg2 = static_cast< wxDouble >(val2);
26915 ecode3 = SWIG_AsVal_double(obj2, &val3);
26916 if (!SWIG_IsOK(ecode3)) {
26917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26918 }
26919 arg3 = static_cast< wxDouble >(val3);
26920 ecode4 = SWIG_AsVal_double(obj3, &val4);
26921 if (!SWIG_IsOK(ecode4)) {
26922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26923 }
26924 arg4 = static_cast< wxDouble >(val4);
26925 ecode5 = SWIG_AsVal_double(obj4, &val5);
26926 if (!SWIG_IsOK(ecode5)) {
26927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26928 }
26929 arg5 = static_cast< wxDouble >(val5);
26930 {
26931 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26932 if (PyErr_Occurred()) SWIG_fail;
26933 }
26934 resultobj = SWIG_Py_Void();
26935 return resultobj;
26936 fail:
26937 return NULL;
26938 }
26939
26940
26941 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26942 PyObject *resultobj = 0;
26943 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26944 size_t arg2 ;
26945 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26946 void *argp1 = 0 ;
26947 int res1 = 0 ;
26948 PyObject * obj0 = 0 ;
26949 PyObject * obj1 = 0 ;
26950 char * kwnames[] = {
26951 (char *) "self",(char *) "points", NULL
26952 };
26953
26954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26956 if (!SWIG_IsOK(res1)) {
26957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26958 }
26959 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26960 {
26961 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26962 if (arg3 == NULL) SWIG_fail;
26963 }
26964 {
26965 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26966 if (PyErr_Occurred()) SWIG_fail;
26967 }
26968 resultobj = SWIG_Py_Void();
26969 {
26970 if (arg3) delete [] arg3;
26971 }
26972 return resultobj;
26973 fail:
26974 {
26975 if (arg3) delete [] arg3;
26976 }
26977 return NULL;
26978 }
26979
26980
26981 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26982 PyObject *resultobj = 0;
26983 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26984 PyObject *arg2 = (PyObject *) 0 ;
26985 PyObject *arg3 = (PyObject *) 0 ;
26986 void *argp1 = 0 ;
26987 int res1 = 0 ;
26988 PyObject * obj0 = 0 ;
26989 PyObject * obj1 = 0 ;
26990 PyObject * obj2 = 0 ;
26991 char * kwnames[] = {
26992 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26993 };
26994
26995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26997 if (!SWIG_IsOK(res1)) {
26998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26999 }
27000 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27001 arg2 = obj1;
27002 arg3 = obj2;
27003 {
27004 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 resultobj = SWIG_Py_Void();
27008 return resultobj;
27009 fail:
27010 return NULL;
27011 }
27012
27013
27014 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27015 PyObject *resultobj = 0;
27016 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27017 size_t arg2 ;
27018 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27019 int arg4 = (int) wxWINDING_RULE ;
27020 void *argp1 = 0 ;
27021 int res1 = 0 ;
27022 int val4 ;
27023 int ecode4 = 0 ;
27024 PyObject * obj0 = 0 ;
27025 PyObject * obj1 = 0 ;
27026 PyObject * obj2 = 0 ;
27027 char * kwnames[] = {
27028 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
27029 };
27030
27031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27035 }
27036 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27037 {
27038 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27039 if (arg3 == NULL) SWIG_fail;
27040 }
27041 if (obj2) {
27042 ecode4 = SWIG_AsVal_int(obj2, &val4);
27043 if (!SWIG_IsOK(ecode4)) {
27044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27045 }
27046 arg4 = static_cast< int >(val4);
27047 }
27048 {
27049 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27050 if (PyErr_Occurred()) SWIG_fail;
27051 }
27052 resultobj = SWIG_Py_Void();
27053 {
27054 if (arg3) delete [] arg3;
27055 }
27056 return resultobj;
27057 fail:
27058 {
27059 if (arg3) delete [] arg3;
27060 }
27061 return NULL;
27062 }
27063
27064
27065 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27066 PyObject *resultobj = 0;
27067 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27068 wxDouble arg2 ;
27069 wxDouble arg3 ;
27070 wxDouble arg4 ;
27071 wxDouble arg5 ;
27072 void *argp1 = 0 ;
27073 int res1 = 0 ;
27074 double val2 ;
27075 int ecode2 = 0 ;
27076 double val3 ;
27077 int ecode3 = 0 ;
27078 double val4 ;
27079 int ecode4 = 0 ;
27080 double val5 ;
27081 int ecode5 = 0 ;
27082 PyObject * obj0 = 0 ;
27083 PyObject * obj1 = 0 ;
27084 PyObject * obj2 = 0 ;
27085 PyObject * obj3 = 0 ;
27086 PyObject * obj4 = 0 ;
27087 char * kwnames[] = {
27088 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27089 };
27090
27091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27093 if (!SWIG_IsOK(res1)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27095 }
27096 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27097 ecode2 = SWIG_AsVal_double(obj1, &val2);
27098 if (!SWIG_IsOK(ecode2)) {
27099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27100 }
27101 arg2 = static_cast< wxDouble >(val2);
27102 ecode3 = SWIG_AsVal_double(obj2, &val3);
27103 if (!SWIG_IsOK(ecode3)) {
27104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27105 }
27106 arg3 = static_cast< wxDouble >(val3);
27107 ecode4 = SWIG_AsVal_double(obj3, &val4);
27108 if (!SWIG_IsOK(ecode4)) {
27109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27110 }
27111 arg4 = static_cast< wxDouble >(val4);
27112 ecode5 = SWIG_AsVal_double(obj4, &val5);
27113 if (!SWIG_IsOK(ecode5)) {
27114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27115 }
27116 arg5 = static_cast< wxDouble >(val5);
27117 {
27118 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27119 if (PyErr_Occurred()) SWIG_fail;
27120 }
27121 resultobj = SWIG_Py_Void();
27122 return resultobj;
27123 fail:
27124 return NULL;
27125 }
27126
27127
27128 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27129 PyObject *resultobj = 0;
27130 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27131 wxDouble arg2 ;
27132 wxDouble arg3 ;
27133 wxDouble arg4 ;
27134 wxDouble arg5 ;
27135 void *argp1 = 0 ;
27136 int res1 = 0 ;
27137 double val2 ;
27138 int ecode2 = 0 ;
27139 double val3 ;
27140 int ecode3 = 0 ;
27141 double val4 ;
27142 int ecode4 = 0 ;
27143 double val5 ;
27144 int ecode5 = 0 ;
27145 PyObject * obj0 = 0 ;
27146 PyObject * obj1 = 0 ;
27147 PyObject * obj2 = 0 ;
27148 PyObject * obj3 = 0 ;
27149 PyObject * obj4 = 0 ;
27150 char * kwnames[] = {
27151 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27152 };
27153
27154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27156 if (!SWIG_IsOK(res1)) {
27157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27158 }
27159 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27160 ecode2 = SWIG_AsVal_double(obj1, &val2);
27161 if (!SWIG_IsOK(ecode2)) {
27162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27163 }
27164 arg2 = static_cast< wxDouble >(val2);
27165 ecode3 = SWIG_AsVal_double(obj2, &val3);
27166 if (!SWIG_IsOK(ecode3)) {
27167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27168 }
27169 arg3 = static_cast< wxDouble >(val3);
27170 ecode4 = SWIG_AsVal_double(obj3, &val4);
27171 if (!SWIG_IsOK(ecode4)) {
27172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27173 }
27174 arg4 = static_cast< wxDouble >(val4);
27175 ecode5 = SWIG_AsVal_double(obj4, &val5);
27176 if (!SWIG_IsOK(ecode5)) {
27177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27178 }
27179 arg5 = static_cast< wxDouble >(val5);
27180 {
27181 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27182 if (PyErr_Occurred()) SWIG_fail;
27183 }
27184 resultobj = SWIG_Py_Void();
27185 return resultobj;
27186 fail:
27187 return NULL;
27188 }
27189
27190
27191 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27192 PyObject *resultobj = 0;
27193 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27194 wxDouble arg2 ;
27195 wxDouble arg3 ;
27196 wxDouble arg4 ;
27197 wxDouble arg5 ;
27198 wxDouble arg6 ;
27199 void *argp1 = 0 ;
27200 int res1 = 0 ;
27201 double val2 ;
27202 int ecode2 = 0 ;
27203 double val3 ;
27204 int ecode3 = 0 ;
27205 double val4 ;
27206 int ecode4 = 0 ;
27207 double val5 ;
27208 int ecode5 = 0 ;
27209 double val6 ;
27210 int ecode6 = 0 ;
27211 PyObject * obj0 = 0 ;
27212 PyObject * obj1 = 0 ;
27213 PyObject * obj2 = 0 ;
27214 PyObject * obj3 = 0 ;
27215 PyObject * obj4 = 0 ;
27216 PyObject * obj5 = 0 ;
27217 char * kwnames[] = {
27218 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27219 };
27220
27221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27223 if (!SWIG_IsOK(res1)) {
27224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27225 }
27226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27227 ecode2 = SWIG_AsVal_double(obj1, &val2);
27228 if (!SWIG_IsOK(ecode2)) {
27229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27230 }
27231 arg2 = static_cast< wxDouble >(val2);
27232 ecode3 = SWIG_AsVal_double(obj2, &val3);
27233 if (!SWIG_IsOK(ecode3)) {
27234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27235 }
27236 arg3 = static_cast< wxDouble >(val3);
27237 ecode4 = SWIG_AsVal_double(obj3, &val4);
27238 if (!SWIG_IsOK(ecode4)) {
27239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27240 }
27241 arg4 = static_cast< wxDouble >(val4);
27242 ecode5 = SWIG_AsVal_double(obj4, &val5);
27243 if (!SWIG_IsOK(ecode5)) {
27244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27245 }
27246 arg5 = static_cast< wxDouble >(val5);
27247 ecode6 = SWIG_AsVal_double(obj5, &val6);
27248 if (!SWIG_IsOK(ecode6)) {
27249 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27250 }
27251 arg6 = static_cast< wxDouble >(val6);
27252 {
27253 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 }
27256 resultobj = SWIG_Py_Void();
27257 return resultobj;
27258 fail:
27259 return NULL;
27260 }
27261
27262
27263 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27264 PyObject *obj;
27265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27266 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27267 return SWIG_Py_Void();
27268 }
27269
27270 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27271 PyObject *resultobj = 0;
27272 wxWindowDC *arg1 = 0 ;
27273 wxGCDC *result = 0 ;
27274 void *argp1 = 0 ;
27275 int res1 = 0 ;
27276 PyObject * obj0 = 0 ;
27277 char * kwnames[] = {
27278 (char *) "dc", NULL
27279 };
27280
27281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27285 }
27286 if (!argp1) {
27287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27288 }
27289 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27290 {
27291 if (!wxPyCheckForApp()) SWIG_fail;
27292 PyThreadState* __tstate = wxPyBeginAllowThreads();
27293 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27294 wxPyEndAllowThreads(__tstate);
27295 if (PyErr_Occurred()) SWIG_fail;
27296 }
27297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27298 return resultobj;
27299 fail:
27300 return NULL;
27301 }
27302
27303
27304 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27305 PyObject *resultobj = 0;
27306 wxGCDC *arg1 = (wxGCDC *) 0 ;
27307 void *argp1 = 0 ;
27308 int res1 = 0 ;
27309 PyObject *swig_obj[1] ;
27310
27311 if (!args) SWIG_fail;
27312 swig_obj[0] = args;
27313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27314 if (!SWIG_IsOK(res1)) {
27315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27316 }
27317 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27318 {
27319 delete arg1;
27320
27321 if (PyErr_Occurred()) SWIG_fail;
27322 }
27323 resultobj = SWIG_Py_Void();
27324 return resultobj;
27325 fail:
27326 return NULL;
27327 }
27328
27329
27330 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27331 PyObject *resultobj = 0;
27332 wxGCDC *arg1 = (wxGCDC *) 0 ;
27333 wxGraphicsContext *result = 0 ;
27334 void *argp1 = 0 ;
27335 int res1 = 0 ;
27336 PyObject *swig_obj[1] ;
27337
27338 if (!args) SWIG_fail;
27339 swig_obj[0] = args;
27340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27341 if (!SWIG_IsOK(res1)) {
27342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27343 }
27344 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27345 {
27346 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27350 return resultobj;
27351 fail:
27352 return NULL;
27353 }
27354
27355
27356 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27357 PyObject *obj;
27358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27359 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27360 return SWIG_Py_Void();
27361 }
27362
27363 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27364 return SWIG_Python_InitShadowInstance(args);
27365 }
27366
27367 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27368 PyObject *resultobj = 0;
27369 wxOverlay *result = 0 ;
27370
27371 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27372 {
27373 PyThreadState* __tstate = wxPyBeginAllowThreads();
27374 result = (wxOverlay *)new wxOverlay();
27375 wxPyEndAllowThreads(__tstate);
27376 if (PyErr_Occurred()) SWIG_fail;
27377 }
27378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27379 return resultobj;
27380 fail:
27381 return NULL;
27382 }
27383
27384
27385 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27386 PyObject *resultobj = 0;
27387 wxOverlay *arg1 = (wxOverlay *) 0 ;
27388 void *argp1 = 0 ;
27389 int res1 = 0 ;
27390 PyObject *swig_obj[1] ;
27391
27392 if (!args) SWIG_fail;
27393 swig_obj[0] = args;
27394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27395 if (!SWIG_IsOK(res1)) {
27396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27397 }
27398 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27399 {
27400 PyThreadState* __tstate = wxPyBeginAllowThreads();
27401 delete arg1;
27402
27403 wxPyEndAllowThreads(__tstate);
27404 if (PyErr_Occurred()) SWIG_fail;
27405 }
27406 resultobj = SWIG_Py_Void();
27407 return resultobj;
27408 fail:
27409 return NULL;
27410 }
27411
27412
27413 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27414 PyObject *resultobj = 0;
27415 wxOverlay *arg1 = (wxOverlay *) 0 ;
27416 void *argp1 = 0 ;
27417 int res1 = 0 ;
27418 PyObject *swig_obj[1] ;
27419
27420 if (!args) SWIG_fail;
27421 swig_obj[0] = args;
27422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27423 if (!SWIG_IsOK(res1)) {
27424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27425 }
27426 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27427 {
27428 PyThreadState* __tstate = wxPyBeginAllowThreads();
27429 (arg1)->Reset();
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 *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27441 PyObject *obj;
27442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27443 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27444 return SWIG_Py_Void();
27445 }
27446
27447 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27448 return SWIG_Python_InitShadowInstance(args);
27449 }
27450
27451 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27452 PyObject *resultobj = 0;
27453 wxOverlay *arg1 = 0 ;
27454 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27455 int arg3 ;
27456 int arg4 ;
27457 int arg5 ;
27458 int arg6 ;
27459 wxDCOverlay *result = 0 ;
27460 void *argp1 = 0 ;
27461 int res1 = 0 ;
27462 void *argp2 = 0 ;
27463 int res2 = 0 ;
27464 int val3 ;
27465 int ecode3 = 0 ;
27466 int val4 ;
27467 int ecode4 = 0 ;
27468 int val5 ;
27469 int ecode5 = 0 ;
27470 int val6 ;
27471 int ecode6 = 0 ;
27472
27473 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27475 if (!SWIG_IsOK(res1)) {
27476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27477 }
27478 if (!argp1) {
27479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27480 }
27481 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27482 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27483 if (!SWIG_IsOK(res2)) {
27484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27485 }
27486 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27487 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27488 if (!SWIG_IsOK(ecode3)) {
27489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27490 }
27491 arg3 = static_cast< int >(val3);
27492 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27493 if (!SWIG_IsOK(ecode4)) {
27494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27495 }
27496 arg4 = static_cast< int >(val4);
27497 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27498 if (!SWIG_IsOK(ecode5)) {
27499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27500 }
27501 arg5 = static_cast< int >(val5);
27502 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27503 if (!SWIG_IsOK(ecode6)) {
27504 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27505 }
27506 arg6 = static_cast< int >(val6);
27507 {
27508 PyThreadState* __tstate = wxPyBeginAllowThreads();
27509 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27510 wxPyEndAllowThreads(__tstate);
27511 if (PyErr_Occurred()) SWIG_fail;
27512 }
27513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27514 return resultobj;
27515 fail:
27516 return NULL;
27517 }
27518
27519
27520 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27521 PyObject *resultobj = 0;
27522 wxOverlay *arg1 = 0 ;
27523 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27524 wxDCOverlay *result = 0 ;
27525 void *argp1 = 0 ;
27526 int res1 = 0 ;
27527 void *argp2 = 0 ;
27528 int res2 = 0 ;
27529
27530 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27532 if (!SWIG_IsOK(res1)) {
27533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27534 }
27535 if (!argp1) {
27536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27537 }
27538 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27539 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27540 if (!SWIG_IsOK(res2)) {
27541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27542 }
27543 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27544 {
27545 PyThreadState* __tstate = wxPyBeginAllowThreads();
27546 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27547 wxPyEndAllowThreads(__tstate);
27548 if (PyErr_Occurred()) SWIG_fail;
27549 }
27550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27551 return resultobj;
27552 fail:
27553 return NULL;
27554 }
27555
27556
27557 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27558 int argc;
27559 PyObject *argv[7];
27560
27561 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27562 --argc;
27563 if (argc == 2) {
27564 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27565 }
27566 if (argc == 6) {
27567 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27568 }
27569
27570 fail:
27571 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27572 return NULL;
27573 }
27574
27575
27576 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27577 PyObject *resultobj = 0;
27578 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27579 void *argp1 = 0 ;
27580 int res1 = 0 ;
27581 PyObject *swig_obj[1] ;
27582
27583 if (!args) SWIG_fail;
27584 swig_obj[0] = args;
27585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27586 if (!SWIG_IsOK(res1)) {
27587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27588 }
27589 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27590 {
27591 PyThreadState* __tstate = wxPyBeginAllowThreads();
27592 delete arg1;
27593
27594 wxPyEndAllowThreads(__tstate);
27595 if (PyErr_Occurred()) SWIG_fail;
27596 }
27597 resultobj = SWIG_Py_Void();
27598 return resultobj;
27599 fail:
27600 return NULL;
27601 }
27602
27603
27604 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27605 PyObject *resultobj = 0;
27606 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27607 void *argp1 = 0 ;
27608 int res1 = 0 ;
27609 PyObject *swig_obj[1] ;
27610
27611 if (!args) SWIG_fail;
27612 swig_obj[0] = args;
27613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27614 if (!SWIG_IsOK(res1)) {
27615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27616 }
27617 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27618 {
27619 PyThreadState* __tstate = wxPyBeginAllowThreads();
27620 (arg1)->Clear();
27621 wxPyEndAllowThreads(__tstate);
27622 if (PyErr_Occurred()) SWIG_fail;
27623 }
27624 resultobj = SWIG_Py_Void();
27625 return resultobj;
27626 fail:
27627 return NULL;
27628 }
27629
27630
27631 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27632 PyObject *obj;
27633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27634 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27635 return SWIG_Py_Void();
27636 }
27637
27638 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27639 return SWIG_Python_InitShadowInstance(args);
27640 }
27641
27642 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27643 PyObject *resultobj = 0;
27644 int arg1 ;
27645 int arg2 ;
27646 int arg3 = (int) true ;
27647 int arg4 = (int) 1 ;
27648 wxImageList *result = 0 ;
27649 int val1 ;
27650 int ecode1 = 0 ;
27651 int val2 ;
27652 int ecode2 = 0 ;
27653 int val3 ;
27654 int ecode3 = 0 ;
27655 int val4 ;
27656 int ecode4 = 0 ;
27657 PyObject * obj0 = 0 ;
27658 PyObject * obj1 = 0 ;
27659 PyObject * obj2 = 0 ;
27660 PyObject * obj3 = 0 ;
27661 char * kwnames[] = {
27662 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27663 };
27664
27665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27666 ecode1 = SWIG_AsVal_int(obj0, &val1);
27667 if (!SWIG_IsOK(ecode1)) {
27668 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27669 }
27670 arg1 = static_cast< int >(val1);
27671 ecode2 = SWIG_AsVal_int(obj1, &val2);
27672 if (!SWIG_IsOK(ecode2)) {
27673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27674 }
27675 arg2 = static_cast< int >(val2);
27676 if (obj2) {
27677 ecode3 = SWIG_AsVal_int(obj2, &val3);
27678 if (!SWIG_IsOK(ecode3)) {
27679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27680 }
27681 arg3 = static_cast< int >(val3);
27682 }
27683 if (obj3) {
27684 ecode4 = SWIG_AsVal_int(obj3, &val4);
27685 if (!SWIG_IsOK(ecode4)) {
27686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27687 }
27688 arg4 = static_cast< int >(val4);
27689 }
27690 {
27691 if (!wxPyCheckForApp()) SWIG_fail;
27692 PyThreadState* __tstate = wxPyBeginAllowThreads();
27693 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27694 wxPyEndAllowThreads(__tstate);
27695 if (PyErr_Occurred()) SWIG_fail;
27696 }
27697 {
27698 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27699 }
27700 return resultobj;
27701 fail:
27702 return NULL;
27703 }
27704
27705
27706 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27707 PyObject *resultobj = 0;
27708 wxImageList *arg1 = (wxImageList *) 0 ;
27709 void *argp1 = 0 ;
27710 int res1 = 0 ;
27711 PyObject *swig_obj[1] ;
27712
27713 if (!args) SWIG_fail;
27714 swig_obj[0] = args;
27715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27716 if (!SWIG_IsOK(res1)) {
27717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27718 }
27719 arg1 = reinterpret_cast< wxImageList * >(argp1);
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 delete arg1;
27723
27724 wxPyEndAllowThreads(__tstate);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 resultobj = SWIG_Py_Void();
27728 return resultobj;
27729 fail:
27730 return NULL;
27731 }
27732
27733
27734 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27735 PyObject *resultobj = 0;
27736 wxImageList *arg1 = (wxImageList *) 0 ;
27737 wxBitmap *arg2 = 0 ;
27738 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27739 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27740 int result;
27741 void *argp1 = 0 ;
27742 int res1 = 0 ;
27743 void *argp2 = 0 ;
27744 int res2 = 0 ;
27745 void *argp3 = 0 ;
27746 int res3 = 0 ;
27747 PyObject * obj0 = 0 ;
27748 PyObject * obj1 = 0 ;
27749 PyObject * obj2 = 0 ;
27750 char * kwnames[] = {
27751 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27752 };
27753
27754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27756 if (!SWIG_IsOK(res1)) {
27757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27758 }
27759 arg1 = reinterpret_cast< wxImageList * >(argp1);
27760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27761 if (!SWIG_IsOK(res2)) {
27762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27763 }
27764 if (!argp2) {
27765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27766 }
27767 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27768 if (obj2) {
27769 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27770 if (!SWIG_IsOK(res3)) {
27771 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27772 }
27773 if (!argp3) {
27774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27775 }
27776 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27777 }
27778 {
27779 PyThreadState* __tstate = wxPyBeginAllowThreads();
27780 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27781 wxPyEndAllowThreads(__tstate);
27782 if (PyErr_Occurred()) SWIG_fail;
27783 }
27784 resultobj = SWIG_From_int(static_cast< int >(result));
27785 return resultobj;
27786 fail:
27787 return NULL;
27788 }
27789
27790
27791 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27792 PyObject *resultobj = 0;
27793 wxImageList *arg1 = (wxImageList *) 0 ;
27794 wxBitmap *arg2 = 0 ;
27795 wxColour *arg3 = 0 ;
27796 int result;
27797 void *argp1 = 0 ;
27798 int res1 = 0 ;
27799 void *argp2 = 0 ;
27800 int res2 = 0 ;
27801 wxColour temp3 ;
27802 PyObject * obj0 = 0 ;
27803 PyObject * obj1 = 0 ;
27804 PyObject * obj2 = 0 ;
27805 char * kwnames[] = {
27806 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27807 };
27808
27809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27811 if (!SWIG_IsOK(res1)) {
27812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27813 }
27814 arg1 = reinterpret_cast< wxImageList * >(argp1);
27815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27816 if (!SWIG_IsOK(res2)) {
27817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27818 }
27819 if (!argp2) {
27820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27821 }
27822 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27823 {
27824 arg3 = &temp3;
27825 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27826 }
27827 {
27828 PyThreadState* __tstate = wxPyBeginAllowThreads();
27829 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27830 wxPyEndAllowThreads(__tstate);
27831 if (PyErr_Occurred()) SWIG_fail;
27832 }
27833 resultobj = SWIG_From_int(static_cast< int >(result));
27834 return resultobj;
27835 fail:
27836 return NULL;
27837 }
27838
27839
27840 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27841 PyObject *resultobj = 0;
27842 wxImageList *arg1 = (wxImageList *) 0 ;
27843 wxIcon *arg2 = 0 ;
27844 int result;
27845 void *argp1 = 0 ;
27846 int res1 = 0 ;
27847 void *argp2 = 0 ;
27848 int res2 = 0 ;
27849 PyObject * obj0 = 0 ;
27850 PyObject * obj1 = 0 ;
27851 char * kwnames[] = {
27852 (char *) "self",(char *) "icon", NULL
27853 };
27854
27855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27857 if (!SWIG_IsOK(res1)) {
27858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27859 }
27860 arg1 = reinterpret_cast< wxImageList * >(argp1);
27861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27862 if (!SWIG_IsOK(res2)) {
27863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27864 }
27865 if (!argp2) {
27866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27867 }
27868 arg2 = reinterpret_cast< wxIcon * >(argp2);
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27872 wxPyEndAllowThreads(__tstate);
27873 if (PyErr_Occurred()) SWIG_fail;
27874 }
27875 resultobj = SWIG_From_int(static_cast< int >(result));
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27883 PyObject *resultobj = 0;
27884 wxImageList *arg1 = (wxImageList *) 0 ;
27885 int arg2 ;
27886 SwigValueWrapper<wxBitmap > result;
27887 void *argp1 = 0 ;
27888 int res1 = 0 ;
27889 int val2 ;
27890 int ecode2 = 0 ;
27891 PyObject * obj0 = 0 ;
27892 PyObject * obj1 = 0 ;
27893 char * kwnames[] = {
27894 (char *) "self",(char *) "index", NULL
27895 };
27896
27897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27899 if (!SWIG_IsOK(res1)) {
27900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27901 }
27902 arg1 = reinterpret_cast< wxImageList * >(argp1);
27903 ecode2 = SWIG_AsVal_int(obj1, &val2);
27904 if (!SWIG_IsOK(ecode2)) {
27905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27906 }
27907 arg2 = static_cast< int >(val2);
27908 {
27909 PyThreadState* __tstate = wxPyBeginAllowThreads();
27910 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27911 wxPyEndAllowThreads(__tstate);
27912 if (PyErr_Occurred()) SWIG_fail;
27913 }
27914 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27915 return resultobj;
27916 fail:
27917 return NULL;
27918 }
27919
27920
27921 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27922 PyObject *resultobj = 0;
27923 wxImageList *arg1 = (wxImageList *) 0 ;
27924 int arg2 ;
27925 wxIcon result;
27926 void *argp1 = 0 ;
27927 int res1 = 0 ;
27928 int val2 ;
27929 int ecode2 = 0 ;
27930 PyObject * obj0 = 0 ;
27931 PyObject * obj1 = 0 ;
27932 char * kwnames[] = {
27933 (char *) "self",(char *) "index", NULL
27934 };
27935
27936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27938 if (!SWIG_IsOK(res1)) {
27939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27940 }
27941 arg1 = reinterpret_cast< wxImageList * >(argp1);
27942 ecode2 = SWIG_AsVal_int(obj1, &val2);
27943 if (!SWIG_IsOK(ecode2)) {
27944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27945 }
27946 arg2 = static_cast< int >(val2);
27947 {
27948 PyThreadState* __tstate = wxPyBeginAllowThreads();
27949 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27950 wxPyEndAllowThreads(__tstate);
27951 if (PyErr_Occurred()) SWIG_fail;
27952 }
27953 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27954 return resultobj;
27955 fail:
27956 return NULL;
27957 }
27958
27959
27960 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27961 PyObject *resultobj = 0;
27962 wxImageList *arg1 = (wxImageList *) 0 ;
27963 int arg2 ;
27964 wxBitmap *arg3 = 0 ;
27965 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27966 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27967 bool result;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 int val2 ;
27971 int ecode2 = 0 ;
27972 void *argp3 = 0 ;
27973 int res3 = 0 ;
27974 void *argp4 = 0 ;
27975 int res4 = 0 ;
27976 PyObject * obj0 = 0 ;
27977 PyObject * obj1 = 0 ;
27978 PyObject * obj2 = 0 ;
27979 PyObject * obj3 = 0 ;
27980 char * kwnames[] = {
27981 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27982 };
27983
27984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27986 if (!SWIG_IsOK(res1)) {
27987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27988 }
27989 arg1 = reinterpret_cast< wxImageList * >(argp1);
27990 ecode2 = SWIG_AsVal_int(obj1, &val2);
27991 if (!SWIG_IsOK(ecode2)) {
27992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27993 }
27994 arg2 = static_cast< int >(val2);
27995 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27996 if (!SWIG_IsOK(res3)) {
27997 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27998 }
27999 if (!argp3) {
28000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28001 }
28002 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28003 if (obj3) {
28004 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28005 if (!SWIG_IsOK(res4)) {
28006 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28007 }
28008 if (!argp4) {
28009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28010 }
28011 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28012 }
28013 {
28014 PyThreadState* __tstate = wxPyBeginAllowThreads();
28015 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28016 wxPyEndAllowThreads(__tstate);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 {
28020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28021 }
28022 return resultobj;
28023 fail:
28024 return NULL;
28025 }
28026
28027
28028 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28029 PyObject *resultobj = 0;
28030 wxImageList *arg1 = (wxImageList *) 0 ;
28031 int arg2 ;
28032 wxDC *arg3 = 0 ;
28033 int arg4 ;
28034 int arg5 ;
28035 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28036 bool arg7 = (bool) (bool)false ;
28037 bool result;
28038 void *argp1 = 0 ;
28039 int res1 = 0 ;
28040 int val2 ;
28041 int ecode2 = 0 ;
28042 void *argp3 = 0 ;
28043 int res3 = 0 ;
28044 int val4 ;
28045 int ecode4 = 0 ;
28046 int val5 ;
28047 int ecode5 = 0 ;
28048 int val6 ;
28049 int ecode6 = 0 ;
28050 bool val7 ;
28051 int ecode7 = 0 ;
28052 PyObject * obj0 = 0 ;
28053 PyObject * obj1 = 0 ;
28054 PyObject * obj2 = 0 ;
28055 PyObject * obj3 = 0 ;
28056 PyObject * obj4 = 0 ;
28057 PyObject * obj5 = 0 ;
28058 PyObject * obj6 = 0 ;
28059 char * kwnames[] = {
28060 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28061 };
28062
28063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28065 if (!SWIG_IsOK(res1)) {
28066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28067 }
28068 arg1 = reinterpret_cast< wxImageList * >(argp1);
28069 ecode2 = SWIG_AsVal_int(obj1, &val2);
28070 if (!SWIG_IsOK(ecode2)) {
28071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28072 }
28073 arg2 = static_cast< int >(val2);
28074 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28075 if (!SWIG_IsOK(res3)) {
28076 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28077 }
28078 if (!argp3) {
28079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28080 }
28081 arg3 = reinterpret_cast< wxDC * >(argp3);
28082 ecode4 = SWIG_AsVal_int(obj3, &val4);
28083 if (!SWIG_IsOK(ecode4)) {
28084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28085 }
28086 arg4 = static_cast< int >(val4);
28087 ecode5 = SWIG_AsVal_int(obj4, &val5);
28088 if (!SWIG_IsOK(ecode5)) {
28089 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28090 }
28091 arg5 = static_cast< int >(val5);
28092 if (obj5) {
28093 ecode6 = SWIG_AsVal_int(obj5, &val6);
28094 if (!SWIG_IsOK(ecode6)) {
28095 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28096 }
28097 arg6 = static_cast< int >(val6);
28098 }
28099 if (obj6) {
28100 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28101 if (!SWIG_IsOK(ecode7)) {
28102 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28103 }
28104 arg7 = static_cast< bool >(val7);
28105 }
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28109 wxPyEndAllowThreads(__tstate);
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 {
28113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28114 }
28115 return resultobj;
28116 fail:
28117 return NULL;
28118 }
28119
28120
28121 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28122 PyObject *resultobj = 0;
28123 wxImageList *arg1 = (wxImageList *) 0 ;
28124 int result;
28125 void *argp1 = 0 ;
28126 int res1 = 0 ;
28127 PyObject *swig_obj[1] ;
28128
28129 if (!args) SWIG_fail;
28130 swig_obj[0] = args;
28131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28132 if (!SWIG_IsOK(res1)) {
28133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28134 }
28135 arg1 = reinterpret_cast< wxImageList * >(argp1);
28136 {
28137 PyThreadState* __tstate = wxPyBeginAllowThreads();
28138 result = (int)(arg1)->GetImageCount();
28139 wxPyEndAllowThreads(__tstate);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 }
28142 resultobj = SWIG_From_int(static_cast< int >(result));
28143 return resultobj;
28144 fail:
28145 return NULL;
28146 }
28147
28148
28149 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28150 PyObject *resultobj = 0;
28151 wxImageList *arg1 = (wxImageList *) 0 ;
28152 int arg2 ;
28153 bool result;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 int val2 ;
28157 int ecode2 = 0 ;
28158 PyObject * obj0 = 0 ;
28159 PyObject * obj1 = 0 ;
28160 char * kwnames[] = {
28161 (char *) "self",(char *) "index", NULL
28162 };
28163
28164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28166 if (!SWIG_IsOK(res1)) {
28167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28168 }
28169 arg1 = reinterpret_cast< wxImageList * >(argp1);
28170 ecode2 = SWIG_AsVal_int(obj1, &val2);
28171 if (!SWIG_IsOK(ecode2)) {
28172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28173 }
28174 arg2 = static_cast< int >(val2);
28175 {
28176 PyThreadState* __tstate = wxPyBeginAllowThreads();
28177 result = (bool)(arg1)->Remove(arg2);
28178 wxPyEndAllowThreads(__tstate);
28179 if (PyErr_Occurred()) SWIG_fail;
28180 }
28181 {
28182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28183 }
28184 return resultobj;
28185 fail:
28186 return NULL;
28187 }
28188
28189
28190 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28191 PyObject *resultobj = 0;
28192 wxImageList *arg1 = (wxImageList *) 0 ;
28193 bool result;
28194 void *argp1 = 0 ;
28195 int res1 = 0 ;
28196 PyObject *swig_obj[1] ;
28197
28198 if (!args) SWIG_fail;
28199 swig_obj[0] = args;
28200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28201 if (!SWIG_IsOK(res1)) {
28202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28203 }
28204 arg1 = reinterpret_cast< wxImageList * >(argp1);
28205 {
28206 PyThreadState* __tstate = wxPyBeginAllowThreads();
28207 result = (bool)(arg1)->RemoveAll();
28208 wxPyEndAllowThreads(__tstate);
28209 if (PyErr_Occurred()) SWIG_fail;
28210 }
28211 {
28212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28213 }
28214 return resultobj;
28215 fail:
28216 return NULL;
28217 }
28218
28219
28220 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28221 PyObject *resultobj = 0;
28222 wxImageList *arg1 = (wxImageList *) 0 ;
28223 int arg2 ;
28224 int *arg3 = 0 ;
28225 int *arg4 = 0 ;
28226 void *argp1 = 0 ;
28227 int res1 = 0 ;
28228 int val2 ;
28229 int ecode2 = 0 ;
28230 int temp3 ;
28231 int res3 = SWIG_TMPOBJ ;
28232 int temp4 ;
28233 int res4 = SWIG_TMPOBJ ;
28234 PyObject * obj0 = 0 ;
28235 PyObject * obj1 = 0 ;
28236 char * kwnames[] = {
28237 (char *) "self",(char *) "index", NULL
28238 };
28239
28240 arg3 = &temp3;
28241 arg4 = &temp4;
28242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28246 }
28247 arg1 = reinterpret_cast< wxImageList * >(argp1);
28248 ecode2 = SWIG_AsVal_int(obj1, &val2);
28249 if (!SWIG_IsOK(ecode2)) {
28250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28251 }
28252 arg2 = static_cast< int >(val2);
28253 {
28254 PyThreadState* __tstate = wxPyBeginAllowThreads();
28255 (arg1)->GetSize(arg2,*arg3,*arg4);
28256 wxPyEndAllowThreads(__tstate);
28257 if (PyErr_Occurred()) SWIG_fail;
28258 }
28259 resultobj = SWIG_Py_Void();
28260 if (SWIG_IsTmpObj(res3)) {
28261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28262 } else {
28263 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28265 }
28266 if (SWIG_IsTmpObj(res4)) {
28267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28268 } else {
28269 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28271 }
28272 return resultobj;
28273 fail:
28274 return NULL;
28275 }
28276
28277
28278 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28279 PyObject *obj;
28280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28281 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28282 return SWIG_Py_Void();
28283 }
28284
28285 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28286 return SWIG_Python_InitShadowInstance(args);
28287 }
28288
28289 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28290 PyObject *resultobj = 0;
28291 wxStockGDI *result = 0 ;
28292
28293 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28294 {
28295 PyThreadState* __tstate = wxPyBeginAllowThreads();
28296 result = (wxStockGDI *)new wxStockGDI();
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28301 return resultobj;
28302 fail:
28303 return NULL;
28304 }
28305
28306
28307 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *resultobj = 0;
28309 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
28312 PyObject *swig_obj[1] ;
28313
28314 if (!args) SWIG_fail;
28315 swig_obj[0] = args;
28316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28317 if (!SWIG_IsOK(res1)) {
28318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28319 }
28320 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28321 {
28322 PyThreadState* __tstate = wxPyBeginAllowThreads();
28323 delete arg1;
28324
28325 wxPyEndAllowThreads(__tstate);
28326 if (PyErr_Occurred()) SWIG_fail;
28327 }
28328 resultobj = SWIG_Py_Void();
28329 return resultobj;
28330 fail:
28331 return NULL;
28332 }
28333
28334
28335 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28336 PyObject *resultobj = 0;
28337
28338 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28339 {
28340 PyThreadState* __tstate = wxPyBeginAllowThreads();
28341 wxStockGDI::DeleteAll();
28342 wxPyEndAllowThreads(__tstate);
28343 if (PyErr_Occurred()) SWIG_fail;
28344 }
28345 resultobj = SWIG_Py_Void();
28346 return resultobj;
28347 fail:
28348 return NULL;
28349 }
28350
28351
28352 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28353 PyObject *resultobj = 0;
28354 wxStockGDI *result = 0 ;
28355
28356 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28357 {
28358 PyThreadState* __tstate = wxPyBeginAllowThreads();
28359 {
28360 wxStockGDI &_result_ref = wxStockGDI::instance();
28361 result = (wxStockGDI *) &_result_ref;
28362 }
28363 wxPyEndAllowThreads(__tstate);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 }
28366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28367 return resultobj;
28368 fail:
28369 return NULL;
28370 }
28371
28372
28373 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28374 PyObject *resultobj = 0;
28375 wxStockGDI::Item arg1 ;
28376 wxBrush *result = 0 ;
28377 int val1 ;
28378 int ecode1 = 0 ;
28379 PyObject * obj0 = 0 ;
28380 char * kwnames[] = {
28381 (char *) "item", NULL
28382 };
28383
28384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28385 ecode1 = SWIG_AsVal_int(obj0, &val1);
28386 if (!SWIG_IsOK(ecode1)) {
28387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28388 }
28389 arg1 = static_cast< wxStockGDI::Item >(val1);
28390 {
28391 PyThreadState* __tstate = wxPyBeginAllowThreads();
28392 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28393 wxPyEndAllowThreads(__tstate);
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
28396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28404 PyObject *resultobj = 0;
28405 wxStockGDI::Item arg1 ;
28406 wxColour *result = 0 ;
28407 int val1 ;
28408 int ecode1 = 0 ;
28409 PyObject * obj0 = 0 ;
28410 char * kwnames[] = {
28411 (char *) "item", NULL
28412 };
28413
28414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28415 ecode1 = SWIG_AsVal_int(obj0, &val1);
28416 if (!SWIG_IsOK(ecode1)) {
28417 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28418 }
28419 arg1 = static_cast< wxStockGDI::Item >(val1);
28420 {
28421 PyThreadState* __tstate = wxPyBeginAllowThreads();
28422 result = (wxColour *)wxStockGDI::GetColour(arg1);
28423 wxPyEndAllowThreads(__tstate);
28424 if (PyErr_Occurred()) SWIG_fail;
28425 }
28426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28427 return resultobj;
28428 fail:
28429 return NULL;
28430 }
28431
28432
28433 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28434 PyObject *resultobj = 0;
28435 wxStockGDI::Item arg1 ;
28436 wxCursor *result = 0 ;
28437 int val1 ;
28438 int ecode1 = 0 ;
28439 PyObject * obj0 = 0 ;
28440 char * kwnames[] = {
28441 (char *) "item", NULL
28442 };
28443
28444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28445 ecode1 = SWIG_AsVal_int(obj0, &val1);
28446 if (!SWIG_IsOK(ecode1)) {
28447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28448 }
28449 arg1 = static_cast< wxStockGDI::Item >(val1);
28450 {
28451 PyThreadState* __tstate = wxPyBeginAllowThreads();
28452 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28453 wxPyEndAllowThreads(__tstate);
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
28456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28457 return resultobj;
28458 fail:
28459 return NULL;
28460 }
28461
28462
28463 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28464 PyObject *resultobj = 0;
28465 wxStockGDI::Item arg1 ;
28466 wxPen *result = 0 ;
28467 int val1 ;
28468 int ecode1 = 0 ;
28469 PyObject * obj0 = 0 ;
28470 char * kwnames[] = {
28471 (char *) "item", NULL
28472 };
28473
28474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28475 ecode1 = SWIG_AsVal_int(obj0, &val1);
28476 if (!SWIG_IsOK(ecode1)) {
28477 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28478 }
28479 arg1 = static_cast< wxStockGDI::Item >(val1);
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
28482 result = (wxPen *)wxStockGDI::GetPen(arg1);
28483 wxPyEndAllowThreads(__tstate);
28484 if (PyErr_Occurred()) SWIG_fail;
28485 }
28486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28487 return resultobj;
28488 fail:
28489 return NULL;
28490 }
28491
28492
28493 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28494 PyObject *resultobj = 0;
28495 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28496 wxStockGDI::Item arg2 ;
28497 wxFont *result = 0 ;
28498 void *argp1 = 0 ;
28499 int res1 = 0 ;
28500 int val2 ;
28501 int ecode2 = 0 ;
28502 PyObject * obj0 = 0 ;
28503 PyObject * obj1 = 0 ;
28504 char * kwnames[] = {
28505 (char *) "self",(char *) "item", NULL
28506 };
28507
28508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28510 if (!SWIG_IsOK(res1)) {
28511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28512 }
28513 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28514 ecode2 = SWIG_AsVal_int(obj1, &val2);
28515 if (!SWIG_IsOK(ecode2)) {
28516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28517 }
28518 arg2 = static_cast< wxStockGDI::Item >(val2);
28519 {
28520 PyThreadState* __tstate = wxPyBeginAllowThreads();
28521 result = (wxFont *)(arg1)->GetFont(arg2);
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28526 return resultobj;
28527 fail:
28528 return NULL;
28529 }
28530
28531
28532 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28533 PyObject *obj;
28534 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28535 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28536 return SWIG_Py_Void();
28537 }
28538
28539 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28540 return SWIG_Python_InitShadowInstance(args);
28541 }
28542
28543 SWIGINTERN int NullBitmap_set(PyObject *) {
28544 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28545 return 1;
28546 }
28547
28548
28549 SWIGINTERN PyObject *NullBitmap_get(void) {
28550 PyObject *pyobj = 0;
28551
28552 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28553 return pyobj;
28554 }
28555
28556
28557 SWIGINTERN int NullIcon_set(PyObject *) {
28558 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28559 return 1;
28560 }
28561
28562
28563 SWIGINTERN PyObject *NullIcon_get(void) {
28564 PyObject *pyobj = 0;
28565
28566 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28567 return pyobj;
28568 }
28569
28570
28571 SWIGINTERN int NullCursor_set(PyObject *) {
28572 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28573 return 1;
28574 }
28575
28576
28577 SWIGINTERN PyObject *NullCursor_get(void) {
28578 PyObject *pyobj = 0;
28579
28580 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28581 return pyobj;
28582 }
28583
28584
28585 SWIGINTERN int NullPen_set(PyObject *) {
28586 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28587 return 1;
28588 }
28589
28590
28591 SWIGINTERN PyObject *NullPen_get(void) {
28592 PyObject *pyobj = 0;
28593
28594 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28595 return pyobj;
28596 }
28597
28598
28599 SWIGINTERN int NullBrush_set(PyObject *) {
28600 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28601 return 1;
28602 }
28603
28604
28605 SWIGINTERN PyObject *NullBrush_get(void) {
28606 PyObject *pyobj = 0;
28607
28608 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28609 return pyobj;
28610 }
28611
28612
28613 SWIGINTERN int NullPalette_set(PyObject *) {
28614 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28615 return 1;
28616 }
28617
28618
28619 SWIGINTERN PyObject *NullPalette_get(void) {
28620 PyObject *pyobj = 0;
28621
28622 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28623 return pyobj;
28624 }
28625
28626
28627 SWIGINTERN int NullFont_set(PyObject *) {
28628 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28629 return 1;
28630 }
28631
28632
28633 SWIGINTERN PyObject *NullFont_get(void) {
28634 PyObject *pyobj = 0;
28635
28636 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28637 return pyobj;
28638 }
28639
28640
28641 SWIGINTERN int NullColour_set(PyObject *) {
28642 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28643 return 1;
28644 }
28645
28646
28647 SWIGINTERN PyObject *NullColour_get(void) {
28648 PyObject *pyobj = 0;
28649
28650 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28651 return pyobj;
28652 }
28653
28654
28655 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28656 PyObject *resultobj = 0;
28657 wxGDIObjListBase *result = 0 ;
28658
28659 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28660 {
28661 PyThreadState* __tstate = wxPyBeginAllowThreads();
28662 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28663 wxPyEndAllowThreads(__tstate);
28664 if (PyErr_Occurred()) SWIG_fail;
28665 }
28666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28667 return resultobj;
28668 fail:
28669 return NULL;
28670 }
28671
28672
28673 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28674 PyObject *resultobj = 0;
28675 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28676 void *argp1 = 0 ;
28677 int res1 = 0 ;
28678 PyObject *swig_obj[1] ;
28679
28680 if (!args) SWIG_fail;
28681 swig_obj[0] = args;
28682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28683 if (!SWIG_IsOK(res1)) {
28684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28685 }
28686 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 delete arg1;
28690
28691 wxPyEndAllowThreads(__tstate);
28692 if (PyErr_Occurred()) SWIG_fail;
28693 }
28694 resultobj = SWIG_Py_Void();
28695 return resultobj;
28696 fail:
28697 return NULL;
28698 }
28699
28700
28701 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28702 PyObject *obj;
28703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28704 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28705 return SWIG_Py_Void();
28706 }
28707
28708 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28709 return SWIG_Python_InitShadowInstance(args);
28710 }
28711
28712 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28713 PyObject *resultobj = 0;
28714 wxPenList *arg1 = (wxPenList *) 0 ;
28715 wxColour *arg2 = 0 ;
28716 int arg3 ;
28717 int arg4 ;
28718 wxPen *result = 0 ;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 wxColour temp2 ;
28722 int val3 ;
28723 int ecode3 = 0 ;
28724 int val4 ;
28725 int ecode4 = 0 ;
28726 PyObject * obj0 = 0 ;
28727 PyObject * obj1 = 0 ;
28728 PyObject * obj2 = 0 ;
28729 PyObject * obj3 = 0 ;
28730 char * kwnames[] = {
28731 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28732 };
28733
28734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28736 if (!SWIG_IsOK(res1)) {
28737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28738 }
28739 arg1 = reinterpret_cast< wxPenList * >(argp1);
28740 {
28741 arg2 = &temp2;
28742 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28743 }
28744 ecode3 = SWIG_AsVal_int(obj2, &val3);
28745 if (!SWIG_IsOK(ecode3)) {
28746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28747 }
28748 arg3 = static_cast< int >(val3);
28749 ecode4 = SWIG_AsVal_int(obj3, &val4);
28750 if (!SWIG_IsOK(ecode4)) {
28751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28752 }
28753 arg4 = static_cast< int >(val4);
28754 {
28755 PyThreadState* __tstate = wxPyBeginAllowThreads();
28756 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28757 wxPyEndAllowThreads(__tstate);
28758 if (PyErr_Occurred()) SWIG_fail;
28759 }
28760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28761 return resultobj;
28762 fail:
28763 return NULL;
28764 }
28765
28766
28767 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28768 PyObject *resultobj = 0;
28769 wxPenList *arg1 = (wxPenList *) 0 ;
28770 wxPen *arg2 = (wxPen *) 0 ;
28771 void *argp1 = 0 ;
28772 int res1 = 0 ;
28773 void *argp2 = 0 ;
28774 int res2 = 0 ;
28775 PyObject * obj0 = 0 ;
28776 PyObject * obj1 = 0 ;
28777 char * kwnames[] = {
28778 (char *) "self",(char *) "pen", NULL
28779 };
28780
28781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28783 if (!SWIG_IsOK(res1)) {
28784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28785 }
28786 arg1 = reinterpret_cast< wxPenList * >(argp1);
28787 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28788 if (!SWIG_IsOK(res2)) {
28789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28790 }
28791 arg2 = reinterpret_cast< wxPen * >(argp2);
28792 {
28793 PyThreadState* __tstate = wxPyBeginAllowThreads();
28794 (arg1)->AddPen(arg2);
28795 wxPyEndAllowThreads(__tstate);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 resultobj = SWIG_Py_Void();
28799 return resultobj;
28800 fail:
28801 return NULL;
28802 }
28803
28804
28805 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28806 PyObject *resultobj = 0;
28807 wxPenList *arg1 = (wxPenList *) 0 ;
28808 wxPen *arg2 = (wxPen *) 0 ;
28809 void *argp1 = 0 ;
28810 int res1 = 0 ;
28811 void *argp2 = 0 ;
28812 int res2 = 0 ;
28813 PyObject * obj0 = 0 ;
28814 PyObject * obj1 = 0 ;
28815 char * kwnames[] = {
28816 (char *) "self",(char *) "pen", NULL
28817 };
28818
28819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28821 if (!SWIG_IsOK(res1)) {
28822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28823 }
28824 arg1 = reinterpret_cast< wxPenList * >(argp1);
28825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28826 if (!SWIG_IsOK(res2)) {
28827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28828 }
28829 arg2 = reinterpret_cast< wxPen * >(argp2);
28830 {
28831 PyThreadState* __tstate = wxPyBeginAllowThreads();
28832 (arg1)->RemovePen(arg2);
28833 wxPyEndAllowThreads(__tstate);
28834 if (PyErr_Occurred()) SWIG_fail;
28835 }
28836 resultobj = SWIG_Py_Void();
28837 return resultobj;
28838 fail:
28839 return NULL;
28840 }
28841
28842
28843 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28844 PyObject *obj;
28845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28846 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28847 return SWIG_Py_Void();
28848 }
28849
28850 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28851 PyObject *resultobj = 0;
28852 wxBrushList *arg1 = (wxBrushList *) 0 ;
28853 wxColour *arg2 = 0 ;
28854 int arg3 = (int) wxSOLID ;
28855 wxBrush *result = 0 ;
28856 void *argp1 = 0 ;
28857 int res1 = 0 ;
28858 wxColour temp2 ;
28859 int val3 ;
28860 int ecode3 = 0 ;
28861 PyObject * obj0 = 0 ;
28862 PyObject * obj1 = 0 ;
28863 PyObject * obj2 = 0 ;
28864 char * kwnames[] = {
28865 (char *) "self",(char *) "colour",(char *) "style", NULL
28866 };
28867
28868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28870 if (!SWIG_IsOK(res1)) {
28871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28872 }
28873 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28874 {
28875 arg2 = &temp2;
28876 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28877 }
28878 if (obj2) {
28879 ecode3 = SWIG_AsVal_int(obj2, &val3);
28880 if (!SWIG_IsOK(ecode3)) {
28881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28882 }
28883 arg3 = static_cast< int >(val3);
28884 }
28885 {
28886 PyThreadState* __tstate = wxPyBeginAllowThreads();
28887 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28888 wxPyEndAllowThreads(__tstate);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28892 return resultobj;
28893 fail:
28894 return NULL;
28895 }
28896
28897
28898 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28899 PyObject *resultobj = 0;
28900 wxBrushList *arg1 = (wxBrushList *) 0 ;
28901 wxBrush *arg2 = (wxBrush *) 0 ;
28902 void *argp1 = 0 ;
28903 int res1 = 0 ;
28904 void *argp2 = 0 ;
28905 int res2 = 0 ;
28906 PyObject * obj0 = 0 ;
28907 PyObject * obj1 = 0 ;
28908 char * kwnames[] = {
28909 (char *) "self",(char *) "brush", NULL
28910 };
28911
28912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28914 if (!SWIG_IsOK(res1)) {
28915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28916 }
28917 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28919 if (!SWIG_IsOK(res2)) {
28920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28921 }
28922 arg2 = reinterpret_cast< wxBrush * >(argp2);
28923 {
28924 PyThreadState* __tstate = wxPyBeginAllowThreads();
28925 (arg1)->AddBrush(arg2);
28926 wxPyEndAllowThreads(__tstate);
28927 if (PyErr_Occurred()) SWIG_fail;
28928 }
28929 resultobj = SWIG_Py_Void();
28930 return resultobj;
28931 fail:
28932 return NULL;
28933 }
28934
28935
28936 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28937 PyObject *resultobj = 0;
28938 wxBrushList *arg1 = (wxBrushList *) 0 ;
28939 wxBrush *arg2 = (wxBrush *) 0 ;
28940 void *argp1 = 0 ;
28941 int res1 = 0 ;
28942 void *argp2 = 0 ;
28943 int res2 = 0 ;
28944 PyObject * obj0 = 0 ;
28945 PyObject * obj1 = 0 ;
28946 char * kwnames[] = {
28947 (char *) "self",(char *) "brush", NULL
28948 };
28949
28950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28952 if (!SWIG_IsOK(res1)) {
28953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28954 }
28955 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28957 if (!SWIG_IsOK(res2)) {
28958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28959 }
28960 arg2 = reinterpret_cast< wxBrush * >(argp2);
28961 {
28962 PyThreadState* __tstate = wxPyBeginAllowThreads();
28963 (arg1)->RemoveBrush(arg2);
28964 wxPyEndAllowThreads(__tstate);
28965 if (PyErr_Occurred()) SWIG_fail;
28966 }
28967 resultobj = SWIG_Py_Void();
28968 return resultobj;
28969 fail:
28970 return NULL;
28971 }
28972
28973
28974 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28975 PyObject *obj;
28976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28977 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28978 return SWIG_Py_Void();
28979 }
28980
28981 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28982 PyObject *resultobj = 0;
28983 wxFontList *arg1 = (wxFontList *) 0 ;
28984 int arg2 ;
28985 int arg3 ;
28986 int arg4 ;
28987 int arg5 ;
28988 bool arg6 = (bool) false ;
28989 wxString const &arg7_defvalue = wxPyEmptyString ;
28990 wxString *arg7 = (wxString *) &arg7_defvalue ;
28991 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28992 wxFont *result = 0 ;
28993 void *argp1 = 0 ;
28994 int res1 = 0 ;
28995 int val2 ;
28996 int ecode2 = 0 ;
28997 int val3 ;
28998 int ecode3 = 0 ;
28999 int val4 ;
29000 int ecode4 = 0 ;
29001 int val5 ;
29002 int ecode5 = 0 ;
29003 bool val6 ;
29004 int ecode6 = 0 ;
29005 bool temp7 = false ;
29006 int val8 ;
29007 int ecode8 = 0 ;
29008 PyObject * obj0 = 0 ;
29009 PyObject * obj1 = 0 ;
29010 PyObject * obj2 = 0 ;
29011 PyObject * obj3 = 0 ;
29012 PyObject * obj4 = 0 ;
29013 PyObject * obj5 = 0 ;
29014 PyObject * obj6 = 0 ;
29015 PyObject * obj7 = 0 ;
29016 char * kwnames[] = {
29017 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
29018 };
29019
29020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29022 if (!SWIG_IsOK(res1)) {
29023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29024 }
29025 arg1 = reinterpret_cast< wxFontList * >(argp1);
29026 ecode2 = SWIG_AsVal_int(obj1, &val2);
29027 if (!SWIG_IsOK(ecode2)) {
29028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29029 }
29030 arg2 = static_cast< int >(val2);
29031 ecode3 = SWIG_AsVal_int(obj2, &val3);
29032 if (!SWIG_IsOK(ecode3)) {
29033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29034 }
29035 arg3 = static_cast< int >(val3);
29036 ecode4 = SWIG_AsVal_int(obj3, &val4);
29037 if (!SWIG_IsOK(ecode4)) {
29038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29039 }
29040 arg4 = static_cast< int >(val4);
29041 ecode5 = SWIG_AsVal_int(obj4, &val5);
29042 if (!SWIG_IsOK(ecode5)) {
29043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29044 }
29045 arg5 = static_cast< int >(val5);
29046 if (obj5) {
29047 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29048 if (!SWIG_IsOK(ecode6)) {
29049 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29050 }
29051 arg6 = static_cast< bool >(val6);
29052 }
29053 if (obj6) {
29054 {
29055 arg7 = wxString_in_helper(obj6);
29056 if (arg7 == NULL) SWIG_fail;
29057 temp7 = true;
29058 }
29059 }
29060 if (obj7) {
29061 ecode8 = SWIG_AsVal_int(obj7, &val8);
29062 if (!SWIG_IsOK(ecode8)) {
29063 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
29064 }
29065 arg8 = static_cast< wxFontEncoding >(val8);
29066 }
29067 {
29068 PyThreadState* __tstate = wxPyBeginAllowThreads();
29069 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
29070 wxPyEndAllowThreads(__tstate);
29071 if (PyErr_Occurred()) SWIG_fail;
29072 }
29073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29074 {
29075 if (temp7)
29076 delete arg7;
29077 }
29078 return resultobj;
29079 fail:
29080 {
29081 if (temp7)
29082 delete arg7;
29083 }
29084 return NULL;
29085 }
29086
29087
29088 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29089 PyObject *resultobj = 0;
29090 wxFontList *arg1 = (wxFontList *) 0 ;
29091 wxFont *arg2 = (wxFont *) 0 ;
29092 void *argp1 = 0 ;
29093 int res1 = 0 ;
29094 void *argp2 = 0 ;
29095 int res2 = 0 ;
29096 PyObject * obj0 = 0 ;
29097 PyObject * obj1 = 0 ;
29098 char * kwnames[] = {
29099 (char *) "self",(char *) "font", NULL
29100 };
29101
29102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29104 if (!SWIG_IsOK(res1)) {
29105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29106 }
29107 arg1 = reinterpret_cast< wxFontList * >(argp1);
29108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29109 if (!SWIG_IsOK(res2)) {
29110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
29111 }
29112 arg2 = reinterpret_cast< wxFont * >(argp2);
29113 {
29114 PyThreadState* __tstate = wxPyBeginAllowThreads();
29115 (arg1)->AddFont(arg2);
29116 wxPyEndAllowThreads(__tstate);
29117 if (PyErr_Occurred()) SWIG_fail;
29118 }
29119 resultobj = SWIG_Py_Void();
29120 return resultobj;
29121 fail:
29122 return NULL;
29123 }
29124
29125
29126 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29127 PyObject *resultobj = 0;
29128 wxFontList *arg1 = (wxFontList *) 0 ;
29129 wxFont *arg2 = (wxFont *) 0 ;
29130 void *argp1 = 0 ;
29131 int res1 = 0 ;
29132 void *argp2 = 0 ;
29133 int res2 = 0 ;
29134 PyObject * obj0 = 0 ;
29135 PyObject * obj1 = 0 ;
29136 char * kwnames[] = {
29137 (char *) "self",(char *) "font", NULL
29138 };
29139
29140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29142 if (!SWIG_IsOK(res1)) {
29143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29144 }
29145 arg1 = reinterpret_cast< wxFontList * >(argp1);
29146 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29147 if (!SWIG_IsOK(res2)) {
29148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29149 }
29150 arg2 = reinterpret_cast< wxFont * >(argp2);
29151 {
29152 PyThreadState* __tstate = wxPyBeginAllowThreads();
29153 (arg1)->RemoveFont(arg2);
29154 wxPyEndAllowThreads(__tstate);
29155 if (PyErr_Occurred()) SWIG_fail;
29156 }
29157 resultobj = SWIG_Py_Void();
29158 return resultobj;
29159 fail:
29160 return NULL;
29161 }
29162
29163
29164 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29165 PyObject *obj;
29166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29167 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
29168 return SWIG_Py_Void();
29169 }
29170
29171 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29172 PyObject *resultobj = 0;
29173 wxColourDatabase *result = 0 ;
29174
29175 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29176 {
29177 if (!wxPyCheckForApp()) SWIG_fail;
29178 PyThreadState* __tstate = wxPyBeginAllowThreads();
29179 result = (wxColourDatabase *)new wxColourDatabase();
29180 wxPyEndAllowThreads(__tstate);
29181 if (PyErr_Occurred()) SWIG_fail;
29182 }
29183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29184 return resultobj;
29185 fail:
29186 return NULL;
29187 }
29188
29189
29190 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29191 PyObject *resultobj = 0;
29192 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29193 void *argp1 = 0 ;
29194 int res1 = 0 ;
29195 PyObject *swig_obj[1] ;
29196
29197 if (!args) SWIG_fail;
29198 swig_obj[0] = args;
29199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29200 if (!SWIG_IsOK(res1)) {
29201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29202 }
29203 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29204 {
29205 PyThreadState* __tstate = wxPyBeginAllowThreads();
29206 delete arg1;
29207
29208 wxPyEndAllowThreads(__tstate);
29209 if (PyErr_Occurred()) SWIG_fail;
29210 }
29211 resultobj = SWIG_Py_Void();
29212 return resultobj;
29213 fail:
29214 return NULL;
29215 }
29216
29217
29218 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29219 PyObject *resultobj = 0;
29220 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29221 wxString *arg2 = 0 ;
29222 wxColour result;
29223 void *argp1 = 0 ;
29224 int res1 = 0 ;
29225 bool temp2 = false ;
29226 PyObject * obj0 = 0 ;
29227 PyObject * obj1 = 0 ;
29228 char * kwnames[] = {
29229 (char *) "self",(char *) "name", NULL
29230 };
29231
29232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29234 if (!SWIG_IsOK(res1)) {
29235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29236 }
29237 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29238 {
29239 arg2 = wxString_in_helper(obj1);
29240 if (arg2 == NULL) SWIG_fail;
29241 temp2 = true;
29242 }
29243 {
29244 PyThreadState* __tstate = wxPyBeginAllowThreads();
29245 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29246 wxPyEndAllowThreads(__tstate);
29247 if (PyErr_Occurred()) SWIG_fail;
29248 }
29249 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29250 {
29251 if (temp2)
29252 delete arg2;
29253 }
29254 return resultobj;
29255 fail:
29256 {
29257 if (temp2)
29258 delete arg2;
29259 }
29260 return NULL;
29261 }
29262
29263
29264 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29265 PyObject *resultobj = 0;
29266 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29267 wxColour *arg2 = 0 ;
29268 wxString result;
29269 void *argp1 = 0 ;
29270 int res1 = 0 ;
29271 wxColour temp2 ;
29272 PyObject * obj0 = 0 ;
29273 PyObject * obj1 = 0 ;
29274 char * kwnames[] = {
29275 (char *) "self",(char *) "colour", NULL
29276 };
29277
29278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29280 if (!SWIG_IsOK(res1)) {
29281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29282 }
29283 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29284 {
29285 arg2 = &temp2;
29286 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29287 }
29288 {
29289 PyThreadState* __tstate = wxPyBeginAllowThreads();
29290 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29291 wxPyEndAllowThreads(__tstate);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 }
29294 {
29295 #if wxUSE_UNICODE
29296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29297 #else
29298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29299 #endif
29300 }
29301 return resultobj;
29302 fail:
29303 return NULL;
29304 }
29305
29306
29307 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29310 wxString *arg2 = 0 ;
29311 wxColour *arg3 = 0 ;
29312 void *argp1 = 0 ;
29313 int res1 = 0 ;
29314 bool temp2 = false ;
29315 wxColour temp3 ;
29316 PyObject * obj0 = 0 ;
29317 PyObject * obj1 = 0 ;
29318 PyObject * obj2 = 0 ;
29319 char * kwnames[] = {
29320 (char *) "self",(char *) "name",(char *) "colour", NULL
29321 };
29322
29323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29325 if (!SWIG_IsOK(res1)) {
29326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29327 }
29328 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29329 {
29330 arg2 = wxString_in_helper(obj1);
29331 if (arg2 == NULL) SWIG_fail;
29332 temp2 = true;
29333 }
29334 {
29335 arg3 = &temp3;
29336 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29337 }
29338 {
29339 PyThreadState* __tstate = wxPyBeginAllowThreads();
29340 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29341 wxPyEndAllowThreads(__tstate);
29342 if (PyErr_Occurred()) SWIG_fail;
29343 }
29344 resultobj = SWIG_Py_Void();
29345 {
29346 if (temp2)
29347 delete arg2;
29348 }
29349 return resultobj;
29350 fail:
29351 {
29352 if (temp2)
29353 delete arg2;
29354 }
29355 return NULL;
29356 }
29357
29358
29359 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29360 PyObject *resultobj = 0;
29361 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29362 wxString *arg2 = 0 ;
29363 int arg3 ;
29364 int arg4 ;
29365 int arg5 ;
29366 void *argp1 = 0 ;
29367 int res1 = 0 ;
29368 bool temp2 = false ;
29369 int val3 ;
29370 int ecode3 = 0 ;
29371 int val4 ;
29372 int ecode4 = 0 ;
29373 int val5 ;
29374 int ecode5 = 0 ;
29375 PyObject * obj0 = 0 ;
29376 PyObject * obj1 = 0 ;
29377 PyObject * obj2 = 0 ;
29378 PyObject * obj3 = 0 ;
29379 PyObject * obj4 = 0 ;
29380 char * kwnames[] = {
29381 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29382 };
29383
29384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29386 if (!SWIG_IsOK(res1)) {
29387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29388 }
29389 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29390 {
29391 arg2 = wxString_in_helper(obj1);
29392 if (arg2 == NULL) SWIG_fail;
29393 temp2 = true;
29394 }
29395 ecode3 = SWIG_AsVal_int(obj2, &val3);
29396 if (!SWIG_IsOK(ecode3)) {
29397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29398 }
29399 arg3 = static_cast< int >(val3);
29400 ecode4 = SWIG_AsVal_int(obj3, &val4);
29401 if (!SWIG_IsOK(ecode4)) {
29402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29403 }
29404 arg4 = static_cast< int >(val4);
29405 ecode5 = SWIG_AsVal_int(obj4, &val5);
29406 if (!SWIG_IsOK(ecode5)) {
29407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29408 }
29409 arg5 = static_cast< int >(val5);
29410 {
29411 PyThreadState* __tstate = wxPyBeginAllowThreads();
29412 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29413 wxPyEndAllowThreads(__tstate);
29414 if (PyErr_Occurred()) SWIG_fail;
29415 }
29416 resultobj = SWIG_Py_Void();
29417 {
29418 if (temp2)
29419 delete arg2;
29420 }
29421 return resultobj;
29422 fail:
29423 {
29424 if (temp2)
29425 delete arg2;
29426 }
29427 return NULL;
29428 }
29429
29430
29431 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29432 PyObject *obj;
29433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29434 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29435 return SWIG_Py_Void();
29436 }
29437
29438 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29439 return SWIG_Python_InitShadowInstance(args);
29440 }
29441
29442 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29443 PyObject *resultobj = 0;
29444 wxFontList *result = 0 ;
29445
29446 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29447 {
29448 PyThreadState* __tstate = wxPyBeginAllowThreads();
29449 result = (wxFontList *)_wxPyInitTheFontList();
29450 wxPyEndAllowThreads(__tstate);
29451 if (PyErr_Occurred()) SWIG_fail;
29452 }
29453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29454 return resultobj;
29455 fail:
29456 return NULL;
29457 }
29458
29459
29460 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29461 PyObject *resultobj = 0;
29462 wxPenList *result = 0 ;
29463
29464 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29465 {
29466 PyThreadState* __tstate = wxPyBeginAllowThreads();
29467 result = (wxPenList *)_wxPyInitThePenList();
29468 wxPyEndAllowThreads(__tstate);
29469 if (PyErr_Occurred()) SWIG_fail;
29470 }
29471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29472 return resultobj;
29473 fail:
29474 return NULL;
29475 }
29476
29477
29478 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29479 PyObject *resultobj = 0;
29480 wxBrushList *result = 0 ;
29481
29482 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29483 {
29484 PyThreadState* __tstate = wxPyBeginAllowThreads();
29485 result = (wxBrushList *)_wxPyInitTheBrushList();
29486 wxPyEndAllowThreads(__tstate);
29487 if (PyErr_Occurred()) SWIG_fail;
29488 }
29489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29490 return resultobj;
29491 fail:
29492 return NULL;
29493 }
29494
29495
29496 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29497 PyObject *resultobj = 0;
29498 wxColourDatabase *result = 0 ;
29499
29500 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29501 {
29502 PyThreadState* __tstate = wxPyBeginAllowThreads();
29503 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29504 wxPyEndAllowThreads(__tstate);
29505 if (PyErr_Occurred()) SWIG_fail;
29506 }
29507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29508 return resultobj;
29509 fail:
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29515 PyObject *resultobj = 0;
29516 wxEffects *result = 0 ;
29517
29518 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29519 {
29520 PyThreadState* __tstate = wxPyBeginAllowThreads();
29521 result = (wxEffects *)new wxEffects();
29522 wxPyEndAllowThreads(__tstate);
29523 if (PyErr_Occurred()) SWIG_fail;
29524 }
29525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29526 return resultobj;
29527 fail:
29528 return NULL;
29529 }
29530
29531
29532 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29533 PyObject *resultobj = 0;
29534 wxEffects *arg1 = (wxEffects *) 0 ;
29535 wxColour result;
29536 void *argp1 = 0 ;
29537 int res1 = 0 ;
29538 PyObject *swig_obj[1] ;
29539
29540 if (!args) SWIG_fail;
29541 swig_obj[0] = args;
29542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29543 if (!SWIG_IsOK(res1)) {
29544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29545 }
29546 arg1 = reinterpret_cast< wxEffects * >(argp1);
29547 {
29548 PyThreadState* __tstate = wxPyBeginAllowThreads();
29549 result = ((wxEffects const *)arg1)->GetHighlightColour();
29550 wxPyEndAllowThreads(__tstate);
29551 if (PyErr_Occurred()) SWIG_fail;
29552 }
29553 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29554 return resultobj;
29555 fail:
29556 return NULL;
29557 }
29558
29559
29560 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29561 PyObject *resultobj = 0;
29562 wxEffects *arg1 = (wxEffects *) 0 ;
29563 wxColour result;
29564 void *argp1 = 0 ;
29565 int res1 = 0 ;
29566 PyObject *swig_obj[1] ;
29567
29568 if (!args) SWIG_fail;
29569 swig_obj[0] = args;
29570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29571 if (!SWIG_IsOK(res1)) {
29572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29573 }
29574 arg1 = reinterpret_cast< wxEffects * >(argp1);
29575 {
29576 PyThreadState* __tstate = wxPyBeginAllowThreads();
29577 result = ((wxEffects const *)arg1)->GetLightShadow();
29578 wxPyEndAllowThreads(__tstate);
29579 if (PyErr_Occurred()) SWIG_fail;
29580 }
29581 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29582 return resultobj;
29583 fail:
29584 return NULL;
29585 }
29586
29587
29588 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29589 PyObject *resultobj = 0;
29590 wxEffects *arg1 = (wxEffects *) 0 ;
29591 wxColour result;
29592 void *argp1 = 0 ;
29593 int res1 = 0 ;
29594 PyObject *swig_obj[1] ;
29595
29596 if (!args) SWIG_fail;
29597 swig_obj[0] = args;
29598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29599 if (!SWIG_IsOK(res1)) {
29600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29601 }
29602 arg1 = reinterpret_cast< wxEffects * >(argp1);
29603 {
29604 PyThreadState* __tstate = wxPyBeginAllowThreads();
29605 result = ((wxEffects const *)arg1)->GetFaceColour();
29606 wxPyEndAllowThreads(__tstate);
29607 if (PyErr_Occurred()) SWIG_fail;
29608 }
29609 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29610 return resultobj;
29611 fail:
29612 return NULL;
29613 }
29614
29615
29616 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29617 PyObject *resultobj = 0;
29618 wxEffects *arg1 = (wxEffects *) 0 ;
29619 wxColour result;
29620 void *argp1 = 0 ;
29621 int res1 = 0 ;
29622 PyObject *swig_obj[1] ;
29623
29624 if (!args) SWIG_fail;
29625 swig_obj[0] = args;
29626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29627 if (!SWIG_IsOK(res1)) {
29628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29629 }
29630 arg1 = reinterpret_cast< wxEffects * >(argp1);
29631 {
29632 PyThreadState* __tstate = wxPyBeginAllowThreads();
29633 result = ((wxEffects const *)arg1)->GetMediumShadow();
29634 wxPyEndAllowThreads(__tstate);
29635 if (PyErr_Occurred()) SWIG_fail;
29636 }
29637 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29638 return resultobj;
29639 fail:
29640 return NULL;
29641 }
29642
29643
29644 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29645 PyObject *resultobj = 0;
29646 wxEffects *arg1 = (wxEffects *) 0 ;
29647 wxColour result;
29648 void *argp1 = 0 ;
29649 int res1 = 0 ;
29650 PyObject *swig_obj[1] ;
29651
29652 if (!args) SWIG_fail;
29653 swig_obj[0] = args;
29654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29655 if (!SWIG_IsOK(res1)) {
29656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29657 }
29658 arg1 = reinterpret_cast< wxEffects * >(argp1);
29659 {
29660 PyThreadState* __tstate = wxPyBeginAllowThreads();
29661 result = ((wxEffects const *)arg1)->GetDarkShadow();
29662 wxPyEndAllowThreads(__tstate);
29663 if (PyErr_Occurred()) SWIG_fail;
29664 }
29665 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29666 return resultobj;
29667 fail:
29668 return NULL;
29669 }
29670
29671
29672 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29673 PyObject *resultobj = 0;
29674 wxEffects *arg1 = (wxEffects *) 0 ;
29675 wxColour *arg2 = 0 ;
29676 void *argp1 = 0 ;
29677 int res1 = 0 ;
29678 wxColour temp2 ;
29679 PyObject * obj0 = 0 ;
29680 PyObject * obj1 = 0 ;
29681 char * kwnames[] = {
29682 (char *) "self",(char *) "c", NULL
29683 };
29684
29685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29687 if (!SWIG_IsOK(res1)) {
29688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29689 }
29690 arg1 = reinterpret_cast< wxEffects * >(argp1);
29691 {
29692 arg2 = &temp2;
29693 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29694 }
29695 {
29696 PyThreadState* __tstate = wxPyBeginAllowThreads();
29697 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29698 wxPyEndAllowThreads(__tstate);
29699 if (PyErr_Occurred()) SWIG_fail;
29700 }
29701 resultobj = SWIG_Py_Void();
29702 return resultobj;
29703 fail:
29704 return NULL;
29705 }
29706
29707
29708 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29709 PyObject *resultobj = 0;
29710 wxEffects *arg1 = (wxEffects *) 0 ;
29711 wxColour *arg2 = 0 ;
29712 void *argp1 = 0 ;
29713 int res1 = 0 ;
29714 wxColour temp2 ;
29715 PyObject * obj0 = 0 ;
29716 PyObject * obj1 = 0 ;
29717 char * kwnames[] = {
29718 (char *) "self",(char *) "c", NULL
29719 };
29720
29721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29723 if (!SWIG_IsOK(res1)) {
29724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29725 }
29726 arg1 = reinterpret_cast< wxEffects * >(argp1);
29727 {
29728 arg2 = &temp2;
29729 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29730 }
29731 {
29732 PyThreadState* __tstate = wxPyBeginAllowThreads();
29733 (arg1)->SetLightShadow((wxColour const &)*arg2);
29734 wxPyEndAllowThreads(__tstate);
29735 if (PyErr_Occurred()) SWIG_fail;
29736 }
29737 resultobj = SWIG_Py_Void();
29738 return resultobj;
29739 fail:
29740 return NULL;
29741 }
29742
29743
29744 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29745 PyObject *resultobj = 0;
29746 wxEffects *arg1 = (wxEffects *) 0 ;
29747 wxColour *arg2 = 0 ;
29748 void *argp1 = 0 ;
29749 int res1 = 0 ;
29750 wxColour temp2 ;
29751 PyObject * obj0 = 0 ;
29752 PyObject * obj1 = 0 ;
29753 char * kwnames[] = {
29754 (char *) "self",(char *) "c", NULL
29755 };
29756
29757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29759 if (!SWIG_IsOK(res1)) {
29760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29761 }
29762 arg1 = reinterpret_cast< wxEffects * >(argp1);
29763 {
29764 arg2 = &temp2;
29765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29766 }
29767 {
29768 PyThreadState* __tstate = wxPyBeginAllowThreads();
29769 (arg1)->SetFaceColour((wxColour const &)*arg2);
29770 wxPyEndAllowThreads(__tstate);
29771 if (PyErr_Occurred()) SWIG_fail;
29772 }
29773 resultobj = SWIG_Py_Void();
29774 return resultobj;
29775 fail:
29776 return NULL;
29777 }
29778
29779
29780 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29781 PyObject *resultobj = 0;
29782 wxEffects *arg1 = (wxEffects *) 0 ;
29783 wxColour *arg2 = 0 ;
29784 void *argp1 = 0 ;
29785 int res1 = 0 ;
29786 wxColour temp2 ;
29787 PyObject * obj0 = 0 ;
29788 PyObject * obj1 = 0 ;
29789 char * kwnames[] = {
29790 (char *) "self",(char *) "c", NULL
29791 };
29792
29793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29795 if (!SWIG_IsOK(res1)) {
29796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29797 }
29798 arg1 = reinterpret_cast< wxEffects * >(argp1);
29799 {
29800 arg2 = &temp2;
29801 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29802 }
29803 {
29804 PyThreadState* __tstate = wxPyBeginAllowThreads();
29805 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29806 wxPyEndAllowThreads(__tstate);
29807 if (PyErr_Occurred()) SWIG_fail;
29808 }
29809 resultobj = SWIG_Py_Void();
29810 return resultobj;
29811 fail:
29812 return NULL;
29813 }
29814
29815
29816 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29817 PyObject *resultobj = 0;
29818 wxEffects *arg1 = (wxEffects *) 0 ;
29819 wxColour *arg2 = 0 ;
29820 void *argp1 = 0 ;
29821 int res1 = 0 ;
29822 wxColour temp2 ;
29823 PyObject * obj0 = 0 ;
29824 PyObject * obj1 = 0 ;
29825 char * kwnames[] = {
29826 (char *) "self",(char *) "c", NULL
29827 };
29828
29829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29831 if (!SWIG_IsOK(res1)) {
29832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29833 }
29834 arg1 = reinterpret_cast< wxEffects * >(argp1);
29835 {
29836 arg2 = &temp2;
29837 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29838 }
29839 {
29840 PyThreadState* __tstate = wxPyBeginAllowThreads();
29841 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29842 wxPyEndAllowThreads(__tstate);
29843 if (PyErr_Occurred()) SWIG_fail;
29844 }
29845 resultobj = SWIG_Py_Void();
29846 return resultobj;
29847 fail:
29848 return NULL;
29849 }
29850
29851
29852 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29853 PyObject *resultobj = 0;
29854 wxEffects *arg1 = (wxEffects *) 0 ;
29855 wxColour *arg2 = 0 ;
29856 wxColour *arg3 = 0 ;
29857 wxColour *arg4 = 0 ;
29858 wxColour *arg5 = 0 ;
29859 wxColour *arg6 = 0 ;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 wxColour temp2 ;
29863 wxColour temp3 ;
29864 wxColour temp4 ;
29865 wxColour temp5 ;
29866 wxColour temp6 ;
29867 PyObject * obj0 = 0 ;
29868 PyObject * obj1 = 0 ;
29869 PyObject * obj2 = 0 ;
29870 PyObject * obj3 = 0 ;
29871 PyObject * obj4 = 0 ;
29872 PyObject * obj5 = 0 ;
29873 char * kwnames[] = {
29874 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29875 };
29876
29877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29879 if (!SWIG_IsOK(res1)) {
29880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29881 }
29882 arg1 = reinterpret_cast< wxEffects * >(argp1);
29883 {
29884 arg2 = &temp2;
29885 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29886 }
29887 {
29888 arg3 = &temp3;
29889 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29890 }
29891 {
29892 arg4 = &temp4;
29893 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29894 }
29895 {
29896 arg5 = &temp5;
29897 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29898 }
29899 {
29900 arg6 = &temp6;
29901 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29902 }
29903 {
29904 PyThreadState* __tstate = wxPyBeginAllowThreads();
29905 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29906 wxPyEndAllowThreads(__tstate);
29907 if (PyErr_Occurred()) SWIG_fail;
29908 }
29909 resultobj = SWIG_Py_Void();
29910 return resultobj;
29911 fail:
29912 return NULL;
29913 }
29914
29915
29916 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29917 PyObject *resultobj = 0;
29918 wxEffects *arg1 = (wxEffects *) 0 ;
29919 wxDC *arg2 = 0 ;
29920 wxRect *arg3 = 0 ;
29921 int arg4 = (int) 1 ;
29922 void *argp1 = 0 ;
29923 int res1 = 0 ;
29924 void *argp2 = 0 ;
29925 int res2 = 0 ;
29926 wxRect temp3 ;
29927 int val4 ;
29928 int ecode4 = 0 ;
29929 PyObject * obj0 = 0 ;
29930 PyObject * obj1 = 0 ;
29931 PyObject * obj2 = 0 ;
29932 PyObject * obj3 = 0 ;
29933 char * kwnames[] = {
29934 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29935 };
29936
29937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29939 if (!SWIG_IsOK(res1)) {
29940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29941 }
29942 arg1 = reinterpret_cast< wxEffects * >(argp1);
29943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29944 if (!SWIG_IsOK(res2)) {
29945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29946 }
29947 if (!argp2) {
29948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29949 }
29950 arg2 = reinterpret_cast< wxDC * >(argp2);
29951 {
29952 arg3 = &temp3;
29953 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29954 }
29955 if (obj3) {
29956 ecode4 = SWIG_AsVal_int(obj3, &val4);
29957 if (!SWIG_IsOK(ecode4)) {
29958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29959 }
29960 arg4 = static_cast< int >(val4);
29961 }
29962 {
29963 PyThreadState* __tstate = wxPyBeginAllowThreads();
29964 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29965 wxPyEndAllowThreads(__tstate);
29966 if (PyErr_Occurred()) SWIG_fail;
29967 }
29968 resultobj = SWIG_Py_Void();
29969 return resultobj;
29970 fail:
29971 return NULL;
29972 }
29973
29974
29975 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29976 PyObject *resultobj = 0;
29977 wxEffects *arg1 = (wxEffects *) 0 ;
29978 wxRect *arg2 = 0 ;
29979 wxDC *arg3 = 0 ;
29980 wxBitmap *arg4 = 0 ;
29981 bool result;
29982 void *argp1 = 0 ;
29983 int res1 = 0 ;
29984 wxRect temp2 ;
29985 void *argp3 = 0 ;
29986 int res3 = 0 ;
29987 void *argp4 = 0 ;
29988 int res4 = 0 ;
29989 PyObject * obj0 = 0 ;
29990 PyObject * obj1 = 0 ;
29991 PyObject * obj2 = 0 ;
29992 PyObject * obj3 = 0 ;
29993 char * kwnames[] = {
29994 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29995 };
29996
29997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29999 if (!SWIG_IsOK(res1)) {
30000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30001 }
30002 arg1 = reinterpret_cast< wxEffects * >(argp1);
30003 {
30004 arg2 = &temp2;
30005 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30006 }
30007 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30008 if (!SWIG_IsOK(res3)) {
30009 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30010 }
30011 if (!argp3) {
30012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30013 }
30014 arg3 = reinterpret_cast< wxDC * >(argp3);
30015 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30016 if (!SWIG_IsOK(res4)) {
30017 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30018 }
30019 if (!argp4) {
30020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30021 }
30022 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30023 {
30024 PyThreadState* __tstate = wxPyBeginAllowThreads();
30025 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30026 wxPyEndAllowThreads(__tstate);
30027 if (PyErr_Occurred()) SWIG_fail;
30028 }
30029 {
30030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30031 }
30032 return resultobj;
30033 fail:
30034 return NULL;
30035 }
30036
30037
30038 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30039 PyObject *obj;
30040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30041 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30042 return SWIG_Py_Void();
30043 }
30044
30045 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30046 return SWIG_Python_InitShadowInstance(args);
30047 }
30048
30049 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30050 PyObject *resultobj = 0;
30051 int arg1 ;
30052 int arg2 ;
30053 bool arg3 ;
30054 wxSplitterRenderParams *result = 0 ;
30055 int val1 ;
30056 int ecode1 = 0 ;
30057 int val2 ;
30058 int ecode2 = 0 ;
30059 bool val3 ;
30060 int ecode3 = 0 ;
30061 PyObject * obj0 = 0 ;
30062 PyObject * obj1 = 0 ;
30063 PyObject * obj2 = 0 ;
30064 char * kwnames[] = {
30065 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30066 };
30067
30068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30069 ecode1 = SWIG_AsVal_int(obj0, &val1);
30070 if (!SWIG_IsOK(ecode1)) {
30071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30072 }
30073 arg1 = static_cast< int >(val1);
30074 ecode2 = SWIG_AsVal_int(obj1, &val2);
30075 if (!SWIG_IsOK(ecode2)) {
30076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30077 }
30078 arg2 = static_cast< int >(val2);
30079 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30080 if (!SWIG_IsOK(ecode3)) {
30081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30082 }
30083 arg3 = static_cast< bool >(val3);
30084 {
30085 PyThreadState* __tstate = wxPyBeginAllowThreads();
30086 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30087 wxPyEndAllowThreads(__tstate);
30088 if (PyErr_Occurred()) SWIG_fail;
30089 }
30090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30091 return resultobj;
30092 fail:
30093 return NULL;
30094 }
30095
30096
30097 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30098 PyObject *resultobj = 0;
30099 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30100 void *argp1 = 0 ;
30101 int res1 = 0 ;
30102 PyObject *swig_obj[1] ;
30103
30104 if (!args) SWIG_fail;
30105 swig_obj[0] = args;
30106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30109 }
30110 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30111 {
30112 PyThreadState* __tstate = wxPyBeginAllowThreads();
30113 delete arg1;
30114
30115 wxPyEndAllowThreads(__tstate);
30116 if (PyErr_Occurred()) SWIG_fail;
30117 }
30118 resultobj = SWIG_Py_Void();
30119 return resultobj;
30120 fail:
30121 return NULL;
30122 }
30123
30124
30125 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30126 PyObject *resultobj = 0;
30127 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30128 int result;
30129 void *argp1 = 0 ;
30130 int res1 = 0 ;
30131 PyObject *swig_obj[1] ;
30132
30133 if (!args) SWIG_fail;
30134 swig_obj[0] = args;
30135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30136 if (!SWIG_IsOK(res1)) {
30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30138 }
30139 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30140 result = (int)(int) ((arg1)->widthSash);
30141 resultobj = SWIG_From_int(static_cast< int >(result));
30142 return resultobj;
30143 fail:
30144 return NULL;
30145 }
30146
30147
30148 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30149 PyObject *resultobj = 0;
30150 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30151 int result;
30152 void *argp1 = 0 ;
30153 int res1 = 0 ;
30154 PyObject *swig_obj[1] ;
30155
30156 if (!args) SWIG_fail;
30157 swig_obj[0] = args;
30158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30159 if (!SWIG_IsOK(res1)) {
30160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30161 }
30162 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30163 result = (int)(int) ((arg1)->border);
30164 resultobj = SWIG_From_int(static_cast< int >(result));
30165 return resultobj;
30166 fail:
30167 return NULL;
30168 }
30169
30170
30171 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30172 PyObject *resultobj = 0;
30173 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30174 bool result;
30175 void *argp1 = 0 ;
30176 int res1 = 0 ;
30177 PyObject *swig_obj[1] ;
30178
30179 if (!args) SWIG_fail;
30180 swig_obj[0] = args;
30181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30182 if (!SWIG_IsOK(res1)) {
30183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30184 }
30185 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30186 result = (bool)(bool) ((arg1)->isHotSensitive);
30187 resultobj = SWIG_From_bool(static_cast< bool >(result));
30188 return resultobj;
30189 fail:
30190 return NULL;
30191 }
30192
30193
30194 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30195 PyObject *obj;
30196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30197 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30198 return SWIG_Py_Void();
30199 }
30200
30201 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30202 return SWIG_Python_InitShadowInstance(args);
30203 }
30204
30205 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30206 PyObject *resultobj = 0;
30207 wxHeaderButtonParams *result = 0 ;
30208
30209 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30210 {
30211 PyThreadState* __tstate = wxPyBeginAllowThreads();
30212 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30213 wxPyEndAllowThreads(__tstate);
30214 if (PyErr_Occurred()) SWIG_fail;
30215 }
30216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30217 return resultobj;
30218 fail:
30219 return NULL;
30220 }
30221
30222
30223 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30224 PyObject *resultobj = 0;
30225 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30226 void *argp1 = 0 ;
30227 int res1 = 0 ;
30228 PyObject *swig_obj[1] ;
30229
30230 if (!args) SWIG_fail;
30231 swig_obj[0] = args;
30232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30233 if (!SWIG_IsOK(res1)) {
30234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30235 }
30236 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30237 {
30238 PyThreadState* __tstate = wxPyBeginAllowThreads();
30239 delete arg1;
30240
30241 wxPyEndAllowThreads(__tstate);
30242 if (PyErr_Occurred()) SWIG_fail;
30243 }
30244 resultobj = SWIG_Py_Void();
30245 return resultobj;
30246 fail:
30247 return NULL;
30248 }
30249
30250
30251 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30252 PyObject *resultobj = 0;
30253 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30254 wxColour *arg2 = (wxColour *) 0 ;
30255 void *argp1 = 0 ;
30256 int res1 = 0 ;
30257 wxColour temp2 ;
30258 PyObject *swig_obj[2] ;
30259
30260 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30262 if (!SWIG_IsOK(res1)) {
30263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30264 }
30265 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30266 {
30267 arg2 = &temp2;
30268 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30269 }
30270 if (arg1) (arg1)->m_arrowColour = *arg2;
30271
30272 resultobj = SWIG_Py_Void();
30273 return resultobj;
30274 fail:
30275 return NULL;
30276 }
30277
30278
30279 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30280 PyObject *resultobj = 0;
30281 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30282 wxColour *result = 0 ;
30283 void *argp1 = 0 ;
30284 int res1 = 0 ;
30285 PyObject *swig_obj[1] ;
30286
30287 if (!args) SWIG_fail;
30288 swig_obj[0] = args;
30289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30290 if (!SWIG_IsOK(res1)) {
30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30292 }
30293 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30294 result = (wxColour *)& ((arg1)->m_arrowColour);
30295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30296 return resultobj;
30297 fail:
30298 return NULL;
30299 }
30300
30301
30302 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30303 PyObject *resultobj = 0;
30304 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30305 wxColour *arg2 = (wxColour *) 0 ;
30306 void *argp1 = 0 ;
30307 int res1 = 0 ;
30308 wxColour temp2 ;
30309 PyObject *swig_obj[2] ;
30310
30311 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30313 if (!SWIG_IsOK(res1)) {
30314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30315 }
30316 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30317 {
30318 arg2 = &temp2;
30319 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30320 }
30321 if (arg1) (arg1)->m_selectionColour = *arg2;
30322
30323 resultobj = SWIG_Py_Void();
30324 return resultobj;
30325 fail:
30326 return NULL;
30327 }
30328
30329
30330 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30331 PyObject *resultobj = 0;
30332 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30333 wxColour *result = 0 ;
30334 void *argp1 = 0 ;
30335 int res1 = 0 ;
30336 PyObject *swig_obj[1] ;
30337
30338 if (!args) SWIG_fail;
30339 swig_obj[0] = args;
30340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30341 if (!SWIG_IsOK(res1)) {
30342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30343 }
30344 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30345 result = (wxColour *)& ((arg1)->m_selectionColour);
30346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30354 PyObject *resultobj = 0;
30355 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30356 wxString *arg2 = (wxString *) 0 ;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 bool temp2 = false ;
30360 PyObject *swig_obj[2] ;
30361
30362 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30364 if (!SWIG_IsOK(res1)) {
30365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30366 }
30367 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30368 {
30369 arg2 = wxString_in_helper(swig_obj[1]);
30370 if (arg2 == NULL) SWIG_fail;
30371 temp2 = true;
30372 }
30373 if (arg1) (arg1)->m_labelText = *arg2;
30374
30375 resultobj = SWIG_Py_Void();
30376 {
30377 if (temp2)
30378 delete arg2;
30379 }
30380 return resultobj;
30381 fail:
30382 {
30383 if (temp2)
30384 delete arg2;
30385 }
30386 return NULL;
30387 }
30388
30389
30390 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30391 PyObject *resultobj = 0;
30392 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30393 wxString *result = 0 ;
30394 void *argp1 = 0 ;
30395 int res1 = 0 ;
30396 PyObject *swig_obj[1] ;
30397
30398 if (!args) SWIG_fail;
30399 swig_obj[0] = args;
30400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30401 if (!SWIG_IsOK(res1)) {
30402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30403 }
30404 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30405 result = (wxString *)& ((arg1)->m_labelText);
30406 {
30407 #if wxUSE_UNICODE
30408 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30409 #else
30410 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30411 #endif
30412 }
30413 return resultobj;
30414 fail:
30415 return NULL;
30416 }
30417
30418
30419 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30420 PyObject *resultobj = 0;
30421 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30422 wxFont *arg2 = (wxFont *) 0 ;
30423 void *argp1 = 0 ;
30424 int res1 = 0 ;
30425 void *argp2 = 0 ;
30426 int res2 = 0 ;
30427 PyObject *swig_obj[2] ;
30428
30429 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30431 if (!SWIG_IsOK(res1)) {
30432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30433 }
30434 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30435 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30436 if (!SWIG_IsOK(res2)) {
30437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30438 }
30439 arg2 = reinterpret_cast< wxFont * >(argp2);
30440 if (arg1) (arg1)->m_labelFont = *arg2;
30441
30442 resultobj = SWIG_Py_Void();
30443 return resultobj;
30444 fail:
30445 return NULL;
30446 }
30447
30448
30449 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30450 PyObject *resultobj = 0;
30451 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30452 wxFont *result = 0 ;
30453 void *argp1 = 0 ;
30454 int res1 = 0 ;
30455 PyObject *swig_obj[1] ;
30456
30457 if (!args) SWIG_fail;
30458 swig_obj[0] = args;
30459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30460 if (!SWIG_IsOK(res1)) {
30461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30462 }
30463 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30464 result = (wxFont *)& ((arg1)->m_labelFont);
30465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30466 return resultobj;
30467 fail:
30468 return NULL;
30469 }
30470
30471
30472 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30473 PyObject *resultobj = 0;
30474 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30475 wxColour *arg2 = (wxColour *) 0 ;
30476 void *argp1 = 0 ;
30477 int res1 = 0 ;
30478 wxColour temp2 ;
30479 PyObject *swig_obj[2] ;
30480
30481 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30483 if (!SWIG_IsOK(res1)) {
30484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30485 }
30486 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30487 {
30488 arg2 = &temp2;
30489 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30490 }
30491 if (arg1) (arg1)->m_labelColour = *arg2;
30492
30493 resultobj = SWIG_Py_Void();
30494 return resultobj;
30495 fail:
30496 return NULL;
30497 }
30498
30499
30500 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30501 PyObject *resultobj = 0;
30502 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30503 wxColour *result = 0 ;
30504 void *argp1 = 0 ;
30505 int res1 = 0 ;
30506 PyObject *swig_obj[1] ;
30507
30508 if (!args) SWIG_fail;
30509 swig_obj[0] = args;
30510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30511 if (!SWIG_IsOK(res1)) {
30512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30513 }
30514 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30515 result = (wxColour *)& ((arg1)->m_labelColour);
30516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30517 return resultobj;
30518 fail:
30519 return NULL;
30520 }
30521
30522
30523 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30524 PyObject *resultobj = 0;
30525 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30526 wxBitmap *arg2 = (wxBitmap *) 0 ;
30527 void *argp1 = 0 ;
30528 int res1 = 0 ;
30529 void *argp2 = 0 ;
30530 int res2 = 0 ;
30531 PyObject *swig_obj[2] ;
30532
30533 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30535 if (!SWIG_IsOK(res1)) {
30536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30537 }
30538 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30539 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30540 if (!SWIG_IsOK(res2)) {
30541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30542 }
30543 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30544 if (arg1) (arg1)->m_labelBitmap = *arg2;
30545
30546 resultobj = SWIG_Py_Void();
30547 return resultobj;
30548 fail:
30549 return NULL;
30550 }
30551
30552
30553 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30554 PyObject *resultobj = 0;
30555 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30556 wxBitmap *result = 0 ;
30557 void *argp1 = 0 ;
30558 int res1 = 0 ;
30559 PyObject *swig_obj[1] ;
30560
30561 if (!args) SWIG_fail;
30562 swig_obj[0] = args;
30563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30564 if (!SWIG_IsOK(res1)) {
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30566 }
30567 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30568 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30570 return resultobj;
30571 fail:
30572 return NULL;
30573 }
30574
30575
30576 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30577 PyObject *resultobj = 0;
30578 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30579 int arg2 ;
30580 void *argp1 = 0 ;
30581 int res1 = 0 ;
30582 int val2 ;
30583 int ecode2 = 0 ;
30584 PyObject *swig_obj[2] ;
30585
30586 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30588 if (!SWIG_IsOK(res1)) {
30589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30590 }
30591 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30592 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30593 if (!SWIG_IsOK(ecode2)) {
30594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30595 }
30596 arg2 = static_cast< int >(val2);
30597 if (arg1) (arg1)->m_labelAlignment = arg2;
30598
30599 resultobj = SWIG_Py_Void();
30600 return resultobj;
30601 fail:
30602 return NULL;
30603 }
30604
30605
30606 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30607 PyObject *resultobj = 0;
30608 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30609 int result;
30610 void *argp1 = 0 ;
30611 int res1 = 0 ;
30612 PyObject *swig_obj[1] ;
30613
30614 if (!args) SWIG_fail;
30615 swig_obj[0] = args;
30616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30617 if (!SWIG_IsOK(res1)) {
30618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30619 }
30620 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30621 result = (int) ((arg1)->m_labelAlignment);
30622 resultobj = SWIG_From_int(static_cast< int >(result));
30623 return resultobj;
30624 fail:
30625 return NULL;
30626 }
30627
30628
30629 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30630 PyObject *obj;
30631 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30632 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30633 return SWIG_Py_Void();
30634 }
30635
30636 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30637 return SWIG_Python_InitShadowInstance(args);
30638 }
30639
30640 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30641 PyObject *resultobj = 0;
30642 int arg1 ;
30643 int arg2 ;
30644 wxRendererVersion *result = 0 ;
30645 int val1 ;
30646 int ecode1 = 0 ;
30647 int val2 ;
30648 int ecode2 = 0 ;
30649 PyObject * obj0 = 0 ;
30650 PyObject * obj1 = 0 ;
30651 char * kwnames[] = {
30652 (char *) "version_",(char *) "age_", NULL
30653 };
30654
30655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30656 ecode1 = SWIG_AsVal_int(obj0, &val1);
30657 if (!SWIG_IsOK(ecode1)) {
30658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30659 }
30660 arg1 = static_cast< int >(val1);
30661 ecode2 = SWIG_AsVal_int(obj1, &val2);
30662 if (!SWIG_IsOK(ecode2)) {
30663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30664 }
30665 arg2 = static_cast< int >(val2);
30666 {
30667 PyThreadState* __tstate = wxPyBeginAllowThreads();
30668 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30669 wxPyEndAllowThreads(__tstate);
30670 if (PyErr_Occurred()) SWIG_fail;
30671 }
30672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30673 return resultobj;
30674 fail:
30675 return NULL;
30676 }
30677
30678
30679 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30680 PyObject *resultobj = 0;
30681 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30682 void *argp1 = 0 ;
30683 int res1 = 0 ;
30684 PyObject *swig_obj[1] ;
30685
30686 if (!args) SWIG_fail;
30687 swig_obj[0] = args;
30688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30689 if (!SWIG_IsOK(res1)) {
30690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30691 }
30692 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30693 {
30694 PyThreadState* __tstate = wxPyBeginAllowThreads();
30695 delete arg1;
30696
30697 wxPyEndAllowThreads(__tstate);
30698 if (PyErr_Occurred()) SWIG_fail;
30699 }
30700 resultobj = SWIG_Py_Void();
30701 return resultobj;
30702 fail:
30703 return NULL;
30704 }
30705
30706
30707 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30708 PyObject *resultobj = 0;
30709 wxRendererVersion *arg1 = 0 ;
30710 bool result;
30711 void *argp1 = 0 ;
30712 int res1 = 0 ;
30713 PyObject * obj0 = 0 ;
30714 char * kwnames[] = {
30715 (char *) "ver", NULL
30716 };
30717
30718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30719 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30720 if (!SWIG_IsOK(res1)) {
30721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30722 }
30723 if (!argp1) {
30724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30725 }
30726 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30727 {
30728 PyThreadState* __tstate = wxPyBeginAllowThreads();
30729 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30730 wxPyEndAllowThreads(__tstate);
30731 if (PyErr_Occurred()) SWIG_fail;
30732 }
30733 {
30734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30735 }
30736 return resultobj;
30737 fail:
30738 return NULL;
30739 }
30740
30741
30742 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30743 PyObject *resultobj = 0;
30744 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30745 int result;
30746 void *argp1 = 0 ;
30747 int res1 = 0 ;
30748 PyObject *swig_obj[1] ;
30749
30750 if (!args) SWIG_fail;
30751 swig_obj[0] = args;
30752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30753 if (!SWIG_IsOK(res1)) {
30754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30755 }
30756 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30757 result = (int)(int) ((arg1)->version);
30758 resultobj = SWIG_From_int(static_cast< int >(result));
30759 return resultobj;
30760 fail:
30761 return NULL;
30762 }
30763
30764
30765 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30766 PyObject *resultobj = 0;
30767 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30768 int result;
30769 void *argp1 = 0 ;
30770 int res1 = 0 ;
30771 PyObject *swig_obj[1] ;
30772
30773 if (!args) SWIG_fail;
30774 swig_obj[0] = args;
30775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30776 if (!SWIG_IsOK(res1)) {
30777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30778 }
30779 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30780 result = (int)(int) ((arg1)->age);
30781 resultobj = SWIG_From_int(static_cast< int >(result));
30782 return resultobj;
30783 fail:
30784 return NULL;
30785 }
30786
30787
30788 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30789 PyObject *obj;
30790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30791 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30792 return SWIG_Py_Void();
30793 }
30794
30795 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30796 return SWIG_Python_InitShadowInstance(args);
30797 }
30798
30799 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30800 PyObject *resultobj = 0;
30801 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30802 wxWindow *arg2 = (wxWindow *) 0 ;
30803 wxDC *arg3 = 0 ;
30804 wxRect *arg4 = 0 ;
30805 int arg5 = (int) 0 ;
30806 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30807 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30808 void *argp1 = 0 ;
30809 int res1 = 0 ;
30810 void *argp2 = 0 ;
30811 int res2 = 0 ;
30812 void *argp3 = 0 ;
30813 int res3 = 0 ;
30814 wxRect temp4 ;
30815 int val5 ;
30816 int ecode5 = 0 ;
30817 int val6 ;
30818 int ecode6 = 0 ;
30819 void *argp7 = 0 ;
30820 int res7 = 0 ;
30821 PyObject * obj0 = 0 ;
30822 PyObject * obj1 = 0 ;
30823 PyObject * obj2 = 0 ;
30824 PyObject * obj3 = 0 ;
30825 PyObject * obj4 = 0 ;
30826 PyObject * obj5 = 0 ;
30827 PyObject * obj6 = 0 ;
30828 char * kwnames[] = {
30829 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30830 };
30831
30832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30834 if (!SWIG_IsOK(res1)) {
30835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30836 }
30837 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30838 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30839 if (!SWIG_IsOK(res2)) {
30840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30841 }
30842 arg2 = reinterpret_cast< wxWindow * >(argp2);
30843 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30844 if (!SWIG_IsOK(res3)) {
30845 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30846 }
30847 if (!argp3) {
30848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30849 }
30850 arg3 = reinterpret_cast< wxDC * >(argp3);
30851 {
30852 arg4 = &temp4;
30853 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30854 }
30855 if (obj4) {
30856 ecode5 = SWIG_AsVal_int(obj4, &val5);
30857 if (!SWIG_IsOK(ecode5)) {
30858 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30859 }
30860 arg5 = static_cast< int >(val5);
30861 }
30862 if (obj5) {
30863 ecode6 = SWIG_AsVal_int(obj5, &val6);
30864 if (!SWIG_IsOK(ecode6)) {
30865 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30866 }
30867 arg6 = static_cast< wxHeaderSortIconType >(val6);
30868 }
30869 if (obj6) {
30870 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30871 if (!SWIG_IsOK(res7)) {
30872 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30873 }
30874 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30875 }
30876 {
30877 PyThreadState* __tstate = wxPyBeginAllowThreads();
30878 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30879 wxPyEndAllowThreads(__tstate);
30880 if (PyErr_Occurred()) SWIG_fail;
30881 }
30882 resultobj = SWIG_Py_Void();
30883 return resultobj;
30884 fail:
30885 return NULL;
30886 }
30887
30888
30889 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30890 PyObject *resultobj = 0;
30891 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30892 wxWindow *arg2 = (wxWindow *) 0 ;
30893 wxDC *arg3 = 0 ;
30894 wxRect *arg4 = 0 ;
30895 int arg5 = (int) 0 ;
30896 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30897 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30898 void *argp1 = 0 ;
30899 int res1 = 0 ;
30900 void *argp2 = 0 ;
30901 int res2 = 0 ;
30902 void *argp3 = 0 ;
30903 int res3 = 0 ;
30904 wxRect temp4 ;
30905 int val5 ;
30906 int ecode5 = 0 ;
30907 int val6 ;
30908 int ecode6 = 0 ;
30909 void *argp7 = 0 ;
30910 int res7 = 0 ;
30911 PyObject * obj0 = 0 ;
30912 PyObject * obj1 = 0 ;
30913 PyObject * obj2 = 0 ;
30914 PyObject * obj3 = 0 ;
30915 PyObject * obj4 = 0 ;
30916 PyObject * obj5 = 0 ;
30917 PyObject * obj6 = 0 ;
30918 char * kwnames[] = {
30919 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30920 };
30921
30922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30924 if (!SWIG_IsOK(res1)) {
30925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30926 }
30927 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30928 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30929 if (!SWIG_IsOK(res2)) {
30930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30931 }
30932 arg2 = reinterpret_cast< wxWindow * >(argp2);
30933 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30934 if (!SWIG_IsOK(res3)) {
30935 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30936 }
30937 if (!argp3) {
30938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30939 }
30940 arg3 = reinterpret_cast< wxDC * >(argp3);
30941 {
30942 arg4 = &temp4;
30943 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30944 }
30945 if (obj4) {
30946 ecode5 = SWIG_AsVal_int(obj4, &val5);
30947 if (!SWIG_IsOK(ecode5)) {
30948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30949 }
30950 arg5 = static_cast< int >(val5);
30951 }
30952 if (obj5) {
30953 ecode6 = SWIG_AsVal_int(obj5, &val6);
30954 if (!SWIG_IsOK(ecode6)) {
30955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30956 }
30957 arg6 = static_cast< wxHeaderSortIconType >(val6);
30958 }
30959 if (obj6) {
30960 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30961 if (!SWIG_IsOK(res7)) {
30962 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30963 }
30964 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30965 }
30966 {
30967 PyThreadState* __tstate = wxPyBeginAllowThreads();
30968 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30969 wxPyEndAllowThreads(__tstate);
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 resultobj = SWIG_Py_Void();
30973 return resultobj;
30974 fail:
30975 return NULL;
30976 }
30977
30978
30979 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30980 PyObject *resultobj = 0;
30981 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30982 wxWindow *arg2 = (wxWindow *) 0 ;
30983 int result;
30984 void *argp1 = 0 ;
30985 int res1 = 0 ;
30986 void *argp2 = 0 ;
30987 int res2 = 0 ;
30988 PyObject * obj0 = 0 ;
30989 PyObject * obj1 = 0 ;
30990 char * kwnames[] = {
30991 (char *) "self",(char *) "win", NULL
30992 };
30993
30994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30996 if (!SWIG_IsOK(res1)) {
30997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30998 }
30999 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31000 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31001 if (!SWIG_IsOK(res2)) {
31002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31003 }
31004 arg2 = reinterpret_cast< wxWindow * >(argp2);
31005 {
31006 PyThreadState* __tstate = wxPyBeginAllowThreads();
31007 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31008 wxPyEndAllowThreads(__tstate);
31009 if (PyErr_Occurred()) SWIG_fail;
31010 }
31011 resultobj = SWIG_From_int(static_cast< int >(result));
31012 return resultobj;
31013 fail:
31014 return NULL;
31015 }
31016
31017
31018 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31019 PyObject *resultobj = 0;
31020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31021 wxWindow *arg2 = (wxWindow *) 0 ;
31022 wxDC *arg3 = 0 ;
31023 wxRect *arg4 = 0 ;
31024 int arg5 = (int) 0 ;
31025 void *argp1 = 0 ;
31026 int res1 = 0 ;
31027 void *argp2 = 0 ;
31028 int res2 = 0 ;
31029 void *argp3 = 0 ;
31030 int res3 = 0 ;
31031 wxRect temp4 ;
31032 int val5 ;
31033 int ecode5 = 0 ;
31034 PyObject * obj0 = 0 ;
31035 PyObject * obj1 = 0 ;
31036 PyObject * obj2 = 0 ;
31037 PyObject * obj3 = 0 ;
31038 PyObject * obj4 = 0 ;
31039 char * kwnames[] = {
31040 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31041 };
31042
31043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31045 if (!SWIG_IsOK(res1)) {
31046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31047 }
31048 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31050 if (!SWIG_IsOK(res2)) {
31051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31052 }
31053 arg2 = reinterpret_cast< wxWindow * >(argp2);
31054 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31055 if (!SWIG_IsOK(res3)) {
31056 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31057 }
31058 if (!argp3) {
31059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31060 }
31061 arg3 = reinterpret_cast< wxDC * >(argp3);
31062 {
31063 arg4 = &temp4;
31064 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31065 }
31066 if (obj4) {
31067 ecode5 = SWIG_AsVal_int(obj4, &val5);
31068 if (!SWIG_IsOK(ecode5)) {
31069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31070 }
31071 arg5 = static_cast< int >(val5);
31072 }
31073 {
31074 PyThreadState* __tstate = wxPyBeginAllowThreads();
31075 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31076 wxPyEndAllowThreads(__tstate);
31077 if (PyErr_Occurred()) SWIG_fail;
31078 }
31079 resultobj = SWIG_Py_Void();
31080 return resultobj;
31081 fail:
31082 return NULL;
31083 }
31084
31085
31086 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31087 PyObject *resultobj = 0;
31088 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31089 wxWindow *arg2 = (wxWindow *) 0 ;
31090 wxDC *arg3 = 0 ;
31091 wxRect *arg4 = 0 ;
31092 int arg5 = (int) 0 ;
31093 void *argp1 = 0 ;
31094 int res1 = 0 ;
31095 void *argp2 = 0 ;
31096 int res2 = 0 ;
31097 void *argp3 = 0 ;
31098 int res3 = 0 ;
31099 wxRect temp4 ;
31100 int val5 ;
31101 int ecode5 = 0 ;
31102 PyObject * obj0 = 0 ;
31103 PyObject * obj1 = 0 ;
31104 PyObject * obj2 = 0 ;
31105 PyObject * obj3 = 0 ;
31106 PyObject * obj4 = 0 ;
31107 char * kwnames[] = {
31108 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31109 };
31110
31111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31113 if (!SWIG_IsOK(res1)) {
31114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31115 }
31116 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31118 if (!SWIG_IsOK(res2)) {
31119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31120 }
31121 arg2 = reinterpret_cast< wxWindow * >(argp2);
31122 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31123 if (!SWIG_IsOK(res3)) {
31124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31125 }
31126 if (!argp3) {
31127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31128 }
31129 arg3 = reinterpret_cast< wxDC * >(argp3);
31130 {
31131 arg4 = &temp4;
31132 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31133 }
31134 if (obj4) {
31135 ecode5 = SWIG_AsVal_int(obj4, &val5);
31136 if (!SWIG_IsOK(ecode5)) {
31137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31138 }
31139 arg5 = static_cast< int >(val5);
31140 }
31141 {
31142 PyThreadState* __tstate = wxPyBeginAllowThreads();
31143 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31144 wxPyEndAllowThreads(__tstate);
31145 if (PyErr_Occurred()) SWIG_fail;
31146 }
31147 resultobj = SWIG_Py_Void();
31148 return resultobj;
31149 fail:
31150 return NULL;
31151 }
31152
31153
31154 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31155 PyObject *resultobj = 0;
31156 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31157 wxWindow *arg2 = (wxWindow *) 0 ;
31158 wxDC *arg3 = 0 ;
31159 wxSize *arg4 = 0 ;
31160 int arg5 ;
31161 wxOrientation arg6 ;
31162 int arg7 = (int) 0 ;
31163 void *argp1 = 0 ;
31164 int res1 = 0 ;
31165 void *argp2 = 0 ;
31166 int res2 = 0 ;
31167 void *argp3 = 0 ;
31168 int res3 = 0 ;
31169 wxSize temp4 ;
31170 int val5 ;
31171 int ecode5 = 0 ;
31172 int val6 ;
31173 int ecode6 = 0 ;
31174 int val7 ;
31175 int ecode7 = 0 ;
31176 PyObject * obj0 = 0 ;
31177 PyObject * obj1 = 0 ;
31178 PyObject * obj2 = 0 ;
31179 PyObject * obj3 = 0 ;
31180 PyObject * obj4 = 0 ;
31181 PyObject * obj5 = 0 ;
31182 PyObject * obj6 = 0 ;
31183 char * kwnames[] = {
31184 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31185 };
31186
31187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31189 if (!SWIG_IsOK(res1)) {
31190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31191 }
31192 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31194 if (!SWIG_IsOK(res2)) {
31195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31196 }
31197 arg2 = reinterpret_cast< wxWindow * >(argp2);
31198 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31199 if (!SWIG_IsOK(res3)) {
31200 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31201 }
31202 if (!argp3) {
31203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31204 }
31205 arg3 = reinterpret_cast< wxDC * >(argp3);
31206 {
31207 arg4 = &temp4;
31208 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31209 }
31210 ecode5 = SWIG_AsVal_int(obj4, &val5);
31211 if (!SWIG_IsOK(ecode5)) {
31212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31213 }
31214 arg5 = static_cast< int >(val5);
31215 ecode6 = SWIG_AsVal_int(obj5, &val6);
31216 if (!SWIG_IsOK(ecode6)) {
31217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31218 }
31219 arg6 = static_cast< wxOrientation >(val6);
31220 if (obj6) {
31221 ecode7 = SWIG_AsVal_int(obj6, &val7);
31222 if (!SWIG_IsOK(ecode7)) {
31223 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31224 }
31225 arg7 = static_cast< int >(val7);
31226 }
31227 {
31228 PyThreadState* __tstate = wxPyBeginAllowThreads();
31229 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31230 wxPyEndAllowThreads(__tstate);
31231 if (PyErr_Occurred()) SWIG_fail;
31232 }
31233 resultobj = SWIG_Py_Void();
31234 return resultobj;
31235 fail:
31236 return NULL;
31237 }
31238
31239
31240 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31241 PyObject *resultobj = 0;
31242 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31243 wxWindow *arg2 = (wxWindow *) 0 ;
31244 wxDC *arg3 = 0 ;
31245 wxRect *arg4 = 0 ;
31246 int arg5 = (int) 0 ;
31247 void *argp1 = 0 ;
31248 int res1 = 0 ;
31249 void *argp2 = 0 ;
31250 int res2 = 0 ;
31251 void *argp3 = 0 ;
31252 int res3 = 0 ;
31253 wxRect temp4 ;
31254 int val5 ;
31255 int ecode5 = 0 ;
31256 PyObject * obj0 = 0 ;
31257 PyObject * obj1 = 0 ;
31258 PyObject * obj2 = 0 ;
31259 PyObject * obj3 = 0 ;
31260 PyObject * obj4 = 0 ;
31261 char * kwnames[] = {
31262 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31263 };
31264
31265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31267 if (!SWIG_IsOK(res1)) {
31268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31269 }
31270 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31272 if (!SWIG_IsOK(res2)) {
31273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31274 }
31275 arg2 = reinterpret_cast< wxWindow * >(argp2);
31276 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31277 if (!SWIG_IsOK(res3)) {
31278 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31279 }
31280 if (!argp3) {
31281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31282 }
31283 arg3 = reinterpret_cast< wxDC * >(argp3);
31284 {
31285 arg4 = &temp4;
31286 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31287 }
31288 if (obj4) {
31289 ecode5 = SWIG_AsVal_int(obj4, &val5);
31290 if (!SWIG_IsOK(ecode5)) {
31291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31292 }
31293 arg5 = static_cast< int >(val5);
31294 }
31295 {
31296 PyThreadState* __tstate = wxPyBeginAllowThreads();
31297 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_Py_Void();
31302 return resultobj;
31303 fail:
31304 return NULL;
31305 }
31306
31307
31308 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj = 0;
31310 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31311 wxWindow *arg2 = (wxWindow *) 0 ;
31312 wxDC *arg3 = 0 ;
31313 wxRect *arg4 = 0 ;
31314 int arg5 = (int) 0 ;
31315 void *argp1 = 0 ;
31316 int res1 = 0 ;
31317 void *argp2 = 0 ;
31318 int res2 = 0 ;
31319 void *argp3 = 0 ;
31320 int res3 = 0 ;
31321 wxRect temp4 ;
31322 int val5 ;
31323 int ecode5 = 0 ;
31324 PyObject * obj0 = 0 ;
31325 PyObject * obj1 = 0 ;
31326 PyObject * obj2 = 0 ;
31327 PyObject * obj3 = 0 ;
31328 PyObject * obj4 = 0 ;
31329 char * kwnames[] = {
31330 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31331 };
31332
31333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31335 if (!SWIG_IsOK(res1)) {
31336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31337 }
31338 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31340 if (!SWIG_IsOK(res2)) {
31341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31342 }
31343 arg2 = reinterpret_cast< wxWindow * >(argp2);
31344 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31345 if (!SWIG_IsOK(res3)) {
31346 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31347 }
31348 if (!argp3) {
31349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31350 }
31351 arg3 = reinterpret_cast< wxDC * >(argp3);
31352 {
31353 arg4 = &temp4;
31354 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31355 }
31356 if (obj4) {
31357 ecode5 = SWIG_AsVal_int(obj4, &val5);
31358 if (!SWIG_IsOK(ecode5)) {
31359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31360 }
31361 arg5 = static_cast< int >(val5);
31362 }
31363 {
31364 PyThreadState* __tstate = wxPyBeginAllowThreads();
31365 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31366 wxPyEndAllowThreads(__tstate);
31367 if (PyErr_Occurred()) SWIG_fail;
31368 }
31369 resultobj = SWIG_Py_Void();
31370 return resultobj;
31371 fail:
31372 return NULL;
31373 }
31374
31375
31376 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31377 PyObject *resultobj = 0;
31378 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31379 wxWindow *arg2 = (wxWindow *) 0 ;
31380 wxDC *arg3 = 0 ;
31381 wxRect *arg4 = 0 ;
31382 int arg5 = (int) 0 ;
31383 void *argp1 = 0 ;
31384 int res1 = 0 ;
31385 void *argp2 = 0 ;
31386 int res2 = 0 ;
31387 void *argp3 = 0 ;
31388 int res3 = 0 ;
31389 wxRect temp4 ;
31390 int val5 ;
31391 int ecode5 = 0 ;
31392 PyObject * obj0 = 0 ;
31393 PyObject * obj1 = 0 ;
31394 PyObject * obj2 = 0 ;
31395 PyObject * obj3 = 0 ;
31396 PyObject * obj4 = 0 ;
31397 char * kwnames[] = {
31398 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31399 };
31400
31401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31403 if (!SWIG_IsOK(res1)) {
31404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31405 }
31406 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31408 if (!SWIG_IsOK(res2)) {
31409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31410 }
31411 arg2 = reinterpret_cast< wxWindow * >(argp2);
31412 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31413 if (!SWIG_IsOK(res3)) {
31414 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31415 }
31416 if (!argp3) {
31417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31418 }
31419 arg3 = reinterpret_cast< wxDC * >(argp3);
31420 {
31421 arg4 = &temp4;
31422 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31423 }
31424 if (obj4) {
31425 ecode5 = SWIG_AsVal_int(obj4, &val5);
31426 if (!SWIG_IsOK(ecode5)) {
31427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31428 }
31429 arg5 = static_cast< int >(val5);
31430 }
31431 {
31432 PyThreadState* __tstate = wxPyBeginAllowThreads();
31433 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31434 wxPyEndAllowThreads(__tstate);
31435 if (PyErr_Occurred()) SWIG_fail;
31436 }
31437 resultobj = SWIG_Py_Void();
31438 return resultobj;
31439 fail:
31440 return NULL;
31441 }
31442
31443
31444 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31445 PyObject *resultobj = 0;
31446 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31447 wxWindow *arg2 = (wxWindow *) 0 ;
31448 wxDC *arg3 = 0 ;
31449 wxRect *arg4 = 0 ;
31450 int arg5 = (int) 0 ;
31451 void *argp1 = 0 ;
31452 int res1 = 0 ;
31453 void *argp2 = 0 ;
31454 int res2 = 0 ;
31455 void *argp3 = 0 ;
31456 int res3 = 0 ;
31457 wxRect temp4 ;
31458 int val5 ;
31459 int ecode5 = 0 ;
31460 PyObject * obj0 = 0 ;
31461 PyObject * obj1 = 0 ;
31462 PyObject * obj2 = 0 ;
31463 PyObject * obj3 = 0 ;
31464 PyObject * obj4 = 0 ;
31465 char * kwnames[] = {
31466 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31467 };
31468
31469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31471 if (!SWIG_IsOK(res1)) {
31472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31473 }
31474 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31476 if (!SWIG_IsOK(res2)) {
31477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31478 }
31479 arg2 = reinterpret_cast< wxWindow * >(argp2);
31480 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31481 if (!SWIG_IsOK(res3)) {
31482 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31483 }
31484 if (!argp3) {
31485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31486 }
31487 arg3 = reinterpret_cast< wxDC * >(argp3);
31488 {
31489 arg4 = &temp4;
31490 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31491 }
31492 if (obj4) {
31493 ecode5 = SWIG_AsVal_int(obj4, &val5);
31494 if (!SWIG_IsOK(ecode5)) {
31495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31496 }
31497 arg5 = static_cast< int >(val5);
31498 }
31499 {
31500 PyThreadState* __tstate = wxPyBeginAllowThreads();
31501 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31502 wxPyEndAllowThreads(__tstate);
31503 if (PyErr_Occurred()) SWIG_fail;
31504 }
31505 resultobj = SWIG_Py_Void();
31506 return resultobj;
31507 fail:
31508 return NULL;
31509 }
31510
31511
31512 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31513 PyObject *resultobj = 0;
31514 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31515 wxWindow *arg2 = (wxWindow *) 0 ;
31516 wxDC *arg3 = 0 ;
31517 wxRect *arg4 = 0 ;
31518 int arg5 = (int) 0 ;
31519 void *argp1 = 0 ;
31520 int res1 = 0 ;
31521 void *argp2 = 0 ;
31522 int res2 = 0 ;
31523 void *argp3 = 0 ;
31524 int res3 = 0 ;
31525 wxRect temp4 ;
31526 int val5 ;
31527 int ecode5 = 0 ;
31528 PyObject * obj0 = 0 ;
31529 PyObject * obj1 = 0 ;
31530 PyObject * obj2 = 0 ;
31531 PyObject * obj3 = 0 ;
31532 PyObject * obj4 = 0 ;
31533 char * kwnames[] = {
31534 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31535 };
31536
31537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31539 if (!SWIG_IsOK(res1)) {
31540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31541 }
31542 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31543 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31544 if (!SWIG_IsOK(res2)) {
31545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31546 }
31547 arg2 = reinterpret_cast< wxWindow * >(argp2);
31548 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31549 if (!SWIG_IsOK(res3)) {
31550 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31551 }
31552 if (!argp3) {
31553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31554 }
31555 arg3 = reinterpret_cast< wxDC * >(argp3);
31556 {
31557 arg4 = &temp4;
31558 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31559 }
31560 if (obj4) {
31561 ecode5 = SWIG_AsVal_int(obj4, &val5);
31562 if (!SWIG_IsOK(ecode5)) {
31563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31564 }
31565 arg5 = static_cast< int >(val5);
31566 }
31567 {
31568 PyThreadState* __tstate = wxPyBeginAllowThreads();
31569 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31570 wxPyEndAllowThreads(__tstate);
31571 if (PyErr_Occurred()) SWIG_fail;
31572 }
31573 resultobj = SWIG_Py_Void();
31574 return resultobj;
31575 fail:
31576 return NULL;
31577 }
31578
31579
31580 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31581 PyObject *resultobj = 0;
31582 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31583 wxWindow *arg2 = (wxWindow *) 0 ;
31584 SwigValueWrapper<wxSplitterRenderParams > result;
31585 void *argp1 = 0 ;
31586 int res1 = 0 ;
31587 void *argp2 = 0 ;
31588 int res2 = 0 ;
31589 PyObject * obj0 = 0 ;
31590 PyObject * obj1 = 0 ;
31591 char * kwnames[] = {
31592 (char *) "self",(char *) "win", NULL
31593 };
31594
31595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31597 if (!SWIG_IsOK(res1)) {
31598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31599 }
31600 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31601 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31602 if (!SWIG_IsOK(res2)) {
31603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31604 }
31605 arg2 = reinterpret_cast< wxWindow * >(argp2);
31606 {
31607 PyThreadState* __tstate = wxPyBeginAllowThreads();
31608 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31609 wxPyEndAllowThreads(__tstate);
31610 if (PyErr_Occurred()) SWIG_fail;
31611 }
31612 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31613 return resultobj;
31614 fail:
31615 return NULL;
31616 }
31617
31618
31619 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31620 PyObject *resultobj = 0;
31621 wxRendererNative *result = 0 ;
31622
31623 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31624 {
31625 if (!wxPyCheckForApp()) SWIG_fail;
31626 PyThreadState* __tstate = wxPyBeginAllowThreads();
31627 {
31628 wxRendererNative &_result_ref = wxRendererNative::Get();
31629 result = (wxRendererNative *) &_result_ref;
31630 }
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31635 return resultobj;
31636 fail:
31637 return NULL;
31638 }
31639
31640
31641 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31642 PyObject *resultobj = 0;
31643 wxRendererNative *result = 0 ;
31644
31645 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31646 {
31647 if (!wxPyCheckForApp()) SWIG_fail;
31648 PyThreadState* __tstate = wxPyBeginAllowThreads();
31649 {
31650 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31651 result = (wxRendererNative *) &_result_ref;
31652 }
31653 wxPyEndAllowThreads(__tstate);
31654 if (PyErr_Occurred()) SWIG_fail;
31655 }
31656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31657 return resultobj;
31658 fail:
31659 return NULL;
31660 }
31661
31662
31663 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31664 PyObject *resultobj = 0;
31665 wxRendererNative *result = 0 ;
31666
31667 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31668 {
31669 if (!wxPyCheckForApp()) SWIG_fail;
31670 PyThreadState* __tstate = wxPyBeginAllowThreads();
31671 {
31672 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31673 result = (wxRendererNative *) &_result_ref;
31674 }
31675 wxPyEndAllowThreads(__tstate);
31676 if (PyErr_Occurred()) SWIG_fail;
31677 }
31678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31679 return resultobj;
31680 fail:
31681 return NULL;
31682 }
31683
31684
31685 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31686 PyObject *resultobj = 0;
31687 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31688 wxRendererNative *result = 0 ;
31689 void *argp1 = 0 ;
31690 int res1 = 0 ;
31691 PyObject * obj0 = 0 ;
31692 char * kwnames[] = {
31693 (char *) "renderer", NULL
31694 };
31695
31696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31698 if (!SWIG_IsOK(res1)) {
31699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31700 }
31701 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31702 {
31703 if (!wxPyCheckForApp()) SWIG_fail;
31704 PyThreadState* __tstate = wxPyBeginAllowThreads();
31705 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31706 wxPyEndAllowThreads(__tstate);
31707 if (PyErr_Occurred()) SWIG_fail;
31708 }
31709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31710 return resultobj;
31711 fail:
31712 return NULL;
31713 }
31714
31715
31716 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31717 PyObject *resultobj = 0;
31718 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31719 SwigValueWrapper<wxRendererVersion > result;
31720 void *argp1 = 0 ;
31721 int res1 = 0 ;
31722 PyObject *swig_obj[1] ;
31723
31724 if (!args) SWIG_fail;
31725 swig_obj[0] = args;
31726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31727 if (!SWIG_IsOK(res1)) {
31728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31729 }
31730 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31731 {
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = ((wxRendererNative const *)arg1)->GetVersion();
31734 wxPyEndAllowThreads(__tstate);
31735 if (PyErr_Occurred()) SWIG_fail;
31736 }
31737 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31738 return resultobj;
31739 fail:
31740 return NULL;
31741 }
31742
31743
31744 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31745 PyObject *obj;
31746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31747 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31748 return SWIG_Py_Void();
31749 }
31750
31751 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31752 PyObject *resultobj = 0;
31753 wxPseudoDC *result = 0 ;
31754
31755 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31756 {
31757 PyThreadState* __tstate = wxPyBeginAllowThreads();
31758 result = (wxPseudoDC *)new wxPseudoDC();
31759 wxPyEndAllowThreads(__tstate);
31760 if (PyErr_Occurred()) SWIG_fail;
31761 }
31762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31763 return resultobj;
31764 fail:
31765 return NULL;
31766 }
31767
31768
31769 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31770 PyObject *resultobj = 0;
31771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31772 void *argp1 = 0 ;
31773 int res1 = 0 ;
31774 PyObject *swig_obj[1] ;
31775
31776 if (!args) SWIG_fail;
31777 swig_obj[0] = args;
31778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31779 if (!SWIG_IsOK(res1)) {
31780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31781 }
31782 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31783 {
31784 PyThreadState* __tstate = wxPyBeginAllowThreads();
31785 (arg1)->BeginDrawing();
31786 wxPyEndAllowThreads(__tstate);
31787 if (PyErr_Occurred()) SWIG_fail;
31788 }
31789 resultobj = SWIG_Py_Void();
31790 return resultobj;
31791 fail:
31792 return NULL;
31793 }
31794
31795
31796 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31797 PyObject *resultobj = 0;
31798 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31799 void *argp1 = 0 ;
31800 int res1 = 0 ;
31801 PyObject *swig_obj[1] ;
31802
31803 if (!args) SWIG_fail;
31804 swig_obj[0] = args;
31805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31806 if (!SWIG_IsOK(res1)) {
31807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31808 }
31809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 (arg1)->EndDrawing();
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_Py_Void();
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31824 PyObject *resultobj = 0;
31825 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31826 void *argp1 = 0 ;
31827 int res1 = 0 ;
31828 PyObject *swig_obj[1] ;
31829
31830 if (!args) SWIG_fail;
31831 swig_obj[0] = args;
31832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31833 if (!SWIG_IsOK(res1)) {
31834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31835 }
31836 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31837 {
31838 PyThreadState* __tstate = wxPyBeginAllowThreads();
31839 delete arg1;
31840
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
31844 resultobj = SWIG_Py_Void();
31845 return resultobj;
31846 fail:
31847 return NULL;
31848 }
31849
31850
31851 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31852 PyObject *resultobj = 0;
31853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31854 void *argp1 = 0 ;
31855 int res1 = 0 ;
31856 PyObject *swig_obj[1] ;
31857
31858 if (!args) SWIG_fail;
31859 swig_obj[0] = args;
31860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31861 if (!SWIG_IsOK(res1)) {
31862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31863 }
31864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31865 {
31866 PyThreadState* __tstate = wxPyBeginAllowThreads();
31867 (arg1)->RemoveAll();
31868 wxPyEndAllowThreads(__tstate);
31869 if (PyErr_Occurred()) SWIG_fail;
31870 }
31871 resultobj = SWIG_Py_Void();
31872 return resultobj;
31873 fail:
31874 return NULL;
31875 }
31876
31877
31878 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31879 PyObject *resultobj = 0;
31880 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31881 int result;
31882 void *argp1 = 0 ;
31883 int res1 = 0 ;
31884 PyObject *swig_obj[1] ;
31885
31886 if (!args) SWIG_fail;
31887 swig_obj[0] = args;
31888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31889 if (!SWIG_IsOK(res1)) {
31890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31891 }
31892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31893 {
31894 PyThreadState* __tstate = wxPyBeginAllowThreads();
31895 result = (int)(arg1)->GetLen();
31896 wxPyEndAllowThreads(__tstate);
31897 if (PyErr_Occurred()) SWIG_fail;
31898 }
31899 resultobj = SWIG_From_int(static_cast< int >(result));
31900 return resultobj;
31901 fail:
31902 return NULL;
31903 }
31904
31905
31906 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31907 PyObject *resultobj = 0;
31908 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31909 int arg2 ;
31910 void *argp1 = 0 ;
31911 int res1 = 0 ;
31912 int val2 ;
31913 int ecode2 = 0 ;
31914 PyObject * obj0 = 0 ;
31915 PyObject * obj1 = 0 ;
31916 char * kwnames[] = {
31917 (char *) "self",(char *) "id", NULL
31918 };
31919
31920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31922 if (!SWIG_IsOK(res1)) {
31923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31924 }
31925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31926 ecode2 = SWIG_AsVal_int(obj1, &val2);
31927 if (!SWIG_IsOK(ecode2)) {
31928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31929 }
31930 arg2 = static_cast< int >(val2);
31931 {
31932 PyThreadState* __tstate = wxPyBeginAllowThreads();
31933 (arg1)->SetId(arg2);
31934 wxPyEndAllowThreads(__tstate);
31935 if (PyErr_Occurred()) SWIG_fail;
31936 }
31937 resultobj = SWIG_Py_Void();
31938 return resultobj;
31939 fail:
31940 return NULL;
31941 }
31942
31943
31944 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31945 PyObject *resultobj = 0;
31946 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31947 int arg2 ;
31948 void *argp1 = 0 ;
31949 int res1 = 0 ;
31950 int val2 ;
31951 int ecode2 = 0 ;
31952 PyObject * obj0 = 0 ;
31953 PyObject * obj1 = 0 ;
31954 char * kwnames[] = {
31955 (char *) "self",(char *) "id", NULL
31956 };
31957
31958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31960 if (!SWIG_IsOK(res1)) {
31961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31962 }
31963 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31964 ecode2 = SWIG_AsVal_int(obj1, &val2);
31965 if (!SWIG_IsOK(ecode2)) {
31966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31967 }
31968 arg2 = static_cast< int >(val2);
31969 {
31970 PyThreadState* __tstate = wxPyBeginAllowThreads();
31971 (arg1)->ClearId(arg2);
31972 wxPyEndAllowThreads(__tstate);
31973 if (PyErr_Occurred()) SWIG_fail;
31974 }
31975 resultobj = SWIG_Py_Void();
31976 return resultobj;
31977 fail:
31978 return NULL;
31979 }
31980
31981
31982 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31983 PyObject *resultobj = 0;
31984 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31985 int arg2 ;
31986 void *argp1 = 0 ;
31987 int res1 = 0 ;
31988 int val2 ;
31989 int ecode2 = 0 ;
31990 PyObject * obj0 = 0 ;
31991 PyObject * obj1 = 0 ;
31992 char * kwnames[] = {
31993 (char *) "self",(char *) "id", NULL
31994 };
31995
31996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31998 if (!SWIG_IsOK(res1)) {
31999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32000 }
32001 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32002 ecode2 = SWIG_AsVal_int(obj1, &val2);
32003 if (!SWIG_IsOK(ecode2)) {
32004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32005 }
32006 arg2 = static_cast< int >(val2);
32007 {
32008 PyThreadState* __tstate = wxPyBeginAllowThreads();
32009 (arg1)->RemoveId(arg2);
32010 wxPyEndAllowThreads(__tstate);
32011 if (PyErr_Occurred()) SWIG_fail;
32012 }
32013 resultobj = SWIG_Py_Void();
32014 return resultobj;
32015 fail:
32016 return NULL;
32017 }
32018
32019
32020 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32021 PyObject *resultobj = 0;
32022 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32023 int arg2 ;
32024 int arg3 ;
32025 int arg4 ;
32026 void *argp1 = 0 ;
32027 int res1 = 0 ;
32028 int val2 ;
32029 int ecode2 = 0 ;
32030 int val3 ;
32031 int ecode3 = 0 ;
32032 int val4 ;
32033 int ecode4 = 0 ;
32034 PyObject * obj0 = 0 ;
32035 PyObject * obj1 = 0 ;
32036 PyObject * obj2 = 0 ;
32037 PyObject * obj3 = 0 ;
32038 char * kwnames[] = {
32039 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32040 };
32041
32042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32044 if (!SWIG_IsOK(res1)) {
32045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32046 }
32047 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32048 ecode2 = SWIG_AsVal_int(obj1, &val2);
32049 if (!SWIG_IsOK(ecode2)) {
32050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32051 }
32052 arg2 = static_cast< int >(val2);
32053 ecode3 = SWIG_AsVal_int(obj2, &val3);
32054 if (!SWIG_IsOK(ecode3)) {
32055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32056 }
32057 arg3 = static_cast< int >(val3);
32058 ecode4 = SWIG_AsVal_int(obj3, &val4);
32059 if (!SWIG_IsOK(ecode4)) {
32060 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32061 }
32062 arg4 = static_cast< int >(val4);
32063 {
32064 PyThreadState* __tstate = wxPyBeginAllowThreads();
32065 (arg1)->TranslateId(arg2,arg3,arg4);
32066 wxPyEndAllowThreads(__tstate);
32067 if (PyErr_Occurred()) SWIG_fail;
32068 }
32069 resultobj = SWIG_Py_Void();
32070 return resultobj;
32071 fail:
32072 return NULL;
32073 }
32074
32075
32076 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32077 PyObject *resultobj = 0;
32078 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32079 int arg2 ;
32080 bool arg3 = (bool) true ;
32081 void *argp1 = 0 ;
32082 int res1 = 0 ;
32083 int val2 ;
32084 int ecode2 = 0 ;
32085 bool val3 ;
32086 int ecode3 = 0 ;
32087 PyObject * obj0 = 0 ;
32088 PyObject * obj1 = 0 ;
32089 PyObject * obj2 = 0 ;
32090 char * kwnames[] = {
32091 (char *) "self",(char *) "id",(char *) "greyout", NULL
32092 };
32093
32094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32096 if (!SWIG_IsOK(res1)) {
32097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32098 }
32099 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32100 ecode2 = SWIG_AsVal_int(obj1, &val2);
32101 if (!SWIG_IsOK(ecode2)) {
32102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32103 }
32104 arg2 = static_cast< int >(val2);
32105 if (obj2) {
32106 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32107 if (!SWIG_IsOK(ecode3)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32109 }
32110 arg3 = static_cast< bool >(val3);
32111 }
32112 {
32113 PyThreadState* __tstate = wxPyBeginAllowThreads();
32114 (arg1)->SetIdGreyedOut(arg2,arg3);
32115 wxPyEndAllowThreads(__tstate);
32116 if (PyErr_Occurred()) SWIG_fail;
32117 }
32118 resultobj = SWIG_Py_Void();
32119 return resultobj;
32120 fail:
32121 return NULL;
32122 }
32123
32124
32125 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32126 PyObject *resultobj = 0;
32127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32128 int arg2 ;
32129 bool result;
32130 void *argp1 = 0 ;
32131 int res1 = 0 ;
32132 int val2 ;
32133 int ecode2 = 0 ;
32134 PyObject * obj0 = 0 ;
32135 PyObject * obj1 = 0 ;
32136 char * kwnames[] = {
32137 (char *) "self",(char *) "id", NULL
32138 };
32139
32140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32142 if (!SWIG_IsOK(res1)) {
32143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32144 }
32145 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32146 ecode2 = SWIG_AsVal_int(obj1, &val2);
32147 if (!SWIG_IsOK(ecode2)) {
32148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32149 }
32150 arg2 = static_cast< int >(val2);
32151 {
32152 PyThreadState* __tstate = wxPyBeginAllowThreads();
32153 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32154 wxPyEndAllowThreads(__tstate);
32155 if (PyErr_Occurred()) SWIG_fail;
32156 }
32157 {
32158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32159 }
32160 return resultobj;
32161 fail:
32162 return NULL;
32163 }
32164
32165
32166 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32167 PyObject *resultobj = 0;
32168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32169 int arg2 ;
32170 int arg3 ;
32171 int arg4 = (int) 1 ;
32172 wxColor const &arg5_defvalue = *wxWHITE ;
32173 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32174 PyObject *result = 0 ;
32175 void *argp1 = 0 ;
32176 int res1 = 0 ;
32177 int val2 ;
32178 int ecode2 = 0 ;
32179 int val3 ;
32180 int ecode3 = 0 ;
32181 int val4 ;
32182 int ecode4 = 0 ;
32183 void *argp5 = 0 ;
32184 int res5 = 0 ;
32185 PyObject * obj0 = 0 ;
32186 PyObject * obj1 = 0 ;
32187 PyObject * obj2 = 0 ;
32188 PyObject * obj3 = 0 ;
32189 PyObject * obj4 = 0 ;
32190 char * kwnames[] = {
32191 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32192 };
32193
32194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32196 if (!SWIG_IsOK(res1)) {
32197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32198 }
32199 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32200 ecode2 = SWIG_AsVal_int(obj1, &val2);
32201 if (!SWIG_IsOK(ecode2)) {
32202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32203 }
32204 arg2 = static_cast< int >(val2);
32205 ecode3 = SWIG_AsVal_int(obj2, &val3);
32206 if (!SWIG_IsOK(ecode3)) {
32207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32208 }
32209 arg3 = static_cast< int >(val3);
32210 if (obj3) {
32211 ecode4 = SWIG_AsVal_int(obj3, &val4);
32212 if (!SWIG_IsOK(ecode4)) {
32213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32214 }
32215 arg4 = static_cast< int >(val4);
32216 }
32217 if (obj4) {
32218 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32219 if (!SWIG_IsOK(res5)) {
32220 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32221 }
32222 if (!argp5) {
32223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32224 }
32225 arg5 = reinterpret_cast< wxColor * >(argp5);
32226 }
32227 {
32228 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32229 if (PyErr_Occurred()) SWIG_fail;
32230 }
32231 resultobj = result;
32232 return resultobj;
32233 fail:
32234 return NULL;
32235 }
32236
32237
32238 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32239 PyObject *resultobj = 0;
32240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32241 int arg2 ;
32242 int arg3 ;
32243 PyObject *result = 0 ;
32244 void *argp1 = 0 ;
32245 int res1 = 0 ;
32246 int val2 ;
32247 int ecode2 = 0 ;
32248 int val3 ;
32249 int ecode3 = 0 ;
32250 PyObject * obj0 = 0 ;
32251 PyObject * obj1 = 0 ;
32252 PyObject * obj2 = 0 ;
32253 char * kwnames[] = {
32254 (char *) "self",(char *) "x",(char *) "y", NULL
32255 };
32256
32257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32259 if (!SWIG_IsOK(res1)) {
32260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32261 }
32262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32263 ecode2 = SWIG_AsVal_int(obj1, &val2);
32264 if (!SWIG_IsOK(ecode2)) {
32265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32266 }
32267 arg2 = static_cast< int >(val2);
32268 ecode3 = SWIG_AsVal_int(obj2, &val3);
32269 if (!SWIG_IsOK(ecode3)) {
32270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32271 }
32272 arg3 = static_cast< int >(val3);
32273 {
32274 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32275 if (PyErr_Occurred()) SWIG_fail;
32276 }
32277 resultobj = result;
32278 return resultobj;
32279 fail:
32280 return NULL;
32281 }
32282
32283
32284 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32285 PyObject *resultobj = 0;
32286 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32287 int arg2 ;
32288 wxDC *arg3 = (wxDC *) 0 ;
32289 void *argp1 = 0 ;
32290 int res1 = 0 ;
32291 int val2 ;
32292 int ecode2 = 0 ;
32293 void *argp3 = 0 ;
32294 int res3 = 0 ;
32295 PyObject * obj0 = 0 ;
32296 PyObject * obj1 = 0 ;
32297 PyObject * obj2 = 0 ;
32298 char * kwnames[] = {
32299 (char *) "self",(char *) "id",(char *) "dc", NULL
32300 };
32301
32302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32304 if (!SWIG_IsOK(res1)) {
32305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32306 }
32307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32308 ecode2 = SWIG_AsVal_int(obj1, &val2);
32309 if (!SWIG_IsOK(ecode2)) {
32310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32311 }
32312 arg2 = static_cast< int >(val2);
32313 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32314 if (!SWIG_IsOK(res3)) {
32315 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32316 }
32317 arg3 = reinterpret_cast< wxDC * >(argp3);
32318 {
32319 PyThreadState* __tstate = wxPyBeginAllowThreads();
32320 (arg1)->DrawIdToDC(arg2,arg3);
32321 wxPyEndAllowThreads(__tstate);
32322 if (PyErr_Occurred()) SWIG_fail;
32323 }
32324 resultobj = SWIG_Py_Void();
32325 return resultobj;
32326 fail:
32327 return NULL;
32328 }
32329
32330
32331 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32332 PyObject *resultobj = 0;
32333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32334 int arg2 ;
32335 wxRect *arg3 = 0 ;
32336 void *argp1 = 0 ;
32337 int res1 = 0 ;
32338 int val2 ;
32339 int ecode2 = 0 ;
32340 wxRect temp3 ;
32341 PyObject * obj0 = 0 ;
32342 PyObject * obj1 = 0 ;
32343 PyObject * obj2 = 0 ;
32344 char * kwnames[] = {
32345 (char *) "self",(char *) "id",(char *) "rect", NULL
32346 };
32347
32348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32350 if (!SWIG_IsOK(res1)) {
32351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32352 }
32353 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32354 ecode2 = SWIG_AsVal_int(obj1, &val2);
32355 if (!SWIG_IsOK(ecode2)) {
32356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32357 }
32358 arg2 = static_cast< int >(val2);
32359 {
32360 arg3 = &temp3;
32361 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32362 }
32363 {
32364 PyThreadState* __tstate = wxPyBeginAllowThreads();
32365 (arg1)->SetIdBounds(arg2,*arg3);
32366 wxPyEndAllowThreads(__tstate);
32367 if (PyErr_Occurred()) SWIG_fail;
32368 }
32369 resultobj = SWIG_Py_Void();
32370 return resultobj;
32371 fail:
32372 return NULL;
32373 }
32374
32375
32376 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32377 PyObject *resultobj = 0;
32378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32379 int arg2 ;
32380 wxRect result;
32381 void *argp1 = 0 ;
32382 int res1 = 0 ;
32383 int val2 ;
32384 int ecode2 = 0 ;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 char * kwnames[] = {
32388 (char *) "self",(char *) "id", NULL
32389 };
32390
32391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32393 if (!SWIG_IsOK(res1)) {
32394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32395 }
32396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32397 ecode2 = SWIG_AsVal_int(obj1, &val2);
32398 if (!SWIG_IsOK(ecode2)) {
32399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32400 }
32401 arg2 = static_cast< int >(val2);
32402 {
32403 PyThreadState* __tstate = wxPyBeginAllowThreads();
32404 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32405 wxPyEndAllowThreads(__tstate);
32406 if (PyErr_Occurred()) SWIG_fail;
32407 }
32408 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32409 return resultobj;
32410 fail:
32411 return NULL;
32412 }
32413
32414
32415 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32416 PyObject *resultobj = 0;
32417 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32418 wxDC *arg2 = (wxDC *) 0 ;
32419 wxRect *arg3 = 0 ;
32420 void *argp1 = 0 ;
32421 int res1 = 0 ;
32422 void *argp2 = 0 ;
32423 int res2 = 0 ;
32424 wxRect temp3 ;
32425 PyObject * obj0 = 0 ;
32426 PyObject * obj1 = 0 ;
32427 PyObject * obj2 = 0 ;
32428 char * kwnames[] = {
32429 (char *) "self",(char *) "dc",(char *) "rect", NULL
32430 };
32431
32432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32434 if (!SWIG_IsOK(res1)) {
32435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32436 }
32437 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32439 if (!SWIG_IsOK(res2)) {
32440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32441 }
32442 arg2 = reinterpret_cast< wxDC * >(argp2);
32443 {
32444 arg3 = &temp3;
32445 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32446 }
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_Py_Void();
32454 return resultobj;
32455 fail:
32456 return NULL;
32457 }
32458
32459
32460 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32461 PyObject *resultobj = 0;
32462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32463 wxDC *arg2 = (wxDC *) 0 ;
32464 wxRegion *arg3 = 0 ;
32465 void *argp1 = 0 ;
32466 int res1 = 0 ;
32467 void *argp2 = 0 ;
32468 int res2 = 0 ;
32469 void *argp3 = 0 ;
32470 int res3 = 0 ;
32471 PyObject * obj0 = 0 ;
32472 PyObject * obj1 = 0 ;
32473 PyObject * obj2 = 0 ;
32474 char * kwnames[] = {
32475 (char *) "self",(char *) "dc",(char *) "region", NULL
32476 };
32477
32478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32480 if (!SWIG_IsOK(res1)) {
32481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32482 }
32483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32485 if (!SWIG_IsOK(res2)) {
32486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32487 }
32488 arg2 = reinterpret_cast< wxDC * >(argp2);
32489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32490 if (!SWIG_IsOK(res3)) {
32491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32492 }
32493 if (!argp3) {
32494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32495 }
32496 arg3 = reinterpret_cast< wxRegion * >(argp3);
32497 {
32498 PyThreadState* __tstate = wxPyBeginAllowThreads();
32499 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32500 wxPyEndAllowThreads(__tstate);
32501 if (PyErr_Occurred()) SWIG_fail;
32502 }
32503 resultobj = SWIG_Py_Void();
32504 return resultobj;
32505 fail:
32506 return NULL;
32507 }
32508
32509
32510 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32511 PyObject *resultobj = 0;
32512 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32513 wxDC *arg2 = (wxDC *) 0 ;
32514 void *argp1 = 0 ;
32515 int res1 = 0 ;
32516 void *argp2 = 0 ;
32517 int res2 = 0 ;
32518 PyObject * obj0 = 0 ;
32519 PyObject * obj1 = 0 ;
32520 char * kwnames[] = {
32521 (char *) "self",(char *) "dc", NULL
32522 };
32523
32524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32526 if (!SWIG_IsOK(res1)) {
32527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32528 }
32529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32530 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32531 if (!SWIG_IsOK(res2)) {
32532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32533 }
32534 arg2 = reinterpret_cast< wxDC * >(argp2);
32535 {
32536 PyThreadState* __tstate = wxPyBeginAllowThreads();
32537 (arg1)->DrawToDC(arg2);
32538 wxPyEndAllowThreads(__tstate);
32539 if (PyErr_Occurred()) SWIG_fail;
32540 }
32541 resultobj = SWIG_Py_Void();
32542 return resultobj;
32543 fail:
32544 return NULL;
32545 }
32546
32547
32548 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32549 PyObject *resultobj = 0;
32550 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32551 int arg2 ;
32552 int arg3 ;
32553 wxColour *arg4 = 0 ;
32554 int arg5 = (int) wxFLOOD_SURFACE ;
32555 void *argp1 = 0 ;
32556 int res1 = 0 ;
32557 int val2 ;
32558 int ecode2 = 0 ;
32559 int val3 ;
32560 int ecode3 = 0 ;
32561 wxColour temp4 ;
32562 int val5 ;
32563 int ecode5 = 0 ;
32564 PyObject * obj0 = 0 ;
32565 PyObject * obj1 = 0 ;
32566 PyObject * obj2 = 0 ;
32567 PyObject * obj3 = 0 ;
32568 PyObject * obj4 = 0 ;
32569 char * kwnames[] = {
32570 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32571 };
32572
32573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32575 if (!SWIG_IsOK(res1)) {
32576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32577 }
32578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32579 ecode2 = SWIG_AsVal_int(obj1, &val2);
32580 if (!SWIG_IsOK(ecode2)) {
32581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32582 }
32583 arg2 = static_cast< int >(val2);
32584 ecode3 = SWIG_AsVal_int(obj2, &val3);
32585 if (!SWIG_IsOK(ecode3)) {
32586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32587 }
32588 arg3 = static_cast< int >(val3);
32589 {
32590 arg4 = &temp4;
32591 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32592 }
32593 if (obj4) {
32594 ecode5 = SWIG_AsVal_int(obj4, &val5);
32595 if (!SWIG_IsOK(ecode5)) {
32596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32597 }
32598 arg5 = static_cast< int >(val5);
32599 }
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32603 wxPyEndAllowThreads(__tstate);
32604 if (PyErr_Occurred()) SWIG_fail;
32605 }
32606 resultobj = SWIG_Py_Void();
32607 return resultobj;
32608 fail:
32609 return NULL;
32610 }
32611
32612
32613 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32614 PyObject *resultobj = 0;
32615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32616 wxPoint *arg2 = 0 ;
32617 wxColour *arg3 = 0 ;
32618 int arg4 = (int) wxFLOOD_SURFACE ;
32619 void *argp1 = 0 ;
32620 int res1 = 0 ;
32621 wxPoint temp2 ;
32622 wxColour temp3 ;
32623 int val4 ;
32624 int ecode4 = 0 ;
32625 PyObject * obj0 = 0 ;
32626 PyObject * obj1 = 0 ;
32627 PyObject * obj2 = 0 ;
32628 PyObject * obj3 = 0 ;
32629 char * kwnames[] = {
32630 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32631 };
32632
32633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32635 if (!SWIG_IsOK(res1)) {
32636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32637 }
32638 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32639 {
32640 arg2 = &temp2;
32641 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32642 }
32643 {
32644 arg3 = &temp3;
32645 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32646 }
32647 if (obj3) {
32648 ecode4 = SWIG_AsVal_int(obj3, &val4);
32649 if (!SWIG_IsOK(ecode4)) {
32650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32651 }
32652 arg4 = static_cast< int >(val4);
32653 }
32654 {
32655 PyThreadState* __tstate = wxPyBeginAllowThreads();
32656 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32657 wxPyEndAllowThreads(__tstate);
32658 if (PyErr_Occurred()) SWIG_fail;
32659 }
32660 resultobj = SWIG_Py_Void();
32661 return resultobj;
32662 fail:
32663 return NULL;
32664 }
32665
32666
32667 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32668 PyObject *resultobj = 0;
32669 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32670 int arg2 ;
32671 int arg3 ;
32672 int arg4 ;
32673 int arg5 ;
32674 void *argp1 = 0 ;
32675 int res1 = 0 ;
32676 int val2 ;
32677 int ecode2 = 0 ;
32678 int val3 ;
32679 int ecode3 = 0 ;
32680 int val4 ;
32681 int ecode4 = 0 ;
32682 int val5 ;
32683 int ecode5 = 0 ;
32684 PyObject * obj0 = 0 ;
32685 PyObject * obj1 = 0 ;
32686 PyObject * obj2 = 0 ;
32687 PyObject * obj3 = 0 ;
32688 PyObject * obj4 = 0 ;
32689 char * kwnames[] = {
32690 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32691 };
32692
32693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32695 if (!SWIG_IsOK(res1)) {
32696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32697 }
32698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32699 ecode2 = SWIG_AsVal_int(obj1, &val2);
32700 if (!SWIG_IsOK(ecode2)) {
32701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32702 }
32703 arg2 = static_cast< int >(val2);
32704 ecode3 = SWIG_AsVal_int(obj2, &val3);
32705 if (!SWIG_IsOK(ecode3)) {
32706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32707 }
32708 arg3 = static_cast< int >(val3);
32709 ecode4 = SWIG_AsVal_int(obj3, &val4);
32710 if (!SWIG_IsOK(ecode4)) {
32711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32712 }
32713 arg4 = static_cast< int >(val4);
32714 ecode5 = SWIG_AsVal_int(obj4, &val5);
32715 if (!SWIG_IsOK(ecode5)) {
32716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32717 }
32718 arg5 = static_cast< int >(val5);
32719 {
32720 PyThreadState* __tstate = wxPyBeginAllowThreads();
32721 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32722 wxPyEndAllowThreads(__tstate);
32723 if (PyErr_Occurred()) SWIG_fail;
32724 }
32725 resultobj = SWIG_Py_Void();
32726 return resultobj;
32727 fail:
32728 return NULL;
32729 }
32730
32731
32732 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32733 PyObject *resultobj = 0;
32734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32735 wxPoint *arg2 = 0 ;
32736 wxPoint *arg3 = 0 ;
32737 void *argp1 = 0 ;
32738 int res1 = 0 ;
32739 wxPoint temp2 ;
32740 wxPoint temp3 ;
32741 PyObject * obj0 = 0 ;
32742 PyObject * obj1 = 0 ;
32743 PyObject * obj2 = 0 ;
32744 char * kwnames[] = {
32745 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32746 };
32747
32748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32750 if (!SWIG_IsOK(res1)) {
32751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32752 }
32753 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32754 {
32755 arg2 = &temp2;
32756 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32757 }
32758 {
32759 arg3 = &temp3;
32760 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32761 }
32762 {
32763 PyThreadState* __tstate = wxPyBeginAllowThreads();
32764 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32765 wxPyEndAllowThreads(__tstate);
32766 if (PyErr_Occurred()) SWIG_fail;
32767 }
32768 resultobj = SWIG_Py_Void();
32769 return resultobj;
32770 fail:
32771 return NULL;
32772 }
32773
32774
32775 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32776 PyObject *resultobj = 0;
32777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32778 int arg2 ;
32779 int arg3 ;
32780 void *argp1 = 0 ;
32781 int res1 = 0 ;
32782 int val2 ;
32783 int ecode2 = 0 ;
32784 int val3 ;
32785 int ecode3 = 0 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 PyObject * obj2 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "x",(char *) "y", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32797 }
32798 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32799 ecode2 = SWIG_AsVal_int(obj1, &val2);
32800 if (!SWIG_IsOK(ecode2)) {
32801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32802 }
32803 arg2 = static_cast< int >(val2);
32804 ecode3 = SWIG_AsVal_int(obj2, &val3);
32805 if (!SWIG_IsOK(ecode3)) {
32806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32807 }
32808 arg3 = static_cast< int >(val3);
32809 {
32810 PyThreadState* __tstate = wxPyBeginAllowThreads();
32811 (arg1)->CrossHair(arg2,arg3);
32812 wxPyEndAllowThreads(__tstate);
32813 if (PyErr_Occurred()) SWIG_fail;
32814 }
32815 resultobj = SWIG_Py_Void();
32816 return resultobj;
32817 fail:
32818 return NULL;
32819 }
32820
32821
32822 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32823 PyObject *resultobj = 0;
32824 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32825 wxPoint *arg2 = 0 ;
32826 void *argp1 = 0 ;
32827 int res1 = 0 ;
32828 wxPoint temp2 ;
32829 PyObject * obj0 = 0 ;
32830 PyObject * obj1 = 0 ;
32831 char * kwnames[] = {
32832 (char *) "self",(char *) "pt", NULL
32833 };
32834
32835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32837 if (!SWIG_IsOK(res1)) {
32838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32839 }
32840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32841 {
32842 arg2 = &temp2;
32843 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32844 }
32845 {
32846 PyThreadState* __tstate = wxPyBeginAllowThreads();
32847 (arg1)->CrossHair((wxPoint const &)*arg2);
32848 wxPyEndAllowThreads(__tstate);
32849 if (PyErr_Occurred()) SWIG_fail;
32850 }
32851 resultobj = SWIG_Py_Void();
32852 return resultobj;
32853 fail:
32854 return NULL;
32855 }
32856
32857
32858 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32859 PyObject *resultobj = 0;
32860 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32861 int arg2 ;
32862 int arg3 ;
32863 int arg4 ;
32864 int arg5 ;
32865 int arg6 ;
32866 int arg7 ;
32867 void *argp1 = 0 ;
32868 int res1 = 0 ;
32869 int val2 ;
32870 int ecode2 = 0 ;
32871 int val3 ;
32872 int ecode3 = 0 ;
32873 int val4 ;
32874 int ecode4 = 0 ;
32875 int val5 ;
32876 int ecode5 = 0 ;
32877 int val6 ;
32878 int ecode6 = 0 ;
32879 int val7 ;
32880 int ecode7 = 0 ;
32881 PyObject * obj0 = 0 ;
32882 PyObject * obj1 = 0 ;
32883 PyObject * obj2 = 0 ;
32884 PyObject * obj3 = 0 ;
32885 PyObject * obj4 = 0 ;
32886 PyObject * obj5 = 0 ;
32887 PyObject * obj6 = 0 ;
32888 char * kwnames[] = {
32889 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32890 };
32891
32892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32894 if (!SWIG_IsOK(res1)) {
32895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32896 }
32897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32898 ecode2 = SWIG_AsVal_int(obj1, &val2);
32899 if (!SWIG_IsOK(ecode2)) {
32900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32901 }
32902 arg2 = static_cast< int >(val2);
32903 ecode3 = SWIG_AsVal_int(obj2, &val3);
32904 if (!SWIG_IsOK(ecode3)) {
32905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32906 }
32907 arg3 = static_cast< int >(val3);
32908 ecode4 = SWIG_AsVal_int(obj3, &val4);
32909 if (!SWIG_IsOK(ecode4)) {
32910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32911 }
32912 arg4 = static_cast< int >(val4);
32913 ecode5 = SWIG_AsVal_int(obj4, &val5);
32914 if (!SWIG_IsOK(ecode5)) {
32915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32916 }
32917 arg5 = static_cast< int >(val5);
32918 ecode6 = SWIG_AsVal_int(obj5, &val6);
32919 if (!SWIG_IsOK(ecode6)) {
32920 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32921 }
32922 arg6 = static_cast< int >(val6);
32923 ecode7 = SWIG_AsVal_int(obj6, &val7);
32924 if (!SWIG_IsOK(ecode7)) {
32925 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32926 }
32927 arg7 = static_cast< int >(val7);
32928 {
32929 PyThreadState* __tstate = wxPyBeginAllowThreads();
32930 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32931 wxPyEndAllowThreads(__tstate);
32932 if (PyErr_Occurred()) SWIG_fail;
32933 }
32934 resultobj = SWIG_Py_Void();
32935 return resultobj;
32936 fail:
32937 return NULL;
32938 }
32939
32940
32941 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32942 PyObject *resultobj = 0;
32943 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32944 wxPoint *arg2 = 0 ;
32945 wxPoint *arg3 = 0 ;
32946 wxPoint *arg4 = 0 ;
32947 void *argp1 = 0 ;
32948 int res1 = 0 ;
32949 wxPoint temp2 ;
32950 wxPoint temp3 ;
32951 wxPoint temp4 ;
32952 PyObject * obj0 = 0 ;
32953 PyObject * obj1 = 0 ;
32954 PyObject * obj2 = 0 ;
32955 PyObject * obj3 = 0 ;
32956 char * kwnames[] = {
32957 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32958 };
32959
32960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32962 if (!SWIG_IsOK(res1)) {
32963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32964 }
32965 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32966 {
32967 arg2 = &temp2;
32968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32969 }
32970 {
32971 arg3 = &temp3;
32972 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32973 }
32974 {
32975 arg4 = &temp4;
32976 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32977 }
32978 {
32979 PyThreadState* __tstate = wxPyBeginAllowThreads();
32980 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32981 wxPyEndAllowThreads(__tstate);
32982 if (PyErr_Occurred()) SWIG_fail;
32983 }
32984 resultobj = SWIG_Py_Void();
32985 return resultobj;
32986 fail:
32987 return NULL;
32988 }
32989
32990
32991 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32992 PyObject *resultobj = 0;
32993 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32994 int arg2 ;
32995 int arg3 ;
32996 int arg4 ;
32997 int arg5 ;
32998 void *argp1 = 0 ;
32999 int res1 = 0 ;
33000 int val2 ;
33001 int ecode2 = 0 ;
33002 int val3 ;
33003 int ecode3 = 0 ;
33004 int val4 ;
33005 int ecode4 = 0 ;
33006 int val5 ;
33007 int ecode5 = 0 ;
33008 PyObject * obj0 = 0 ;
33009 PyObject * obj1 = 0 ;
33010 PyObject * obj2 = 0 ;
33011 PyObject * obj3 = 0 ;
33012 PyObject * obj4 = 0 ;
33013 char * kwnames[] = {
33014 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33015 };
33016
33017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33019 if (!SWIG_IsOK(res1)) {
33020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33021 }
33022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33023 ecode2 = SWIG_AsVal_int(obj1, &val2);
33024 if (!SWIG_IsOK(ecode2)) {
33025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33026 }
33027 arg2 = static_cast< int >(val2);
33028 ecode3 = SWIG_AsVal_int(obj2, &val3);
33029 if (!SWIG_IsOK(ecode3)) {
33030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33031 }
33032 arg3 = static_cast< int >(val3);
33033 ecode4 = SWIG_AsVal_int(obj3, &val4);
33034 if (!SWIG_IsOK(ecode4)) {
33035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33036 }
33037 arg4 = static_cast< int >(val4);
33038 ecode5 = SWIG_AsVal_int(obj4, &val5);
33039 if (!SWIG_IsOK(ecode5)) {
33040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33041 }
33042 arg5 = static_cast< int >(val5);
33043 {
33044 PyThreadState* __tstate = wxPyBeginAllowThreads();
33045 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33046 wxPyEndAllowThreads(__tstate);
33047 if (PyErr_Occurred()) SWIG_fail;
33048 }
33049 resultobj = SWIG_Py_Void();
33050 return resultobj;
33051 fail:
33052 return NULL;
33053 }
33054
33055
33056 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33057 PyObject *resultobj = 0;
33058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33059 wxRect *arg2 = 0 ;
33060 void *argp1 = 0 ;
33061 int res1 = 0 ;
33062 wxRect temp2 ;
33063 PyObject * obj0 = 0 ;
33064 PyObject * obj1 = 0 ;
33065 char * kwnames[] = {
33066 (char *) "self",(char *) "rect", NULL
33067 };
33068
33069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33071 if (!SWIG_IsOK(res1)) {
33072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33073 }
33074 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33075 {
33076 arg2 = &temp2;
33077 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33078 }
33079 {
33080 PyThreadState* __tstate = wxPyBeginAllowThreads();
33081 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33082 wxPyEndAllowThreads(__tstate);
33083 if (PyErr_Occurred()) SWIG_fail;
33084 }
33085 resultobj = SWIG_Py_Void();
33086 return resultobj;
33087 fail:
33088 return NULL;
33089 }
33090
33091
33092 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33093 PyObject *resultobj = 0;
33094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33095 int arg2 ;
33096 int arg3 ;
33097 int arg4 ;
33098 int arg5 ;
33099 double arg6 ;
33100 double arg7 ;
33101 void *argp1 = 0 ;
33102 int res1 = 0 ;
33103 int val2 ;
33104 int ecode2 = 0 ;
33105 int val3 ;
33106 int ecode3 = 0 ;
33107 int val4 ;
33108 int ecode4 = 0 ;
33109 int val5 ;
33110 int ecode5 = 0 ;
33111 double val6 ;
33112 int ecode6 = 0 ;
33113 double val7 ;
33114 int ecode7 = 0 ;
33115 PyObject * obj0 = 0 ;
33116 PyObject * obj1 = 0 ;
33117 PyObject * obj2 = 0 ;
33118 PyObject * obj3 = 0 ;
33119 PyObject * obj4 = 0 ;
33120 PyObject * obj5 = 0 ;
33121 PyObject * obj6 = 0 ;
33122 char * kwnames[] = {
33123 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33124 };
33125
33126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33128 if (!SWIG_IsOK(res1)) {
33129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33130 }
33131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33132 ecode2 = SWIG_AsVal_int(obj1, &val2);
33133 if (!SWIG_IsOK(ecode2)) {
33134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33135 }
33136 arg2 = static_cast< int >(val2);
33137 ecode3 = SWIG_AsVal_int(obj2, &val3);
33138 if (!SWIG_IsOK(ecode3)) {
33139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33140 }
33141 arg3 = static_cast< int >(val3);
33142 ecode4 = SWIG_AsVal_int(obj3, &val4);
33143 if (!SWIG_IsOK(ecode4)) {
33144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33145 }
33146 arg4 = static_cast< int >(val4);
33147 ecode5 = SWIG_AsVal_int(obj4, &val5);
33148 if (!SWIG_IsOK(ecode5)) {
33149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33150 }
33151 arg5 = static_cast< int >(val5);
33152 ecode6 = SWIG_AsVal_double(obj5, &val6);
33153 if (!SWIG_IsOK(ecode6)) {
33154 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33155 }
33156 arg6 = static_cast< double >(val6);
33157 ecode7 = SWIG_AsVal_double(obj6, &val7);
33158 if (!SWIG_IsOK(ecode7)) {
33159 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33160 }
33161 arg7 = static_cast< double >(val7);
33162 {
33163 PyThreadState* __tstate = wxPyBeginAllowThreads();
33164 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33165 wxPyEndAllowThreads(__tstate);
33166 if (PyErr_Occurred()) SWIG_fail;
33167 }
33168 resultobj = SWIG_Py_Void();
33169 return resultobj;
33170 fail:
33171 return NULL;
33172 }
33173
33174
33175 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33176 PyObject *resultobj = 0;
33177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33178 wxPoint *arg2 = 0 ;
33179 wxSize *arg3 = 0 ;
33180 double arg4 ;
33181 double arg5 ;
33182 void *argp1 = 0 ;
33183 int res1 = 0 ;
33184 wxPoint temp2 ;
33185 wxSize temp3 ;
33186 double val4 ;
33187 int ecode4 = 0 ;
33188 double val5 ;
33189 int ecode5 = 0 ;
33190 PyObject * obj0 = 0 ;
33191 PyObject * obj1 = 0 ;
33192 PyObject * obj2 = 0 ;
33193 PyObject * obj3 = 0 ;
33194 PyObject * obj4 = 0 ;
33195 char * kwnames[] = {
33196 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33197 };
33198
33199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33201 if (!SWIG_IsOK(res1)) {
33202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33203 }
33204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33205 {
33206 arg2 = &temp2;
33207 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33208 }
33209 {
33210 arg3 = &temp3;
33211 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33212 }
33213 ecode4 = SWIG_AsVal_double(obj3, &val4);
33214 if (!SWIG_IsOK(ecode4)) {
33215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33216 }
33217 arg4 = static_cast< double >(val4);
33218 ecode5 = SWIG_AsVal_double(obj4, &val5);
33219 if (!SWIG_IsOK(ecode5)) {
33220 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33221 }
33222 arg5 = static_cast< double >(val5);
33223 {
33224 PyThreadState* __tstate = wxPyBeginAllowThreads();
33225 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33226 wxPyEndAllowThreads(__tstate);
33227 if (PyErr_Occurred()) SWIG_fail;
33228 }
33229 resultobj = SWIG_Py_Void();
33230 return resultobj;
33231 fail:
33232 return NULL;
33233 }
33234
33235
33236 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33237 PyObject *resultobj = 0;
33238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33239 int arg2 ;
33240 int arg3 ;
33241 void *argp1 = 0 ;
33242 int res1 = 0 ;
33243 int val2 ;
33244 int ecode2 = 0 ;
33245 int val3 ;
33246 int ecode3 = 0 ;
33247 PyObject * obj0 = 0 ;
33248 PyObject * obj1 = 0 ;
33249 PyObject * obj2 = 0 ;
33250 char * kwnames[] = {
33251 (char *) "self",(char *) "x",(char *) "y", NULL
33252 };
33253
33254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33256 if (!SWIG_IsOK(res1)) {
33257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33258 }
33259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33260 ecode2 = SWIG_AsVal_int(obj1, &val2);
33261 if (!SWIG_IsOK(ecode2)) {
33262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33263 }
33264 arg2 = static_cast< int >(val2);
33265 ecode3 = SWIG_AsVal_int(obj2, &val3);
33266 if (!SWIG_IsOK(ecode3)) {
33267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33268 }
33269 arg3 = static_cast< int >(val3);
33270 {
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 (arg1)->DrawPoint(arg2,arg3);
33273 wxPyEndAllowThreads(__tstate);
33274 if (PyErr_Occurred()) SWIG_fail;
33275 }
33276 resultobj = SWIG_Py_Void();
33277 return resultobj;
33278 fail:
33279 return NULL;
33280 }
33281
33282
33283 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33284 PyObject *resultobj = 0;
33285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33286 wxPoint *arg2 = 0 ;
33287 void *argp1 = 0 ;
33288 int res1 = 0 ;
33289 wxPoint temp2 ;
33290 PyObject * obj0 = 0 ;
33291 PyObject * obj1 = 0 ;
33292 char * kwnames[] = {
33293 (char *) "self",(char *) "pt", NULL
33294 };
33295
33296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33298 if (!SWIG_IsOK(res1)) {
33299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33300 }
33301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33302 {
33303 arg2 = &temp2;
33304 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33305 }
33306 {
33307 PyThreadState* __tstate = wxPyBeginAllowThreads();
33308 (arg1)->DrawPoint((wxPoint const &)*arg2);
33309 wxPyEndAllowThreads(__tstate);
33310 if (PyErr_Occurred()) SWIG_fail;
33311 }
33312 resultobj = SWIG_Py_Void();
33313 return resultobj;
33314 fail:
33315 return NULL;
33316 }
33317
33318
33319 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33320 PyObject *resultobj = 0;
33321 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33322 int arg2 ;
33323 int arg3 ;
33324 int arg4 ;
33325 int arg5 ;
33326 void *argp1 = 0 ;
33327 int res1 = 0 ;
33328 int val2 ;
33329 int ecode2 = 0 ;
33330 int val3 ;
33331 int ecode3 = 0 ;
33332 int val4 ;
33333 int ecode4 = 0 ;
33334 int val5 ;
33335 int ecode5 = 0 ;
33336 PyObject * obj0 = 0 ;
33337 PyObject * obj1 = 0 ;
33338 PyObject * obj2 = 0 ;
33339 PyObject * obj3 = 0 ;
33340 PyObject * obj4 = 0 ;
33341 char * kwnames[] = {
33342 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33343 };
33344
33345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33347 if (!SWIG_IsOK(res1)) {
33348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33349 }
33350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33351 ecode2 = SWIG_AsVal_int(obj1, &val2);
33352 if (!SWIG_IsOK(ecode2)) {
33353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33354 }
33355 arg2 = static_cast< int >(val2);
33356 ecode3 = SWIG_AsVal_int(obj2, &val3);
33357 if (!SWIG_IsOK(ecode3)) {
33358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33359 }
33360 arg3 = static_cast< int >(val3);
33361 ecode4 = SWIG_AsVal_int(obj3, &val4);
33362 if (!SWIG_IsOK(ecode4)) {
33363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33364 }
33365 arg4 = static_cast< int >(val4);
33366 ecode5 = SWIG_AsVal_int(obj4, &val5);
33367 if (!SWIG_IsOK(ecode5)) {
33368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33369 }
33370 arg5 = static_cast< int >(val5);
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
33373 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33374 wxPyEndAllowThreads(__tstate);
33375 if (PyErr_Occurred()) SWIG_fail;
33376 }
33377 resultobj = SWIG_Py_Void();
33378 return resultobj;
33379 fail:
33380 return NULL;
33381 }
33382
33383
33384 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33385 PyObject *resultobj = 0;
33386 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33387 wxRect *arg2 = 0 ;
33388 void *argp1 = 0 ;
33389 int res1 = 0 ;
33390 wxRect temp2 ;
33391 PyObject * obj0 = 0 ;
33392 PyObject * obj1 = 0 ;
33393 char * kwnames[] = {
33394 (char *) "self",(char *) "rect", NULL
33395 };
33396
33397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33399 if (!SWIG_IsOK(res1)) {
33400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33401 }
33402 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33403 {
33404 arg2 = &temp2;
33405 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33406 }
33407 {
33408 PyThreadState* __tstate = wxPyBeginAllowThreads();
33409 (arg1)->DrawRectangle((wxRect const &)*arg2);
33410 wxPyEndAllowThreads(__tstate);
33411 if (PyErr_Occurred()) SWIG_fail;
33412 }
33413 resultobj = SWIG_Py_Void();
33414 return resultobj;
33415 fail:
33416 return NULL;
33417 }
33418
33419
33420 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33421 PyObject *resultobj = 0;
33422 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33423 wxPoint *arg2 = 0 ;
33424 wxSize *arg3 = 0 ;
33425 void *argp1 = 0 ;
33426 int res1 = 0 ;
33427 wxPoint temp2 ;
33428 wxSize temp3 ;
33429 PyObject * obj0 = 0 ;
33430 PyObject * obj1 = 0 ;
33431 PyObject * obj2 = 0 ;
33432 char * kwnames[] = {
33433 (char *) "self",(char *) "pt",(char *) "sz", NULL
33434 };
33435
33436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33438 if (!SWIG_IsOK(res1)) {
33439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33440 }
33441 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33442 {
33443 arg2 = &temp2;
33444 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33445 }
33446 {
33447 arg3 = &temp3;
33448 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33449 }
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
33452 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 resultobj = SWIG_Py_Void();
33457 return resultobj;
33458 fail:
33459 return NULL;
33460 }
33461
33462
33463 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33464 PyObject *resultobj = 0;
33465 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33466 int arg2 ;
33467 int arg3 ;
33468 int arg4 ;
33469 int arg5 ;
33470 double arg6 ;
33471 void *argp1 = 0 ;
33472 int res1 = 0 ;
33473 int val2 ;
33474 int ecode2 = 0 ;
33475 int val3 ;
33476 int ecode3 = 0 ;
33477 int val4 ;
33478 int ecode4 = 0 ;
33479 int val5 ;
33480 int ecode5 = 0 ;
33481 double val6 ;
33482 int ecode6 = 0 ;
33483 PyObject * obj0 = 0 ;
33484 PyObject * obj1 = 0 ;
33485 PyObject * obj2 = 0 ;
33486 PyObject * obj3 = 0 ;
33487 PyObject * obj4 = 0 ;
33488 PyObject * obj5 = 0 ;
33489 char * kwnames[] = {
33490 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33491 };
33492
33493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33495 if (!SWIG_IsOK(res1)) {
33496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33497 }
33498 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33499 ecode2 = SWIG_AsVal_int(obj1, &val2);
33500 if (!SWIG_IsOK(ecode2)) {
33501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33502 }
33503 arg2 = static_cast< int >(val2);
33504 ecode3 = SWIG_AsVal_int(obj2, &val3);
33505 if (!SWIG_IsOK(ecode3)) {
33506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33507 }
33508 arg3 = static_cast< int >(val3);
33509 ecode4 = SWIG_AsVal_int(obj3, &val4);
33510 if (!SWIG_IsOK(ecode4)) {
33511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33512 }
33513 arg4 = static_cast< int >(val4);
33514 ecode5 = SWIG_AsVal_int(obj4, &val5);
33515 if (!SWIG_IsOK(ecode5)) {
33516 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33517 }
33518 arg5 = static_cast< int >(val5);
33519 ecode6 = SWIG_AsVal_double(obj5, &val6);
33520 if (!SWIG_IsOK(ecode6)) {
33521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33522 }
33523 arg6 = static_cast< double >(val6);
33524 {
33525 PyThreadState* __tstate = wxPyBeginAllowThreads();
33526 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33527 wxPyEndAllowThreads(__tstate);
33528 if (PyErr_Occurred()) SWIG_fail;
33529 }
33530 resultobj = SWIG_Py_Void();
33531 return resultobj;
33532 fail:
33533 return NULL;
33534 }
33535
33536
33537 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33538 PyObject *resultobj = 0;
33539 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33540 wxRect *arg2 = 0 ;
33541 double arg3 ;
33542 void *argp1 = 0 ;
33543 int res1 = 0 ;
33544 wxRect temp2 ;
33545 double val3 ;
33546 int ecode3 = 0 ;
33547 PyObject * obj0 = 0 ;
33548 PyObject * obj1 = 0 ;
33549 PyObject * obj2 = 0 ;
33550 char * kwnames[] = {
33551 (char *) "self",(char *) "r",(char *) "radius", NULL
33552 };
33553
33554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33556 if (!SWIG_IsOK(res1)) {
33557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33558 }
33559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33560 {
33561 arg2 = &temp2;
33562 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33563 }
33564 ecode3 = SWIG_AsVal_double(obj2, &val3);
33565 if (!SWIG_IsOK(ecode3)) {
33566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33567 }
33568 arg3 = static_cast< double >(val3);
33569 {
33570 PyThreadState* __tstate = wxPyBeginAllowThreads();
33571 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33572 wxPyEndAllowThreads(__tstate);
33573 if (PyErr_Occurred()) SWIG_fail;
33574 }
33575 resultobj = SWIG_Py_Void();
33576 return resultobj;
33577 fail:
33578 return NULL;
33579 }
33580
33581
33582 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33583 PyObject *resultobj = 0;
33584 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33585 wxPoint *arg2 = 0 ;
33586 wxSize *arg3 = 0 ;
33587 double arg4 ;
33588 void *argp1 = 0 ;
33589 int res1 = 0 ;
33590 wxPoint temp2 ;
33591 wxSize temp3 ;
33592 double val4 ;
33593 int ecode4 = 0 ;
33594 PyObject * obj0 = 0 ;
33595 PyObject * obj1 = 0 ;
33596 PyObject * obj2 = 0 ;
33597 PyObject * obj3 = 0 ;
33598 char * kwnames[] = {
33599 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33600 };
33601
33602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33604 if (!SWIG_IsOK(res1)) {
33605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33606 }
33607 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33608 {
33609 arg2 = &temp2;
33610 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33611 }
33612 {
33613 arg3 = &temp3;
33614 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33615 }
33616 ecode4 = SWIG_AsVal_double(obj3, &val4);
33617 if (!SWIG_IsOK(ecode4)) {
33618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33619 }
33620 arg4 = static_cast< double >(val4);
33621 {
33622 PyThreadState* __tstate = wxPyBeginAllowThreads();
33623 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33624 wxPyEndAllowThreads(__tstate);
33625 if (PyErr_Occurred()) SWIG_fail;
33626 }
33627 resultobj = SWIG_Py_Void();
33628 return resultobj;
33629 fail:
33630 return NULL;
33631 }
33632
33633
33634 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33635 PyObject *resultobj = 0;
33636 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33637 int arg2 ;
33638 int arg3 ;
33639 int arg4 ;
33640 void *argp1 = 0 ;
33641 int res1 = 0 ;
33642 int val2 ;
33643 int ecode2 = 0 ;
33644 int val3 ;
33645 int ecode3 = 0 ;
33646 int val4 ;
33647 int ecode4 = 0 ;
33648 PyObject * obj0 = 0 ;
33649 PyObject * obj1 = 0 ;
33650 PyObject * obj2 = 0 ;
33651 PyObject * obj3 = 0 ;
33652 char * kwnames[] = {
33653 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33654 };
33655
33656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33658 if (!SWIG_IsOK(res1)) {
33659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33660 }
33661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33662 ecode2 = SWIG_AsVal_int(obj1, &val2);
33663 if (!SWIG_IsOK(ecode2)) {
33664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33665 }
33666 arg2 = static_cast< int >(val2);
33667 ecode3 = SWIG_AsVal_int(obj2, &val3);
33668 if (!SWIG_IsOK(ecode3)) {
33669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33670 }
33671 arg3 = static_cast< int >(val3);
33672 ecode4 = SWIG_AsVal_int(obj3, &val4);
33673 if (!SWIG_IsOK(ecode4)) {
33674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33675 }
33676 arg4 = static_cast< int >(val4);
33677 {
33678 PyThreadState* __tstate = wxPyBeginAllowThreads();
33679 (arg1)->DrawCircle(arg2,arg3,arg4);
33680 wxPyEndAllowThreads(__tstate);
33681 if (PyErr_Occurred()) SWIG_fail;
33682 }
33683 resultobj = SWIG_Py_Void();
33684 return resultobj;
33685 fail:
33686 return NULL;
33687 }
33688
33689
33690 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33691 PyObject *resultobj = 0;
33692 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33693 wxPoint *arg2 = 0 ;
33694 int arg3 ;
33695 void *argp1 = 0 ;
33696 int res1 = 0 ;
33697 wxPoint temp2 ;
33698 int val3 ;
33699 int ecode3 = 0 ;
33700 PyObject * obj0 = 0 ;
33701 PyObject * obj1 = 0 ;
33702 PyObject * obj2 = 0 ;
33703 char * kwnames[] = {
33704 (char *) "self",(char *) "pt",(char *) "radius", NULL
33705 };
33706
33707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33709 if (!SWIG_IsOK(res1)) {
33710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33711 }
33712 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33713 {
33714 arg2 = &temp2;
33715 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33716 }
33717 ecode3 = SWIG_AsVal_int(obj2, &val3);
33718 if (!SWIG_IsOK(ecode3)) {
33719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33720 }
33721 arg3 = static_cast< int >(val3);
33722 {
33723 PyThreadState* __tstate = wxPyBeginAllowThreads();
33724 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33725 wxPyEndAllowThreads(__tstate);
33726 if (PyErr_Occurred()) SWIG_fail;
33727 }
33728 resultobj = SWIG_Py_Void();
33729 return resultobj;
33730 fail:
33731 return NULL;
33732 }
33733
33734
33735 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33736 PyObject *resultobj = 0;
33737 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33738 int arg2 ;
33739 int arg3 ;
33740 int arg4 ;
33741 int arg5 ;
33742 void *argp1 = 0 ;
33743 int res1 = 0 ;
33744 int val2 ;
33745 int ecode2 = 0 ;
33746 int val3 ;
33747 int ecode3 = 0 ;
33748 int val4 ;
33749 int ecode4 = 0 ;
33750 int val5 ;
33751 int ecode5 = 0 ;
33752 PyObject * obj0 = 0 ;
33753 PyObject * obj1 = 0 ;
33754 PyObject * obj2 = 0 ;
33755 PyObject * obj3 = 0 ;
33756 PyObject * obj4 = 0 ;
33757 char * kwnames[] = {
33758 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33759 };
33760
33761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33763 if (!SWIG_IsOK(res1)) {
33764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33765 }
33766 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33767 ecode2 = SWIG_AsVal_int(obj1, &val2);
33768 if (!SWIG_IsOK(ecode2)) {
33769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33770 }
33771 arg2 = static_cast< int >(val2);
33772 ecode3 = SWIG_AsVal_int(obj2, &val3);
33773 if (!SWIG_IsOK(ecode3)) {
33774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33775 }
33776 arg3 = static_cast< int >(val3);
33777 ecode4 = SWIG_AsVal_int(obj3, &val4);
33778 if (!SWIG_IsOK(ecode4)) {
33779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33780 }
33781 arg4 = static_cast< int >(val4);
33782 ecode5 = SWIG_AsVal_int(obj4, &val5);
33783 if (!SWIG_IsOK(ecode5)) {
33784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33785 }
33786 arg5 = static_cast< int >(val5);
33787 {
33788 PyThreadState* __tstate = wxPyBeginAllowThreads();
33789 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33790 wxPyEndAllowThreads(__tstate);
33791 if (PyErr_Occurred()) SWIG_fail;
33792 }
33793 resultobj = SWIG_Py_Void();
33794 return resultobj;
33795 fail:
33796 return NULL;
33797 }
33798
33799
33800 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33801 PyObject *resultobj = 0;
33802 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33803 wxRect *arg2 = 0 ;
33804 void *argp1 = 0 ;
33805 int res1 = 0 ;
33806 wxRect temp2 ;
33807 PyObject * obj0 = 0 ;
33808 PyObject * obj1 = 0 ;
33809 char * kwnames[] = {
33810 (char *) "self",(char *) "rect", NULL
33811 };
33812
33813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33815 if (!SWIG_IsOK(res1)) {
33816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33817 }
33818 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33819 {
33820 arg2 = &temp2;
33821 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33822 }
33823 {
33824 PyThreadState* __tstate = wxPyBeginAllowThreads();
33825 (arg1)->DrawEllipse((wxRect const &)*arg2);
33826 wxPyEndAllowThreads(__tstate);
33827 if (PyErr_Occurred()) SWIG_fail;
33828 }
33829 resultobj = SWIG_Py_Void();
33830 return resultobj;
33831 fail:
33832 return NULL;
33833 }
33834
33835
33836 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33837 PyObject *resultobj = 0;
33838 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33839 wxPoint *arg2 = 0 ;
33840 wxSize *arg3 = 0 ;
33841 void *argp1 = 0 ;
33842 int res1 = 0 ;
33843 wxPoint temp2 ;
33844 wxSize temp3 ;
33845 PyObject * obj0 = 0 ;
33846 PyObject * obj1 = 0 ;
33847 PyObject * obj2 = 0 ;
33848 char * kwnames[] = {
33849 (char *) "self",(char *) "pt",(char *) "sz", NULL
33850 };
33851
33852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33854 if (!SWIG_IsOK(res1)) {
33855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33856 }
33857 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33858 {
33859 arg2 = &temp2;
33860 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33861 }
33862 {
33863 arg3 = &temp3;
33864 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33865 }
33866 {
33867 PyThreadState* __tstate = wxPyBeginAllowThreads();
33868 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33869 wxPyEndAllowThreads(__tstate);
33870 if (PyErr_Occurred()) SWIG_fail;
33871 }
33872 resultobj = SWIG_Py_Void();
33873 return resultobj;
33874 fail:
33875 return NULL;
33876 }
33877
33878
33879 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33880 PyObject *resultobj = 0;
33881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33882 wxIcon *arg2 = 0 ;
33883 int arg3 ;
33884 int arg4 ;
33885 void *argp1 = 0 ;
33886 int res1 = 0 ;
33887 void *argp2 = 0 ;
33888 int res2 = 0 ;
33889 int val3 ;
33890 int ecode3 = 0 ;
33891 int val4 ;
33892 int ecode4 = 0 ;
33893 PyObject * obj0 = 0 ;
33894 PyObject * obj1 = 0 ;
33895 PyObject * obj2 = 0 ;
33896 PyObject * obj3 = 0 ;
33897 char * kwnames[] = {
33898 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33899 };
33900
33901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33903 if (!SWIG_IsOK(res1)) {
33904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33905 }
33906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33908 if (!SWIG_IsOK(res2)) {
33909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33910 }
33911 if (!argp2) {
33912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33913 }
33914 arg2 = reinterpret_cast< wxIcon * >(argp2);
33915 ecode3 = SWIG_AsVal_int(obj2, &val3);
33916 if (!SWIG_IsOK(ecode3)) {
33917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33918 }
33919 arg3 = static_cast< int >(val3);
33920 ecode4 = SWIG_AsVal_int(obj3, &val4);
33921 if (!SWIG_IsOK(ecode4)) {
33922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33923 }
33924 arg4 = static_cast< int >(val4);
33925 {
33926 PyThreadState* __tstate = wxPyBeginAllowThreads();
33927 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33928 wxPyEndAllowThreads(__tstate);
33929 if (PyErr_Occurred()) SWIG_fail;
33930 }
33931 resultobj = SWIG_Py_Void();
33932 return resultobj;
33933 fail:
33934 return NULL;
33935 }
33936
33937
33938 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33939 PyObject *resultobj = 0;
33940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33941 wxIcon *arg2 = 0 ;
33942 wxPoint *arg3 = 0 ;
33943 void *argp1 = 0 ;
33944 int res1 = 0 ;
33945 void *argp2 = 0 ;
33946 int res2 = 0 ;
33947 wxPoint temp3 ;
33948 PyObject * obj0 = 0 ;
33949 PyObject * obj1 = 0 ;
33950 PyObject * obj2 = 0 ;
33951 char * kwnames[] = {
33952 (char *) "self",(char *) "icon",(char *) "pt", NULL
33953 };
33954
33955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33957 if (!SWIG_IsOK(res1)) {
33958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33959 }
33960 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33962 if (!SWIG_IsOK(res2)) {
33963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33964 }
33965 if (!argp2) {
33966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33967 }
33968 arg2 = reinterpret_cast< wxIcon * >(argp2);
33969 {
33970 arg3 = &temp3;
33971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33972 }
33973 {
33974 PyThreadState* __tstate = wxPyBeginAllowThreads();
33975 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33976 wxPyEndAllowThreads(__tstate);
33977 if (PyErr_Occurred()) SWIG_fail;
33978 }
33979 resultobj = SWIG_Py_Void();
33980 return resultobj;
33981 fail:
33982 return NULL;
33983 }
33984
33985
33986 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33987 PyObject *resultobj = 0;
33988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33989 wxBitmap *arg2 = 0 ;
33990 int arg3 ;
33991 int arg4 ;
33992 bool arg5 = (bool) false ;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 void *argp2 = 0 ;
33996 int res2 = 0 ;
33997 int val3 ;
33998 int ecode3 = 0 ;
33999 int val4 ;
34000 int ecode4 = 0 ;
34001 bool val5 ;
34002 int ecode5 = 0 ;
34003 PyObject * obj0 = 0 ;
34004 PyObject * obj1 = 0 ;
34005 PyObject * obj2 = 0 ;
34006 PyObject * obj3 = 0 ;
34007 PyObject * obj4 = 0 ;
34008 char * kwnames[] = {
34009 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34010 };
34011
34012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34014 if (!SWIG_IsOK(res1)) {
34015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34016 }
34017 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34019 if (!SWIG_IsOK(res2)) {
34020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34021 }
34022 if (!argp2) {
34023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34024 }
34025 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34026 ecode3 = SWIG_AsVal_int(obj2, &val3);
34027 if (!SWIG_IsOK(ecode3)) {
34028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34029 }
34030 arg3 = static_cast< int >(val3);
34031 ecode4 = SWIG_AsVal_int(obj3, &val4);
34032 if (!SWIG_IsOK(ecode4)) {
34033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34034 }
34035 arg4 = static_cast< int >(val4);
34036 if (obj4) {
34037 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34038 if (!SWIG_IsOK(ecode5)) {
34039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34040 }
34041 arg5 = static_cast< bool >(val5);
34042 }
34043 {
34044 PyThreadState* __tstate = wxPyBeginAllowThreads();
34045 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34046 wxPyEndAllowThreads(__tstate);
34047 if (PyErr_Occurred()) SWIG_fail;
34048 }
34049 resultobj = SWIG_Py_Void();
34050 return resultobj;
34051 fail:
34052 return NULL;
34053 }
34054
34055
34056 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34057 PyObject *resultobj = 0;
34058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34059 wxBitmap *arg2 = 0 ;
34060 wxPoint *arg3 = 0 ;
34061 bool arg4 = (bool) false ;
34062 void *argp1 = 0 ;
34063 int res1 = 0 ;
34064 void *argp2 = 0 ;
34065 int res2 = 0 ;
34066 wxPoint temp3 ;
34067 bool val4 ;
34068 int ecode4 = 0 ;
34069 PyObject * obj0 = 0 ;
34070 PyObject * obj1 = 0 ;
34071 PyObject * obj2 = 0 ;
34072 PyObject * obj3 = 0 ;
34073 char * kwnames[] = {
34074 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34075 };
34076
34077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34079 if (!SWIG_IsOK(res1)) {
34080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34081 }
34082 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34084 if (!SWIG_IsOK(res2)) {
34085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34086 }
34087 if (!argp2) {
34088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34089 }
34090 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34091 {
34092 arg3 = &temp3;
34093 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34094 }
34095 if (obj3) {
34096 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34097 if (!SWIG_IsOK(ecode4)) {
34098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34099 }
34100 arg4 = static_cast< bool >(val4);
34101 }
34102 {
34103 PyThreadState* __tstate = wxPyBeginAllowThreads();
34104 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34105 wxPyEndAllowThreads(__tstate);
34106 if (PyErr_Occurred()) SWIG_fail;
34107 }
34108 resultobj = SWIG_Py_Void();
34109 return resultobj;
34110 fail:
34111 return NULL;
34112 }
34113
34114
34115 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34116 PyObject *resultobj = 0;
34117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34118 wxString *arg2 = 0 ;
34119 int arg3 ;
34120 int arg4 ;
34121 void *argp1 = 0 ;
34122 int res1 = 0 ;
34123 bool temp2 = false ;
34124 int val3 ;
34125 int ecode3 = 0 ;
34126 int val4 ;
34127 int ecode4 = 0 ;
34128 PyObject * obj0 = 0 ;
34129 PyObject * obj1 = 0 ;
34130 PyObject * obj2 = 0 ;
34131 PyObject * obj3 = 0 ;
34132 char * kwnames[] = {
34133 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34134 };
34135
34136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34138 if (!SWIG_IsOK(res1)) {
34139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34140 }
34141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34142 {
34143 arg2 = wxString_in_helper(obj1);
34144 if (arg2 == NULL) SWIG_fail;
34145 temp2 = true;
34146 }
34147 ecode3 = SWIG_AsVal_int(obj2, &val3);
34148 if (!SWIG_IsOK(ecode3)) {
34149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34150 }
34151 arg3 = static_cast< int >(val3);
34152 ecode4 = SWIG_AsVal_int(obj3, &val4);
34153 if (!SWIG_IsOK(ecode4)) {
34154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34155 }
34156 arg4 = static_cast< int >(val4);
34157 {
34158 PyThreadState* __tstate = wxPyBeginAllowThreads();
34159 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34160 wxPyEndAllowThreads(__tstate);
34161 if (PyErr_Occurred()) SWIG_fail;
34162 }
34163 resultobj = SWIG_Py_Void();
34164 {
34165 if (temp2)
34166 delete arg2;
34167 }
34168 return resultobj;
34169 fail:
34170 {
34171 if (temp2)
34172 delete arg2;
34173 }
34174 return NULL;
34175 }
34176
34177
34178 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34179 PyObject *resultobj = 0;
34180 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34181 wxString *arg2 = 0 ;
34182 wxPoint *arg3 = 0 ;
34183 void *argp1 = 0 ;
34184 int res1 = 0 ;
34185 bool temp2 = false ;
34186 wxPoint temp3 ;
34187 PyObject * obj0 = 0 ;
34188 PyObject * obj1 = 0 ;
34189 PyObject * obj2 = 0 ;
34190 char * kwnames[] = {
34191 (char *) "self",(char *) "text",(char *) "pt", NULL
34192 };
34193
34194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34196 if (!SWIG_IsOK(res1)) {
34197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34198 }
34199 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34200 {
34201 arg2 = wxString_in_helper(obj1);
34202 if (arg2 == NULL) SWIG_fail;
34203 temp2 = true;
34204 }
34205 {
34206 arg3 = &temp3;
34207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34208 }
34209 {
34210 PyThreadState* __tstate = wxPyBeginAllowThreads();
34211 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34212 wxPyEndAllowThreads(__tstate);
34213 if (PyErr_Occurred()) SWIG_fail;
34214 }
34215 resultobj = SWIG_Py_Void();
34216 {
34217 if (temp2)
34218 delete arg2;
34219 }
34220 return resultobj;
34221 fail:
34222 {
34223 if (temp2)
34224 delete arg2;
34225 }
34226 return NULL;
34227 }
34228
34229
34230 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34231 PyObject *resultobj = 0;
34232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34233 wxString *arg2 = 0 ;
34234 int arg3 ;
34235 int arg4 ;
34236 double arg5 ;
34237 void *argp1 = 0 ;
34238 int res1 = 0 ;
34239 bool temp2 = false ;
34240 int val3 ;
34241 int ecode3 = 0 ;
34242 int val4 ;
34243 int ecode4 = 0 ;
34244 double val5 ;
34245 int ecode5 = 0 ;
34246 PyObject * obj0 = 0 ;
34247 PyObject * obj1 = 0 ;
34248 PyObject * obj2 = 0 ;
34249 PyObject * obj3 = 0 ;
34250 PyObject * obj4 = 0 ;
34251 char * kwnames[] = {
34252 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34253 };
34254
34255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34257 if (!SWIG_IsOK(res1)) {
34258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34259 }
34260 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34261 {
34262 arg2 = wxString_in_helper(obj1);
34263 if (arg2 == NULL) SWIG_fail;
34264 temp2 = true;
34265 }
34266 ecode3 = SWIG_AsVal_int(obj2, &val3);
34267 if (!SWIG_IsOK(ecode3)) {
34268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34269 }
34270 arg3 = static_cast< int >(val3);
34271 ecode4 = SWIG_AsVal_int(obj3, &val4);
34272 if (!SWIG_IsOK(ecode4)) {
34273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34274 }
34275 arg4 = static_cast< int >(val4);
34276 ecode5 = SWIG_AsVal_double(obj4, &val5);
34277 if (!SWIG_IsOK(ecode5)) {
34278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34279 }
34280 arg5 = static_cast< double >(val5);
34281 {
34282 PyThreadState* __tstate = wxPyBeginAllowThreads();
34283 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 resultobj = SWIG_Py_Void();
34288 {
34289 if (temp2)
34290 delete arg2;
34291 }
34292 return resultobj;
34293 fail:
34294 {
34295 if (temp2)
34296 delete arg2;
34297 }
34298 return NULL;
34299 }
34300
34301
34302 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34303 PyObject *resultobj = 0;
34304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34305 wxString *arg2 = 0 ;
34306 wxPoint *arg3 = 0 ;
34307 double arg4 ;
34308 void *argp1 = 0 ;
34309 int res1 = 0 ;
34310 bool temp2 = false ;
34311 wxPoint temp3 ;
34312 double val4 ;
34313 int ecode4 = 0 ;
34314 PyObject * obj0 = 0 ;
34315 PyObject * obj1 = 0 ;
34316 PyObject * obj2 = 0 ;
34317 PyObject * obj3 = 0 ;
34318 char * kwnames[] = {
34319 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34320 };
34321
34322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34324 if (!SWIG_IsOK(res1)) {
34325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34326 }
34327 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34328 {
34329 arg2 = wxString_in_helper(obj1);
34330 if (arg2 == NULL) SWIG_fail;
34331 temp2 = true;
34332 }
34333 {
34334 arg3 = &temp3;
34335 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34336 }
34337 ecode4 = SWIG_AsVal_double(obj3, &val4);
34338 if (!SWIG_IsOK(ecode4)) {
34339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34340 }
34341 arg4 = static_cast< double >(val4);
34342 {
34343 PyThreadState* __tstate = wxPyBeginAllowThreads();
34344 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34345 wxPyEndAllowThreads(__tstate);
34346 if (PyErr_Occurred()) SWIG_fail;
34347 }
34348 resultobj = SWIG_Py_Void();
34349 {
34350 if (temp2)
34351 delete arg2;
34352 }
34353 return resultobj;
34354 fail:
34355 {
34356 if (temp2)
34357 delete arg2;
34358 }
34359 return NULL;
34360 }
34361
34362
34363 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34364 PyObject *resultobj = 0;
34365 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34366 int arg2 ;
34367 wxPoint *arg3 = (wxPoint *) 0 ;
34368 int arg4 = (int) 0 ;
34369 int arg5 = (int) 0 ;
34370 void *argp1 = 0 ;
34371 int res1 = 0 ;
34372 int val4 ;
34373 int ecode4 = 0 ;
34374 int val5 ;
34375 int ecode5 = 0 ;
34376 PyObject * obj0 = 0 ;
34377 PyObject * obj1 = 0 ;
34378 PyObject * obj2 = 0 ;
34379 PyObject * obj3 = 0 ;
34380 char * kwnames[] = {
34381 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34382 };
34383
34384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34386 if (!SWIG_IsOK(res1)) {
34387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34388 }
34389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34390 {
34391 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34392 if (arg3 == NULL) SWIG_fail;
34393 }
34394 if (obj2) {
34395 ecode4 = SWIG_AsVal_int(obj2, &val4);
34396 if (!SWIG_IsOK(ecode4)) {
34397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34398 }
34399 arg4 = static_cast< int >(val4);
34400 }
34401 if (obj3) {
34402 ecode5 = SWIG_AsVal_int(obj3, &val5);
34403 if (!SWIG_IsOK(ecode5)) {
34404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34405 }
34406 arg5 = static_cast< int >(val5);
34407 }
34408 {
34409 PyThreadState* __tstate = wxPyBeginAllowThreads();
34410 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34411 wxPyEndAllowThreads(__tstate);
34412 if (PyErr_Occurred()) SWIG_fail;
34413 }
34414 resultobj = SWIG_Py_Void();
34415 {
34416 if (arg3) delete [] arg3;
34417 }
34418 return resultobj;
34419 fail:
34420 {
34421 if (arg3) delete [] arg3;
34422 }
34423 return NULL;
34424 }
34425
34426
34427 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34428 PyObject *resultobj = 0;
34429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34430 int arg2 ;
34431 wxPoint *arg3 = (wxPoint *) 0 ;
34432 int arg4 = (int) 0 ;
34433 int arg5 = (int) 0 ;
34434 int arg6 = (int) wxODDEVEN_RULE ;
34435 void *argp1 = 0 ;
34436 int res1 = 0 ;
34437 int val4 ;
34438 int ecode4 = 0 ;
34439 int val5 ;
34440 int ecode5 = 0 ;
34441 int val6 ;
34442 int ecode6 = 0 ;
34443 PyObject * obj0 = 0 ;
34444 PyObject * obj1 = 0 ;
34445 PyObject * obj2 = 0 ;
34446 PyObject * obj3 = 0 ;
34447 PyObject * obj4 = 0 ;
34448 char * kwnames[] = {
34449 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34450 };
34451
34452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34454 if (!SWIG_IsOK(res1)) {
34455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34456 }
34457 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34458 {
34459 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34460 if (arg3 == NULL) SWIG_fail;
34461 }
34462 if (obj2) {
34463 ecode4 = SWIG_AsVal_int(obj2, &val4);
34464 if (!SWIG_IsOK(ecode4)) {
34465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34466 }
34467 arg4 = static_cast< int >(val4);
34468 }
34469 if (obj3) {
34470 ecode5 = SWIG_AsVal_int(obj3, &val5);
34471 if (!SWIG_IsOK(ecode5)) {
34472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34473 }
34474 arg5 = static_cast< int >(val5);
34475 }
34476 if (obj4) {
34477 ecode6 = SWIG_AsVal_int(obj4, &val6);
34478 if (!SWIG_IsOK(ecode6)) {
34479 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34480 }
34481 arg6 = static_cast< int >(val6);
34482 }
34483 {
34484 PyThreadState* __tstate = wxPyBeginAllowThreads();
34485 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34486 wxPyEndAllowThreads(__tstate);
34487 if (PyErr_Occurred()) SWIG_fail;
34488 }
34489 resultobj = SWIG_Py_Void();
34490 {
34491 if (arg3) delete [] arg3;
34492 }
34493 return resultobj;
34494 fail:
34495 {
34496 if (arg3) delete [] arg3;
34497 }
34498 return NULL;
34499 }
34500
34501
34502 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34503 PyObject *resultobj = 0;
34504 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34505 wxString *arg2 = 0 ;
34506 wxRect *arg3 = 0 ;
34507 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34508 int arg5 = (int) -1 ;
34509 void *argp1 = 0 ;
34510 int res1 = 0 ;
34511 bool temp2 = false ;
34512 wxRect temp3 ;
34513 int val4 ;
34514 int ecode4 = 0 ;
34515 int val5 ;
34516 int ecode5 = 0 ;
34517 PyObject * obj0 = 0 ;
34518 PyObject * obj1 = 0 ;
34519 PyObject * obj2 = 0 ;
34520 PyObject * obj3 = 0 ;
34521 PyObject * obj4 = 0 ;
34522 char * kwnames[] = {
34523 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34524 };
34525
34526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34528 if (!SWIG_IsOK(res1)) {
34529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34530 }
34531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34532 {
34533 arg2 = wxString_in_helper(obj1);
34534 if (arg2 == NULL) SWIG_fail;
34535 temp2 = true;
34536 }
34537 {
34538 arg3 = &temp3;
34539 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34540 }
34541 if (obj3) {
34542 ecode4 = SWIG_AsVal_int(obj3, &val4);
34543 if (!SWIG_IsOK(ecode4)) {
34544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34545 }
34546 arg4 = static_cast< int >(val4);
34547 }
34548 if (obj4) {
34549 ecode5 = SWIG_AsVal_int(obj4, &val5);
34550 if (!SWIG_IsOK(ecode5)) {
34551 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34552 }
34553 arg5 = static_cast< int >(val5);
34554 }
34555 {
34556 PyThreadState* __tstate = wxPyBeginAllowThreads();
34557 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34558 wxPyEndAllowThreads(__tstate);
34559 if (PyErr_Occurred()) SWIG_fail;
34560 }
34561 resultobj = SWIG_Py_Void();
34562 {
34563 if (temp2)
34564 delete arg2;
34565 }
34566 return resultobj;
34567 fail:
34568 {
34569 if (temp2)
34570 delete arg2;
34571 }
34572 return NULL;
34573 }
34574
34575
34576 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34577 PyObject *resultobj = 0;
34578 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34579 wxString *arg2 = 0 ;
34580 wxBitmap *arg3 = 0 ;
34581 wxRect *arg4 = 0 ;
34582 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34583 int arg6 = (int) -1 ;
34584 void *argp1 = 0 ;
34585 int res1 = 0 ;
34586 bool temp2 = false ;
34587 void *argp3 = 0 ;
34588 int res3 = 0 ;
34589 wxRect temp4 ;
34590 int val5 ;
34591 int ecode5 = 0 ;
34592 int val6 ;
34593 int ecode6 = 0 ;
34594 PyObject * obj0 = 0 ;
34595 PyObject * obj1 = 0 ;
34596 PyObject * obj2 = 0 ;
34597 PyObject * obj3 = 0 ;
34598 PyObject * obj4 = 0 ;
34599 PyObject * obj5 = 0 ;
34600 char * kwnames[] = {
34601 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34602 };
34603
34604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34606 if (!SWIG_IsOK(res1)) {
34607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34608 }
34609 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34610 {
34611 arg2 = wxString_in_helper(obj1);
34612 if (arg2 == NULL) SWIG_fail;
34613 temp2 = true;
34614 }
34615 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34616 if (!SWIG_IsOK(res3)) {
34617 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34618 }
34619 if (!argp3) {
34620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34621 }
34622 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34623 {
34624 arg4 = &temp4;
34625 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34626 }
34627 if (obj4) {
34628 ecode5 = SWIG_AsVal_int(obj4, &val5);
34629 if (!SWIG_IsOK(ecode5)) {
34630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34631 }
34632 arg5 = static_cast< int >(val5);
34633 }
34634 if (obj5) {
34635 ecode6 = SWIG_AsVal_int(obj5, &val6);
34636 if (!SWIG_IsOK(ecode6)) {
34637 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34638 }
34639 arg6 = static_cast< int >(val6);
34640 }
34641 {
34642 PyThreadState* __tstate = wxPyBeginAllowThreads();
34643 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34644 wxPyEndAllowThreads(__tstate);
34645 if (PyErr_Occurred()) SWIG_fail;
34646 }
34647 resultobj = SWIG_Py_Void();
34648 {
34649 if (temp2)
34650 delete arg2;
34651 }
34652 return resultobj;
34653 fail:
34654 {
34655 if (temp2)
34656 delete arg2;
34657 }
34658 return NULL;
34659 }
34660
34661
34662 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34663 PyObject *resultobj = 0;
34664 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34665 int arg2 ;
34666 wxPoint *arg3 = (wxPoint *) 0 ;
34667 void *argp1 = 0 ;
34668 int res1 = 0 ;
34669 PyObject * obj0 = 0 ;
34670 PyObject * obj1 = 0 ;
34671 char * kwnames[] = {
34672 (char *) "self",(char *) "points", NULL
34673 };
34674
34675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34677 if (!SWIG_IsOK(res1)) {
34678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34679 }
34680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34681 {
34682 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34683 if (arg3 == NULL) SWIG_fail;
34684 }
34685 {
34686 PyThreadState* __tstate = wxPyBeginAllowThreads();
34687 (arg1)->DrawSpline(arg2,arg3);
34688 wxPyEndAllowThreads(__tstate);
34689 if (PyErr_Occurred()) SWIG_fail;
34690 }
34691 resultobj = SWIG_Py_Void();
34692 {
34693 if (arg3) delete [] arg3;
34694 }
34695 return resultobj;
34696 fail:
34697 {
34698 if (arg3) delete [] arg3;
34699 }
34700 return NULL;
34701 }
34702
34703
34704 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34705 PyObject *resultobj = 0;
34706 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34707 void *argp1 = 0 ;
34708 int res1 = 0 ;
34709 PyObject *swig_obj[1] ;
34710
34711 if (!args) SWIG_fail;
34712 swig_obj[0] = args;
34713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34714 if (!SWIG_IsOK(res1)) {
34715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34716 }
34717 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34718 {
34719 PyThreadState* __tstate = wxPyBeginAllowThreads();
34720 (arg1)->Clear();
34721 wxPyEndAllowThreads(__tstate);
34722 if (PyErr_Occurred()) SWIG_fail;
34723 }
34724 resultobj = SWIG_Py_Void();
34725 return resultobj;
34726 fail:
34727 return NULL;
34728 }
34729
34730
34731 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34732 PyObject *resultobj = 0;
34733 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34734 wxFont *arg2 = 0 ;
34735 void *argp1 = 0 ;
34736 int res1 = 0 ;
34737 void *argp2 = 0 ;
34738 int res2 = 0 ;
34739 PyObject * obj0 = 0 ;
34740 PyObject * obj1 = 0 ;
34741 char * kwnames[] = {
34742 (char *) "self",(char *) "font", NULL
34743 };
34744
34745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34747 if (!SWIG_IsOK(res1)) {
34748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34749 }
34750 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34752 if (!SWIG_IsOK(res2)) {
34753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34754 }
34755 if (!argp2) {
34756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34757 }
34758 arg2 = reinterpret_cast< wxFont * >(argp2);
34759 {
34760 PyThreadState* __tstate = wxPyBeginAllowThreads();
34761 (arg1)->SetFont((wxFont const &)*arg2);
34762 wxPyEndAllowThreads(__tstate);
34763 if (PyErr_Occurred()) SWIG_fail;
34764 }
34765 resultobj = SWIG_Py_Void();
34766 return resultobj;
34767 fail:
34768 return NULL;
34769 }
34770
34771
34772 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34773 PyObject *resultobj = 0;
34774 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34775 wxPen *arg2 = 0 ;
34776 void *argp1 = 0 ;
34777 int res1 = 0 ;
34778 void *argp2 = 0 ;
34779 int res2 = 0 ;
34780 PyObject * obj0 = 0 ;
34781 PyObject * obj1 = 0 ;
34782 char * kwnames[] = {
34783 (char *) "self",(char *) "pen", NULL
34784 };
34785
34786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34788 if (!SWIG_IsOK(res1)) {
34789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34790 }
34791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34793 if (!SWIG_IsOK(res2)) {
34794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34795 }
34796 if (!argp2) {
34797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34798 }
34799 arg2 = reinterpret_cast< wxPen * >(argp2);
34800 {
34801 PyThreadState* __tstate = wxPyBeginAllowThreads();
34802 (arg1)->SetPen((wxPen const &)*arg2);
34803 wxPyEndAllowThreads(__tstate);
34804 if (PyErr_Occurred()) SWIG_fail;
34805 }
34806 resultobj = SWIG_Py_Void();
34807 return resultobj;
34808 fail:
34809 return NULL;
34810 }
34811
34812
34813 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34814 PyObject *resultobj = 0;
34815 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34816 wxBrush *arg2 = 0 ;
34817 void *argp1 = 0 ;
34818 int res1 = 0 ;
34819 void *argp2 = 0 ;
34820 int res2 = 0 ;
34821 PyObject * obj0 = 0 ;
34822 PyObject * obj1 = 0 ;
34823 char * kwnames[] = {
34824 (char *) "self",(char *) "brush", NULL
34825 };
34826
34827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34829 if (!SWIG_IsOK(res1)) {
34830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34831 }
34832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34834 if (!SWIG_IsOK(res2)) {
34835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34836 }
34837 if (!argp2) {
34838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34839 }
34840 arg2 = reinterpret_cast< wxBrush * >(argp2);
34841 {
34842 PyThreadState* __tstate = wxPyBeginAllowThreads();
34843 (arg1)->SetBrush((wxBrush const &)*arg2);
34844 wxPyEndAllowThreads(__tstate);
34845 if (PyErr_Occurred()) SWIG_fail;
34846 }
34847 resultobj = SWIG_Py_Void();
34848 return resultobj;
34849 fail:
34850 return NULL;
34851 }
34852
34853
34854 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34855 PyObject *resultobj = 0;
34856 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34857 wxBrush *arg2 = 0 ;
34858 void *argp1 = 0 ;
34859 int res1 = 0 ;
34860 void *argp2 = 0 ;
34861 int res2 = 0 ;
34862 PyObject * obj0 = 0 ;
34863 PyObject * obj1 = 0 ;
34864 char * kwnames[] = {
34865 (char *) "self",(char *) "brush", NULL
34866 };
34867
34868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34870 if (!SWIG_IsOK(res1)) {
34871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34872 }
34873 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34875 if (!SWIG_IsOK(res2)) {
34876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34877 }
34878 if (!argp2) {
34879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34880 }
34881 arg2 = reinterpret_cast< wxBrush * >(argp2);
34882 {
34883 PyThreadState* __tstate = wxPyBeginAllowThreads();
34884 (arg1)->SetBackground((wxBrush const &)*arg2);
34885 wxPyEndAllowThreads(__tstate);
34886 if (PyErr_Occurred()) SWIG_fail;
34887 }
34888 resultobj = SWIG_Py_Void();
34889 return resultobj;
34890 fail:
34891 return NULL;
34892 }
34893
34894
34895 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34896 PyObject *resultobj = 0;
34897 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34898 int arg2 ;
34899 void *argp1 = 0 ;
34900 int res1 = 0 ;
34901 int val2 ;
34902 int ecode2 = 0 ;
34903 PyObject * obj0 = 0 ;
34904 PyObject * obj1 = 0 ;
34905 char * kwnames[] = {
34906 (char *) "self",(char *) "mode", NULL
34907 };
34908
34909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34911 if (!SWIG_IsOK(res1)) {
34912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34913 }
34914 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34915 ecode2 = SWIG_AsVal_int(obj1, &val2);
34916 if (!SWIG_IsOK(ecode2)) {
34917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34918 }
34919 arg2 = static_cast< int >(val2);
34920 {
34921 PyThreadState* __tstate = wxPyBeginAllowThreads();
34922 (arg1)->SetBackgroundMode(arg2);
34923 wxPyEndAllowThreads(__tstate);
34924 if (PyErr_Occurred()) SWIG_fail;
34925 }
34926 resultobj = SWIG_Py_Void();
34927 return resultobj;
34928 fail:
34929 return NULL;
34930 }
34931
34932
34933 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34934 PyObject *resultobj = 0;
34935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34936 wxPalette *arg2 = 0 ;
34937 void *argp1 = 0 ;
34938 int res1 = 0 ;
34939 void *argp2 = 0 ;
34940 int res2 = 0 ;
34941 PyObject * obj0 = 0 ;
34942 PyObject * obj1 = 0 ;
34943 char * kwnames[] = {
34944 (char *) "self",(char *) "palette", NULL
34945 };
34946
34947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34949 if (!SWIG_IsOK(res1)) {
34950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34951 }
34952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34954 if (!SWIG_IsOK(res2)) {
34955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34956 }
34957 if (!argp2) {
34958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34959 }
34960 arg2 = reinterpret_cast< wxPalette * >(argp2);
34961 {
34962 PyThreadState* __tstate = wxPyBeginAllowThreads();
34963 (arg1)->SetPalette((wxPalette const &)*arg2);
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 resultobj = SWIG_Py_Void();
34968 return resultobj;
34969 fail:
34970 return NULL;
34971 }
34972
34973
34974 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34975 PyObject *resultobj = 0;
34976 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34977 wxColour *arg2 = 0 ;
34978 void *argp1 = 0 ;
34979 int res1 = 0 ;
34980 wxColour temp2 ;
34981 PyObject * obj0 = 0 ;
34982 PyObject * obj1 = 0 ;
34983 char * kwnames[] = {
34984 (char *) "self",(char *) "colour", NULL
34985 };
34986
34987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34989 if (!SWIG_IsOK(res1)) {
34990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34991 }
34992 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34993 {
34994 arg2 = &temp2;
34995 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34996 }
34997 {
34998 PyThreadState* __tstate = wxPyBeginAllowThreads();
34999 (arg1)->SetTextForeground((wxColour const &)*arg2);
35000 wxPyEndAllowThreads(__tstate);
35001 if (PyErr_Occurred()) SWIG_fail;
35002 }
35003 resultobj = SWIG_Py_Void();
35004 return resultobj;
35005 fail:
35006 return NULL;
35007 }
35008
35009
35010 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35011 PyObject *resultobj = 0;
35012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35013 wxColour *arg2 = 0 ;
35014 void *argp1 = 0 ;
35015 int res1 = 0 ;
35016 wxColour temp2 ;
35017 PyObject * obj0 = 0 ;
35018 PyObject * obj1 = 0 ;
35019 char * kwnames[] = {
35020 (char *) "self",(char *) "colour", NULL
35021 };
35022
35023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35025 if (!SWIG_IsOK(res1)) {
35026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35027 }
35028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35029 {
35030 arg2 = &temp2;
35031 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35032 }
35033 {
35034 PyThreadState* __tstate = wxPyBeginAllowThreads();
35035 (arg1)->SetTextBackground((wxColour const &)*arg2);
35036 wxPyEndAllowThreads(__tstate);
35037 if (PyErr_Occurred()) SWIG_fail;
35038 }
35039 resultobj = SWIG_Py_Void();
35040 return resultobj;
35041 fail:
35042 return NULL;
35043 }
35044
35045
35046 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35047 PyObject *resultobj = 0;
35048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35049 int arg2 ;
35050 void *argp1 = 0 ;
35051 int res1 = 0 ;
35052 int val2 ;
35053 int ecode2 = 0 ;
35054 PyObject * obj0 = 0 ;
35055 PyObject * obj1 = 0 ;
35056 char * kwnames[] = {
35057 (char *) "self",(char *) "function", NULL
35058 };
35059
35060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35062 if (!SWIG_IsOK(res1)) {
35063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35064 }
35065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35066 ecode2 = SWIG_AsVal_int(obj1, &val2);
35067 if (!SWIG_IsOK(ecode2)) {
35068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35069 }
35070 arg2 = static_cast< int >(val2);
35071 {
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 (arg1)->SetLogicalFunction(arg2);
35074 wxPyEndAllowThreads(__tstate);
35075 if (PyErr_Occurred()) SWIG_fail;
35076 }
35077 resultobj = SWIG_Py_Void();
35078 return resultobj;
35079 fail:
35080 return NULL;
35081 }
35082
35083
35084 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35085 PyObject *obj;
35086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35087 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35088 return SWIG_Py_Void();
35089 }
35090
35091 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35092 return SWIG_Python_InitShadowInstance(args);
35093 }
35094
35095 static PyMethodDef SwigMethods[] = {
35096 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35097 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35098 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35099 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35100 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35101 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35105 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35106 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35107 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
35108 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
35109 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
35110 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35111 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35112 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35113 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35114 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35115 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35116 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35117 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
35118 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35119 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35120 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35121 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35122 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35123 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35124 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35125 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
35126 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
35127 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35128 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35129 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35130 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35131 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35132 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35133 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35134 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35135 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
35136 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
35137 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35138 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35139 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35140 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35141 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35142 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35144 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35146 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35147 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35148 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35149 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35150 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35151 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35152 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35153 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35155 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35156 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35157 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35158 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35159 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35160 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35161 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
35162 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
35163 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35164 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35165 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35167 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35169 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35170 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35173 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
35175 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35176 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35177 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35178 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35179 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35180 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35181 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35184 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35187 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35189 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35194 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35197 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
35198 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35202 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35203 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35204 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35205 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35206 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35207 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35208 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35209 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35210 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35211 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35212 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35213 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35214 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35215 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35216 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35218 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35219 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35225 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35226 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35227 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35228 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35229 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35230 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35231 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35232 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35233 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35234 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35235 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35236 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35238 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35239 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35244 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35245 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35246 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
35247 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35248 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35249 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35250 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35251 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35253 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35254 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35255 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35256 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35257 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35258 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35259 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35260 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
35261 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35262 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35263 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35264 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35265 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35266 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35267 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35268 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35269 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35270 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35271 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35272 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35273 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35274 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35275 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35276 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35277 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35278 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35279 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35280 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35281 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35282 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35283 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35284 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35285 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35286 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35287 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35288 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35289 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35290 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35291 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35292 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35293 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35294 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35295 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
35296 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35297 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35298 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35299 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35300 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35301 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35302 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35303 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35304 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35305 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35306 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35307 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35308 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35309 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35310 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35311 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35312 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35313 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35314 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35315 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35316 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35317 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35318 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35319 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35320 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35321 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35322 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35323 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35324 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35325 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35326 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35327 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35328 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35329 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35330 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35331 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35332 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35333 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35334 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35335 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35336 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35337 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35338 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35339 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35340 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35341 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35342 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35343 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35344 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35345 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35346 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35347 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35348 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35349 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35350 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35351 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35352 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35353 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35354 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35355 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35356 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35357 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35358 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35359 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35360 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35361 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35362 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35363 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35364 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35365 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35366 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35367 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35368 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35369 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35370 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35371 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35372 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35373 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35374 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35375 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35376 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35377 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35378 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35379 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35380 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35381 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35382 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35383 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35384 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35385 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35386 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35387 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35388 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35389 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35390 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35391 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35392 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35393 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35394 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35395 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35396 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35397 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35398 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35399 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35400 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35401 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35402 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35403 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35404 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35405 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35406 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35407 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35408 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35410 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35411 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35413 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35414 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35415 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
35416 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35418 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35419 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35420 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35421 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35422 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35423 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35424 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35425 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35426 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35427 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35428 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35429 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35430 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35431 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35433 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35434 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35442 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35443 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35444 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35445 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35447 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35448 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35450 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35451 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35452 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35453 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35457 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35458 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35459 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35460 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35461 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35462 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35463 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35464 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35465 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35466 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35467 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35468 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35469 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35470 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35471 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35472 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35473 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35474 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35475 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35476 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35477 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35478 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35479 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35480 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35481 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35482 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35483 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35484 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35485 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35486 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35487 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35488 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35489 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35490 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35491 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35492 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35493 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35494 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35495 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35496 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35497 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35498 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35499 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35500 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35501 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35502 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35503 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35504 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35505 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35506 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35507 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35508 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35509 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35510 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35511 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35512 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35513 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35514 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35515 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35516 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35517 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35518 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35519 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35520 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35521 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35522 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35526 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35528 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35529 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35530 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35531 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35532 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35533 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35534 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35535 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35536 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35537 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35538 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35540 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35541 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35542 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35543 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35544 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35545 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35546 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35547 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35548 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35549 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35550 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35551 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35552 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35553 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35554 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35555 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35556 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35557 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35558 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35559 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35560 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35561 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35562 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35563 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35564 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35565 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35566 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35567 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35568 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35570 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35571 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35572 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35573 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35574 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35575 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35576 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35577 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35578 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35579 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35580 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35581 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35582 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35583 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35584 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35586 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35590 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35591 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35592 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35593 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35594 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35595 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35596 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35597 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35598 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35599 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35600 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35601 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35602 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35603 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35604 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35605 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35606 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35607 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35608 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35609 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35610 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35611 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35612 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35613 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35614 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35615 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35616 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35617 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35618 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35619 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35620 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35621 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35622 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35623 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35624 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35625 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35626 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35627 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35628 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35629 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35630 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35631 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35632 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35633 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35634 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35635 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35636 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35637 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35638 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35639 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35640 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35641 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35642 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35643 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35644 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35645 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35646 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35647 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35648 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35649 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35650 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35651 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35652 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35653 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35654 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35655 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35656 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35657 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35658 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35659 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35660 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35661 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35662 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35663 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35664 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35665 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35666 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35667 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35668 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35669 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35670 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35671 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35672 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35673 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35674 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35675 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35676 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35677 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35678 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35679 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35680 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35681 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35682 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35683 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35684 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35685 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35686 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35687 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35688 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35689 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35690 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35691 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35692 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35693 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35694 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35695 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35696 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35697 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35698 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35699 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35700 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35701 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35702 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35703 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35704 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35705 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35706 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35707 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35708 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35709 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35710 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
35711 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35712 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35713 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35714 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35715 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35716 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35717 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35718 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35719 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35720 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35721 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35722 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35723 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35724 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35725 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35726 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35727 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35728 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35729 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35730 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35731 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35732 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35733 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35734 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35735 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35736 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35737 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35738 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35739 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35740 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35741 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35742 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35743 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
35744 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35745 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35746 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35747 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35748 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35749 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35750 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35751 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35752 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35753 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35754 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35755 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35756 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35757 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35758 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35759 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35760 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35761 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35762 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35763 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35765 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35766 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35767 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35768 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35769 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35770 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35771 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35772 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35773 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35774 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35775 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35776 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35777 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35778 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35779 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35780 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35781 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35782 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35783 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35784 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35785 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35786 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35787 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35788 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35789 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35790 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35791 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35792 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35793 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35794 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35795 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35796 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35797 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35798 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35799 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35800 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35801 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35803 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35805 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35806 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35807 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35808 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35809 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35810 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35811 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35812 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35813 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35814 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35815 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35816 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35817 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35818 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35819 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35820 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35823 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35824 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35825 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35826 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35827 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35828 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35829 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35830 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35831 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35832 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35833 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35834 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35835 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35836 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35837 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35838 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35839 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35840 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35841 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35842 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35843 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35844 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35845 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35846 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35847 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35848 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35849 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35850 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35851 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35852 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35853 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35854 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35855 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35856 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35857 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35858 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35859 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35860 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35861 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35862 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35863 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35864 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35865 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35866 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35867 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35868 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35869 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35870 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35871 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35872 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35873 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35874 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35875 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35876 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35877 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35878 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35879 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35880 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35881 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35882 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35883 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35884 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35885 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35886 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35887 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35888 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35889 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35890 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35891 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35892 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35893 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35894 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35895 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35896 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35897 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35898 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35899 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35900 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35901 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35902 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35903 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35905 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35906 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35907 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35908 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35909 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35910 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35911 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35912 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35913 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35914 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35915 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35916 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35917 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35918 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35919 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35920 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35921 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35922 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35923 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35924 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35925 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35926 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35927 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35928 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35929 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35930 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35931 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35932 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35933 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35934 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35935 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35936 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35937 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35938 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35939 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35940 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35941 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35942 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35943 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35944 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35945 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35946 { NULL, NULL, 0, NULL }
35947 };
35948
35949
35950 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35951
35952 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35953 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35954 }
35955 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35956 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35957 }
35958 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35959 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35960 }
35961 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35962 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35963 }
35964 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35965 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35966 }
35967 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35968 return (void *)((wxLocale *) ((wxPyLocale *) x));
35969 }
35970 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35971 return (void *)((wxGDIObject *) ((wxIcon *) x));
35972 }
35973 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35974 return (void *)((wxGDIObject *) ((wxPalette *) x));
35975 }
35976 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35977 return (void *)((wxGDIObject *) ((wxPen *) x));
35978 }
35979 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35980 return (void *)((wxGDIObject *) ((wxFont *) x));
35981 }
35982 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35983 return (void *)((wxGDIObject *) ((wxCursor *) x));
35984 }
35985 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35986 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35987 }
35988 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35989 return (void *)((wxGDIObject *) ((wxRegion *) x));
35990 }
35991 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35992 return (void *)((wxGDIObject *) ((wxBrush *) x));
35993 }
35994 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35995 return (void *)((wxDC *) ((wxGCDC *) x));
35996 }
35997 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35998 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35999 }
36000 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36001 return (void *)((wxDC *) ((wxScreenDC *) x));
36002 }
36003 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36004 return (void *)((wxDC *) ((wxMirrorDC *) x));
36005 }
36006 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36007 return (void *)((wxDC *) ((wxMemoryDC *) x));
36008 }
36009 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36010 return (void *)((wxDC *) ((wxWindowDC *) x));
36011 }
36012 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36013 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36014 }
36015 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36016 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36017 }
36018 static void *_p_wxClientDCTo_p_wxDC(void *x) {
36019 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
36020 }
36021 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
36022 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36023 }
36024 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36025 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36026 }
36027 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36028 return (void *)((wxDC *) ((wxPrinterDC *) x));
36029 }
36030 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36031 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36032 }
36033 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36034 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36035 }
36036 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36037 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36038 }
36039 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36040 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36041 }
36042 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36043 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36044 }
36045 static void *_p_wxPenTo_p_wxObject(void *x) {
36046 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36047 }
36048 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36049 return (void *)((wxObject *) ((wxRegionIterator *) x));
36050 }
36051 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36052 return (void *)((wxObject *) ((wxSizerItem *) x));
36053 }
36054 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36055 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36056 }
36057 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36059 }
36060 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36061 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36062 }
36063 static void *_p_wxIconTo_p_wxObject(void *x) {
36064 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36065 }
36066 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36067 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36068 }
36069 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36070 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36071 }
36072 static void *_p_wxSizerTo_p_wxObject(void *x) {
36073 return (void *)((wxObject *) ((wxSizer *) x));
36074 }
36075 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36076 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36077 }
36078 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36080 }
36081 static void *_p_wxEventTo_p_wxObject(void *x) {
36082 return (void *)((wxObject *) ((wxEvent *) x));
36083 }
36084 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36085 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36086 }
36087 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36088 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36089 }
36090 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36091 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36092 }
36093 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36094 return (void *)((wxObject *) ((wxPseudoDC *) x));
36095 }
36096 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36097 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36098 }
36099 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36100 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36101 }
36102 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36103 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36104 }
36105 static void *_p_wxDCTo_p_wxObject(void *x) {
36106 return (void *)((wxObject *) ((wxDC *) x));
36107 }
36108 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36109 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36110 }
36111 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36112 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36113 }
36114 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36115 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36116 }
36117 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36118 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36119 }
36120 static void *_p_wxControlTo_p_wxObject(void *x) {
36121 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36122 }
36123 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36124 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36125 }
36126 static void *_p_wxClientDCTo_p_wxObject(void *x) {
36127 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
36128 }
36129 static void *_p_wxFSFileTo_p_wxObject(void *x) {
36130 return (void *)((wxObject *) ((wxFSFile *) x));
36131 }
36132 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36133 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36134 }
36135 static void *_p_wxRegionTo_p_wxObject(void *x) {
36136 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36137 }
36138 static void *_p_wxPySizerTo_p_wxObject(void *x) {
36139 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36140 }
36141 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36142 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36143 }
36144 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36145 return (void *)((wxObject *) ((wxGDIObject *) x));
36146 }
36147 static void *_p_wxEffectsTo_p_wxObject(void *x) {
36148 return (void *)((wxObject *) ((wxEffects *) x));
36149 }
36150 static void *_p_wxPyEventTo_p_wxObject(void *x) {
36151 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36152 }
36153 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36155 }
36156 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36157 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36158 }
36159 static void *_p_wxShowEventTo_p_wxObject(void *x) {
36160 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36161 }
36162 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36163 return (void *)((wxObject *) ((wxMenuItem *) x));
36164 }
36165 static void *_p_wxDateEventTo_p_wxObject(void *x) {
36166 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36167 }
36168 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36169 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36170 }
36171 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36172 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36173 }
36174 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36175 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36176 }
36177 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36178 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36179 }
36180 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36181 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36182 }
36183 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36184 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36185 }
36186 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36187 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36188 }
36189 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36190 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36191 }
36192 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36193 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36194 }
36195 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36196 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36197 }
36198 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36199 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36200 }
36201 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36202 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36203 }
36204 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36205 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36206 }
36207 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36208 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36209 }
36210 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36211 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36212 }
36213 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36214 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36215 }
36216 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36217 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36218 }
36219 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36220 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36221 }
36222 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36223 return (void *)((wxObject *) ((wxImageHandler *) x));
36224 }
36225 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36226 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36227 }
36228 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36229 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36230 }
36231 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36232 return (void *)((wxObject *) ((wxEvtHandler *) x));
36233 }
36234 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36235 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36236 }
36237 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
36238 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36239 }
36240 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36241 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36242 }
36243 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36244 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36245 }
36246 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36247 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36248 }
36249 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36250 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36251 }
36252 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36253 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36254 }
36255 static void *_p_wxImageTo_p_wxObject(void *x) {
36256 return (void *)((wxObject *) ((wxImage *) x));
36257 }
36258 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36259 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36260 }
36261 static void *_p_wxPaletteTo_p_wxObject(void *x) {
36262 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36263 }
36264 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
36265 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
36266 }
36267 static void *_p_wxImageListTo_p_wxObject(void *x) {
36268 return (void *)((wxObject *) ((wxImageList *) x));
36269 }
36270 static void *_p_wxGCDCTo_p_wxObject(void *x) {
36271 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36272 }
36273 static void *_p_wxCursorTo_p_wxObject(void *x) {
36274 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36275 }
36276 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36277 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36278 }
36279 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36280 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36281 }
36282 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36283 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36284 }
36285 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36286 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36287 }
36288 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36289 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36290 }
36291 static void *_p_wxWindowTo_p_wxObject(void *x) {
36292 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36293 }
36294 static void *_p_wxMenuTo_p_wxObject(void *x) {
36295 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36296 }
36297 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36298 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36299 }
36300 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36301 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36302 }
36303 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36304 return (void *)((wxObject *) ((wxFileSystem *) x));
36305 }
36306 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36307 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36308 }
36309 static void *_p_wxMaskTo_p_wxObject(void *x) {
36310 return (void *)((wxObject *) ((wxMask *) x));
36311 }
36312 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36313 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36314 }
36315 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36316 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36317 }
36318 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36319 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36320 }
36321 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36322 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36323 }
36324 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36325 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36326 }
36327 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36328 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36329 }
36330 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36332 }
36333 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36334 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36335 }
36336 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36337 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36338 }
36339 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36340 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36341 }
36342 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36343 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36344 }
36345 static void *_p_wxFontTo_p_wxObject(void *x) {
36346 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36347 }
36348 static void *_p_wxBrushTo_p_wxObject(void *x) {
36349 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36350 }
36351 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36352 return (void *)((wxObject *) ((wxMetaFile *) x));
36353 }
36354 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36356 }
36357 static void *_p_wxColourTo_p_wxObject(void *x) {
36358 return (void *)((wxObject *) ((wxColour *) x));
36359 }
36360 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36361 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36362 }
36363 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36364 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36365 }
36366 static void *_p_wxControlTo_p_wxWindow(void *x) {
36367 return (void *)((wxWindow *) ((wxControl *) x));
36368 }
36369 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36370 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36371 }
36372 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36373 return (void *)((wxWindow *) ((wxMenuBar *) x));
36374 }
36375 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36376 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36377 }
36378 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36379 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36380 }
36381 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36382 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36383 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36384 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};
36385 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36386 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36387 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36388 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36389 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36390 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36391 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36392 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36393 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36394 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36395 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36396 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36397 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36398 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36399 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36400 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36401 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36402 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36403 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
36404 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36405 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36406 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36407 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36408 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36409 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36410 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36411 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36412 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36413 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36414 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36415 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36416 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36417 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36418 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36419 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36420 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36421 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36422 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36423 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36424 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36425 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36426 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36427 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36428 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36429 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36430 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36431 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36432 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36433 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36434 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36435 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36436 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36437 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36438 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36439 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36440 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36441 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36442 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36443 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36444 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36445 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36446 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36447 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36448 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36449 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36450 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36451 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36452 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36453 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36454 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36455 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36456 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36457 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36458 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36459 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36460 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36461 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36462 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36463 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36464 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36465 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36466 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36467 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36468 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36469 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36470 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36471 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36472 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36473 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36474 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36475 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36476 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36477 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36478 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36479 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36480 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36481 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36482 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36483 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36484 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36485 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36486 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36487 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36488 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36489 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36490 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36491 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36492 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36493 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36494 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36495 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36496 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36497 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36498 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36499 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36500 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36501 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36502 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36503 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36504 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36505 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36506 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36507 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36508 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36509 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36510 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36511 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36512 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36513 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36514 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36515 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36516 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36517 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36518 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36519 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36520 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36521 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36522 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36523 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36524 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36525 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36526 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36527 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36528 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36529 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36530 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36531 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36532 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36533 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36534 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36535 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36536 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36537
36538 static swig_type_info *swig_type_initial[] = {
36539 &_swigt__p_buffer,
36540 &_swigt__p_char,
36541 &_swigt__p_double,
36542 &_swigt__p_form_ops_t,
36543 &_swigt__p_int,
36544 &_swigt__p_unsigned_char,
36545 &_swigt__p_unsigned_int,
36546 &_swigt__p_unsigned_long,
36547 &_swigt__p_wxANIHandler,
36548 &_swigt__p_wxAcceleratorTable,
36549 &_swigt__p_wxActivateEvent,
36550 &_swigt__p_wxAlphaPixelData,
36551 &_swigt__p_wxAlphaPixelData_Accessor,
36552 &_swigt__p_wxBMPHandler,
36553 &_swigt__p_wxBitmap,
36554 &_swigt__p_wxBoxSizer,
36555 &_swigt__p_wxBrush,
36556 &_swigt__p_wxBrushList,
36557 &_swigt__p_wxBufferedDC,
36558 &_swigt__p_wxBufferedPaintDC,
36559 &_swigt__p_wxCURHandler,
36560 &_swigt__p_wxChar,
36561 &_swigt__p_wxChildFocusEvent,
36562 &_swigt__p_wxClientDC,
36563 &_swigt__p_wxClipboardTextEvent,
36564 &_swigt__p_wxCloseEvent,
36565 &_swigt__p_wxColor,
36566 &_swigt__p_wxColour,
36567 &_swigt__p_wxColourDatabase,
36568 &_swigt__p_wxCommandEvent,
36569 &_swigt__p_wxContextMenuEvent,
36570 &_swigt__p_wxControl,
36571 &_swigt__p_wxControlWithItems,
36572 &_swigt__p_wxCursor,
36573 &_swigt__p_wxDC,
36574 &_swigt__p_wxDCOverlay,
36575 &_swigt__p_wxDash,
36576 &_swigt__p_wxDateEvent,
36577 &_swigt__p_wxDisplayChangedEvent,
36578 &_swigt__p_wxDropFilesEvent,
36579 &_swigt__p_wxDuplexMode,
36580 &_swigt__p_wxEffects,
36581 &_swigt__p_wxEncodingConverter,
36582 &_swigt__p_wxEraseEvent,
36583 &_swigt__p_wxEvent,
36584 &_swigt__p_wxEvtHandler,
36585 &_swigt__p_wxFSFile,
36586 &_swigt__p_wxFileSystem,
36587 &_swigt__p_wxFlexGridSizer,
36588 &_swigt__p_wxFocusEvent,
36589 &_swigt__p_wxFont,
36590 &_swigt__p_wxFontList,
36591 &_swigt__p_wxFontMapper,
36592 &_swigt__p_wxGBSizerItem,
36593 &_swigt__p_wxGCDC,
36594 &_swigt__p_wxGDIObjListBase,
36595 &_swigt__p_wxGDIObject,
36596 &_swigt__p_wxGIFHandler,
36597 &_swigt__p_wxGraphicsContext,
36598 &_swigt__p_wxGraphicsPath,
36599 &_swigt__p_wxGridBagSizer,
36600 &_swigt__p_wxGridSizer,
36601 &_swigt__p_wxHeaderButtonParams,
36602 &_swigt__p_wxICOHandler,
36603 &_swigt__p_wxIcon,
36604 &_swigt__p_wxIconBundle,
36605 &_swigt__p_wxIconLocation,
36606 &_swigt__p_wxIconizeEvent,
36607 &_swigt__p_wxIdleEvent,
36608 &_swigt__p_wxImage,
36609 &_swigt__p_wxImageHandler,
36610 &_swigt__p_wxImageList,
36611 &_swigt__p_wxIndividualLayoutConstraint,
36612 &_swigt__p_wxInitDialogEvent,
36613 &_swigt__p_wxJPEGHandler,
36614 &_swigt__p_wxKeyEvent,
36615 &_swigt__p_wxLanguageInfo,
36616 &_swigt__p_wxLayoutConstraints,
36617 &_swigt__p_wxLocale,
36618 &_swigt__p_wxMask,
36619 &_swigt__p_wxMaximizeEvent,
36620 &_swigt__p_wxMemoryDC,
36621 &_swigt__p_wxMenu,
36622 &_swigt__p_wxMenuBar,
36623 &_swigt__p_wxMenuEvent,
36624 &_swigt__p_wxMenuItem,
36625 &_swigt__p_wxMetaFile,
36626 &_swigt__p_wxMetaFileDC,
36627 &_swigt__p_wxMirrorDC,
36628 &_swigt__p_wxMouseCaptureChangedEvent,
36629 &_swigt__p_wxMouseCaptureLostEvent,
36630 &_swigt__p_wxMouseEvent,
36631 &_swigt__p_wxMoveEvent,
36632 &_swigt__p_wxNativeEncodingInfo,
36633 &_swigt__p_wxNativeFontInfo,
36634 &_swigt__p_wxNativePixelData,
36635 &_swigt__p_wxNativePixelData_Accessor,
36636 &_swigt__p_wxNavigationKeyEvent,
36637 &_swigt__p_wxNcPaintEvent,
36638 &_swigt__p_wxNotifyEvent,
36639 &_swigt__p_wxObject,
36640 &_swigt__p_wxOverlay,
36641 &_swigt__p_wxPCXHandler,
36642 &_swigt__p_wxPNGHandler,
36643 &_swigt__p_wxPNMHandler,
36644 &_swigt__p_wxPaintDC,
36645 &_swigt__p_wxPaintEvent,
36646 &_swigt__p_wxPalette,
36647 &_swigt__p_wxPaletteChangedEvent,
36648 &_swigt__p_wxPaperSize,
36649 &_swigt__p_wxPen,
36650 &_swigt__p_wxPenList,
36651 &_swigt__p_wxPixelDataBase,
36652 &_swigt__p_wxPoint,
36653 &_swigt__p_wxPoint2D,
36654 &_swigt__p_wxPostScriptDC,
36655 &_swigt__p_wxPrintData,
36656 &_swigt__p_wxPrinterDC,
36657 &_swigt__p_wxPseudoDC,
36658 &_swigt__p_wxPyApp,
36659 &_swigt__p_wxPyCommandEvent,
36660 &_swigt__p_wxPyEvent,
36661 &_swigt__p_wxPyFontEnumerator,
36662 &_swigt__p_wxPyImageHandler,
36663 &_swigt__p_wxPyLocale,
36664 &_swigt__p_wxPySizer,
36665 &_swigt__p_wxPyValidator,
36666 &_swigt__p_wxQueryNewPaletteEvent,
36667 &_swigt__p_wxRect,
36668 &_swigt__p_wxRegion,
36669 &_swigt__p_wxRegionIterator,
36670 &_swigt__p_wxRendererNative,
36671 &_swigt__p_wxRendererVersion,
36672 &_swigt__p_wxScreenDC,
36673 &_swigt__p_wxScrollEvent,
36674 &_swigt__p_wxScrollWinEvent,
36675 &_swigt__p_wxSetCursorEvent,
36676 &_swigt__p_wxShowEvent,
36677 &_swigt__p_wxSize,
36678 &_swigt__p_wxSizeEvent,
36679 &_swigt__p_wxSizer,
36680 &_swigt__p_wxSizerItem,
36681 &_swigt__p_wxSplitterRenderParams,
36682 &_swigt__p_wxStaticBoxSizer,
36683 &_swigt__p_wxStdDialogButtonSizer,
36684 &_swigt__p_wxStockGDI,
36685 &_swigt__p_wxString,
36686 &_swigt__p_wxSysColourChangedEvent,
36687 &_swigt__p_wxTIFFHandler,
36688 &_swigt__p_wxUpdateUIEvent,
36689 &_swigt__p_wxValidator,
36690 &_swigt__p_wxWindow,
36691 &_swigt__p_wxWindowCreateEvent,
36692 &_swigt__p_wxWindowDC,
36693 &_swigt__p_wxWindowDestroyEvent,
36694 &_swigt__p_wxXPMHandler,
36695 };
36696
36697 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36698 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36699 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36700 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36701 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36702 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36703 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36704 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36705 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36706 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36707 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36708 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36709 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36710 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}};
36711 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36712 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36713 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
36714 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36715 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36716 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36717 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36718 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}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
36719 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36720 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36721 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36722 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36723 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36724 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36725 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36726 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36727 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36728 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}};
36729 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}};
36730 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36731 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36732 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36733 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36734 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36735 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36736 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36737 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36738 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36739 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}};
36740 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36741 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}};
36742 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36743 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36744 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36745 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36746 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36747 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36748 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36749 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36750 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36751 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36752 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36753 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36754 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36755 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36756 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36757 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36758 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36759 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36760 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36761 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36762 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36763 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36764 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36765 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36766 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36767 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36768 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36769 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36770 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36771 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36772 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36773 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36774 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36775 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36776 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36777 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36778 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36779 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36780 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36781 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36782 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36783 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36784 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36785 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36786 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36787 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36788 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36789 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36790 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36791 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36792 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36793 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36794 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36795 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36796 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36797 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36798 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36799 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36800 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36801 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36802 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36803 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36804 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36805 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36806 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36807 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36808 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36809 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36810 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36811 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36812 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36813 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36814 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36815 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36816 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36817 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36818 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36819 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36820 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36821 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36822 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36823 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36824 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36825 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
36826 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36827 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36828 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36829 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36830 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36831 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36832 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}};
36833 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36834 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36835 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36836 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36837 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36838 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36839 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36840 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36841 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36842 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36843 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36844 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36845 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36846 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36847 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36848 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36849 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36850 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36851 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}};
36852 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
36853
36854 static swig_cast_info *swig_cast_initial[] = {
36855 _swigc__p_buffer,
36856 _swigc__p_char,
36857 _swigc__p_double,
36858 _swigc__p_form_ops_t,
36859 _swigc__p_int,
36860 _swigc__p_unsigned_char,
36861 _swigc__p_unsigned_int,
36862 _swigc__p_unsigned_long,
36863 _swigc__p_wxANIHandler,
36864 _swigc__p_wxAcceleratorTable,
36865 _swigc__p_wxActivateEvent,
36866 _swigc__p_wxAlphaPixelData,
36867 _swigc__p_wxAlphaPixelData_Accessor,
36868 _swigc__p_wxBMPHandler,
36869 _swigc__p_wxBitmap,
36870 _swigc__p_wxBoxSizer,
36871 _swigc__p_wxBrush,
36872 _swigc__p_wxBrushList,
36873 _swigc__p_wxBufferedDC,
36874 _swigc__p_wxBufferedPaintDC,
36875 _swigc__p_wxCURHandler,
36876 _swigc__p_wxChar,
36877 _swigc__p_wxChildFocusEvent,
36878 _swigc__p_wxClientDC,
36879 _swigc__p_wxClipboardTextEvent,
36880 _swigc__p_wxCloseEvent,
36881 _swigc__p_wxColor,
36882 _swigc__p_wxColour,
36883 _swigc__p_wxColourDatabase,
36884 _swigc__p_wxCommandEvent,
36885 _swigc__p_wxContextMenuEvent,
36886 _swigc__p_wxControl,
36887 _swigc__p_wxControlWithItems,
36888 _swigc__p_wxCursor,
36889 _swigc__p_wxDC,
36890 _swigc__p_wxDCOverlay,
36891 _swigc__p_wxDash,
36892 _swigc__p_wxDateEvent,
36893 _swigc__p_wxDisplayChangedEvent,
36894 _swigc__p_wxDropFilesEvent,
36895 _swigc__p_wxDuplexMode,
36896 _swigc__p_wxEffects,
36897 _swigc__p_wxEncodingConverter,
36898 _swigc__p_wxEraseEvent,
36899 _swigc__p_wxEvent,
36900 _swigc__p_wxEvtHandler,
36901 _swigc__p_wxFSFile,
36902 _swigc__p_wxFileSystem,
36903 _swigc__p_wxFlexGridSizer,
36904 _swigc__p_wxFocusEvent,
36905 _swigc__p_wxFont,
36906 _swigc__p_wxFontList,
36907 _swigc__p_wxFontMapper,
36908 _swigc__p_wxGBSizerItem,
36909 _swigc__p_wxGCDC,
36910 _swigc__p_wxGDIObjListBase,
36911 _swigc__p_wxGDIObject,
36912 _swigc__p_wxGIFHandler,
36913 _swigc__p_wxGraphicsContext,
36914 _swigc__p_wxGraphicsPath,
36915 _swigc__p_wxGridBagSizer,
36916 _swigc__p_wxGridSizer,
36917 _swigc__p_wxHeaderButtonParams,
36918 _swigc__p_wxICOHandler,
36919 _swigc__p_wxIcon,
36920 _swigc__p_wxIconBundle,
36921 _swigc__p_wxIconLocation,
36922 _swigc__p_wxIconizeEvent,
36923 _swigc__p_wxIdleEvent,
36924 _swigc__p_wxImage,
36925 _swigc__p_wxImageHandler,
36926 _swigc__p_wxImageList,
36927 _swigc__p_wxIndividualLayoutConstraint,
36928 _swigc__p_wxInitDialogEvent,
36929 _swigc__p_wxJPEGHandler,
36930 _swigc__p_wxKeyEvent,
36931 _swigc__p_wxLanguageInfo,
36932 _swigc__p_wxLayoutConstraints,
36933 _swigc__p_wxLocale,
36934 _swigc__p_wxMask,
36935 _swigc__p_wxMaximizeEvent,
36936 _swigc__p_wxMemoryDC,
36937 _swigc__p_wxMenu,
36938 _swigc__p_wxMenuBar,
36939 _swigc__p_wxMenuEvent,
36940 _swigc__p_wxMenuItem,
36941 _swigc__p_wxMetaFile,
36942 _swigc__p_wxMetaFileDC,
36943 _swigc__p_wxMirrorDC,
36944 _swigc__p_wxMouseCaptureChangedEvent,
36945 _swigc__p_wxMouseCaptureLostEvent,
36946 _swigc__p_wxMouseEvent,
36947 _swigc__p_wxMoveEvent,
36948 _swigc__p_wxNativeEncodingInfo,
36949 _swigc__p_wxNativeFontInfo,
36950 _swigc__p_wxNativePixelData,
36951 _swigc__p_wxNativePixelData_Accessor,
36952 _swigc__p_wxNavigationKeyEvent,
36953 _swigc__p_wxNcPaintEvent,
36954 _swigc__p_wxNotifyEvent,
36955 _swigc__p_wxObject,
36956 _swigc__p_wxOverlay,
36957 _swigc__p_wxPCXHandler,
36958 _swigc__p_wxPNGHandler,
36959 _swigc__p_wxPNMHandler,
36960 _swigc__p_wxPaintDC,
36961 _swigc__p_wxPaintEvent,
36962 _swigc__p_wxPalette,
36963 _swigc__p_wxPaletteChangedEvent,
36964 _swigc__p_wxPaperSize,
36965 _swigc__p_wxPen,
36966 _swigc__p_wxPenList,
36967 _swigc__p_wxPixelDataBase,
36968 _swigc__p_wxPoint,
36969 _swigc__p_wxPoint2D,
36970 _swigc__p_wxPostScriptDC,
36971 _swigc__p_wxPrintData,
36972 _swigc__p_wxPrinterDC,
36973 _swigc__p_wxPseudoDC,
36974 _swigc__p_wxPyApp,
36975 _swigc__p_wxPyCommandEvent,
36976 _swigc__p_wxPyEvent,
36977 _swigc__p_wxPyFontEnumerator,
36978 _swigc__p_wxPyImageHandler,
36979 _swigc__p_wxPyLocale,
36980 _swigc__p_wxPySizer,
36981 _swigc__p_wxPyValidator,
36982 _swigc__p_wxQueryNewPaletteEvent,
36983 _swigc__p_wxRect,
36984 _swigc__p_wxRegion,
36985 _swigc__p_wxRegionIterator,
36986 _swigc__p_wxRendererNative,
36987 _swigc__p_wxRendererVersion,
36988 _swigc__p_wxScreenDC,
36989 _swigc__p_wxScrollEvent,
36990 _swigc__p_wxScrollWinEvent,
36991 _swigc__p_wxSetCursorEvent,
36992 _swigc__p_wxShowEvent,
36993 _swigc__p_wxSize,
36994 _swigc__p_wxSizeEvent,
36995 _swigc__p_wxSizer,
36996 _swigc__p_wxSizerItem,
36997 _swigc__p_wxSplitterRenderParams,
36998 _swigc__p_wxStaticBoxSizer,
36999 _swigc__p_wxStdDialogButtonSizer,
37000 _swigc__p_wxStockGDI,
37001 _swigc__p_wxString,
37002 _swigc__p_wxSysColourChangedEvent,
37003 _swigc__p_wxTIFFHandler,
37004 _swigc__p_wxUpdateUIEvent,
37005 _swigc__p_wxValidator,
37006 _swigc__p_wxWindow,
37007 _swigc__p_wxWindowCreateEvent,
37008 _swigc__p_wxWindowDC,
37009 _swigc__p_wxWindowDestroyEvent,
37010 _swigc__p_wxXPMHandler,
37011 };
37012
37013
37014 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37015
37016 static swig_const_info swig_const_table[] = {
37017 {0, 0, 0, 0.0, 0, 0}};
37018
37019 #ifdef __cplusplus
37020 }
37021 #endif
37022 /* -----------------------------------------------------------------------------
37023 * Type initialization:
37024 * This problem is tough by the requirement that no dynamic
37025 * memory is used. Also, since swig_type_info structures store pointers to
37026 * swig_cast_info structures and swig_cast_info structures store pointers back
37027 * to swig_type_info structures, we need some lookup code at initialization.
37028 * The idea is that swig generates all the structures that are needed.
37029 * The runtime then collects these partially filled structures.
37030 * The SWIG_InitializeModule function takes these initial arrays out of
37031 * swig_module, and does all the lookup, filling in the swig_module.types
37032 * array with the correct data and linking the correct swig_cast_info
37033 * structures together.
37034 *
37035 * The generated swig_type_info structures are assigned staticly to an initial
37036 * array. We just loop though that array, and handle each type individually.
37037 * First we lookup if this type has been already loaded, and if so, use the
37038 * loaded structure instead of the generated one. Then we have to fill in the
37039 * cast linked list. The cast data is initially stored in something like a
37040 * two-dimensional array. Each row corresponds to a type (there are the same
37041 * number of rows as there are in the swig_type_initial array). Each entry in
37042 * a column is one of the swig_cast_info structures for that type.
37043 * The cast_initial array is actually an array of arrays, because each row has
37044 * a variable number of columns. So to actually build the cast linked list,
37045 * we find the array of casts associated with the type, and loop through it
37046 * adding the casts to the list. The one last trick we need to do is making
37047 * sure the type pointer in the swig_cast_info struct is correct.
37048 *
37049 * First off, we lookup the cast->type name to see if it is already loaded.
37050 * There are three cases to handle:
37051 * 1) If the cast->type has already been loaded AND the type we are adding
37052 * casting info to has not been loaded (it is in this module), THEN we
37053 * replace the cast->type pointer with the type pointer that has already
37054 * been loaded.
37055 * 2) If BOTH types (the one we are adding casting info to, and the
37056 * cast->type) are loaded, THEN the cast info has already been loaded by
37057 * the previous module so we just ignore it.
37058 * 3) Finally, if cast->type has not already been loaded, then we add that
37059 * swig_cast_info to the linked list (because the cast->type) pointer will
37060 * be correct.
37061 * ----------------------------------------------------------------------------- */
37062
37063 #ifdef __cplusplus
37064 extern "C" {
37065 #if 0
37066 } /* c-mode */
37067 #endif
37068 #endif
37069
37070 #if 0
37071 #define SWIGRUNTIME_DEBUG
37072 #endif
37073
37074 SWIGRUNTIME void
37075 SWIG_InitializeModule(void *clientdata) {
37076 size_t i;
37077 swig_module_info *module_head;
37078 static int init_run = 0;
37079
37080 clientdata = clientdata;
37081
37082 if (init_run) return;
37083 init_run = 1;
37084
37085 /* Initialize the swig_module */
37086 swig_module.type_initial = swig_type_initial;
37087 swig_module.cast_initial = swig_cast_initial;
37088
37089 /* Try and load any already created modules */
37090 module_head = SWIG_GetModule(clientdata);
37091 if (module_head) {
37092 swig_module.next = module_head->next;
37093 module_head->next = &swig_module;
37094 } else {
37095 /* This is the first module loaded */
37096 swig_module.next = &swig_module;
37097 SWIG_SetModule(clientdata, &swig_module);
37098 }
37099
37100 /* Now work on filling in swig_module.types */
37101 #ifdef SWIGRUNTIME_DEBUG
37102 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37103 #endif
37104 for (i = 0; i < swig_module.size; ++i) {
37105 swig_type_info *type = 0;
37106 swig_type_info *ret;
37107 swig_cast_info *cast;
37108
37109 #ifdef SWIGRUNTIME_DEBUG
37110 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37111 #endif
37112
37113 /* if there is another module already loaded */
37114 if (swig_module.next != &swig_module) {
37115 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37116 }
37117 if (type) {
37118 /* Overwrite clientdata field */
37119 #ifdef SWIGRUNTIME_DEBUG
37120 printf("SWIG_InitializeModule: found type %s\n", type->name);
37121 #endif
37122 if (swig_module.type_initial[i]->clientdata) {
37123 type->clientdata = swig_module.type_initial[i]->clientdata;
37124 #ifdef SWIGRUNTIME_DEBUG
37125 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37126 #endif
37127 }
37128 } else {
37129 type = swig_module.type_initial[i];
37130 }
37131
37132 /* Insert casting types */
37133 cast = swig_module.cast_initial[i];
37134 while (cast->type) {
37135 /* Don't need to add information already in the list */
37136 ret = 0;
37137 #ifdef SWIGRUNTIME_DEBUG
37138 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37139 #endif
37140 if (swig_module.next != &swig_module) {
37141 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37142 #ifdef SWIGRUNTIME_DEBUG
37143 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37144 #endif
37145 }
37146 if (ret) {
37147 if (type == swig_module.type_initial[i]) {
37148 #ifdef SWIGRUNTIME_DEBUG
37149 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37150 #endif
37151 cast->type = ret;
37152 ret = 0;
37153 } else {
37154 /* Check for casting already in the list */
37155 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37156 #ifdef SWIGRUNTIME_DEBUG
37157 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37158 #endif
37159 if (!ocast) ret = 0;
37160 }
37161 }
37162
37163 if (!ret) {
37164 #ifdef SWIGRUNTIME_DEBUG
37165 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37166 #endif
37167 if (type->cast) {
37168 type->cast->prev = cast;
37169 cast->next = type->cast;
37170 }
37171 type->cast = cast;
37172 }
37173 cast++;
37174 }
37175 /* Set entry in modules->types array equal to the type */
37176 swig_module.types[i] = type;
37177 }
37178 swig_module.types[i] = 0;
37179
37180 #ifdef SWIGRUNTIME_DEBUG
37181 printf("**** SWIG_InitializeModule: Cast List ******\n");
37182 for (i = 0; i < swig_module.size; ++i) {
37183 int j = 0;
37184 swig_cast_info *cast = swig_module.cast_initial[i];
37185 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37186 while (cast->type) {
37187 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37188 cast++;
37189 ++j;
37190 }
37191 printf("---- Total casts: %d\n",j);
37192 }
37193 printf("**** SWIG_InitializeModule: Cast List ******\n");
37194 #endif
37195 }
37196
37197 /* This function will propagate the clientdata field of type to
37198 * any new swig_type_info structures that have been added into the list
37199 * of equivalent types. It is like calling
37200 * SWIG_TypeClientData(type, clientdata) a second time.
37201 */
37202 SWIGRUNTIME void
37203 SWIG_PropagateClientData(void) {
37204 size_t i;
37205 swig_cast_info *equiv;
37206 static int init_run = 0;
37207
37208 if (init_run) return;
37209 init_run = 1;
37210
37211 for (i = 0; i < swig_module.size; i++) {
37212 if (swig_module.types[i]->clientdata) {
37213 equiv = swig_module.types[i]->cast;
37214 while (equiv) {
37215 if (!equiv->converter) {
37216 if (equiv->type && !equiv->type->clientdata)
37217 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37218 }
37219 equiv = equiv->next;
37220 }
37221 }
37222 }
37223 }
37224
37225 #ifdef __cplusplus
37226 #if 0
37227 {
37228 /* c-mode */
37229 #endif
37230 }
37231 #endif
37232
37233
37234
37235 #ifdef __cplusplus
37236 extern "C" {
37237 #endif
37238
37239 /* Python-specific SWIG API */
37240 #define SWIG_newvarlink() SWIG_Python_newvarlink()
37241 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37242 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37243
37244 /* -----------------------------------------------------------------------------
37245 * global variable support code.
37246 * ----------------------------------------------------------------------------- */
37247
37248 typedef struct swig_globalvar {
37249 char *name; /* Name of global variable */
37250 PyObject *(*get_attr)(void); /* Return the current value */
37251 int (*set_attr)(PyObject *); /* Set the value */
37252 struct swig_globalvar *next;
37253 } swig_globalvar;
37254
37255 typedef struct swig_varlinkobject {
37256 PyObject_HEAD
37257 swig_globalvar *vars;
37258 } swig_varlinkobject;
37259
37260 SWIGINTERN PyObject *
37261 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37262 return PyString_FromString("<Swig global variables>");
37263 }
37264
37265 SWIGINTERN PyObject *
37266 swig_varlink_str(swig_varlinkobject *v) {
37267 PyObject *str = PyString_FromString("(");
37268 swig_globalvar *var;
37269 for (var = v->vars; var; var=var->next) {
37270 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37271 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37272 }
37273 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37274 return str;
37275 }
37276
37277 SWIGINTERN int
37278 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37279 PyObject *str = swig_varlink_str(v);
37280 fprintf(fp,"Swig global variables ");
37281 fprintf(fp,"%s\n", PyString_AsString(str));
37282 Py_DECREF(str);
37283 return 0;
37284 }
37285
37286 SWIGINTERN void
37287 swig_varlink_dealloc(swig_varlinkobject *v) {
37288 swig_globalvar *var = v->vars;
37289 while (var) {
37290 swig_globalvar *n = var->next;
37291 free(var->name);
37292 free(var);
37293 var = n;
37294 }
37295 }
37296
37297 SWIGINTERN PyObject *
37298 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37299 PyObject *res = NULL;
37300 swig_globalvar *var = v->vars;
37301 while (var) {
37302 if (strcmp(var->name,n) == 0) {
37303 res = (*var->get_attr)();
37304 break;
37305 }
37306 var = var->next;
37307 }
37308 if (res == NULL && !PyErr_Occurred()) {
37309 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37310 }
37311 return res;
37312 }
37313
37314 SWIGINTERN int
37315 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37316 int res = 1;
37317 swig_globalvar *var = v->vars;
37318 while (var) {
37319 if (strcmp(var->name,n) == 0) {
37320 res = (*var->set_attr)(p);
37321 break;
37322 }
37323 var = var->next;
37324 }
37325 if (res == 1 && !PyErr_Occurred()) {
37326 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37327 }
37328 return res;
37329 }
37330
37331 SWIGINTERN PyTypeObject*
37332 swig_varlink_type(void) {
37333 static char varlink__doc__[] = "Swig var link object";
37334 static PyTypeObject varlink_type;
37335 static int type_init = 0;
37336 if (!type_init) {
37337 const PyTypeObject tmp
37338 = {
37339 PyObject_HEAD_INIT(NULL)
37340 0, /* Number of items in variable part (ob_size) */
37341 (char *)"swigvarlink", /* Type name (tp_name) */
37342 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37343 0, /* Itemsize (tp_itemsize) */
37344 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37345 (printfunc) swig_varlink_print, /* Print (tp_print) */
37346 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37347 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37348 0, /* tp_compare */
37349 (reprfunc) swig_varlink_repr, /* tp_repr */
37350 0, /* tp_as_number */
37351 0, /* tp_as_sequence */
37352 0, /* tp_as_mapping */
37353 0, /* tp_hash */
37354 0, /* tp_call */
37355 (reprfunc)swig_varlink_str, /* tp_str */
37356 0, /* tp_getattro */
37357 0, /* tp_setattro */
37358 0, /* tp_as_buffer */
37359 0, /* tp_flags */
37360 varlink__doc__, /* tp_doc */
37361 0, /* tp_traverse */
37362 0, /* tp_clear */
37363 0, /* tp_richcompare */
37364 0, /* tp_weaklistoffset */
37365 #if PY_VERSION_HEX >= 0x02020000
37366 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37367 #endif
37368 #if PY_VERSION_HEX >= 0x02030000
37369 0, /* tp_del */
37370 #endif
37371 #ifdef COUNT_ALLOCS
37372 0,0,0,0 /* tp_alloc -> tp_next */
37373 #endif
37374 };
37375 varlink_type = tmp;
37376 varlink_type.ob_type = &PyType_Type;
37377 type_init = 1;
37378 }
37379 return &varlink_type;
37380 }
37381
37382 /* Create a variable linking object for use later */
37383 SWIGINTERN PyObject *
37384 SWIG_Python_newvarlink(void) {
37385 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37386 if (result) {
37387 result->vars = 0;
37388 }
37389 return ((PyObject*) result);
37390 }
37391
37392 SWIGINTERN void
37393 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37394 swig_varlinkobject *v = (swig_varlinkobject *) p;
37395 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37396 if (gv) {
37397 size_t size = strlen(name)+1;
37398 gv->name = (char *)malloc(size);
37399 if (gv->name) {
37400 strncpy(gv->name,name,size);
37401 gv->get_attr = get_attr;
37402 gv->set_attr = set_attr;
37403 gv->next = v->vars;
37404 }
37405 }
37406 v->vars = gv;
37407 }
37408
37409 SWIGINTERN PyObject *
37410 SWIG_globals() {
37411 static PyObject *_SWIG_globals = 0;
37412 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37413 return _SWIG_globals;
37414 }
37415
37416 /* -----------------------------------------------------------------------------
37417 * constants/methods manipulation
37418 * ----------------------------------------------------------------------------- */
37419
37420 /* Install Constants */
37421 SWIGINTERN void
37422 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37423 PyObject *obj = 0;
37424 size_t i;
37425 for (i = 0; constants[i].type; ++i) {
37426 switch(constants[i].type) {
37427 case SWIG_PY_POINTER:
37428 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37429 break;
37430 case SWIG_PY_BINARY:
37431 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37432 break;
37433 default:
37434 obj = 0;
37435 break;
37436 }
37437 if (obj) {
37438 PyDict_SetItemString(d, constants[i].name, obj);
37439 Py_DECREF(obj);
37440 }
37441 }
37442 }
37443
37444 /* -----------------------------------------------------------------------------*/
37445 /* Fix SwigMethods to carry the callback ptrs when needed */
37446 /* -----------------------------------------------------------------------------*/
37447
37448 SWIGINTERN void
37449 SWIG_Python_FixMethods(PyMethodDef *methods,
37450 swig_const_info *const_table,
37451 swig_type_info **types,
37452 swig_type_info **types_initial) {
37453 size_t i;
37454 for (i = 0; methods[i].ml_name; ++i) {
37455 const char *c = methods[i].ml_doc;
37456 if (c && (c = strstr(c, "swig_ptr: "))) {
37457 int j;
37458 swig_const_info *ci = 0;
37459 const char *name = c + 10;
37460 for (j = 0; const_table[j].type; ++j) {
37461 if (strncmp(const_table[j].name, name,
37462 strlen(const_table[j].name)) == 0) {
37463 ci = &(const_table[j]);
37464 break;
37465 }
37466 }
37467 if (ci) {
37468 size_t shift = (ci->ptype) - types;
37469 swig_type_info *ty = types_initial[shift];
37470 size_t ldoc = (c - methods[i].ml_doc);
37471 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37472 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37473 if (ndoc) {
37474 char *buff = ndoc;
37475 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37476 if (ptr) {
37477 strncpy(buff, methods[i].ml_doc, ldoc);
37478 buff += ldoc;
37479 strncpy(buff, "swig_ptr: ", 10);
37480 buff += 10;
37481 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37482 methods[i].ml_doc = ndoc;
37483 }
37484 }
37485 }
37486 }
37487 }
37488 }
37489
37490 #ifdef __cplusplus
37491 }
37492 #endif
37493
37494 /* -----------------------------------------------------------------------------*
37495 * Partial Init method
37496 * -----------------------------------------------------------------------------*/
37497
37498 #ifdef __cplusplus
37499 extern "C"
37500 #endif
37501 SWIGEXPORT void SWIG_init(void) {
37502 PyObject *m, *d;
37503
37504 /* Fix SwigMethods to carry the callback ptrs when needed */
37505 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37506
37507 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37508 d = PyModule_GetDict(m);
37509
37510 SWIG_InitializeModule(0);
37511 SWIG_InstallConstants(d,swig_const_table);
37512
37513
37514 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37515 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37516 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37517 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37518 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37519 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37520 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37521 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37522 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37523 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37524 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37525 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37526 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37527 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37528 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37529 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37530 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37531 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37532 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37533 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37534 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37535 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37536 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37537 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37538 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37539 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37540 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37541 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37542 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37543 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37544 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37545 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37546 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37547 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37548 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37549 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37550 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37551 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37552 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37553 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37554 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37555 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37556 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37557 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37558 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37559 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37560 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37561 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37562 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37563 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37564 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37565 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37566 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37567 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37568 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37569 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37570 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37571 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37572 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37573 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37574 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37575 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37576 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37577 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37578 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37579 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37580 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37581 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37582 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37583 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37584 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37585 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37586 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37587 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37588 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37589 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37590 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37591 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37592 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37593 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37594 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37595 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37596 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37597 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37598 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37599 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37600 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37601 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37602 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37603 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37604 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37605 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37606 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37607 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37608 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37609 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37610 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37611 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37612 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37613 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37614 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37615 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37616 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37617 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37618 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37619 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37620 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37621 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37622 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37623 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37624 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37625 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37626 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37627 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37628 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37629 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37630 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37631 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37632 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37633 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37634 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37635 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37636 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37637 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37638 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37639 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37640 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37641 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37642 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37643 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37644 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37645 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37646
37647 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37648
37649 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37650 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37651 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37652 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37653 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37654 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37655 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37656 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37657 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37658 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37659 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37660 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37661 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37662 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37663 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37664 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37665 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37666 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37667 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37668 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37669 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37670 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37671 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37672 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37673 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37674 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37675 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37676 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37677 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37678 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37679 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37680 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37681 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37682 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37683 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37684 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37685 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37686 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37687 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37688 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37689 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37690 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37691 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37692 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37693 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37694 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37695 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37696 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37697 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37698 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37699 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37700 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37701 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37702 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37703 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37704 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37705 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37706 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37707 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37708 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37709 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37710 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37711 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37712 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37713 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37714 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37715 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37716 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37717 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37718 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37719 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37720 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37721 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37722 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37723 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37724 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37725 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37726 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37727 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37728 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37729 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37730 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37731 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37732 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37733 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37734 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37735 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37736 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37737 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37738 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37739 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37740 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37741 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37742 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37743 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37744 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37745 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37746 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37747 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37748 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37749 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37750 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37751 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37752 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37753 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37754 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37755 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37756 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37757 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37758 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37759 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37760 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37761 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37762 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37763 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37764 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37765 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37766 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37767 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37768 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37769 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37770 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37771 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37772 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37773 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37774 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37775 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37776 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37777 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37778 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37779 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37780 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37781 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37782 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37783 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37784 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37785 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37786 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37787 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37788 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37789 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37790 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37791 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37792 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37793 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37794 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37795 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37796 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37797 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37798 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37799 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37800 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37801 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37802 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37803 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37804 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37805 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37806 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37807 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37808 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37809 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37810 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37811 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37812 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37813 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37814 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37815 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37816 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37817 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37818 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37819 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37820 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37821 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37822 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37823 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37824 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37825 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37826 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37827 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37828 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37829 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37830 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37831 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37832 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37833 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37834 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37835 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37836 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37837 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37838 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37839 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37840 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37841 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37842 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37843 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37844 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37845 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37846 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37847 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37848 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37849 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37850 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37851 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37852 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37853 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37854 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37855 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37856 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37857 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37858 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37859 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37860 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37861 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37862 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37863 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37864 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37865 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37866 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37867 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37868 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37869 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37870 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37871 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37872 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37873 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37874 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37875 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37876 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37877 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37878 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37879 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37880 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37881 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37882 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37883 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37884 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37885 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37886 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37887 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37888 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37889 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37890 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37891 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37892 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37893 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37894 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37895 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37896 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37897 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37898 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37899 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37900 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37901 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37902 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37903 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37904 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37905 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37906 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37907 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37908 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37909 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37910 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37911 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37912 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37913 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37914 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37915 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37916 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37917 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37918 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37919 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37920 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37921 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37922 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37923 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37924 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37925 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37926 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37927 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37928 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37929 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37930 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37931 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37932 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37933 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37934 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37935 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37936 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37937 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37938 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37939 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37940 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37941 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37942 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37943 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37944 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37945 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37946 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37947 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37948 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37949 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37950 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37951 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37952 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37953 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37954 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37955 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37956 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37957 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37958 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37959 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37960 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37961 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37962 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37963 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37964 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37965 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37966 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37967 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37968
37969 // Work around a chicken/egg problem in drawlist.cpp
37970 wxPyDrawList_SetAPIPtr();
37971
37972 }
37973