]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Blind Tinderbox build fix according to simiar usage in carbon/listbox.cpp
[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_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDash swig_types[38]
2505 #define SWIGTYPE_p_wxDateEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509 #define SWIGTYPE_p_wxEffects swig_types[43]
2510 #define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511 #define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512 #define SWIGTYPE_p_wxEvent swig_types[46]
2513 #define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514 #define SWIGTYPE_p_wxFSFile swig_types[48]
2515 #define SWIGTYPE_p_wxFileSystem swig_types[49]
2516 #define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517 #define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518 #define SWIGTYPE_p_wxFont swig_types[52]
2519 #define SWIGTYPE_p_wxFontList swig_types[53]
2520 #define SWIGTYPE_p_wxFontMapper swig_types[54]
2521 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522 #define SWIGTYPE_p_wxGCDC swig_types[56]
2523 #define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524 #define SWIGTYPE_p_wxGDIObject swig_types[58]
2525 #define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526 #define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527 #define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528 #define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529 #define SWIGTYPE_p_wxGridSizer swig_types[63]
2530 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531 #define SWIGTYPE_p_wxICOHandler swig_types[65]
2532 #define SWIGTYPE_p_wxIcon swig_types[66]
2533 #define SWIGTYPE_p_wxIconBundle swig_types[67]
2534 #define SWIGTYPE_p_wxIconLocation swig_types[68]
2535 #define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536 #define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537 #define SWIGTYPE_p_wxImage swig_types[71]
2538 #define SWIGTYPE_p_wxImageHandler swig_types[72]
2539 #define SWIGTYPE_p_wxImageList swig_types[73]
2540 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541 #define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544 #define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545 #define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546 #define SWIGTYPE_p_wxLocale swig_types[80]
2547 #define SWIGTYPE_p_wxMask swig_types[81]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550 #define SWIGTYPE_p_wxMenu swig_types[84]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[85]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[87]
2554 #define SWIGTYPE_p_wxMetaFile swig_types[88]
2555 #define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556 #define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562 #define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563 #define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567 #define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568 #define SWIGTYPE_p_wxObject swig_types[102]
2569 #define SWIGTYPE_p_wxOverlay swig_types[103]
2570 #define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572 #define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573 #define SWIGTYPE_p_wxPaintDC swig_types[107]
2574 #define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPalette swig_types[109]
2576 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577 #define SWIGTYPE_p_wxPaperSize swig_types[111]
2578 #define SWIGTYPE_p_wxPen swig_types[112]
2579 #define SWIGTYPE_p_wxPenList swig_types[113]
2580 #define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581 #define SWIGTYPE_p_wxPoint swig_types[115]
2582 #define SWIGTYPE_p_wxPoint2D swig_types[116]
2583 #define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584 #define SWIGTYPE_p_wxPrintData swig_types[118]
2585 #define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586 #define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587 #define SWIGTYPE_p_wxPyApp swig_types[121]
2588 #define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591 #define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592 #define SWIGTYPE_p_wxPyLocale swig_types[126]
2593 #define SWIGTYPE_p_wxPySizer swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxRegion swig_types[131]
2598 #define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599 #define SWIGTYPE_p_wxRendererNative swig_types[133]
2600 #define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601 #define SWIGTYPE_p_wxScreenDC swig_types[135]
2602 #define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603 #define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStockGDI swig_types[147]
2614 #define SWIGTYPE_p_wxString swig_types[148]
2615 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616 #define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618 #define SWIGTYPE_p_wxValidator swig_types[152]
2619 #define SWIGTYPE_p_wxWindow swig_types[153]
2620 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621 #define SWIGTYPE_p_wxWindowDC swig_types[155]
2622 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623 #define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624 static swig_type_info *swig_types[159];
2625 static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
2626 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2628
2629 /* -------- TYPES TABLE (END) -------- */
2630
2631 #if (PY_VERSION_HEX <= 0x02000000)
2632 # if !defined(SWIG_PYTHON_CLASSIC)
2633 # error "This python version requires to use swig with the '-classic' option"
2634 # endif
2635 #endif
2636 #if (PY_VERSION_HEX <= 0x02020000)
2637 # error "This python version requires to use swig with the '-nomodern' option"
2638 #endif
2639 #if (PY_VERSION_HEX <= 0x02020000)
2640 # error "This python version requires to use swig with the '-nomodernargs' option"
2641 #endif
2642 #ifndef METH_O
2643 # error "This python version requires to use swig with the '-nofastunpack' option"
2644 #endif
2645
2646 /*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649 #define SWIG_init init_gdi_
2650
2651 #define SWIG_name "_gdi_"
2652
2653 #define SWIGVERSION 0x010329
2654
2655
2656 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2658
2659
2660 #include <stdexcept>
2661
2662
2663 namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
2671 }
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
2676 }
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
2706 }
2707
2708
2709 namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
2718 }
2719 };
2720 }
2721
2722
2723 #include "wx/wxPython/wxPython.h"
2724 #include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732 SWIGINTERNINLINE PyObject *
2733 SWIG_From_int (int value)
2734 {
2735 return SWIG_From_long (value);
2736 }
2737
2738
2739 #include <limits.h>
2740 #ifndef LLONG_MIN
2741 # define LLONG_MIN LONG_LONG_MIN
2742 #endif
2743 #ifndef LLONG_MAX
2744 # define LLONG_MAX LONG_LONG_MAX
2745 #endif
2746 #ifndef ULLONG_MAX
2747 # define ULLONG_MAX ULONG_LONG_MAX
2748 #endif
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_long (PyObject* obj, long* val)
2753 {
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759 }
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2764 {
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2767 return SWIG_TypeError;
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
2771 return SWIG_OK;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777 {
2778 unsigned long v;
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
2783 } else {
2784 if (val) *val = static_cast< unsigned char >(v);
2785 }
2786 }
2787 return res;
2788 }
2789
2790
2791 SWIGINTERNINLINE PyObject*
2792 SWIG_From_unsigned_SS_long (unsigned long value)
2793 {
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2796 }
2797
2798
2799 SWIGINTERNINLINE PyObject *
2800 SWIG_From_unsigned_SS_char (unsigned char value)
2801 {
2802 return SWIG_From_unsigned_SS_long (value);
2803 }
2804
2805 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
2823
2824 SWIGINTERN int
2825 SWIG_AsVal_bool (PyObject *obj, bool *val)
2826 {
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839 }
2840
2841 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
2846 int alpha = wxALPHA_OPAQUE;
2847 if (self->IsOk()) {
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
2851 alpha = self->Alpha();
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2858 return rv;
2859 }
2860 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
2863
2864 SWIGINTERN int
2865 SWIG_AsVal_int (PyObject * obj, int *val)
2866 {
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
2877 }
2878
2879 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
2892 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2896
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
2911 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2913
2914 #include <wx/rawbmp.h>
2915
2916
2917 #include <wx/image.h>
2918
2919 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2920 char** cArray = NULL;
2921 int count;
2922
2923 if (!PyList_Check(listOfStrings)) {
2924 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2925 return NULL;
2926 }
2927 count = PyList_Size(listOfStrings);
2928 cArray = new char*[count];
2929
2930 for(int x=0; x<count; x++) {
2931 // TODO: Need some validation and error checking here
2932 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2933 }
2934 return cArray;
2935 }
2936
2937
2938 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2939 char** cArray = NULL;
2940 wxBitmap* bmp;
2941
2942 cArray = ConvertListOfStrings(listOfStrings);
2943 if (! cArray)
2944 return NULL;
2945 bmp = new wxBitmap(cArray);
2946 delete [] cArray;
2947 return bmp;
2948 }
2949 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2950 char* buf;
2951 Py_ssize_t length;
2952 PyString_AsStringAndSize(bits, &buf, &length);
2953 return new wxBitmap(buf, width, height, depth);
2954 }
2955 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2956 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2957 wxSize size(self->GetWidth(), self->GetHeight());
2958 return size;
2959 }
2960 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2961 wxMask *mask = new wxMask(*self, colour);
2962 self->SetMask(mask);
2963 }
2964 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2965 self->SetWidth(size.x);
2966 self->SetHeight(size.y);
2967 }
2968 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2969 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2970
2971 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2972 // appears to me that the other platforms are already doing it, so I'll just
2973 // automatically do it for wxMSW here.
2974 #ifdef __WXMSW__
2975 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2976 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2977 #else
2978 #define wxPy_premultiply(p, a) (p)
2979 #define wxPy_unpremultiply(p, a) (p)
2980 #endif
2981
2982
2983 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2984 buffer data, int DATASIZE,
2985 buffer alpha, int ALPHASIZE)
2986 {
2987 if (DATASIZE != width*height*3) {
2988 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2989 return NULL;
2990 }
2991
2992 if (ALPHASIZE != width*height) {
2993 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2994 return NULL;
2995 }
2996
2997 wxBitmap* bmp = new wxBitmap(width, height, 32);
2998 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return NULL;
3004 }
3005
3006 pixData.UseAlpha();
3007 wxAlphaPixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxAlphaPixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 byte a = *(alpha++);
3012 p.Red() = wxPy_premultiply(*(data++), a);
3013 p.Green() = wxPy_premultiply(*(data++), a);
3014 p.Blue() = wxPy_premultiply(*(data++), a);
3015 p.Alpha() = a;
3016 ++p;
3017 }
3018 p = rowStart;
3019 p.OffsetY(pixData, 1);
3020 }
3021 return bmp;
3022 }
3023
3024 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3025 {
3026 if (DATASIZE != width*height*3) {
3027 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3028 return NULL;
3029 }
3030
3031 wxBitmap* bmp = new wxBitmap(width, height, 24);
3032 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3033 if (! pixData) {
3034 // raise an exception...
3035 wxPyErr_SetString(PyExc_RuntimeError,
3036 "Failed to gain raw access to bitmap data.");
3037 return NULL;
3038 }
3039
3040 wxNativePixelData::Iterator p(pixData);
3041 for (int y=0; y<height; y++) {
3042 wxNativePixelData::Iterator rowStart = p;
3043 for (int x=0; x<width; x++) {
3044 p.Red() = *(data++);
3045 p.Green() = *(data++);
3046 p.Blue() = *(data++);
3047 ++p;
3048 }
3049 p = rowStart;
3050 p.OffsetY(pixData, 1);
3051 }
3052 return bmp;
3053 }
3054
3055
3056 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3057 {
3058 if (DATASIZE != width*height*4) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 wxBitmap* bmp = new wxBitmap(width, height, 32);
3064 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3065 if (! pixData) {
3066 // raise an exception...
3067 wxPyErr_SetString(PyExc_RuntimeError,
3068 "Failed to gain raw access to bitmap data.");
3069 return NULL;
3070 }
3071
3072 pixData.UseAlpha();
3073 wxAlphaPixelData::Iterator p(pixData);
3074 for (int y=0; y<height; y++) {
3075 wxAlphaPixelData::Iterator rowStart = p;
3076 for (int x=0; x<width; x++) {
3077 byte a = data[3];
3078 p.Red() = wxPy_premultiply(*(data++), a);
3079 p.Green() = wxPy_premultiply(*(data++), a);
3080 p.Blue() = wxPy_premultiply(*(data++), a);
3081 p.Alpha() = a; data++;
3082 ++p;
3083 }
3084 p = rowStart;
3085 p.OffsetY(pixData, 1);
3086 }
3087 return bmp;
3088 }
3089
3090
3091 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3092
3093 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3094 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3095 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3096 self->Red() = red;
3097 self->Green() = green;
3098 self->Blue() = blue;
3099 }
3100 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3101 PyObject* rv = PyTuple_New(3);
3102 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3103 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3104 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3105 return rv;
3106 }
3107
3108 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3109
3110 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3111 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3112 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3113 self->Red() = wxPy_premultiply(red, alpha);
3114 self->Green() = wxPy_premultiply(green, alpha);
3115 self->Blue() = wxPy_premultiply(blue, alpha);
3116 self->Alpha() = alpha;
3117 }
3118 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3119 PyObject* rv = PyTuple_New(4);
3120 int red = self->Red();
3121 int green = self->Green();
3122 int blue = self->Blue();
3123 int alpha = self->Alpha();
3124
3125 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3126 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3127 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3128 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3129 return rv;
3130 }
3131 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3132 if ( !colour.IsOk() )
3133 return new wxMask(bitmap, *wxBLACK);
3134 else
3135 return new wxMask(bitmap, colour);
3136 }
3137
3138 #include <wx/iconbndl.h>
3139
3140 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3141 wxIcon* icon = new wxIcon();
3142 icon->CopyFromBitmap(bmp);
3143 return icon;
3144 }
3145 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3146 char** cArray = NULL;
3147 wxIcon* icon;
3148
3149 cArray = ConvertListOfStrings(listOfStrings);
3150 if (! cArray)
3151 return NULL;
3152 icon = new wxIcon(cArray);
3153 delete [] cArray;
3154 return icon;
3155 }
3156 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3157 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3158
3159 return new wxIconLocation(*filename, num);
3160
3161
3162
3163 }
3164 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3165
3166 self->SetIndex(num);
3167
3168
3169
3170 }
3171 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3172
3173 return self->GetIndex();
3174
3175
3176
3177 }
3178 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3179 #ifdef __WXGTK__
3180 wxImage img(cursorName, type);
3181 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3182 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3183 return new wxCursor(img);
3184 #else
3185 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3186 #endif
3187 }
3188 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3189
3190
3191 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3192 (*self) ++;
3193 }
3194 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3195 return self->operator bool();
3196 }
3197
3198 #include <wx/fontutil.h>
3199 #include <wx/fontmap.h>
3200 #include <wx/fontenum.h>
3201
3202 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3203 return self->ToString();
3204 }
3205
3206 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3207 { wxPyRaiseNotImplemented(); return NULL; }
3208
3209 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3210 { wxPyRaiseNotImplemented(); return false; }
3211
3212
3213 SWIGINTERNINLINE PyObject *
3214 SWIG_From_size_t (size_t value)
3215 {
3216 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3217 }
3218
3219
3220 SWIGINTERNINLINE int
3221 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3222 {
3223 unsigned long v;
3224 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3225 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3226 return res;
3227 }
3228
3229 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3230 wxFontEncoding alt_enc;
3231 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3232 return PyInt_FromLong(alt_enc);
3233 else {
3234 Py_INCREF(Py_None);
3235 return Py_None;
3236 }
3237 }
3238 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3239 wxNativeFontInfo nfi;
3240 nfi.FromString(info);
3241 return new wxFont(nfi);
3242 }
3243 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3244 return wxFont::New(pointSize, family, flags, face, encoding);
3245 }
3246 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3247 return wxFontBase::New(pixelSize, family,
3248 style, weight, underlined,
3249 face, encoding);
3250 }
3251 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3252 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3253 }
3254 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3255 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3256
3257 class wxPyFontEnumerator : public wxFontEnumerator {
3258 public:
3259 wxPyFontEnumerator() {}
3260 ~wxPyFontEnumerator() {}
3261
3262 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3263 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3264
3265 PYPRIVATE;
3266 };
3267
3268 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3269 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3270
3271
3272 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3273 PyObject* ret;
3274 wxArrayString arr = wxFontEnumerator::GetEncodings();
3275 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3276 ret = wxArrayString2PyList_helper(arr);
3277 wxPyEndBlockThreads(blocked);
3278 return ret;
3279 }
3280 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3281 PyObject* ret;
3282 wxArrayString arr = wxFontEnumerator::GetFacenames();
3283 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3284 ret = wxArrayString2PyList_helper(arr);
3285 wxPyEndBlockThreads(blocked);
3286 return ret;
3287 }
3288
3289 #include <locale.h>
3290
3291 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3292 wxLocale* loc;
3293 if (language == -1)
3294 loc = new wxLocale();
3295 else
3296 loc = new wxLocale(language, flags);
3297 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3298 // for the floating point conversions and such to work right.
3299 #if PY_VERSION_HEX < 0x02040000
3300 setlocale(LC_NUMERIC, "C");
3301 #endif
3302 return loc;
3303 }
3304 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3305 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3306 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3307 // for the floating point conversions and such to work right.
3308 #if PY_VERSION_HEX < 0x02040000
3309 setlocale(LC_NUMERIC, "C");
3310 #endif
3311 return rc;
3312 }
3313 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3314 bool rc = self->Init(language, flags);
3315 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3316 // for the floating point conversions and such to work right.
3317 #if PY_VERSION_HEX < 0x02040000
3318 setlocale(LC_NUMERIC, "C");
3319 #endif
3320 return rc;
3321 }
3322
3323 class wxPyLocale : public wxLocale
3324 {
3325 public:
3326 wxPyLocale();
3327
3328 wxPyLocale(const wxChar *szName, // name (for messages)
3329 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3330 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3331 bool bLoadDefault = true, // preload wxstd.mo?
3332 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3333
3334 wxPyLocale(int language, // wxLanguage id or custom language
3335 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3336
3337 ~wxPyLocale();
3338
3339 virtual const wxChar *GetString(const wxChar *szOrigString,
3340 const wxChar *szDomain = NULL) const;
3341 virtual const wxChar *GetString(const wxChar *szOrigString,
3342 const wxChar *szOrigString2, size_t n,
3343 const wxChar *szDomain = NULL) const;
3344
3345 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3346 const wxChar *szDomain = NULL) const;
3347 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3348 const wxChar *szOrigString2, size_t n,
3349 const wxChar *szDomain = NULL) const;
3350
3351 PYPRIVATE;
3352 private:
3353 DECLARE_NO_COPY_CLASS(wxPyLocale)
3354 };
3355
3356 wxPyLocale::wxPyLocale() : wxLocale()
3357 {
3358 }
3359
3360 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3361 const wxChar *szShort, // dir prefix (for msg files)
3362 const wxChar *szLocale, // locale (for setlocale)
3363 bool bLoadDefault, // preload wxstd.mo?
3364 bool bConvertEncoding) // convert Win<->Unix if necessary?
3365 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3366 {
3367 }
3368
3369 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3370 int flags) : wxLocale(language, flags)
3371 {
3372 }
3373
3374 wxPyLocale::~wxPyLocale()
3375 {
3376 }
3377
3378 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3379 const wxChar *szDomain) const
3380 {
3381 wxChar *str = GetSingularString(szOrigString, szDomain);
3382 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3383 }
3384
3385 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3386 const wxChar *szOrigString2, size_t n,
3387 const wxChar *szDomain) const
3388 {
3389 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3390 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3391 }
3392
3393 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3394 const wxChar *szDomain) const
3395 {
3396 bool found;
3397 static wxString str;
3398 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.
3399 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3400 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3401 PyObject* param1 = wx2PyString(szOrigString);
3402 PyObject* param2 = wx2PyString(szDomain);
3403 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3404 Py_DECREF(param1);
3405 Py_DECREF(param2);
3406 if (ret) {
3407 str = Py2wxString(ret);
3408 Py_DECREF(ret);
3409 }
3410 }
3411 wxPyEndBlockThreads(blocked);
3412 return (found ? (wxChar*)str.c_str() : NULL);
3413 }
3414
3415 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3416 const wxChar *szOrigString2, size_t n,
3417 const wxChar *szDomain) const
3418 {
3419 bool found;
3420 static wxString str;
3421 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.
3422 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3423 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3424 PyObject* param1 = wx2PyString(szOrigString);
3425 PyObject* param2 = wx2PyString(szOrigString2);
3426 PyObject* param4 = wx2PyString(szDomain);
3427 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3428 Py_DECREF(param1);
3429 Py_DECREF(param2);
3430 Py_DECREF(param4);
3431 if( ret) {
3432 str = Py2wxString(ret);
3433 Py_DECREF(ret);
3434 }
3435 }
3436 wxPyEndBlockThreads(blocked);
3437 return (found ? (wxChar*)str.c_str() : NULL);
3438 }
3439
3440 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3441 wxPyLocale* loc;
3442 if (language == -1)
3443 loc = new wxPyLocale();
3444 else
3445 loc = new wxPyLocale(language, flags);
3446 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3447 // for the floating point conversions and such to work right.
3448 #if PY_VERSION_HEX < 0x02040000
3449 setlocale(LC_NUMERIC, "C");
3450 #endif
3451 return loc;
3452 }
3453
3454 #include "wx/wxPython/pydrawxxx.h"
3455
3456 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3457 wxColour col;
3458 self->GetPixel(x, y, &col);
3459 return col;
3460 }
3461 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3462 wxColour col;
3463 self->GetPixel(pt, &col);
3464 return col;
3465 }
3466
3467 SWIGINTERN int
3468 SWIG_AsVal_double (PyObject *obj, double* val)
3469 {
3470 if (PyNumber_Check(obj)) {
3471 if (val) *val = PyFloat_AsDouble(obj);
3472 return SWIG_OK;
3473 }
3474 return SWIG_TypeError;
3475 }
3476
3477 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3478 wxRect rv;
3479 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3480 return rv;
3481 }
3482 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3483 wxRect rect;
3484 self->GetClippingBox(rect);
3485 return rect;
3486 }
3487 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3488 wxArrayInt widths;
3489 self->GetPartialTextExtents(text, widths);
3490 return widths;
3491 }
3492
3493 #define SWIG_From_double PyFloat_FromDouble
3494
3495 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3496 self->SetLogicalOrigin(point.x, point.y);
3497 }
3498 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3499 self->SetDeviceOrigin(point.x, point.y);
3500 }
3501 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3502 self->CalcBoundingBox(point.x, point.y);
3503 }
3504 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3506 }
3507 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3509 }
3510 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3511 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3512 }
3513 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3514 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3515 }
3516 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3518 }
3519 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3520 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3521 }
3522
3523 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3524 *x1 = dc->MinX();
3525 *y1 = dc->MinY();
3526 *x2 = dc->MaxX();
3527 *y2 = dc->MaxY();
3528 }
3529
3530
3531 #include <wx/dcbuffer.h>
3532
3533
3534 #include <wx/dcps.h>
3535
3536
3537 #include <wx/metafile.h>
3538
3539
3540 #include <wx/graphics.h>
3541
3542
3543 #if !wxUSE_GRAPHICS_CONTEXT
3544 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3545
3546 class wxGraphicsPath
3547 {
3548 public :
3549 wxGraphicsPath() {
3550 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3551 PyErr_SetString(PyExc_NotImplementedError,
3552 "wxGraphicsPath is not available on this platform.");
3553 wxPyEndBlockThreads(blocked);
3554 }
3555 virtual ~wxGraphicsPath() {}
3556
3557 void MoveToPoint( wxDouble, wxDouble ) {}
3558 void AddLineToPoint( wxDouble, wxDouble ) {}
3559 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3560 void CloseSubpath() {}
3561 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3562 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3563
3564 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3565 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3566 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3567 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3568
3569 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3570 void MoveToPoint( const wxPoint2DDouble& ) {}
3571 void AddLineToPoint( const wxPoint2DDouble&) {}
3572 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3573 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3574 };
3575
3576
3577 class wxGraphicsContext
3578 {
3579 public:
3580 wxGraphicsContext() {
3581 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3582 PyErr_SetString(PyExc_NotImplementedError,
3583 "wxGraphicsContext is not available on this platform.");
3584 wxPyEndBlockThreads(blocked);
3585 }
3586 virtual ~wxGraphicsContext() {}
3587
3588 static wxGraphicsContext* Create( const wxWindowDC&) {
3589 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3590 PyErr_SetString(PyExc_NotImplementedError,
3591 "wxGraphicsPath is not available on this platform.");
3592 wxPyEndBlockThreads(blocked);
3593 return NULL;
3594 }
3595
3596 static wxGraphicsContext* CreateFromNative( void * ) {
3597 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3598 PyErr_SetString(PyExc_NotImplementedError,
3599 "wxGraphicsContext is not available on this platform.");
3600 wxPyEndBlockThreads(blocked);
3601 return NULL;
3602 }
3603
3604 wxGraphicsPath * CreatePath() { return NULL; }
3605 void PushState() {}
3606 void PopState() {}
3607 void Clip( const wxRegion & ) {}
3608 void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3609 void ResetClip() {}
3610 void * GetNativeContext() { return NULL; }
3611 void Translate( wxDouble , wxDouble ) {}
3612 void Scale( wxDouble , wxDouble ) {}
3613 void Rotate( wxDouble ) {}
3614 void SetPen( const wxPen & ) {}
3615 void SetBrush( const wxBrush & ) {}
3616 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3617 const wxColour&, const wxColour&) {}
3618 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3619 const wxColour &, const wxColour &) {}
3620 void SetFont( const wxFont & ) {}
3621 void SetTextColor( const wxColour & ) {}
3622 void StrokePath( const wxGraphicsPath * ) {}
3623 void FillPath( const wxGraphicsPath *, int ) {}
3624 void DrawPath( const wxGraphicsPath *, int ) {}
3625 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3626 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3627 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3628 wxDouble *, wxDouble * ) const {}
3629 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3630 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3631 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3632 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3633 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3634 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3635 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3636 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3637 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3638 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3639 };
3640
3641
3642 class wxGCDC: public wxWindowDC
3643 {
3644 public:
3645 wxGCDC(const wxWindowDC&) {
3646 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3647 PyErr_SetString(PyExc_NotImplementedError,
3648 "wxGCDC is not available on this platform.");
3649 wxPyEndBlockThreads(blocked);
3650 }
3651
3652 wxGCDC() {
3653 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3654 PyErr_SetString(PyExc_NotImplementedError,
3655 "wxGCDC is not available on this platform.");
3656 wxPyEndBlockThreads(blocked);
3657 }
3658
3659 virtual ~wxGCDC() {}
3660
3661 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3662 void SetGraphicsContext( wxGraphicsContext* ) {}
3663 };
3664
3665 #endif
3666
3667 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3668 wxArrayDouble widths;
3669 self->GetPartialTextExtents(text, widths);
3670 return widths;
3671 }
3672 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3673 size_t c1, c2, count;
3674 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3675 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3676
3677 if ( beginP != NULL && endP != NULL )
3678 {
3679 count = wxMin(c1, c2);
3680 self->StrokeLines(count, beginP, endP);
3681 }
3682 delete [] beginP;
3683 delete [] endP;
3684 }
3685
3686 #include "wx/dcgraph.h"
3687
3688
3689
3690 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3691 self->AddColour(name, wxColour(red, green, blue));
3692 }
3693
3694 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3695 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3696 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3697 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3698
3699
3700 #include <wx/effects.h>
3701
3702
3703 #include "wx/renderer.h"
3704
3705
3706 SWIGINTERNINLINE PyObject*
3707 SWIG_From_bool (bool value)
3708 {
3709 return PyBool_FromLong(value ? 1 : 0);
3710 }
3711
3712
3713 #include "wx/wxPython/pseudodc.h"
3714
3715 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3716 wxRect rect;
3717 self->GetIdBounds(id, rect);
3718 return rect;
3719 }
3720 #ifdef __cplusplus
3721 extern "C" {
3722 #endif
3723 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3724 PyObject *resultobj = 0;
3725 wxGDIObject *result = 0 ;
3726
3727 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3728 {
3729 if (!wxPyCheckForApp()) SWIG_fail;
3730 PyThreadState* __tstate = wxPyBeginAllowThreads();
3731 result = (wxGDIObject *)new wxGDIObject();
3732 wxPyEndAllowThreads(__tstate);
3733 if (PyErr_Occurred()) SWIG_fail;
3734 }
3735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3736 return resultobj;
3737 fail:
3738 return NULL;
3739 }
3740
3741
3742 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3743 PyObject *resultobj = 0;
3744 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3745 void *argp1 = 0 ;
3746 int res1 = 0 ;
3747 PyObject *swig_obj[1] ;
3748
3749 if (!args) SWIG_fail;
3750 swig_obj[0] = args;
3751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3752 if (!SWIG_IsOK(res1)) {
3753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3754 }
3755 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 delete arg1;
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 resultobj = SWIG_Py_Void();
3764 return resultobj;
3765 fail:
3766 return NULL;
3767 }
3768
3769
3770 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3771 PyObject *resultobj = 0;
3772 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3773 bool result;
3774 void *argp1 = 0 ;
3775 int res1 = 0 ;
3776 PyObject *swig_obj[1] ;
3777
3778 if (!args) SWIG_fail;
3779 swig_obj[0] = args;
3780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3781 if (!SWIG_IsOK(res1)) {
3782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3783 }
3784 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 result = (bool)(arg1)->IsNull();
3788 wxPyEndAllowThreads(__tstate);
3789 if (PyErr_Occurred()) SWIG_fail;
3790 }
3791 {
3792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3793 }
3794 return resultobj;
3795 fail:
3796 return NULL;
3797 }
3798
3799
3800 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3801 PyObject *obj;
3802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3803 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3804 return SWIG_Py_Void();
3805 }
3806
3807 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3808 return SWIG_Python_InitShadowInstance(args);
3809 }
3810
3811 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3812 PyObject *resultobj = 0;
3813 byte arg1 = (byte) 0 ;
3814 byte arg2 = (byte) 0 ;
3815 byte arg3 = (byte) 0 ;
3816 byte arg4 = (byte) wxALPHA_OPAQUE ;
3817 wxColour *result = 0 ;
3818 unsigned char val1 ;
3819 int ecode1 = 0 ;
3820 unsigned char val2 ;
3821 int ecode2 = 0 ;
3822 unsigned char val3 ;
3823 int ecode3 = 0 ;
3824 unsigned char val4 ;
3825 int ecode4 = 0 ;
3826 PyObject * obj0 = 0 ;
3827 PyObject * obj1 = 0 ;
3828 PyObject * obj2 = 0 ;
3829 PyObject * obj3 = 0 ;
3830 char * kwnames[] = {
3831 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3832 };
3833
3834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3835 if (obj0) {
3836 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3837 if (!SWIG_IsOK(ecode1)) {
3838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3839 }
3840 arg1 = static_cast< byte >(val1);
3841 }
3842 if (obj1) {
3843 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3844 if (!SWIG_IsOK(ecode2)) {
3845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3846 }
3847 arg2 = static_cast< byte >(val2);
3848 }
3849 if (obj2) {
3850 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3851 if (!SWIG_IsOK(ecode3)) {
3852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3853 }
3854 arg3 = static_cast< byte >(val3);
3855 }
3856 if (obj3) {
3857 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3858 if (!SWIG_IsOK(ecode4)) {
3859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3860 }
3861 arg4 = static_cast< byte >(val4);
3862 }
3863 {
3864 PyThreadState* __tstate = wxPyBeginAllowThreads();
3865 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3866 wxPyEndAllowThreads(__tstate);
3867 if (PyErr_Occurred()) SWIG_fail;
3868 }
3869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3870 return resultobj;
3871 fail:
3872 return NULL;
3873 }
3874
3875
3876 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3877 PyObject *resultobj = 0;
3878 wxString *arg1 = 0 ;
3879 wxColour *result = 0 ;
3880 bool temp1 = false ;
3881 PyObject * obj0 = 0 ;
3882 char * kwnames[] = {
3883 (char *) "colorName", NULL
3884 };
3885
3886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3887 {
3888 arg1 = wxString_in_helper(obj0);
3889 if (arg1 == NULL) SWIG_fail;
3890 temp1 = true;
3891 }
3892 {
3893 if (!wxPyCheckForApp()) SWIG_fail;
3894 PyThreadState* __tstate = wxPyBeginAllowThreads();
3895 result = (wxColour *)new wxColour((wxString const &)*arg1);
3896 wxPyEndAllowThreads(__tstate);
3897 if (PyErr_Occurred()) SWIG_fail;
3898 }
3899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3900 {
3901 if (temp1)
3902 delete arg1;
3903 }
3904 return resultobj;
3905 fail:
3906 {
3907 if (temp1)
3908 delete arg1;
3909 }
3910 return NULL;
3911 }
3912
3913
3914 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3915 PyObject *resultobj = 0;
3916 unsigned long arg1 ;
3917 wxColour *result = 0 ;
3918 unsigned long val1 ;
3919 int ecode1 = 0 ;
3920 PyObject * obj0 = 0 ;
3921 char * kwnames[] = {
3922 (char *) "colRGB", NULL
3923 };
3924
3925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3926 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3927 if (!SWIG_IsOK(ecode1)) {
3928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3929 }
3930 arg1 = static_cast< unsigned long >(val1);
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 result = (wxColour *)new wxColour(arg1);
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3938 return resultobj;
3939 fail:
3940 return NULL;
3941 }
3942
3943
3944 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *resultobj = 0;
3946 wxColour *arg1 = (wxColour *) 0 ;
3947 void *argp1 = 0 ;
3948 int res1 = 0 ;
3949 PyObject *swig_obj[1] ;
3950
3951 if (!args) SWIG_fail;
3952 swig_obj[0] = args;
3953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3954 if (!SWIG_IsOK(res1)) {
3955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3956 }
3957 arg1 = reinterpret_cast< wxColour * >(argp1);
3958 {
3959 PyThreadState* __tstate = wxPyBeginAllowThreads();
3960 delete arg1;
3961
3962 wxPyEndAllowThreads(__tstate);
3963 if (PyErr_Occurred()) SWIG_fail;
3964 }
3965 resultobj = SWIG_Py_Void();
3966 return resultobj;
3967 fail:
3968 return NULL;
3969 }
3970
3971
3972 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3973 PyObject *resultobj = 0;
3974 wxColour *arg1 = (wxColour *) 0 ;
3975 byte result;
3976 void *argp1 = 0 ;
3977 int res1 = 0 ;
3978 PyObject *swig_obj[1] ;
3979
3980 if (!args) SWIG_fail;
3981 swig_obj[0] = args;
3982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3983 if (!SWIG_IsOK(res1)) {
3984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3985 }
3986 arg1 = reinterpret_cast< wxColour * >(argp1);
3987 {
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 result = (byte)(arg1)->Red();
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3994 return resultobj;
3995 fail:
3996 return NULL;
3997 }
3998
3999
4000 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4001 PyObject *resultobj = 0;
4002 wxColour *arg1 = (wxColour *) 0 ;
4003 byte result;
4004 void *argp1 = 0 ;
4005 int res1 = 0 ;
4006 PyObject *swig_obj[1] ;
4007
4008 if (!args) SWIG_fail;
4009 swig_obj[0] = args;
4010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4011 if (!SWIG_IsOK(res1)) {
4012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4013 }
4014 arg1 = reinterpret_cast< wxColour * >(argp1);
4015 {
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 result = (byte)(arg1)->Green();
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4022 return resultobj;
4023 fail:
4024 return NULL;
4025 }
4026
4027
4028 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4029 PyObject *resultobj = 0;
4030 wxColour *arg1 = (wxColour *) 0 ;
4031 byte result;
4032 void *argp1 = 0 ;
4033 int res1 = 0 ;
4034 PyObject *swig_obj[1] ;
4035
4036 if (!args) SWIG_fail;
4037 swig_obj[0] = args;
4038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4039 if (!SWIG_IsOK(res1)) {
4040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4041 }
4042 arg1 = reinterpret_cast< wxColour * >(argp1);
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = (byte)(arg1)->Blue();
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4050 return resultobj;
4051 fail:
4052 return NULL;
4053 }
4054
4055
4056 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4057 PyObject *resultobj = 0;
4058 wxColour *arg1 = (wxColour *) 0 ;
4059 byte result;
4060 void *argp1 = 0 ;
4061 int res1 = 0 ;
4062 PyObject *swig_obj[1] ;
4063
4064 if (!args) SWIG_fail;
4065 swig_obj[0] = args;
4066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4067 if (!SWIG_IsOK(res1)) {
4068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4069 }
4070 arg1 = reinterpret_cast< wxColour * >(argp1);
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 result = (byte)(arg1)->Alpha();
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4078 return resultobj;
4079 fail:
4080 return NULL;
4081 }
4082
4083
4084 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4085 PyObject *resultobj = 0;
4086 wxColour *arg1 = (wxColour *) 0 ;
4087 bool result;
4088 void *argp1 = 0 ;
4089 int res1 = 0 ;
4090 PyObject *swig_obj[1] ;
4091
4092 if (!args) SWIG_fail;
4093 swig_obj[0] = args;
4094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4095 if (!SWIG_IsOK(res1)) {
4096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4097 }
4098 arg1 = reinterpret_cast< wxColour * >(argp1);
4099 {
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 result = (bool)(arg1)->IsOk();
4102 wxPyEndAllowThreads(__tstate);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 }
4105 {
4106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4107 }
4108 return resultobj;
4109 fail:
4110 return NULL;
4111 }
4112
4113
4114 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4115 PyObject *resultobj = 0;
4116 wxColour *arg1 = (wxColour *) 0 ;
4117 byte arg2 ;
4118 byte arg3 ;
4119 byte arg4 ;
4120 byte arg5 = (byte) wxALPHA_OPAQUE ;
4121 void *argp1 = 0 ;
4122 int res1 = 0 ;
4123 unsigned char val2 ;
4124 int ecode2 = 0 ;
4125 unsigned char val3 ;
4126 int ecode3 = 0 ;
4127 unsigned char val4 ;
4128 int ecode4 = 0 ;
4129 unsigned char val5 ;
4130 int ecode5 = 0 ;
4131 PyObject * obj0 = 0 ;
4132 PyObject * obj1 = 0 ;
4133 PyObject * obj2 = 0 ;
4134 PyObject * obj3 = 0 ;
4135 PyObject * obj4 = 0 ;
4136 char * kwnames[] = {
4137 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4138 };
4139
4140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4142 if (!SWIG_IsOK(res1)) {
4143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4144 }
4145 arg1 = reinterpret_cast< wxColour * >(argp1);
4146 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4147 if (!SWIG_IsOK(ecode2)) {
4148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4149 }
4150 arg2 = static_cast< byte >(val2);
4151 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4152 if (!SWIG_IsOK(ecode3)) {
4153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4154 }
4155 arg3 = static_cast< byte >(val3);
4156 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4157 if (!SWIG_IsOK(ecode4)) {
4158 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4159 }
4160 arg4 = static_cast< byte >(val4);
4161 if (obj4) {
4162 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4163 if (!SWIG_IsOK(ecode5)) {
4164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4165 }
4166 arg5 = static_cast< byte >(val5);
4167 }
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 (arg1)->Set(arg2,arg3,arg4,arg5);
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_Py_Void();
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxColour *arg1 = (wxColour *) 0 ;
4184 unsigned long arg2 ;
4185 void *argp1 = 0 ;
4186 int res1 = 0 ;
4187 unsigned long val2 ;
4188 int ecode2 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 char * kwnames[] = {
4192 (char *) "self",(char *) "colRGB", NULL
4193 };
4194
4195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4197 if (!SWIG_IsOK(res1)) {
4198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4199 }
4200 arg1 = reinterpret_cast< wxColour * >(argp1);
4201 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4202 if (!SWIG_IsOK(ecode2)) {
4203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4204 }
4205 arg2 = static_cast< unsigned long >(val2);
4206 {
4207 PyThreadState* __tstate = wxPyBeginAllowThreads();
4208 (arg1)->Set(arg2);
4209 wxPyEndAllowThreads(__tstate);
4210 if (PyErr_Occurred()) SWIG_fail;
4211 }
4212 resultobj = SWIG_Py_Void();
4213 return resultobj;
4214 fail:
4215 return NULL;
4216 }
4217
4218
4219 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4220 PyObject *resultobj = 0;
4221 wxColour *arg1 = (wxColour *) 0 ;
4222 wxString *arg2 = 0 ;
4223 void *argp1 = 0 ;
4224 int res1 = 0 ;
4225 bool temp2 = false ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 char * kwnames[] = {
4229 (char *) "self",(char *) "colourName", NULL
4230 };
4231
4232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4236 }
4237 arg1 = reinterpret_cast< wxColour * >(argp1);
4238 {
4239 arg2 = wxString_in_helper(obj1);
4240 if (arg2 == NULL) SWIG_fail;
4241 temp2 = true;
4242 }
4243 {
4244 PyThreadState* __tstate = wxPyBeginAllowThreads();
4245 (arg1)->Set((wxString const &)*arg2);
4246 wxPyEndAllowThreads(__tstate);
4247 if (PyErr_Occurred()) SWIG_fail;
4248 }
4249 resultobj = SWIG_Py_Void();
4250 {
4251 if (temp2)
4252 delete arg2;
4253 }
4254 return resultobj;
4255 fail:
4256 {
4257 if (temp2)
4258 delete arg2;
4259 }
4260 return NULL;
4261 }
4262
4263
4264 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4265 PyObject *resultobj = 0;
4266 wxColour *arg1 = (wxColour *) 0 ;
4267 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4268 wxString result;
4269 void *argp1 = 0 ;
4270 int res1 = 0 ;
4271 long val2 ;
4272 int ecode2 = 0 ;
4273 PyObject * obj0 = 0 ;
4274 PyObject * obj1 = 0 ;
4275 char * kwnames[] = {
4276 (char *) "self",(char *) "flags", NULL
4277 };
4278
4279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4281 if (!SWIG_IsOK(res1)) {
4282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4283 }
4284 arg1 = reinterpret_cast< wxColour * >(argp1);
4285 if (obj1) {
4286 ecode2 = SWIG_AsVal_long(obj1, &val2);
4287 if (!SWIG_IsOK(ecode2)) {
4288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4289 }
4290 arg2 = static_cast< long >(val2);
4291 }
4292 {
4293 PyThreadState* __tstate = wxPyBeginAllowThreads();
4294 result = ((wxColour const *)arg1)->GetAsString(arg2);
4295 wxPyEndAllowThreads(__tstate);
4296 if (PyErr_Occurred()) SWIG_fail;
4297 }
4298 {
4299 #if wxUSE_UNICODE
4300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4301 #else
4302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4303 #endif
4304 }
4305 return resultobj;
4306 fail:
4307 return NULL;
4308 }
4309
4310
4311 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4312 PyObject *resultobj = 0;
4313 wxColour *arg1 = (wxColour *) 0 ;
4314 long result;
4315 void *argp1 = 0 ;
4316 int res1 = 0 ;
4317 PyObject *swig_obj[1] ;
4318
4319 if (!args) SWIG_fail;
4320 swig_obj[0] = args;
4321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4322 if (!SWIG_IsOK(res1)) {
4323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4324 }
4325 arg1 = reinterpret_cast< wxColour * >(argp1);
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 result = (long)((wxColour const *)arg1)->GetPixel();
4329 wxPyEndAllowThreads(__tstate);
4330 if (PyErr_Occurred()) SWIG_fail;
4331 }
4332 resultobj = SWIG_From_long(static_cast< long >(result));
4333 return resultobj;
4334 fail:
4335 return NULL;
4336 }
4337
4338
4339 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4340 PyObject *resultobj = 0;
4341 wxColour *arg1 = (wxColour *) 0 ;
4342 PyObject *arg2 = (PyObject *) 0 ;
4343 bool result;
4344 void *argp1 = 0 ;
4345 int res1 = 0 ;
4346 PyObject * obj0 = 0 ;
4347 PyObject * obj1 = 0 ;
4348 char * kwnames[] = {
4349 (char *) "self",(char *) "other", NULL
4350 };
4351
4352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4354 if (!SWIG_IsOK(res1)) {
4355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4356 }
4357 arg1 = reinterpret_cast< wxColour * >(argp1);
4358 arg2 = obj1;
4359 {
4360 result = (bool)wxColour___eq__(arg1,arg2);
4361 if (PyErr_Occurred()) SWIG_fail;
4362 }
4363 {
4364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4365 }
4366 return resultobj;
4367 fail:
4368 return NULL;
4369 }
4370
4371
4372 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4373 PyObject *resultobj = 0;
4374 wxColour *arg1 = (wxColour *) 0 ;
4375 PyObject *arg2 = (PyObject *) 0 ;
4376 bool result;
4377 void *argp1 = 0 ;
4378 int res1 = 0 ;
4379 PyObject * obj0 = 0 ;
4380 PyObject * obj1 = 0 ;
4381 char * kwnames[] = {
4382 (char *) "self",(char *) "other", NULL
4383 };
4384
4385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4387 if (!SWIG_IsOK(res1)) {
4388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4389 }
4390 arg1 = reinterpret_cast< wxColour * >(argp1);
4391 arg2 = obj1;
4392 {
4393 result = (bool)wxColour___ne__(arg1,arg2);
4394 if (PyErr_Occurred()) SWIG_fail;
4395 }
4396 {
4397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4398 }
4399 return resultobj;
4400 fail:
4401 return NULL;
4402 }
4403
4404
4405 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4406 PyObject *resultobj = 0;
4407 wxColour *arg1 = (wxColour *) 0 ;
4408 bool arg2 = (bool) false ;
4409 PyObject *result = 0 ;
4410 void *argp1 = 0 ;
4411 int res1 = 0 ;
4412 bool val2 ;
4413 int ecode2 = 0 ;
4414 PyObject * obj0 = 0 ;
4415 PyObject * obj1 = 0 ;
4416 char * kwnames[] = {
4417 (char *) "self",(char *) "includeAlpha", NULL
4418 };
4419
4420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4422 if (!SWIG_IsOK(res1)) {
4423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4424 }
4425 arg1 = reinterpret_cast< wxColour * >(argp1);
4426 if (obj1) {
4427 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4428 if (!SWIG_IsOK(ecode2)) {
4429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4430 }
4431 arg2 = static_cast< bool >(val2);
4432 }
4433 {
4434 result = (PyObject *)wxColour_Get(arg1,arg2);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 resultobj = result;
4438 return resultobj;
4439 fail:
4440 return NULL;
4441 }
4442
4443
4444 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4445 PyObject *resultobj = 0;
4446 wxColour *arg1 = (wxColour *) 0 ;
4447 unsigned long result;
4448 void *argp1 = 0 ;
4449 int res1 = 0 ;
4450 PyObject *swig_obj[1] ;
4451
4452 if (!args) SWIG_fail;
4453 swig_obj[0] = args;
4454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4457 }
4458 arg1 = reinterpret_cast< wxColour * >(argp1);
4459 {
4460 result = (unsigned long)wxColour_GetRGB(arg1);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4471 PyObject *obj;
4472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4473 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4474 return SWIG_Py_Void();
4475 }
4476
4477 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4478 return SWIG_Python_InitShadowInstance(args);
4479 }
4480
4481 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj = 0;
4483 int arg1 ;
4484 unsigned char *arg2 = (unsigned char *) 0 ;
4485 unsigned char *arg3 = (unsigned char *) 0 ;
4486 unsigned char *arg4 = (unsigned char *) 0 ;
4487 wxPalette *result = 0 ;
4488 int val1 ;
4489 int ecode1 = 0 ;
4490 void *argp2 = 0 ;
4491 int res2 = 0 ;
4492 void *argp3 = 0 ;
4493 int res3 = 0 ;
4494 void *argp4 = 0 ;
4495 int res4 = 0 ;
4496 PyObject * obj0 = 0 ;
4497 PyObject * obj1 = 0 ;
4498 PyObject * obj2 = 0 ;
4499 PyObject * obj3 = 0 ;
4500 char * kwnames[] = {
4501 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4502 };
4503
4504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4505 ecode1 = SWIG_AsVal_int(obj0, &val1);
4506 if (!SWIG_IsOK(ecode1)) {
4507 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4508 }
4509 arg1 = static_cast< int >(val1);
4510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4511 if (!SWIG_IsOK(res2)) {
4512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4513 }
4514 arg2 = reinterpret_cast< unsigned char * >(argp2);
4515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4516 if (!SWIG_IsOK(res3)) {
4517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4518 }
4519 arg3 = reinterpret_cast< unsigned char * >(argp3);
4520 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4521 if (!SWIG_IsOK(res4)) {
4522 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4523 }
4524 arg4 = reinterpret_cast< unsigned char * >(argp4);
4525 {
4526 if (!wxPyCheckForApp()) SWIG_fail;
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4533 return resultobj;
4534 fail:
4535 return NULL;
4536 }
4537
4538
4539 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4540 PyObject *resultobj = 0;
4541 wxPalette *arg1 = (wxPalette *) 0 ;
4542 void *argp1 = 0 ;
4543 int res1 = 0 ;
4544 PyObject *swig_obj[1] ;
4545
4546 if (!args) SWIG_fail;
4547 swig_obj[0] = args;
4548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4549 if (!SWIG_IsOK(res1)) {
4550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4551 }
4552 arg1 = reinterpret_cast< wxPalette * >(argp1);
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 delete arg1;
4556
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 resultobj = SWIG_Py_Void();
4561 return resultobj;
4562 fail:
4563 return NULL;
4564 }
4565
4566
4567 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4568 PyObject *resultobj = 0;
4569 wxPalette *arg1 = (wxPalette *) 0 ;
4570 byte arg2 ;
4571 byte arg3 ;
4572 byte arg4 ;
4573 int result;
4574 void *argp1 = 0 ;
4575 int res1 = 0 ;
4576 unsigned char val2 ;
4577 int ecode2 = 0 ;
4578 unsigned char val3 ;
4579 int ecode3 = 0 ;
4580 unsigned char val4 ;
4581 int ecode4 = 0 ;
4582 PyObject * obj0 = 0 ;
4583 PyObject * obj1 = 0 ;
4584 PyObject * obj2 = 0 ;
4585 PyObject * obj3 = 0 ;
4586 char * kwnames[] = {
4587 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4588 };
4589
4590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4592 if (!SWIG_IsOK(res1)) {
4593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4594 }
4595 arg1 = reinterpret_cast< wxPalette * >(argp1);
4596 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4597 if (!SWIG_IsOK(ecode2)) {
4598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4599 }
4600 arg2 = static_cast< byte >(val2);
4601 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4602 if (!SWIG_IsOK(ecode3)) {
4603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4604 }
4605 arg3 = static_cast< byte >(val3);
4606 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4607 if (!SWIG_IsOK(ecode4)) {
4608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4609 }
4610 arg4 = static_cast< byte >(val4);
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4614 wxPyEndAllowThreads(__tstate);
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 resultobj = SWIG_From_int(static_cast< int >(result));
4618 return resultobj;
4619 fail:
4620 return NULL;
4621 }
4622
4623
4624 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4625 PyObject *resultobj = 0;
4626 wxPalette *arg1 = (wxPalette *) 0 ;
4627 int arg2 ;
4628 byte *arg3 = (byte *) 0 ;
4629 byte *arg4 = (byte *) 0 ;
4630 byte *arg5 = (byte *) 0 ;
4631 bool result;
4632 void *argp1 = 0 ;
4633 int res1 = 0 ;
4634 int val2 ;
4635 int ecode2 = 0 ;
4636 byte temp3 ;
4637 int res3 = SWIG_TMPOBJ ;
4638 byte temp4 ;
4639 int res4 = SWIG_TMPOBJ ;
4640 byte temp5 ;
4641 int res5 = SWIG_TMPOBJ ;
4642 PyObject * obj0 = 0 ;
4643 PyObject * obj1 = 0 ;
4644 char * kwnames[] = {
4645 (char *) "self",(char *) "pixel", NULL
4646 };
4647
4648 arg3 = &temp3;
4649 arg4 = &temp4;
4650 arg5 = &temp5;
4651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4653 if (!SWIG_IsOK(res1)) {
4654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4655 }
4656 arg1 = reinterpret_cast< wxPalette * >(argp1);
4657 ecode2 = SWIG_AsVal_int(obj1, &val2);
4658 if (!SWIG_IsOK(ecode2)) {
4659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4660 }
4661 arg2 = static_cast< int >(val2);
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 {
4669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4670 }
4671 if (SWIG_IsTmpObj(res3)) {
4672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4673 } else {
4674 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4676 }
4677 if (SWIG_IsTmpObj(res4)) {
4678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4679 } else {
4680 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4682 }
4683 if (SWIG_IsTmpObj(res5)) {
4684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4685 } else {
4686 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4688 }
4689 return resultobj;
4690 fail:
4691 return NULL;
4692 }
4693
4694
4695 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4696 PyObject *resultobj = 0;
4697 wxPalette *arg1 = (wxPalette *) 0 ;
4698 int result;
4699 void *argp1 = 0 ;
4700 int res1 = 0 ;
4701 PyObject *swig_obj[1] ;
4702
4703 if (!args) SWIG_fail;
4704 swig_obj[0] = args;
4705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4706 if (!SWIG_IsOK(res1)) {
4707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4708 }
4709 arg1 = reinterpret_cast< wxPalette * >(argp1);
4710 {
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4713 wxPyEndAllowThreads(__tstate);
4714 if (PyErr_Occurred()) SWIG_fail;
4715 }
4716 resultobj = SWIG_From_int(static_cast< int >(result));
4717 return resultobj;
4718 fail:
4719 return NULL;
4720 }
4721
4722
4723 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4724 PyObject *resultobj = 0;
4725 wxPalette *arg1 = (wxPalette *) 0 ;
4726 bool result;
4727 void *argp1 = 0 ;
4728 int res1 = 0 ;
4729 PyObject *swig_obj[1] ;
4730
4731 if (!args) SWIG_fail;
4732 swig_obj[0] = args;
4733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4734 if (!SWIG_IsOK(res1)) {
4735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4736 }
4737 arg1 = reinterpret_cast< wxPalette * >(argp1);
4738 {
4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
4740 result = (bool)(arg1)->IsOk();
4741 wxPyEndAllowThreads(__tstate);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 {
4745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4746 }
4747 return resultobj;
4748 fail:
4749 return NULL;
4750 }
4751
4752
4753 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4754 PyObject *obj;
4755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4756 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4757 return SWIG_Py_Void();
4758 }
4759
4760 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4761 return SWIG_Python_InitShadowInstance(args);
4762 }
4763
4764 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4765 PyObject *resultobj = 0;
4766 wxColour *arg1 = 0 ;
4767 int arg2 = (int) 1 ;
4768 int arg3 = (int) wxSOLID ;
4769 wxPen *result = 0 ;
4770 wxColour temp1 ;
4771 int val2 ;
4772 int ecode2 = 0 ;
4773 int val3 ;
4774 int ecode3 = 0 ;
4775 PyObject * obj0 = 0 ;
4776 PyObject * obj1 = 0 ;
4777 PyObject * obj2 = 0 ;
4778 char * kwnames[] = {
4779 (char *) "colour",(char *) "width",(char *) "style", NULL
4780 };
4781
4782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4783 {
4784 arg1 = &temp1;
4785 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4786 }
4787 if (obj1) {
4788 ecode2 = SWIG_AsVal_int(obj1, &val2);
4789 if (!SWIG_IsOK(ecode2)) {
4790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4791 }
4792 arg2 = static_cast< int >(val2);
4793 }
4794 if (obj2) {
4795 ecode3 = SWIG_AsVal_int(obj2, &val3);
4796 if (!SWIG_IsOK(ecode3)) {
4797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4798 }
4799 arg3 = static_cast< int >(val3);
4800 }
4801 {
4802 if (!wxPyCheckForApp()) SWIG_fail;
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4805 wxPyEndAllowThreads(__tstate);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4809 return resultobj;
4810 fail:
4811 return NULL;
4812 }
4813
4814
4815 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4816 PyObject *resultobj = 0;
4817 wxPen *arg1 = (wxPen *) 0 ;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 PyObject *swig_obj[1] ;
4821
4822 if (!args) SWIG_fail;
4823 swig_obj[0] = args;
4824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4825 if (!SWIG_IsOK(res1)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4827 }
4828 arg1 = reinterpret_cast< wxPen * >(argp1);
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 delete arg1;
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = SWIG_Py_Void();
4837 return resultobj;
4838 fail:
4839 return NULL;
4840 }
4841
4842
4843 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4844 PyObject *resultobj = 0;
4845 wxPen *arg1 = (wxPen *) 0 ;
4846 int result;
4847 void *argp1 = 0 ;
4848 int res1 = 0 ;
4849 PyObject *swig_obj[1] ;
4850
4851 if (!args) SWIG_fail;
4852 swig_obj[0] = args;
4853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4856 }
4857 arg1 = reinterpret_cast< wxPen * >(argp1);
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 result = (int)(arg1)->GetCap();
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 resultobj = SWIG_From_int(static_cast< int >(result));
4865 return resultobj;
4866 fail:
4867 return NULL;
4868 }
4869
4870
4871 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4872 PyObject *resultobj = 0;
4873 wxPen *arg1 = (wxPen *) 0 ;
4874 wxColour result;
4875 void *argp1 = 0 ;
4876 int res1 = 0 ;
4877 PyObject *swig_obj[1] ;
4878
4879 if (!args) SWIG_fail;
4880 swig_obj[0] = args;
4881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4882 if (!SWIG_IsOK(res1)) {
4883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4884 }
4885 arg1 = reinterpret_cast< wxPen * >(argp1);
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 result = (arg1)->GetColour();
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) SWIG_fail;
4891 }
4892 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4893 return resultobj;
4894 fail:
4895 return NULL;
4896 }
4897
4898
4899 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4900 PyObject *resultobj = 0;
4901 wxPen *arg1 = (wxPen *) 0 ;
4902 int result;
4903 void *argp1 = 0 ;
4904 int res1 = 0 ;
4905 PyObject *swig_obj[1] ;
4906
4907 if (!args) SWIG_fail;
4908 swig_obj[0] = args;
4909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4912 }
4913 arg1 = reinterpret_cast< wxPen * >(argp1);
4914 {
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (int)(arg1)->GetJoin();
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_From_int(static_cast< int >(result));
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4928 PyObject *resultobj = 0;
4929 wxPen *arg1 = (wxPen *) 0 ;
4930 int result;
4931 void *argp1 = 0 ;
4932 int res1 = 0 ;
4933 PyObject *swig_obj[1] ;
4934
4935 if (!args) SWIG_fail;
4936 swig_obj[0] = args;
4937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4938 if (!SWIG_IsOK(res1)) {
4939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4940 }
4941 arg1 = reinterpret_cast< wxPen * >(argp1);
4942 {
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 result = (int)(arg1)->GetStyle();
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 }
4948 resultobj = SWIG_From_int(static_cast< int >(result));
4949 return resultobj;
4950 fail:
4951 return NULL;
4952 }
4953
4954
4955 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4956 PyObject *resultobj = 0;
4957 wxPen *arg1 = (wxPen *) 0 ;
4958 int result;
4959 void *argp1 = 0 ;
4960 int res1 = 0 ;
4961 PyObject *swig_obj[1] ;
4962
4963 if (!args) SWIG_fail;
4964 swig_obj[0] = args;
4965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4968 }
4969 arg1 = reinterpret_cast< wxPen * >(argp1);
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 result = (int)(arg1)->GetWidth();
4973 wxPyEndAllowThreads(__tstate);
4974 if (PyErr_Occurred()) SWIG_fail;
4975 }
4976 resultobj = SWIG_From_int(static_cast< int >(result));
4977 return resultobj;
4978 fail:
4979 return NULL;
4980 }
4981
4982
4983 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4984 PyObject *resultobj = 0;
4985 wxPen *arg1 = (wxPen *) 0 ;
4986 bool result;
4987 void *argp1 = 0 ;
4988 int res1 = 0 ;
4989 PyObject *swig_obj[1] ;
4990
4991 if (!args) SWIG_fail;
4992 swig_obj[0] = args;
4993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4994 if (!SWIG_IsOK(res1)) {
4995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4996 }
4997 arg1 = reinterpret_cast< wxPen * >(argp1);
4998 {
4999 PyThreadState* __tstate = wxPyBeginAllowThreads();
5000 result = (bool)(arg1)->IsOk();
5001 wxPyEndAllowThreads(__tstate);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
5004 {
5005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5006 }
5007 return resultobj;
5008 fail:
5009 return NULL;
5010 }
5011
5012
5013 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5014 PyObject *resultobj = 0;
5015 wxPen *arg1 = (wxPen *) 0 ;
5016 int arg2 ;
5017 void *argp1 = 0 ;
5018 int res1 = 0 ;
5019 int val2 ;
5020 int ecode2 = 0 ;
5021 PyObject * obj0 = 0 ;
5022 PyObject * obj1 = 0 ;
5023 char * kwnames[] = {
5024 (char *) "self",(char *) "cap_style", NULL
5025 };
5026
5027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5029 if (!SWIG_IsOK(res1)) {
5030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5031 }
5032 arg1 = reinterpret_cast< wxPen * >(argp1);
5033 ecode2 = SWIG_AsVal_int(obj1, &val2);
5034 if (!SWIG_IsOK(ecode2)) {
5035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5036 }
5037 arg2 = static_cast< int >(val2);
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 (arg1)->SetCap(arg2);
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 resultobj = SWIG_Py_Void();
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj = 0;
5053 wxPen *arg1 = (wxPen *) 0 ;
5054 wxColour *arg2 = 0 ;
5055 void *argp1 = 0 ;
5056 int res1 = 0 ;
5057 wxColour temp2 ;
5058 PyObject * obj0 = 0 ;
5059 PyObject * obj1 = 0 ;
5060 char * kwnames[] = {
5061 (char *) "self",(char *) "colour", NULL
5062 };
5063
5064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5066 if (!SWIG_IsOK(res1)) {
5067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5068 }
5069 arg1 = reinterpret_cast< wxPen * >(argp1);
5070 {
5071 arg2 = &temp2;
5072 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5073 }
5074 {
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 (arg1)->SetColour(*arg2);
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 resultobj = SWIG_Py_Void();
5081 return resultobj;
5082 fail:
5083 return NULL;
5084 }
5085
5086
5087 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5088 PyObject *resultobj = 0;
5089 wxPen *arg1 = (wxPen *) 0 ;
5090 int arg2 ;
5091 void *argp1 = 0 ;
5092 int res1 = 0 ;
5093 int val2 ;
5094 int ecode2 = 0 ;
5095 PyObject * obj0 = 0 ;
5096 PyObject * obj1 = 0 ;
5097 char * kwnames[] = {
5098 (char *) "self",(char *) "join_style", NULL
5099 };
5100
5101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5103 if (!SWIG_IsOK(res1)) {
5104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5105 }
5106 arg1 = reinterpret_cast< wxPen * >(argp1);
5107 ecode2 = SWIG_AsVal_int(obj1, &val2);
5108 if (!SWIG_IsOK(ecode2)) {
5109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5110 }
5111 arg2 = static_cast< int >(val2);
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 (arg1)->SetJoin(arg2);
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 resultobj = SWIG_Py_Void();
5119 return resultobj;
5120 fail:
5121 return NULL;
5122 }
5123
5124
5125 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj = 0;
5127 wxPen *arg1 = (wxPen *) 0 ;
5128 int arg2 ;
5129 void *argp1 = 0 ;
5130 int res1 = 0 ;
5131 int val2 ;
5132 int ecode2 = 0 ;
5133 PyObject * obj0 = 0 ;
5134 PyObject * obj1 = 0 ;
5135 char * kwnames[] = {
5136 (char *) "self",(char *) "style", NULL
5137 };
5138
5139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5141 if (!SWIG_IsOK(res1)) {
5142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5143 }
5144 arg1 = reinterpret_cast< wxPen * >(argp1);
5145 ecode2 = SWIG_AsVal_int(obj1, &val2);
5146 if (!SWIG_IsOK(ecode2)) {
5147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5148 }
5149 arg2 = static_cast< int >(val2);
5150 {
5151 PyThreadState* __tstate = wxPyBeginAllowThreads();
5152 (arg1)->SetStyle(arg2);
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) SWIG_fail;
5155 }
5156 resultobj = SWIG_Py_Void();
5157 return resultobj;
5158 fail:
5159 return NULL;
5160 }
5161
5162
5163 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5164 PyObject *resultobj = 0;
5165 wxPen *arg1 = (wxPen *) 0 ;
5166 int arg2 ;
5167 void *argp1 = 0 ;
5168 int res1 = 0 ;
5169 int val2 ;
5170 int ecode2 = 0 ;
5171 PyObject * obj0 = 0 ;
5172 PyObject * obj1 = 0 ;
5173 char * kwnames[] = {
5174 (char *) "self",(char *) "width", NULL
5175 };
5176
5177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5179 if (!SWIG_IsOK(res1)) {
5180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5181 }
5182 arg1 = reinterpret_cast< wxPen * >(argp1);
5183 ecode2 = SWIG_AsVal_int(obj1, &val2);
5184 if (!SWIG_IsOK(ecode2)) {
5185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5186 }
5187 arg2 = static_cast< int >(val2);
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 (arg1)->SetWidth(arg2);
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = SWIG_Py_Void();
5195 return resultobj;
5196 fail:
5197 return NULL;
5198 }
5199
5200
5201 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5202 PyObject *resultobj = 0;
5203 wxPen *arg1 = (wxPen *) 0 ;
5204 int arg2 ;
5205 wxDash *arg3 = (wxDash *) 0 ;
5206 void *argp1 = 0 ;
5207 int res1 = 0 ;
5208 PyObject * obj0 = 0 ;
5209 PyObject * obj1 = 0 ;
5210 char * kwnames[] = {
5211 (char *) "self",(char *) "dashes", NULL
5212 };
5213
5214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5216 if (!SWIG_IsOK(res1)) {
5217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5218 }
5219 arg1 = reinterpret_cast< wxPen * >(argp1);
5220 {
5221 arg2 = PyList_Size(obj1);
5222 arg3 = (wxDash*)byte_LIST_helper(obj1);
5223 if (arg3 == NULL) SWIG_fail;
5224 }
5225 {
5226 PyThreadState* __tstate = wxPyBeginAllowThreads();
5227 (arg1)->SetDashes(arg2,arg3);
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 resultobj = SWIG_Py_Void();
5232 {
5233 if (arg3) delete [] arg3;
5234 }
5235 return resultobj;
5236 fail:
5237 {
5238 if (arg3) delete [] arg3;
5239 }
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5245 PyObject *resultobj = 0;
5246 wxPen *arg1 = (wxPen *) 0 ;
5247 PyObject *result = 0 ;
5248 void *argp1 = 0 ;
5249 int res1 = 0 ;
5250 PyObject *swig_obj[1] ;
5251
5252 if (!args) SWIG_fail;
5253 swig_obj[0] = args;
5254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5255 if (!SWIG_IsOK(res1)) {
5256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5257 }
5258 arg1 = reinterpret_cast< wxPen * >(argp1);
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (PyObject *)wxPen_GetDashes(arg1);
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) SWIG_fail;
5264 }
5265 resultobj = result;
5266 return resultobj;
5267 fail:
5268 return NULL;
5269 }
5270
5271
5272 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5273 PyObject *resultobj = 0;
5274 wxPen *arg1 = (wxPen *) 0 ;
5275 PyObject *arg2 = (PyObject *) 0 ;
5276 PyObject *arg3 = (PyObject *) 0 ;
5277 void *argp1 = 0 ;
5278 int res1 = 0 ;
5279 PyObject * obj0 = 0 ;
5280 PyObject * obj1 = 0 ;
5281 PyObject * obj2 = 0 ;
5282 char * kwnames[] = {
5283 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5284 };
5285
5286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5288 if (!SWIG_IsOK(res1)) {
5289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5290 }
5291 arg1 = reinterpret_cast< wxPen * >(argp1);
5292 arg2 = obj1;
5293 arg3 = obj2;
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 wxPen__SetDashes(arg1,arg2,arg3);
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 resultobj = SWIG_Py_Void();
5301 return resultobj;
5302 fail:
5303 return NULL;
5304 }
5305
5306
5307 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5308 PyObject *resultobj = 0;
5309 wxPen *arg1 = (wxPen *) 0 ;
5310 int result;
5311 void *argp1 = 0 ;
5312 int res1 = 0 ;
5313 PyObject *swig_obj[1] ;
5314
5315 if (!args) SWIG_fail;
5316 swig_obj[0] = args;
5317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5318 if (!SWIG_IsOK(res1)) {
5319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5320 }
5321 arg1 = reinterpret_cast< wxPen * >(argp1);
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 result = (int)((wxPen const *)arg1)->GetDashCount();
5325 wxPyEndAllowThreads(__tstate);
5326 if (PyErr_Occurred()) SWIG_fail;
5327 }
5328 resultobj = SWIG_From_int(static_cast< int >(result));
5329 return resultobj;
5330 fail:
5331 return NULL;
5332 }
5333
5334
5335 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5336 PyObject *resultobj = 0;
5337 wxPen *arg1 = (wxPen *) 0 ;
5338 wxBitmap *result = 0 ;
5339 void *argp1 = 0 ;
5340 int res1 = 0 ;
5341 PyObject *swig_obj[1] ;
5342
5343 if (!args) SWIG_fail;
5344 swig_obj[0] = args;
5345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5346 if (!SWIG_IsOK(res1)) {
5347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5348 }
5349 arg1 = reinterpret_cast< wxPen * >(argp1);
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 result = (wxBitmap *)(arg1)->GetStipple();
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5357 return resultobj;
5358 fail:
5359 return NULL;
5360 }
5361
5362
5363 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj = 0;
5365 wxPen *arg1 = (wxPen *) 0 ;
5366 wxBitmap *arg2 = 0 ;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 void *argp2 = 0 ;
5370 int res2 = 0 ;
5371 PyObject * obj0 = 0 ;
5372 PyObject * obj1 = 0 ;
5373 char * kwnames[] = {
5374 (char *) "self",(char *) "stipple", NULL
5375 };
5376
5377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5379 if (!SWIG_IsOK(res1)) {
5380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5381 }
5382 arg1 = reinterpret_cast< wxPen * >(argp1);
5383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5384 if (!SWIG_IsOK(res2)) {
5385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5386 }
5387 if (!argp2) {
5388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5389 }
5390 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5391 {
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 (arg1)->SetStipple(*arg2);
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) SWIG_fail;
5396 }
5397 resultobj = SWIG_Py_Void();
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj = 0;
5406 wxPen *arg1 = (wxPen *) 0 ;
5407 wxPen *arg2 = (wxPen *) 0 ;
5408 bool result;
5409 void *argp1 = 0 ;
5410 int res1 = 0 ;
5411 void *argp2 = 0 ;
5412 int res2 = 0 ;
5413 PyObject * obj0 = 0 ;
5414 PyObject * obj1 = 0 ;
5415 char * kwnames[] = {
5416 (char *) "self",(char *) "other", NULL
5417 };
5418
5419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5421 if (!SWIG_IsOK(res1)) {
5422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5423 }
5424 arg1 = reinterpret_cast< wxPen * >(argp1);
5425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5426 if (!SWIG_IsOK(res2)) {
5427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5428 }
5429 arg2 = reinterpret_cast< wxPen * >(argp2);
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 {
5437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5438 }
5439 return resultobj;
5440 fail:
5441 return NULL;
5442 }
5443
5444
5445 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = 0;
5447 wxPen *arg1 = (wxPen *) 0 ;
5448 wxPen *arg2 = (wxPen *) 0 ;
5449 bool result;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 void *argp2 = 0 ;
5453 int res2 = 0 ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 char * kwnames[] = {
5457 (char *) "self",(char *) "other", NULL
5458 };
5459
5460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5462 if (!SWIG_IsOK(res1)) {
5463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5464 }
5465 arg1 = reinterpret_cast< wxPen * >(argp1);
5466 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5467 if (!SWIG_IsOK(res2)) {
5468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5469 }
5470 arg2 = reinterpret_cast< wxPen * >(argp2);
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 {
5478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5479 }
5480 return resultobj;
5481 fail:
5482 return NULL;
5483 }
5484
5485
5486 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5487 PyObject *obj;
5488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5489 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5490 return SWIG_Py_Void();
5491 }
5492
5493 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5494 return SWIG_Python_InitShadowInstance(args);
5495 }
5496
5497 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5498 PyObject *resultobj = 0;
5499 wxColour *arg1 = 0 ;
5500 int arg2 = (int) wxSOLID ;
5501 wxBrush *result = 0 ;
5502 wxColour temp1 ;
5503 int val2 ;
5504 int ecode2 = 0 ;
5505 PyObject * obj0 = 0 ;
5506 PyObject * obj1 = 0 ;
5507 char * kwnames[] = {
5508 (char *) "colour",(char *) "style", NULL
5509 };
5510
5511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5512 {
5513 arg1 = &temp1;
5514 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5515 }
5516 if (obj1) {
5517 ecode2 = SWIG_AsVal_int(obj1, &val2);
5518 if (!SWIG_IsOK(ecode2)) {
5519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5520 }
5521 arg2 = static_cast< int >(val2);
5522 }
5523 {
5524 if (!wxPyCheckForApp()) SWIG_fail;
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5531 return resultobj;
5532 fail:
5533 return NULL;
5534 }
5535
5536
5537 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj = 0;
5539 wxBitmap *arg1 = 0 ;
5540 wxBrush *result = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 PyObject * obj0 = 0 ;
5544 char * kwnames[] = {
5545 (char *) "stippleBitmap", NULL
5546 };
5547
5548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5549 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5550 if (!SWIG_IsOK(res1)) {
5551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5552 }
5553 if (!argp1) {
5554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5555 }
5556 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5557 {
5558 if (!wxPyCheckForApp()) SWIG_fail;
5559 PyThreadState* __tstate = wxPyBeginAllowThreads();
5560 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5572 PyObject *resultobj = 0;
5573 wxBrush *arg1 = (wxBrush *) 0 ;
5574 void *argp1 = 0 ;
5575 int res1 = 0 ;
5576 PyObject *swig_obj[1] ;
5577
5578 if (!args) SWIG_fail;
5579 swig_obj[0] = args;
5580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5583 }
5584 arg1 = reinterpret_cast< wxBrush * >(argp1);
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 delete arg1;
5588
5589 wxPyEndAllowThreads(__tstate);
5590 if (PyErr_Occurred()) SWIG_fail;
5591 }
5592 resultobj = SWIG_Py_Void();
5593 return resultobj;
5594 fail:
5595 return NULL;
5596 }
5597
5598
5599 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5600 PyObject *resultobj = 0;
5601 wxBrush *arg1 = (wxBrush *) 0 ;
5602 wxColour *arg2 = 0 ;
5603 void *argp1 = 0 ;
5604 int res1 = 0 ;
5605 wxColour temp2 ;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char * kwnames[] = {
5609 (char *) "self",(char *) "col", NULL
5610 };
5611
5612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5616 }
5617 arg1 = reinterpret_cast< wxBrush * >(argp1);
5618 {
5619 arg2 = &temp2;
5620 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5621 }
5622 {
5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
5624 (arg1)->SetColour((wxColour const &)*arg2);
5625 wxPyEndAllowThreads(__tstate);
5626 if (PyErr_Occurred()) SWIG_fail;
5627 }
5628 resultobj = SWIG_Py_Void();
5629 return resultobj;
5630 fail:
5631 return NULL;
5632 }
5633
5634
5635 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj = 0;
5637 wxBrush *arg1 = (wxBrush *) 0 ;
5638 int arg2 ;
5639 void *argp1 = 0 ;
5640 int res1 = 0 ;
5641 int val2 ;
5642 int ecode2 = 0 ;
5643 PyObject * obj0 = 0 ;
5644 PyObject * obj1 = 0 ;
5645 char * kwnames[] = {
5646 (char *) "self",(char *) "style", NULL
5647 };
5648
5649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5651 if (!SWIG_IsOK(res1)) {
5652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5653 }
5654 arg1 = reinterpret_cast< wxBrush * >(argp1);
5655 ecode2 = SWIG_AsVal_int(obj1, &val2);
5656 if (!SWIG_IsOK(ecode2)) {
5657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5658 }
5659 arg2 = static_cast< int >(val2);
5660 {
5661 PyThreadState* __tstate = wxPyBeginAllowThreads();
5662 (arg1)->SetStyle(arg2);
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 resultobj = SWIG_Py_Void();
5667 return resultobj;
5668 fail:
5669 return NULL;
5670 }
5671
5672
5673 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5674 PyObject *resultobj = 0;
5675 wxBrush *arg1 = (wxBrush *) 0 ;
5676 wxBitmap *arg2 = 0 ;
5677 void *argp1 = 0 ;
5678 int res1 = 0 ;
5679 void *argp2 = 0 ;
5680 int res2 = 0 ;
5681 PyObject * obj0 = 0 ;
5682 PyObject * obj1 = 0 ;
5683 char * kwnames[] = {
5684 (char *) "self",(char *) "stipple", NULL
5685 };
5686
5687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5689 if (!SWIG_IsOK(res1)) {
5690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5691 }
5692 arg1 = reinterpret_cast< wxBrush * >(argp1);
5693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5694 if (!SWIG_IsOK(res2)) {
5695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5696 }
5697 if (!argp2) {
5698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5699 }
5700 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 (arg1)->SetStipple((wxBitmap const &)*arg2);
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 resultobj = SWIG_Py_Void();
5708 return resultobj;
5709 fail:
5710 return NULL;
5711 }
5712
5713
5714 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5715 PyObject *resultobj = 0;
5716 wxBrush *arg1 = (wxBrush *) 0 ;
5717 wxColour result;
5718 void *argp1 = 0 ;
5719 int res1 = 0 ;
5720 PyObject *swig_obj[1] ;
5721
5722 if (!args) SWIG_fail;
5723 swig_obj[0] = args;
5724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5725 if (!SWIG_IsOK(res1)) {
5726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5727 }
5728 arg1 = reinterpret_cast< wxBrush * >(argp1);
5729 {
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = ((wxBrush const *)arg1)->GetColour();
5732 wxPyEndAllowThreads(__tstate);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 }
5735 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5736 return resultobj;
5737 fail:
5738 return NULL;
5739 }
5740
5741
5742 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5743 PyObject *resultobj = 0;
5744 wxBrush *arg1 = (wxBrush *) 0 ;
5745 int result;
5746 void *argp1 = 0 ;
5747 int res1 = 0 ;
5748 PyObject *swig_obj[1] ;
5749
5750 if (!args) SWIG_fail;
5751 swig_obj[0] = args;
5752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5753 if (!SWIG_IsOK(res1)) {
5754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5755 }
5756 arg1 = reinterpret_cast< wxBrush * >(argp1);
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (int)((wxBrush const *)arg1)->GetStyle();
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 resultobj = SWIG_From_int(static_cast< int >(result));
5764 return resultobj;
5765 fail:
5766 return NULL;
5767 }
5768
5769
5770 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5771 PyObject *resultobj = 0;
5772 wxBrush *arg1 = (wxBrush *) 0 ;
5773 wxBitmap *result = 0 ;
5774 void *argp1 = 0 ;
5775 int res1 = 0 ;
5776 PyObject *swig_obj[1] ;
5777
5778 if (!args) SWIG_fail;
5779 swig_obj[0] = args;
5780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5781 if (!SWIG_IsOK(res1)) {
5782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5783 }
5784 arg1 = reinterpret_cast< wxBrush * >(argp1);
5785 {
5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
5787 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5792 return resultobj;
5793 fail:
5794 return NULL;
5795 }
5796
5797
5798 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5799 PyObject *resultobj = 0;
5800 wxBrush *arg1 = (wxBrush *) 0 ;
5801 bool result;
5802 void *argp1 = 0 ;
5803 int res1 = 0 ;
5804 PyObject *swig_obj[1] ;
5805
5806 if (!args) SWIG_fail;
5807 swig_obj[0] = args;
5808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5809 if (!SWIG_IsOK(res1)) {
5810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5811 }
5812 arg1 = reinterpret_cast< wxBrush * >(argp1);
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 result = (bool)((wxBrush const *)arg1)->IsHatch();
5816 wxPyEndAllowThreads(__tstate);
5817 if (PyErr_Occurred()) SWIG_fail;
5818 }
5819 {
5820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5821 }
5822 return resultobj;
5823 fail:
5824 return NULL;
5825 }
5826
5827
5828 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5829 PyObject *resultobj = 0;
5830 wxBrush *arg1 = (wxBrush *) 0 ;
5831 bool result;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 PyObject *swig_obj[1] ;
5835
5836 if (!args) SWIG_fail;
5837 swig_obj[0] = args;
5838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5841 }
5842 arg1 = reinterpret_cast< wxBrush * >(argp1);
5843 {
5844 PyThreadState* __tstate = wxPyBeginAllowThreads();
5845 result = (bool)(arg1)->IsOk();
5846 wxPyEndAllowThreads(__tstate);
5847 if (PyErr_Occurred()) SWIG_fail;
5848 }
5849 {
5850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5851 }
5852 return resultobj;
5853 fail:
5854 return NULL;
5855 }
5856
5857
5858 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5859 PyObject *obj;
5860 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5861 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5862 return SWIG_Py_Void();
5863 }
5864
5865 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5866 return SWIG_Python_InitShadowInstance(args);
5867 }
5868
5869 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5870 PyObject *resultobj = 0;
5871 wxString *arg1 = 0 ;
5872 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5873 wxBitmap *result = 0 ;
5874 bool temp1 = false ;
5875 int val2 ;
5876 int ecode2 = 0 ;
5877 PyObject * obj0 = 0 ;
5878 PyObject * obj1 = 0 ;
5879 char * kwnames[] = {
5880 (char *) "name",(char *) "type", NULL
5881 };
5882
5883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5884 {
5885 arg1 = wxString_in_helper(obj0);
5886 if (arg1 == NULL) SWIG_fail;
5887 temp1 = true;
5888 }
5889 if (obj1) {
5890 ecode2 = SWIG_AsVal_int(obj1, &val2);
5891 if (!SWIG_IsOK(ecode2)) {
5892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5893 }
5894 arg2 = static_cast< wxBitmapType >(val2);
5895 }
5896 {
5897 if (!wxPyCheckForApp()) SWIG_fail;
5898 PyThreadState* __tstate = wxPyBeginAllowThreads();
5899 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5900 wxPyEndAllowThreads(__tstate);
5901 if (PyErr_Occurred()) SWIG_fail;
5902 }
5903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5904 {
5905 if (temp1)
5906 delete arg1;
5907 }
5908 return resultobj;
5909 fail:
5910 {
5911 if (temp1)
5912 delete arg1;
5913 }
5914 return NULL;
5915 }
5916
5917
5918 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5919 PyObject *resultobj = 0;
5920 wxBitmap *arg1 = (wxBitmap *) 0 ;
5921 void *argp1 = 0 ;
5922 int res1 = 0 ;
5923 PyObject *swig_obj[1] ;
5924
5925 if (!args) SWIG_fail;
5926 swig_obj[0] = args;
5927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5928 if (!SWIG_IsOK(res1)) {
5929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5930 }
5931 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5932 {
5933 delete arg1;
5934
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 resultobj = SWIG_Py_Void();
5938 return resultobj;
5939 fail:
5940 return NULL;
5941 }
5942
5943
5944 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj = 0;
5946 int arg1 ;
5947 int arg2 ;
5948 int arg3 = (int) -1 ;
5949 wxBitmap *result = 0 ;
5950 int val1 ;
5951 int ecode1 = 0 ;
5952 int val2 ;
5953 int ecode2 = 0 ;
5954 int val3 ;
5955 int ecode3 = 0 ;
5956 PyObject * obj0 = 0 ;
5957 PyObject * obj1 = 0 ;
5958 PyObject * obj2 = 0 ;
5959 char * kwnames[] = {
5960 (char *) "width",(char *) "height",(char *) "depth", NULL
5961 };
5962
5963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5964 ecode1 = SWIG_AsVal_int(obj0, &val1);
5965 if (!SWIG_IsOK(ecode1)) {
5966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5967 }
5968 arg1 = static_cast< int >(val1);
5969 ecode2 = SWIG_AsVal_int(obj1, &val2);
5970 if (!SWIG_IsOK(ecode2)) {
5971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5972 }
5973 arg2 = static_cast< int >(val2);
5974 if (obj2) {
5975 ecode3 = SWIG_AsVal_int(obj2, &val3);
5976 if (!SWIG_IsOK(ecode3)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5978 }
5979 arg3 = static_cast< int >(val3);
5980 }
5981 {
5982 if (!wxPyCheckForApp()) SWIG_fail;
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj = 0;
5997 wxIcon *arg1 = 0 ;
5998 wxBitmap *result = 0 ;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject * obj0 = 0 ;
6002 char * kwnames[] = {
6003 (char *) "icon", NULL
6004 };
6005
6006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6007 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6010 }
6011 if (!argp1) {
6012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6013 }
6014 arg1 = reinterpret_cast< wxIcon * >(argp1);
6015 {
6016 if (!wxPyCheckForApp()) SWIG_fail;
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6023 return resultobj;
6024 fail:
6025 return NULL;
6026 }
6027
6028
6029 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj = 0;
6031 wxImage *arg1 = 0 ;
6032 int arg2 = (int) -1 ;
6033 wxBitmap *result = 0 ;
6034 void *argp1 = 0 ;
6035 int res1 = 0 ;
6036 int val2 ;
6037 int ecode2 = 0 ;
6038 PyObject * obj0 = 0 ;
6039 PyObject * obj1 = 0 ;
6040 char * kwnames[] = {
6041 (char *) "image",(char *) "depth", NULL
6042 };
6043
6044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6045 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6046 if (!SWIG_IsOK(res1)) {
6047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6048 }
6049 if (!argp1) {
6050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6051 }
6052 arg1 = reinterpret_cast< wxImage * >(argp1);
6053 if (obj1) {
6054 ecode2 = SWIG_AsVal_int(obj1, &val2);
6055 if (!SWIG_IsOK(ecode2)) {
6056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6057 }
6058 arg2 = static_cast< int >(val2);
6059 }
6060 {
6061 if (!wxPyCheckForApp()) SWIG_fail;
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj = 0;
6076 PyObject *arg1 = (PyObject *) 0 ;
6077 wxBitmap *result = 0 ;
6078 PyObject * obj0 = 0 ;
6079 char * kwnames[] = {
6080 (char *) "listOfStrings", NULL
6081 };
6082
6083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6084 arg1 = obj0;
6085 {
6086 if (!wxPyCheckForApp()) SWIG_fail;
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (wxBitmap *)new_wxBitmap(arg1);
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6093 return resultobj;
6094 fail:
6095 return NULL;
6096 }
6097
6098
6099 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj = 0;
6101 PyObject *arg1 = (PyObject *) 0 ;
6102 int arg2 ;
6103 int arg3 ;
6104 int arg4 = (int) 1 ;
6105 wxBitmap *result = 0 ;
6106 int val2 ;
6107 int ecode2 = 0 ;
6108 int val3 ;
6109 int ecode3 = 0 ;
6110 int val4 ;
6111 int ecode4 = 0 ;
6112 PyObject * obj0 = 0 ;
6113 PyObject * obj1 = 0 ;
6114 PyObject * obj2 = 0 ;
6115 PyObject * obj3 = 0 ;
6116 char * kwnames[] = {
6117 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6118 };
6119
6120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6121 arg1 = obj0;
6122 ecode2 = SWIG_AsVal_int(obj1, &val2);
6123 if (!SWIG_IsOK(ecode2)) {
6124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6125 }
6126 arg2 = static_cast< int >(val2);
6127 ecode3 = SWIG_AsVal_int(obj2, &val3);
6128 if (!SWIG_IsOK(ecode3)) {
6129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6130 }
6131 arg3 = static_cast< int >(val3);
6132 if (obj3) {
6133 ecode4 = SWIG_AsVal_int(obj3, &val4);
6134 if (!SWIG_IsOK(ecode4)) {
6135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6136 }
6137 arg4 = static_cast< int >(val4);
6138 }
6139 {
6140 if (!wxPyCheckForApp()) SWIG_fail;
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6147 return resultobj;
6148 fail:
6149 return NULL;
6150 }
6151
6152
6153 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6154 PyObject *resultobj = 0;
6155 wxBitmap *arg1 = (wxBitmap *) 0 ;
6156 long result;
6157 void *argp1 = 0 ;
6158 int res1 = 0 ;
6159 PyObject *swig_obj[1] ;
6160
6161 if (!args) SWIG_fail;
6162 swig_obj[0] = args;
6163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6164 if (!SWIG_IsOK(res1)) {
6165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6166 }
6167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6168 {
6169 result = (long)(arg1)->GetHandle();
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_From_long(static_cast< long >(result));
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj = 0;
6181 wxBitmap *arg1 = (wxBitmap *) 0 ;
6182 long arg2 ;
6183 void *argp1 = 0 ;
6184 int res1 = 0 ;
6185 long val2 ;
6186 int ecode2 = 0 ;
6187 PyObject * obj0 = 0 ;
6188 PyObject * obj1 = 0 ;
6189 char * kwnames[] = {
6190 (char *) "self",(char *) "handle", NULL
6191 };
6192
6193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6195 if (!SWIG_IsOK(res1)) {
6196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6197 }
6198 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6199 ecode2 = SWIG_AsVal_long(obj1, &val2);
6200 if (!SWIG_IsOK(ecode2)) {
6201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6202 }
6203 arg2 = static_cast< long >(val2);
6204 {
6205 wxBitmap_SetHandle(arg1,arg2);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 resultobj = SWIG_Py_Void();
6209 return resultobj;
6210 fail:
6211 return NULL;
6212 }
6213
6214
6215 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6216 PyObject *resultobj = 0;
6217 wxBitmap *arg1 = (wxBitmap *) 0 ;
6218 bool result;
6219 void *argp1 = 0 ;
6220 int res1 = 0 ;
6221 PyObject *swig_obj[1] ;
6222
6223 if (!args) SWIG_fail;
6224 swig_obj[0] = args;
6225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6226 if (!SWIG_IsOK(res1)) {
6227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6228 }
6229 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6230 {
6231 result = (bool)(arg1)->IsOk();
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 {
6235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6236 }
6237 return resultobj;
6238 fail:
6239 return NULL;
6240 }
6241
6242
6243 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6244 PyObject *resultobj = 0;
6245 wxBitmap *arg1 = (wxBitmap *) 0 ;
6246 int result;
6247 void *argp1 = 0 ;
6248 int res1 = 0 ;
6249 PyObject *swig_obj[1] ;
6250
6251 if (!args) SWIG_fail;
6252 swig_obj[0] = args;
6253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 result = (int)(arg1)->GetWidth();
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_From_int(static_cast< int >(result));
6263 return resultobj;
6264 fail:
6265 return NULL;
6266 }
6267
6268
6269 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6270 PyObject *resultobj = 0;
6271 wxBitmap *arg1 = (wxBitmap *) 0 ;
6272 int result;
6273 void *argp1 = 0 ;
6274 int res1 = 0 ;
6275 PyObject *swig_obj[1] ;
6276
6277 if (!args) SWIG_fail;
6278 swig_obj[0] = args;
6279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6282 }
6283 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6284 {
6285 result = (int)(arg1)->GetHeight();
6286 if (PyErr_Occurred()) SWIG_fail;
6287 }
6288 resultobj = SWIG_From_int(static_cast< int >(result));
6289 return resultobj;
6290 fail:
6291 return NULL;
6292 }
6293
6294
6295 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6296 PyObject *resultobj = 0;
6297 wxBitmap *arg1 = (wxBitmap *) 0 ;
6298 int result;
6299 void *argp1 = 0 ;
6300 int res1 = 0 ;
6301 PyObject *swig_obj[1] ;
6302
6303 if (!args) SWIG_fail;
6304 swig_obj[0] = args;
6305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6306 if (!SWIG_IsOK(res1)) {
6307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6308 }
6309 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6310 {
6311 result = (int)(arg1)->GetDepth();
6312 if (PyErr_Occurred()) SWIG_fail;
6313 }
6314 resultobj = SWIG_From_int(static_cast< int >(result));
6315 return resultobj;
6316 fail:
6317 return NULL;
6318 }
6319
6320
6321 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6322 PyObject *resultobj = 0;
6323 wxBitmap *arg1 = (wxBitmap *) 0 ;
6324 wxSize result;
6325 void *argp1 = 0 ;
6326 int res1 = 0 ;
6327 PyObject *swig_obj[1] ;
6328
6329 if (!args) SWIG_fail;
6330 swig_obj[0] = args;
6331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6332 if (!SWIG_IsOK(res1)) {
6333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6334 }
6335 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6336 {
6337 result = wxBitmap_GetSize(arg1);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6341 return resultobj;
6342 fail:
6343 return NULL;
6344 }
6345
6346
6347 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6348 PyObject *resultobj = 0;
6349 wxBitmap *arg1 = (wxBitmap *) 0 ;
6350 SwigValueWrapper<wxImage > result;
6351 void *argp1 = 0 ;
6352 int res1 = 0 ;
6353 PyObject *swig_obj[1] ;
6354
6355 if (!args) SWIG_fail;
6356 swig_obj[0] = args;
6357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6358 if (!SWIG_IsOK(res1)) {
6359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6360 }
6361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6362 {
6363 result = ((wxBitmap const *)arg1)->ConvertToImage();
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6367 return resultobj;
6368 fail:
6369 return NULL;
6370 }
6371
6372
6373 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6374 PyObject *resultobj = 0;
6375 wxBitmap *arg1 = (wxBitmap *) 0 ;
6376 wxMask *result = 0 ;
6377 void *argp1 = 0 ;
6378 int res1 = 0 ;
6379 PyObject *swig_obj[1] ;
6380
6381 if (!args) SWIG_fail;
6382 swig_obj[0] = args;
6383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6386 }
6387 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6388 {
6389 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj = 0;
6401 wxBitmap *arg1 = (wxBitmap *) 0 ;
6402 wxMask *arg2 = (wxMask *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 int res2 = 0 ;
6406 PyObject * obj0 = 0 ;
6407 PyObject * obj1 = 0 ;
6408 char * kwnames[] = {
6409 (char *) "self",(char *) "mask", NULL
6410 };
6411
6412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6414 if (!SWIG_IsOK(res1)) {
6415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6416 }
6417 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6418 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6419 if (!SWIG_IsOK(res2)) {
6420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6421 }
6422 {
6423 (arg1)->SetMask(arg2);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_Py_Void();
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6434 PyObject *resultobj = 0;
6435 wxBitmap *arg1 = (wxBitmap *) 0 ;
6436 wxColour *arg2 = 0 ;
6437 void *argp1 = 0 ;
6438 int res1 = 0 ;
6439 wxColour temp2 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 char * kwnames[] = {
6443 (char *) "self",(char *) "colour", NULL
6444 };
6445
6446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6448 if (!SWIG_IsOK(res1)) {
6449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6450 }
6451 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6452 {
6453 arg2 = &temp2;
6454 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6455 }
6456 {
6457 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 }
6460 resultobj = SWIG_Py_Void();
6461 return resultobj;
6462 fail:
6463 return NULL;
6464 }
6465
6466
6467 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6468 PyObject *resultobj = 0;
6469 wxBitmap *arg1 = (wxBitmap *) 0 ;
6470 wxRect *arg2 = 0 ;
6471 SwigValueWrapper<wxBitmap > result;
6472 void *argp1 = 0 ;
6473 int res1 = 0 ;
6474 wxRect temp2 ;
6475 PyObject * obj0 = 0 ;
6476 PyObject * obj1 = 0 ;
6477 char * kwnames[] = {
6478 (char *) "self",(char *) "rect", NULL
6479 };
6480
6481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6483 if (!SWIG_IsOK(res1)) {
6484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6485 }
6486 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6487 {
6488 arg2 = &temp2;
6489 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6490 }
6491 {
6492 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6496 return resultobj;
6497 fail:
6498 return NULL;
6499 }
6500
6501
6502 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6503 PyObject *resultobj = 0;
6504 wxBitmap *arg1 = (wxBitmap *) 0 ;
6505 wxString *arg2 = 0 ;
6506 wxBitmapType arg3 ;
6507 wxPalette *arg4 = (wxPalette *) NULL ;
6508 bool result;
6509 void *argp1 = 0 ;
6510 int res1 = 0 ;
6511 bool temp2 = false ;
6512 int val3 ;
6513 int ecode3 = 0 ;
6514 void *argp4 = 0 ;
6515 int res4 = 0 ;
6516 PyObject * obj0 = 0 ;
6517 PyObject * obj1 = 0 ;
6518 PyObject * obj2 = 0 ;
6519 PyObject * obj3 = 0 ;
6520 char * kwnames[] = {
6521 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6522 };
6523
6524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6526 if (!SWIG_IsOK(res1)) {
6527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6528 }
6529 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6530 {
6531 arg2 = wxString_in_helper(obj1);
6532 if (arg2 == NULL) SWIG_fail;
6533 temp2 = true;
6534 }
6535 ecode3 = SWIG_AsVal_int(obj2, &val3);
6536 if (!SWIG_IsOK(ecode3)) {
6537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6538 }
6539 arg3 = static_cast< wxBitmapType >(val3);
6540 if (obj3) {
6541 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6542 if (!SWIG_IsOK(res4)) {
6543 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6544 }
6545 arg4 = reinterpret_cast< wxPalette * >(argp4);
6546 }
6547 {
6548 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 {
6552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6553 }
6554 {
6555 if (temp2)
6556 delete arg2;
6557 }
6558 return resultobj;
6559 fail:
6560 {
6561 if (temp2)
6562 delete arg2;
6563 }
6564 return NULL;
6565 }
6566
6567
6568 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6569 PyObject *resultobj = 0;
6570 wxBitmap *arg1 = (wxBitmap *) 0 ;
6571 wxString *arg2 = 0 ;
6572 wxBitmapType arg3 ;
6573 bool result;
6574 void *argp1 = 0 ;
6575 int res1 = 0 ;
6576 bool temp2 = false ;
6577 int val3 ;
6578 int ecode3 = 0 ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 PyObject * obj2 = 0 ;
6582 char * kwnames[] = {
6583 (char *) "self",(char *) "name",(char *) "type", NULL
6584 };
6585
6586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6588 if (!SWIG_IsOK(res1)) {
6589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6590 }
6591 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6592 {
6593 arg2 = wxString_in_helper(obj1);
6594 if (arg2 == NULL) SWIG_fail;
6595 temp2 = true;
6596 }
6597 ecode3 = SWIG_AsVal_int(obj2, &val3);
6598 if (!SWIG_IsOK(ecode3)) {
6599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6600 }
6601 arg3 = static_cast< wxBitmapType >(val3);
6602 {
6603 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 {
6610 if (temp2)
6611 delete arg2;
6612 }
6613 return resultobj;
6614 fail:
6615 {
6616 if (temp2)
6617 delete arg2;
6618 }
6619 return NULL;
6620 }
6621
6622
6623 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6624 PyObject *resultobj = 0;
6625 wxBitmap *arg1 = (wxBitmap *) 0 ;
6626 wxPalette *result = 0 ;
6627 void *argp1 = 0 ;
6628 int res1 = 0 ;
6629 PyObject *swig_obj[1] ;
6630
6631 if (!args) SWIG_fail;
6632 swig_obj[0] = args;
6633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6634 if (!SWIG_IsOK(res1)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6636 }
6637 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6638 {
6639 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6650 PyObject *resultobj = 0;
6651 wxBitmap *arg1 = (wxBitmap *) 0 ;
6652 wxPalette *arg2 = 0 ;
6653 void *argp1 = 0 ;
6654 int res1 = 0 ;
6655 void *argp2 = 0 ;
6656 int res2 = 0 ;
6657 PyObject * obj0 = 0 ;
6658 PyObject * obj1 = 0 ;
6659 char * kwnames[] = {
6660 (char *) "self",(char *) "palette", NULL
6661 };
6662
6663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6665 if (!SWIG_IsOK(res1)) {
6666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6667 }
6668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6670 if (!SWIG_IsOK(res2)) {
6671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6672 }
6673 if (!argp2) {
6674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6675 }
6676 arg2 = reinterpret_cast< wxPalette * >(argp2);
6677 {
6678 (arg1)->SetPalette((wxPalette const &)*arg2);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 resultobj = SWIG_Py_Void();
6682 return resultobj;
6683 fail:
6684 return NULL;
6685 }
6686
6687
6688 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj = 0;
6690 wxBitmap *arg1 = (wxBitmap *) 0 ;
6691 wxIcon *arg2 = 0 ;
6692 bool result;
6693 void *argp1 = 0 ;
6694 int res1 = 0 ;
6695 void *argp2 = 0 ;
6696 int res2 = 0 ;
6697 PyObject * obj0 = 0 ;
6698 PyObject * obj1 = 0 ;
6699 char * kwnames[] = {
6700 (char *) "self",(char *) "icon", NULL
6701 };
6702
6703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6705 if (!SWIG_IsOK(res1)) {
6706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6707 }
6708 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6710 if (!SWIG_IsOK(res2)) {
6711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6712 }
6713 if (!argp2) {
6714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6715 }
6716 arg2 = reinterpret_cast< wxIcon * >(argp2);
6717 {
6718 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 {
6722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6723 }
6724 return resultobj;
6725 fail:
6726 return NULL;
6727 }
6728
6729
6730 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6731 PyObject *resultobj = 0;
6732 wxBitmap *arg1 = (wxBitmap *) 0 ;
6733 int arg2 ;
6734 void *argp1 = 0 ;
6735 int res1 = 0 ;
6736 int val2 ;
6737 int ecode2 = 0 ;
6738 PyObject * obj0 = 0 ;
6739 PyObject * obj1 = 0 ;
6740 char * kwnames[] = {
6741 (char *) "self",(char *) "height", NULL
6742 };
6743
6744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6746 if (!SWIG_IsOK(res1)) {
6747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6748 }
6749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6750 ecode2 = SWIG_AsVal_int(obj1, &val2);
6751 if (!SWIG_IsOK(ecode2)) {
6752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6753 }
6754 arg2 = static_cast< int >(val2);
6755 {
6756 (arg1)->SetHeight(arg2);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 resultobj = SWIG_Py_Void();
6760 return resultobj;
6761 fail:
6762 return NULL;
6763 }
6764
6765
6766 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6767 PyObject *resultobj = 0;
6768 wxBitmap *arg1 = (wxBitmap *) 0 ;
6769 int arg2 ;
6770 void *argp1 = 0 ;
6771 int res1 = 0 ;
6772 int val2 ;
6773 int ecode2 = 0 ;
6774 PyObject * obj0 = 0 ;
6775 PyObject * obj1 = 0 ;
6776 char * kwnames[] = {
6777 (char *) "self",(char *) "width", NULL
6778 };
6779
6780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6782 if (!SWIG_IsOK(res1)) {
6783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6784 }
6785 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6786 ecode2 = SWIG_AsVal_int(obj1, &val2);
6787 if (!SWIG_IsOK(ecode2)) {
6788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6789 }
6790 arg2 = static_cast< int >(val2);
6791 {
6792 (arg1)->SetWidth(arg2);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 resultobj = SWIG_Py_Void();
6796 return resultobj;
6797 fail:
6798 return NULL;
6799 }
6800
6801
6802 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj = 0;
6804 wxBitmap *arg1 = (wxBitmap *) 0 ;
6805 int arg2 ;
6806 void *argp1 = 0 ;
6807 int res1 = 0 ;
6808 int val2 ;
6809 int ecode2 = 0 ;
6810 PyObject * obj0 = 0 ;
6811 PyObject * obj1 = 0 ;
6812 char * kwnames[] = {
6813 (char *) "self",(char *) "depth", NULL
6814 };
6815
6816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6818 if (!SWIG_IsOK(res1)) {
6819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6820 }
6821 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6822 ecode2 = SWIG_AsVal_int(obj1, &val2);
6823 if (!SWIG_IsOK(ecode2)) {
6824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6825 }
6826 arg2 = static_cast< int >(val2);
6827 {
6828 (arg1)->SetDepth(arg2);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 resultobj = SWIG_Py_Void();
6832 return resultobj;
6833 fail:
6834 return NULL;
6835 }
6836
6837
6838 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6839 PyObject *resultobj = 0;
6840 wxBitmap *arg1 = (wxBitmap *) 0 ;
6841 wxSize *arg2 = 0 ;
6842 void *argp1 = 0 ;
6843 int res1 = 0 ;
6844 wxSize temp2 ;
6845 PyObject * obj0 = 0 ;
6846 PyObject * obj1 = 0 ;
6847 char * kwnames[] = {
6848 (char *) "self",(char *) "size", NULL
6849 };
6850
6851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6853 if (!SWIG_IsOK(res1)) {
6854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6855 }
6856 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6857 {
6858 arg2 = &temp2;
6859 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6860 }
6861 {
6862 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6863 if (PyErr_Occurred()) SWIG_fail;
6864 }
6865 resultobj = SWIG_Py_Void();
6866 return resultobj;
6867 fail:
6868 return NULL;
6869 }
6870
6871
6872 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6873 PyObject *resultobj = 0;
6874 wxBitmap *arg1 = (wxBitmap *) 0 ;
6875 wxCursor *arg2 = 0 ;
6876 bool result;
6877 void *argp1 = 0 ;
6878 int res1 = 0 ;
6879 void *argp2 = 0 ;
6880 int res2 = 0 ;
6881 PyObject * obj0 = 0 ;
6882 PyObject * obj1 = 0 ;
6883 char * kwnames[] = {
6884 (char *) "self",(char *) "cursor", NULL
6885 };
6886
6887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6889 if (!SWIG_IsOK(res1)) {
6890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6891 }
6892 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6894 if (!SWIG_IsOK(res2)) {
6895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6896 }
6897 if (!argp2) {
6898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6899 }
6900 arg2 = reinterpret_cast< wxCursor * >(argp2);
6901 {
6902 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 {
6906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6907 }
6908 return resultobj;
6909 fail:
6910 return NULL;
6911 }
6912
6913
6914 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6915 PyObject *resultobj = 0;
6916 wxBitmap *arg1 = (wxBitmap *) 0 ;
6917 wxBitmap *arg2 = (wxBitmap *) 0 ;
6918 bool result;
6919 void *argp1 = 0 ;
6920 int res1 = 0 ;
6921 void *argp2 = 0 ;
6922 int res2 = 0 ;
6923 PyObject * obj0 = 0 ;
6924 PyObject * obj1 = 0 ;
6925 char * kwnames[] = {
6926 (char *) "self",(char *) "other", NULL
6927 };
6928
6929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6931 if (!SWIG_IsOK(res1)) {
6932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6933 }
6934 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6936 if (!SWIG_IsOK(res2)) {
6937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6938 }
6939 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6940 {
6941 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6942 if (PyErr_Occurred()) SWIG_fail;
6943 }
6944 {
6945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6946 }
6947 return resultobj;
6948 fail:
6949 return NULL;
6950 }
6951
6952
6953 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6954 PyObject *resultobj = 0;
6955 wxBitmap *arg1 = (wxBitmap *) 0 ;
6956 wxBitmap *arg2 = (wxBitmap *) 0 ;
6957 bool result;
6958 void *argp1 = 0 ;
6959 int res1 = 0 ;
6960 void *argp2 = 0 ;
6961 int res2 = 0 ;
6962 PyObject * obj0 = 0 ;
6963 PyObject * obj1 = 0 ;
6964 char * kwnames[] = {
6965 (char *) "self",(char *) "other", NULL
6966 };
6967
6968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6970 if (!SWIG_IsOK(res1)) {
6971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6972 }
6973 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6975 if (!SWIG_IsOK(res2)) {
6976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6977 }
6978 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6979 {
6980 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 {
6984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6985 }
6986 return resultobj;
6987 fail:
6988 return NULL;
6989 }
6990
6991
6992 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6993 PyObject *obj;
6994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6995 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6996 return SWIG_Py_Void();
6997 }
6998
6999 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7000 return SWIG_Python_InitShadowInstance(args);
7001 }
7002
7003 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj = 0;
7005 int arg1 ;
7006 int arg2 ;
7007 buffer arg3 ;
7008 int arg4 ;
7009 buffer arg5 ;
7010 int arg6 ;
7011 wxBitmap *result = 0 ;
7012 int val1 ;
7013 int ecode1 = 0 ;
7014 int val2 ;
7015 int ecode2 = 0 ;
7016 Py_ssize_t temp3 ;
7017 Py_ssize_t temp5 ;
7018 PyObject * obj0 = 0 ;
7019 PyObject * obj1 = 0 ;
7020 PyObject * obj2 = 0 ;
7021 PyObject * obj3 = 0 ;
7022 char * kwnames[] = {
7023 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7024 };
7025
7026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7027 ecode1 = SWIG_AsVal_int(obj0, &val1);
7028 if (!SWIG_IsOK(ecode1)) {
7029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7030 }
7031 arg1 = static_cast< int >(val1);
7032 ecode2 = SWIG_AsVal_int(obj1, &val2);
7033 if (!SWIG_IsOK(ecode2)) {
7034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7035 }
7036 arg2 = static_cast< int >(val2);
7037 {
7038 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7039 arg4 = (int)temp3;
7040 }
7041 {
7042 if (obj3 != Py_None) {
7043 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7044 arg6 = (int)temp5;
7045 }
7046 }
7047 {
7048 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7059 PyObject *resultobj = 0;
7060 int arg1 ;
7061 int arg2 ;
7062 buffer arg3 ;
7063 int arg4 ;
7064 wxBitmap *result = 0 ;
7065 int val1 ;
7066 int ecode1 = 0 ;
7067 int val2 ;
7068 int ecode2 = 0 ;
7069 Py_ssize_t temp3 ;
7070 PyObject * obj0 = 0 ;
7071 PyObject * obj1 = 0 ;
7072 PyObject * obj2 = 0 ;
7073 char * kwnames[] = {
7074 (char *) "width",(char *) "height",(char *) "data", NULL
7075 };
7076
7077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7078 ecode1 = SWIG_AsVal_int(obj0, &val1);
7079 if (!SWIG_IsOK(ecode1)) {
7080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7081 }
7082 arg1 = static_cast< int >(val1);
7083 ecode2 = SWIG_AsVal_int(obj1, &val2);
7084 if (!SWIG_IsOK(ecode2)) {
7085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7086 }
7087 arg2 = static_cast< int >(val2);
7088 {
7089 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7090 arg4 = (int)temp3;
7091 }
7092 {
7093 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7097 return resultobj;
7098 fail:
7099 return NULL;
7100 }
7101
7102
7103 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj = 0;
7105 int arg1 ;
7106 int arg2 ;
7107 buffer arg3 ;
7108 int arg4 ;
7109 wxBitmap *result = 0 ;
7110 int val1 ;
7111 int ecode1 = 0 ;
7112 int val2 ;
7113 int ecode2 = 0 ;
7114 Py_ssize_t temp3 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 PyObject * obj2 = 0 ;
7118 char * kwnames[] = {
7119 (char *) "width",(char *) "height",(char *) "data", NULL
7120 };
7121
7122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7123 ecode1 = SWIG_AsVal_int(obj0, &val1);
7124 if (!SWIG_IsOK(ecode1)) {
7125 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7126 }
7127 arg1 = static_cast< int >(val1);
7128 ecode2 = SWIG_AsVal_int(obj1, &val2);
7129 if (!SWIG_IsOK(ecode2)) {
7130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7131 }
7132 arg2 = static_cast< int >(val2);
7133 {
7134 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7135 arg4 = (int)temp3;
7136 }
7137 {
7138 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7149 PyObject *resultobj = 0;
7150 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7151 wxPoint result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7161 }
7162 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7163 {
7164 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7168 return resultobj;
7169 fail:
7170 return NULL;
7171 }
7172
7173
7174 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7175 PyObject *resultobj = 0;
7176 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7177 int result;
7178 void *argp1 = 0 ;
7179 int res1 = 0 ;
7180 PyObject *swig_obj[1] ;
7181
7182 if (!args) SWIG_fail;
7183 swig_obj[0] = args;
7184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7185 if (!SWIG_IsOK(res1)) {
7186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7187 }
7188 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7189 {
7190 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7191 if (PyErr_Occurred()) SWIG_fail;
7192 }
7193 resultobj = SWIG_From_int(static_cast< int >(result));
7194 return resultobj;
7195 fail:
7196 return NULL;
7197 }
7198
7199
7200 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7201 PyObject *resultobj = 0;
7202 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7203 int result;
7204 void *argp1 = 0 ;
7205 int res1 = 0 ;
7206 PyObject *swig_obj[1] ;
7207
7208 if (!args) SWIG_fail;
7209 swig_obj[0] = args;
7210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7211 if (!SWIG_IsOK(res1)) {
7212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7213 }
7214 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7215 {
7216 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_From_int(static_cast< int >(result));
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7227 PyObject *resultobj = 0;
7228 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7229 wxSize result;
7230 void *argp1 = 0 ;
7231 int res1 = 0 ;
7232 PyObject *swig_obj[1] ;
7233
7234 if (!args) SWIG_fail;
7235 swig_obj[0] = args;
7236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7239 }
7240 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7241 {
7242 result = ((wxPixelDataBase const *)arg1)->GetSize();
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7246 return resultobj;
7247 fail:
7248 return NULL;
7249 }
7250
7251
7252 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7253 PyObject *resultobj = 0;
7254 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7255 int result;
7256 void *argp1 = 0 ;
7257 int res1 = 0 ;
7258 PyObject *swig_obj[1] ;
7259
7260 if (!args) SWIG_fail;
7261 swig_obj[0] = args;
7262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7263 if (!SWIG_IsOK(res1)) {
7264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7265 }
7266 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7267 {
7268 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7269 if (PyErr_Occurred()) SWIG_fail;
7270 }
7271 resultobj = SWIG_From_int(static_cast< int >(result));
7272 return resultobj;
7273 fail:
7274 return NULL;
7275 }
7276
7277
7278 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7279 PyObject *obj;
7280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7281 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7282 return SWIG_Py_Void();
7283 }
7284
7285 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7286 PyObject *resultobj = 0;
7287 wxBitmap *arg1 = 0 ;
7288 wxNativePixelData *result = 0 ;
7289 void *argp1 = 0 ;
7290 int res1 = 0 ;
7291
7292 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7294 if (!SWIG_IsOK(res1)) {
7295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7296 }
7297 if (!argp1) {
7298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7299 }
7300 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7301 {
7302 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7306 return resultobj;
7307 fail:
7308 return NULL;
7309 }
7310
7311
7312 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7313 PyObject *resultobj = 0;
7314 wxBitmap *arg1 = 0 ;
7315 wxRect *arg2 = 0 ;
7316 wxNativePixelData *result = 0 ;
7317 void *argp1 = 0 ;
7318 int res1 = 0 ;
7319 wxRect temp2 ;
7320
7321 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7323 if (!SWIG_IsOK(res1)) {
7324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7325 }
7326 if (!argp1) {
7327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7328 }
7329 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7330 {
7331 arg2 = &temp2;
7332 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7333 }
7334 {
7335 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7339 return resultobj;
7340 fail:
7341 return NULL;
7342 }
7343
7344
7345 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7346 PyObject *resultobj = 0;
7347 wxBitmap *arg1 = 0 ;
7348 wxPoint *arg2 = 0 ;
7349 wxSize *arg3 = 0 ;
7350 wxNativePixelData *result = 0 ;
7351 void *argp1 = 0 ;
7352 int res1 = 0 ;
7353 wxPoint temp2 ;
7354 wxSize temp3 ;
7355
7356 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7358 if (!SWIG_IsOK(res1)) {
7359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7360 }
7361 if (!argp1) {
7362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7363 }
7364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7365 {
7366 arg2 = &temp2;
7367 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7368 }
7369 {
7370 arg3 = &temp3;
7371 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7372 }
7373 {
7374 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7375 if (PyErr_Occurred()) SWIG_fail;
7376 }
7377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7378 return resultobj;
7379 fail:
7380 return NULL;
7381 }
7382
7383
7384 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7385 int argc;
7386 PyObject *argv[4];
7387
7388 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7389 --argc;
7390 if (argc == 1) {
7391 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7392 }
7393 if (argc == 2) {
7394 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7395 }
7396 if (argc == 3) {
7397 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7398 }
7399
7400 fail:
7401 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7402 return NULL;
7403 }
7404
7405
7406 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7407 PyObject *resultobj = 0;
7408 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411 PyObject *swig_obj[1] ;
7412
7413 if (!args) SWIG_fail;
7414 swig_obj[0] = args;
7415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7416 if (!SWIG_IsOK(res1)) {
7417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7418 }
7419 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7420 {
7421 delete arg1;
7422
7423 if (PyErr_Occurred()) SWIG_fail;
7424 }
7425 resultobj = SWIG_Py_Void();
7426 return resultobj;
7427 fail:
7428 return NULL;
7429 }
7430
7431
7432 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7433 PyObject *resultobj = 0;
7434 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7435 wxNativePixelData_Accessor result;
7436 void *argp1 = 0 ;
7437 int res1 = 0 ;
7438 PyObject *swig_obj[1] ;
7439
7440 if (!args) SWIG_fail;
7441 swig_obj[0] = args;
7442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7443 if (!SWIG_IsOK(res1)) {
7444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7445 }
7446 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7447 {
7448 result = ((wxNativePixelData const *)arg1)->GetPixels();
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7452 return resultobj;
7453 fail:
7454 return NULL;
7455 }
7456
7457
7458 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7459 PyObject *resultobj = 0;
7460 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7461 void *argp1 = 0 ;
7462 int res1 = 0 ;
7463 PyObject *swig_obj[1] ;
7464
7465 if (!args) SWIG_fail;
7466 swig_obj[0] = args;
7467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7470 }
7471 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7472 {
7473 (arg1)->UseAlpha();
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 resultobj = SWIG_Py_Void();
7477 return resultobj;
7478 fail:
7479 return NULL;
7480 }
7481
7482
7483 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7484 PyObject *resultobj = 0;
7485 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7486 bool result;
7487 void *argp1 = 0 ;
7488 int res1 = 0 ;
7489 PyObject *swig_obj[1] ;
7490
7491 if (!args) SWIG_fail;
7492 swig_obj[0] = args;
7493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7494 if (!SWIG_IsOK(res1)) {
7495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7496 }
7497 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7498 {
7499 result = (bool)wxNativePixelData___nonzero__(arg1);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 {
7503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7504 }
7505 return resultobj;
7506 fail:
7507 return NULL;
7508 }
7509
7510
7511 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7512 PyObject *obj;
7513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7514 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7515 return SWIG_Py_Void();
7516 }
7517
7518 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7519 return SWIG_Python_InitShadowInstance(args);
7520 }
7521
7522 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7523 PyObject *resultobj = 0;
7524 wxNativePixelData *arg1 = 0 ;
7525 wxNativePixelData_Accessor *result = 0 ;
7526 void *argp1 = 0 ;
7527 int res1 = 0 ;
7528
7529 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7531 if (!SWIG_IsOK(res1)) {
7532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7533 }
7534 if (!argp1) {
7535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7536 }
7537 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7538 {
7539 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7543 return resultobj;
7544 fail:
7545 return NULL;
7546 }
7547
7548
7549 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7550 PyObject *resultobj = 0;
7551 wxBitmap *arg1 = 0 ;
7552 wxNativePixelData *arg2 = 0 ;
7553 wxNativePixelData_Accessor *result = 0 ;
7554 void *argp1 = 0 ;
7555 int res1 = 0 ;
7556 void *argp2 = 0 ;
7557 int res2 = 0 ;
7558
7559 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7561 if (!SWIG_IsOK(res1)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7563 }
7564 if (!argp1) {
7565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7566 }
7567 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7568 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7569 if (!SWIG_IsOK(res2)) {
7570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7571 }
7572 if (!argp2) {
7573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7574 }
7575 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7576 {
7577 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7581 return resultobj;
7582 fail:
7583 return NULL;
7584 }
7585
7586
7587 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7588 PyObject *resultobj = 0;
7589 wxNativePixelData_Accessor *result = 0 ;
7590
7591 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7592 {
7593 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7604 int argc;
7605 PyObject *argv[3];
7606
7607 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7608 --argc;
7609 if (argc == 0) {
7610 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7611 }
7612 if (argc == 1) {
7613 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7614 }
7615 if (argc == 2) {
7616 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7617 }
7618
7619 fail:
7620 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7621 return NULL;
7622 }
7623
7624
7625 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7626 PyObject *resultobj = 0;
7627 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7628 void *argp1 = 0 ;
7629 int res1 = 0 ;
7630 PyObject *swig_obj[1] ;
7631
7632 if (!args) SWIG_fail;
7633 swig_obj[0] = args;
7634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7635 if (!SWIG_IsOK(res1)) {
7636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7637 }
7638 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7639 {
7640 delete arg1;
7641
7642 if (PyErr_Occurred()) SWIG_fail;
7643 }
7644 resultobj = SWIG_Py_Void();
7645 return resultobj;
7646 fail:
7647 return NULL;
7648 }
7649
7650
7651 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7652 PyObject *resultobj = 0;
7653 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7654 wxNativePixelData *arg2 = 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 void *argp2 = 0 ;
7658 int res2 = 0 ;
7659 PyObject * obj0 = 0 ;
7660 PyObject * obj1 = 0 ;
7661 char * kwnames[] = {
7662 (char *) "self",(char *) "data", NULL
7663 };
7664
7665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7667 if (!SWIG_IsOK(res1)) {
7668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7669 }
7670 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7672 if (!SWIG_IsOK(res2)) {
7673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7674 }
7675 if (!argp2) {
7676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7677 }
7678 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7679 {
7680 (arg1)->Reset((wxNativePixelData const &)*arg2);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_Py_Void();
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7691 PyObject *resultobj = 0;
7692 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7693 bool result;
7694 void *argp1 = 0 ;
7695 int res1 = 0 ;
7696 PyObject *swig_obj[1] ;
7697
7698 if (!args) SWIG_fail;
7699 swig_obj[0] = args;
7700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7701 if (!SWIG_IsOK(res1)) {
7702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7703 }
7704 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7705 {
7706 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
7710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7711 }
7712 return resultobj;
7713 fail:
7714 return NULL;
7715 }
7716
7717
7718 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7719 PyObject *resultobj = 0;
7720 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7721 void *argp1 = 0 ;
7722 int res1 = 0 ;
7723 PyObject *swig_obj[1] ;
7724
7725 if (!args) SWIG_fail;
7726 swig_obj[0] = args;
7727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7728 if (!SWIG_IsOK(res1)) {
7729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7730 }
7731 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7732 {
7733 wxNativePixelData_Accessor_nextPixel(arg1);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_Py_Void();
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj = 0;
7745 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7746 wxNativePixelData *arg2 = 0 ;
7747 int arg3 ;
7748 int arg4 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 void *argp2 = 0 ;
7752 int res2 = 0 ;
7753 int val3 ;
7754 int ecode3 = 0 ;
7755 int val4 ;
7756 int ecode4 = 0 ;
7757 PyObject * obj0 = 0 ;
7758 PyObject * obj1 = 0 ;
7759 PyObject * obj2 = 0 ;
7760 PyObject * obj3 = 0 ;
7761 char * kwnames[] = {
7762 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7763 };
7764
7765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7767 if (!SWIG_IsOK(res1)) {
7768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7769 }
7770 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7771 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7772 if (!SWIG_IsOK(res2)) {
7773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7774 }
7775 if (!argp2) {
7776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7777 }
7778 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7779 ecode3 = SWIG_AsVal_int(obj2, &val3);
7780 if (!SWIG_IsOK(ecode3)) {
7781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7782 }
7783 arg3 = static_cast< int >(val3);
7784 ecode4 = SWIG_AsVal_int(obj3, &val4);
7785 if (!SWIG_IsOK(ecode4)) {
7786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7787 }
7788 arg4 = static_cast< int >(val4);
7789 {
7790 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 resultobj = SWIG_Py_Void();
7794 return resultobj;
7795 fail:
7796 return NULL;
7797 }
7798
7799
7800 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj = 0;
7802 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7803 wxNativePixelData *arg2 = 0 ;
7804 int arg3 ;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 void *argp2 = 0 ;
7808 int res2 = 0 ;
7809 int val3 ;
7810 int ecode3 = 0 ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 PyObject * obj2 = 0 ;
7814 char * kwnames[] = {
7815 (char *) "self",(char *) "data",(char *) "x", NULL
7816 };
7817
7818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7820 if (!SWIG_IsOK(res1)) {
7821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7822 }
7823 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7825 if (!SWIG_IsOK(res2)) {
7826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7827 }
7828 if (!argp2) {
7829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7830 }
7831 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7832 ecode3 = SWIG_AsVal_int(obj2, &val3);
7833 if (!SWIG_IsOK(ecode3)) {
7834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7835 }
7836 arg3 = static_cast< int >(val3);
7837 {
7838 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_Py_Void();
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = 0;
7850 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7851 wxNativePixelData *arg2 = 0 ;
7852 int arg3 ;
7853 void *argp1 = 0 ;
7854 int res1 = 0 ;
7855 void *argp2 = 0 ;
7856 int res2 = 0 ;
7857 int val3 ;
7858 int ecode3 = 0 ;
7859 PyObject * obj0 = 0 ;
7860 PyObject * obj1 = 0 ;
7861 PyObject * obj2 = 0 ;
7862 char * kwnames[] = {
7863 (char *) "self",(char *) "data",(char *) "y", NULL
7864 };
7865
7866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7868 if (!SWIG_IsOK(res1)) {
7869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7870 }
7871 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7873 if (!SWIG_IsOK(res2)) {
7874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7875 }
7876 if (!argp2) {
7877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7878 }
7879 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7880 ecode3 = SWIG_AsVal_int(obj2, &val3);
7881 if (!SWIG_IsOK(ecode3)) {
7882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7883 }
7884 arg3 = static_cast< int >(val3);
7885 {
7886 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 resultobj = SWIG_Py_Void();
7890 return resultobj;
7891 fail:
7892 return NULL;
7893 }
7894
7895
7896 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj = 0;
7898 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7899 wxNativePixelData *arg2 = 0 ;
7900 int arg3 ;
7901 int arg4 ;
7902 void *argp1 = 0 ;
7903 int res1 = 0 ;
7904 void *argp2 = 0 ;
7905 int res2 = 0 ;
7906 int val3 ;
7907 int ecode3 = 0 ;
7908 int val4 ;
7909 int ecode4 = 0 ;
7910 PyObject * obj0 = 0 ;
7911 PyObject * obj1 = 0 ;
7912 PyObject * obj2 = 0 ;
7913 PyObject * obj3 = 0 ;
7914 char * kwnames[] = {
7915 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7916 };
7917
7918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7920 if (!SWIG_IsOK(res1)) {
7921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7922 }
7923 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7925 if (!SWIG_IsOK(res2)) {
7926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7927 }
7928 if (!argp2) {
7929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7930 }
7931 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7932 ecode3 = SWIG_AsVal_int(obj2, &val3);
7933 if (!SWIG_IsOK(ecode3)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7935 }
7936 arg3 = static_cast< int >(val3);
7937 ecode4 = SWIG_AsVal_int(obj3, &val4);
7938 if (!SWIG_IsOK(ecode4)) {
7939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7940 }
7941 arg4 = static_cast< int >(val4);
7942 {
7943 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_Py_Void();
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj = 0;
7955 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7956 byte arg2 ;
7957 byte arg3 ;
7958 byte arg4 ;
7959 void *argp1 = 0 ;
7960 int res1 = 0 ;
7961 unsigned char val2 ;
7962 int ecode2 = 0 ;
7963 unsigned char val3 ;
7964 int ecode3 = 0 ;
7965 unsigned char val4 ;
7966 int ecode4 = 0 ;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 PyObject * obj2 = 0 ;
7970 PyObject * obj3 = 0 ;
7971 char * kwnames[] = {
7972 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7973 };
7974
7975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7977 if (!SWIG_IsOK(res1)) {
7978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7979 }
7980 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7981 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7982 if (!SWIG_IsOK(ecode2)) {
7983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7984 }
7985 arg2 = static_cast< byte >(val2);
7986 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7987 if (!SWIG_IsOK(ecode3)) {
7988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7989 }
7990 arg3 = static_cast< byte >(val3);
7991 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7992 if (!SWIG_IsOK(ecode4)) {
7993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7994 }
7995 arg4 = static_cast< byte >(val4);
7996 {
7997 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 resultobj = SWIG_Py_Void();
8001 return resultobj;
8002 fail:
8003 return NULL;
8004 }
8005
8006
8007 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8008 PyObject *resultobj = 0;
8009 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8010 PyObject *result = 0 ;
8011 void *argp1 = 0 ;
8012 int res1 = 0 ;
8013 PyObject *swig_obj[1] ;
8014
8015 if (!args) SWIG_fail;
8016 swig_obj[0] = args;
8017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8018 if (!SWIG_IsOK(res1)) {
8019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8020 }
8021 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8022 {
8023 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 resultobj = result;
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8034 PyObject *obj;
8035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8036 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8037 return SWIG_Py_Void();
8038 }
8039
8040 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8041 return SWIG_Python_InitShadowInstance(args);
8042 }
8043
8044 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8045 PyObject *resultobj = 0;
8046 wxBitmap *arg1 = 0 ;
8047 wxAlphaPixelData *result = 0 ;
8048 void *argp1 = 0 ;
8049 int res1 = 0 ;
8050
8051 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8053 if (!SWIG_IsOK(res1)) {
8054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8055 }
8056 if (!argp1) {
8057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8058 }
8059 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8060 {
8061 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8062 if (PyErr_Occurred()) SWIG_fail;
8063 }
8064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8065 return resultobj;
8066 fail:
8067 return NULL;
8068 }
8069
8070
8071 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8072 PyObject *resultobj = 0;
8073 wxBitmap *arg1 = 0 ;
8074 wxRect *arg2 = 0 ;
8075 wxAlphaPixelData *result = 0 ;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 wxRect temp2 ;
8079
8080 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8082 if (!SWIG_IsOK(res1)) {
8083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8084 }
8085 if (!argp1) {
8086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8087 }
8088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8089 {
8090 arg2 = &temp2;
8091 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8092 }
8093 {
8094 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8098 return resultobj;
8099 fail:
8100 return NULL;
8101 }
8102
8103
8104 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8105 PyObject *resultobj = 0;
8106 wxBitmap *arg1 = 0 ;
8107 wxPoint *arg2 = 0 ;
8108 wxSize *arg3 = 0 ;
8109 wxAlphaPixelData *result = 0 ;
8110 void *argp1 = 0 ;
8111 int res1 = 0 ;
8112 wxPoint temp2 ;
8113 wxSize temp3 ;
8114
8115 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8117 if (!SWIG_IsOK(res1)) {
8118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8119 }
8120 if (!argp1) {
8121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8122 }
8123 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8124 {
8125 arg2 = &temp2;
8126 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8127 }
8128 {
8129 arg3 = &temp3;
8130 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8131 }
8132 {
8133 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8137 return resultobj;
8138 fail:
8139 return NULL;
8140 }
8141
8142
8143 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8144 int argc;
8145 PyObject *argv[4];
8146
8147 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8148 --argc;
8149 if (argc == 1) {
8150 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8151 }
8152 if (argc == 2) {
8153 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8154 }
8155 if (argc == 3) {
8156 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8157 }
8158
8159 fail:
8160 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8161 return NULL;
8162 }
8163
8164
8165 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8166 PyObject *resultobj = 0;
8167 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8168 void *argp1 = 0 ;
8169 int res1 = 0 ;
8170 PyObject *swig_obj[1] ;
8171
8172 if (!args) SWIG_fail;
8173 swig_obj[0] = args;
8174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8175 if (!SWIG_IsOK(res1)) {
8176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8177 }
8178 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8179 {
8180 delete arg1;
8181
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 resultobj = SWIG_Py_Void();
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8192 PyObject *resultobj = 0;
8193 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8194 wxAlphaPixelData_Accessor result;
8195 void *argp1 = 0 ;
8196 int res1 = 0 ;
8197 PyObject *swig_obj[1] ;
8198
8199 if (!args) SWIG_fail;
8200 swig_obj[0] = args;
8201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8202 if (!SWIG_IsOK(res1)) {
8203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8204 }
8205 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8206 {
8207 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8208 if (PyErr_Occurred()) SWIG_fail;
8209 }
8210 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8211 return resultobj;
8212 fail:
8213 return NULL;
8214 }
8215
8216
8217 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8218 PyObject *resultobj = 0;
8219 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8220 void *argp1 = 0 ;
8221 int res1 = 0 ;
8222 PyObject *swig_obj[1] ;
8223
8224 if (!args) SWIG_fail;
8225 swig_obj[0] = args;
8226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8227 if (!SWIG_IsOK(res1)) {
8228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8229 }
8230 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8231 {
8232 (arg1)->UseAlpha();
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_Py_Void();
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8243 PyObject *resultobj = 0;
8244 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8245 bool result;
8246 void *argp1 = 0 ;
8247 int res1 = 0 ;
8248 PyObject *swig_obj[1] ;
8249
8250 if (!args) SWIG_fail;
8251 swig_obj[0] = args;
8252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8253 if (!SWIG_IsOK(res1)) {
8254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8255 }
8256 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8257 {
8258 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8263 }
8264 return resultobj;
8265 fail:
8266 return NULL;
8267 }
8268
8269
8270 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8271 PyObject *obj;
8272 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8273 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8274 return SWIG_Py_Void();
8275 }
8276
8277 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8278 return SWIG_Python_InitShadowInstance(args);
8279 }
8280
8281 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8282 PyObject *resultobj = 0;
8283 wxAlphaPixelData *arg1 = 0 ;
8284 wxAlphaPixelData_Accessor *result = 0 ;
8285 void *argp1 = 0 ;
8286 int res1 = 0 ;
8287
8288 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8290 if (!SWIG_IsOK(res1)) {
8291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8292 }
8293 if (!argp1) {
8294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8295 }
8296 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8297 {
8298 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8309 PyObject *resultobj = 0;
8310 wxBitmap *arg1 = 0 ;
8311 wxAlphaPixelData *arg2 = 0 ;
8312 wxAlphaPixelData_Accessor *result = 0 ;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 void *argp2 = 0 ;
8316 int res2 = 0 ;
8317
8318 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8320 if (!SWIG_IsOK(res1)) {
8321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8322 }
8323 if (!argp1) {
8324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8325 }
8326 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8327 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8328 if (!SWIG_IsOK(res2)) {
8329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8330 }
8331 if (!argp2) {
8332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8333 }
8334 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8335 {
8336 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8337 if (PyErr_Occurred()) SWIG_fail;
8338 }
8339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8340 return resultobj;
8341 fail:
8342 return NULL;
8343 }
8344
8345
8346 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8347 PyObject *resultobj = 0;
8348 wxAlphaPixelData_Accessor *result = 0 ;
8349
8350 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8351 {
8352 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8363 int argc;
8364 PyObject *argv[3];
8365
8366 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8367 --argc;
8368 if (argc == 0) {
8369 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8370 }
8371 if (argc == 1) {
8372 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8373 }
8374 if (argc == 2) {
8375 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8376 }
8377
8378 fail:
8379 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8380 return NULL;
8381 }
8382
8383
8384 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8385 PyObject *resultobj = 0;
8386 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8387 void *argp1 = 0 ;
8388 int res1 = 0 ;
8389 PyObject *swig_obj[1] ;
8390
8391 if (!args) SWIG_fail;
8392 swig_obj[0] = args;
8393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8394 if (!SWIG_IsOK(res1)) {
8395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8396 }
8397 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8398 {
8399 delete arg1;
8400
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 resultobj = SWIG_Py_Void();
8404 return resultobj;
8405 fail:
8406 return NULL;
8407 }
8408
8409
8410 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8411 PyObject *resultobj = 0;
8412 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8413 wxAlphaPixelData *arg2 = 0 ;
8414 void *argp1 = 0 ;
8415 int res1 = 0 ;
8416 void *argp2 = 0 ;
8417 int res2 = 0 ;
8418 PyObject * obj0 = 0 ;
8419 PyObject * obj1 = 0 ;
8420 char * kwnames[] = {
8421 (char *) "self",(char *) "data", NULL
8422 };
8423
8424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8426 if (!SWIG_IsOK(res1)) {
8427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8428 }
8429 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8430 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8431 if (!SWIG_IsOK(res2)) {
8432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8433 }
8434 if (!argp2) {
8435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8436 }
8437 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8438 {
8439 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = SWIG_Py_Void();
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8450 PyObject *resultobj = 0;
8451 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8452 bool result;
8453 void *argp1 = 0 ;
8454 int res1 = 0 ;
8455 PyObject *swig_obj[1] ;
8456
8457 if (!args) SWIG_fail;
8458 swig_obj[0] = args;
8459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8462 }
8463 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8464 {
8465 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8466 if (PyErr_Occurred()) SWIG_fail;
8467 }
8468 {
8469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8470 }
8471 return resultobj;
8472 fail:
8473 return NULL;
8474 }
8475
8476
8477 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8478 PyObject *resultobj = 0;
8479 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8480 void *argp1 = 0 ;
8481 int res1 = 0 ;
8482 PyObject *swig_obj[1] ;
8483
8484 if (!args) SWIG_fail;
8485 swig_obj[0] = args;
8486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8487 if (!SWIG_IsOK(res1)) {
8488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8489 }
8490 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8491 {
8492 wxAlphaPixelData_Accessor_nextPixel(arg1);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 resultobj = SWIG_Py_Void();
8496 return resultobj;
8497 fail:
8498 return NULL;
8499 }
8500
8501
8502 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8503 PyObject *resultobj = 0;
8504 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8505 wxAlphaPixelData *arg2 = 0 ;
8506 int arg3 ;
8507 int arg4 ;
8508 void *argp1 = 0 ;
8509 int res1 = 0 ;
8510 void *argp2 = 0 ;
8511 int res2 = 0 ;
8512 int val3 ;
8513 int ecode3 = 0 ;
8514 int val4 ;
8515 int ecode4 = 0 ;
8516 PyObject * obj0 = 0 ;
8517 PyObject * obj1 = 0 ;
8518 PyObject * obj2 = 0 ;
8519 PyObject * obj3 = 0 ;
8520 char * kwnames[] = {
8521 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8522 };
8523
8524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8526 if (!SWIG_IsOK(res1)) {
8527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8528 }
8529 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8531 if (!SWIG_IsOK(res2)) {
8532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8533 }
8534 if (!argp2) {
8535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8536 }
8537 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8538 ecode3 = SWIG_AsVal_int(obj2, &val3);
8539 if (!SWIG_IsOK(ecode3)) {
8540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8541 }
8542 arg3 = static_cast< int >(val3);
8543 ecode4 = SWIG_AsVal_int(obj3, &val4);
8544 if (!SWIG_IsOK(ecode4)) {
8545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8546 }
8547 arg4 = static_cast< int >(val4);
8548 {
8549 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8550 if (PyErr_Occurred()) SWIG_fail;
8551 }
8552 resultobj = SWIG_Py_Void();
8553 return resultobj;
8554 fail:
8555 return NULL;
8556 }
8557
8558
8559 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8560 PyObject *resultobj = 0;
8561 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8562 wxAlphaPixelData *arg2 = 0 ;
8563 int arg3 ;
8564 void *argp1 = 0 ;
8565 int res1 = 0 ;
8566 void *argp2 = 0 ;
8567 int res2 = 0 ;
8568 int val3 ;
8569 int ecode3 = 0 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 PyObject * obj2 = 0 ;
8573 char * kwnames[] = {
8574 (char *) "self",(char *) "data",(char *) "x", NULL
8575 };
8576
8577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8579 if (!SWIG_IsOK(res1)) {
8580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8581 }
8582 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8584 if (!SWIG_IsOK(res2)) {
8585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8586 }
8587 if (!argp2) {
8588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8589 }
8590 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8591 ecode3 = SWIG_AsVal_int(obj2, &val3);
8592 if (!SWIG_IsOK(ecode3)) {
8593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8594 }
8595 arg3 = static_cast< int >(val3);
8596 {
8597 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 resultobj = SWIG_Py_Void();
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj = 0;
8609 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8610 wxAlphaPixelData *arg2 = 0 ;
8611 int arg3 ;
8612 void *argp1 = 0 ;
8613 int res1 = 0 ;
8614 void *argp2 = 0 ;
8615 int res2 = 0 ;
8616 int val3 ;
8617 int ecode3 = 0 ;
8618 PyObject * obj0 = 0 ;
8619 PyObject * obj1 = 0 ;
8620 PyObject * obj2 = 0 ;
8621 char * kwnames[] = {
8622 (char *) "self",(char *) "data",(char *) "y", NULL
8623 };
8624
8625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8627 if (!SWIG_IsOK(res1)) {
8628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8629 }
8630 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8632 if (!SWIG_IsOK(res2)) {
8633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8634 }
8635 if (!argp2) {
8636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8637 }
8638 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8639 ecode3 = SWIG_AsVal_int(obj2, &val3);
8640 if (!SWIG_IsOK(ecode3)) {
8641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8642 }
8643 arg3 = static_cast< int >(val3);
8644 {
8645 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 resultobj = SWIG_Py_Void();
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj = 0;
8657 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8658 wxAlphaPixelData *arg2 = 0 ;
8659 int arg3 ;
8660 int arg4 ;
8661 void *argp1 = 0 ;
8662 int res1 = 0 ;
8663 void *argp2 = 0 ;
8664 int res2 = 0 ;
8665 int val3 ;
8666 int ecode3 = 0 ;
8667 int val4 ;
8668 int ecode4 = 0 ;
8669 PyObject * obj0 = 0 ;
8670 PyObject * obj1 = 0 ;
8671 PyObject * obj2 = 0 ;
8672 PyObject * obj3 = 0 ;
8673 char * kwnames[] = {
8674 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8675 };
8676
8677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8679 if (!SWIG_IsOK(res1)) {
8680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8681 }
8682 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8684 if (!SWIG_IsOK(res2)) {
8685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8686 }
8687 if (!argp2) {
8688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8689 }
8690 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8691 ecode3 = SWIG_AsVal_int(obj2, &val3);
8692 if (!SWIG_IsOK(ecode3)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8694 }
8695 arg3 = static_cast< int >(val3);
8696 ecode4 = SWIG_AsVal_int(obj3, &val4);
8697 if (!SWIG_IsOK(ecode4)) {
8698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8699 }
8700 arg4 = static_cast< int >(val4);
8701 {
8702 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_Py_Void();
8706 return resultobj;
8707 fail:
8708 return NULL;
8709 }
8710
8711
8712 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj = 0;
8714 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8715 byte arg2 ;
8716 byte arg3 ;
8717 byte arg4 ;
8718 byte arg5 ;
8719 void *argp1 = 0 ;
8720 int res1 = 0 ;
8721 unsigned char val2 ;
8722 int ecode2 = 0 ;
8723 unsigned char val3 ;
8724 int ecode3 = 0 ;
8725 unsigned char val4 ;
8726 int ecode4 = 0 ;
8727 unsigned char val5 ;
8728 int ecode5 = 0 ;
8729 PyObject * obj0 = 0 ;
8730 PyObject * obj1 = 0 ;
8731 PyObject * obj2 = 0 ;
8732 PyObject * obj3 = 0 ;
8733 PyObject * obj4 = 0 ;
8734 char * kwnames[] = {
8735 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8736 };
8737
8738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8740 if (!SWIG_IsOK(res1)) {
8741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8742 }
8743 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8744 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8745 if (!SWIG_IsOK(ecode2)) {
8746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8747 }
8748 arg2 = static_cast< byte >(val2);
8749 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8750 if (!SWIG_IsOK(ecode3)) {
8751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8752 }
8753 arg3 = static_cast< byte >(val3);
8754 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8755 if (!SWIG_IsOK(ecode4)) {
8756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8757 }
8758 arg4 = static_cast< byte >(val4);
8759 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8760 if (!SWIG_IsOK(ecode5)) {
8761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8762 }
8763 arg5 = static_cast< byte >(val5);
8764 {
8765 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 resultobj = SWIG_Py_Void();
8769 return resultobj;
8770 fail:
8771 return NULL;
8772 }
8773
8774
8775 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8776 PyObject *resultobj = 0;
8777 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8778 PyObject *result = 0 ;
8779 void *argp1 = 0 ;
8780 int res1 = 0 ;
8781 PyObject *swig_obj[1] ;
8782
8783 if (!args) SWIG_fail;
8784 swig_obj[0] = args;
8785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8786 if (!SWIG_IsOK(res1)) {
8787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8788 }
8789 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8790 {
8791 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 resultobj = result;
8795 return resultobj;
8796 fail:
8797 return NULL;
8798 }
8799
8800
8801 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8802 PyObject *obj;
8803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8804 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8805 return SWIG_Py_Void();
8806 }
8807
8808 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8809 return SWIG_Python_InitShadowInstance(args);
8810 }
8811
8812 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj = 0;
8814 wxBitmap *arg1 = 0 ;
8815 wxColour const &arg2_defvalue = wxNullColour ;
8816 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8817 wxMask *result = 0 ;
8818 void *argp1 = 0 ;
8819 int res1 = 0 ;
8820 wxColour temp2 ;
8821 PyObject * obj0 = 0 ;
8822 PyObject * obj1 = 0 ;
8823 char * kwnames[] = {
8824 (char *) "bitmap",(char *) "colour", NULL
8825 };
8826
8827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8828 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8829 if (!SWIG_IsOK(res1)) {
8830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8831 }
8832 if (!argp1) {
8833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8834 }
8835 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8836 if (obj1) {
8837 {
8838 arg2 = &temp2;
8839 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8840 }
8841 }
8842 {
8843 if (!wxPyCheckForApp()) SWIG_fail;
8844 PyThreadState* __tstate = wxPyBeginAllowThreads();
8845 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8850 return resultobj;
8851 fail:
8852 return NULL;
8853 }
8854
8855
8856 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8857 PyObject *resultobj = 0;
8858 wxMask *arg1 = (wxMask *) 0 ;
8859 void *argp1 = 0 ;
8860 int res1 = 0 ;
8861 PyObject *swig_obj[1] ;
8862
8863 if (!args) SWIG_fail;
8864 swig_obj[0] = args;
8865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8866 if (!SWIG_IsOK(res1)) {
8867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8868 }
8869 arg1 = reinterpret_cast< wxMask * >(argp1);
8870 {
8871 delete arg1;
8872
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 resultobj = SWIG_Py_Void();
8876 return resultobj;
8877 fail:
8878 return NULL;
8879 }
8880
8881
8882 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8883 PyObject *obj;
8884 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8885 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8886 return SWIG_Py_Void();
8887 }
8888
8889 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8890 return SWIG_Python_InitShadowInstance(args);
8891 }
8892
8893 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj = 0;
8895 wxString *arg1 = 0 ;
8896 wxBitmapType arg2 ;
8897 int arg3 = (int) -1 ;
8898 int arg4 = (int) -1 ;
8899 wxIcon *result = 0 ;
8900 bool temp1 = false ;
8901 int val2 ;
8902 int ecode2 = 0 ;
8903 int val3 ;
8904 int ecode3 = 0 ;
8905 int val4 ;
8906 int ecode4 = 0 ;
8907 PyObject * obj0 = 0 ;
8908 PyObject * obj1 = 0 ;
8909 PyObject * obj2 = 0 ;
8910 PyObject * obj3 = 0 ;
8911 char * kwnames[] = {
8912 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8913 };
8914
8915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8916 {
8917 arg1 = wxString_in_helper(obj0);
8918 if (arg1 == NULL) SWIG_fail;
8919 temp1 = true;
8920 }
8921 ecode2 = SWIG_AsVal_int(obj1, &val2);
8922 if (!SWIG_IsOK(ecode2)) {
8923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8924 }
8925 arg2 = static_cast< wxBitmapType >(val2);
8926 if (obj2) {
8927 ecode3 = SWIG_AsVal_int(obj2, &val3);
8928 if (!SWIG_IsOK(ecode3)) {
8929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8930 }
8931 arg3 = static_cast< int >(val3);
8932 }
8933 if (obj3) {
8934 ecode4 = SWIG_AsVal_int(obj3, &val4);
8935 if (!SWIG_IsOK(ecode4)) {
8936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8937 }
8938 arg4 = static_cast< int >(val4);
8939 }
8940 {
8941 if (!wxPyCheckForApp()) SWIG_fail;
8942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8943 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8944 wxPyEndAllowThreads(__tstate);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8948 {
8949 if (temp1)
8950 delete arg1;
8951 }
8952 return resultobj;
8953 fail:
8954 {
8955 if (temp1)
8956 delete arg1;
8957 }
8958 return NULL;
8959 }
8960
8961
8962 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8963 PyObject *resultobj = 0;
8964 wxIcon *arg1 = (wxIcon *) 0 ;
8965 void *argp1 = 0 ;
8966 int res1 = 0 ;
8967 PyObject *swig_obj[1] ;
8968
8969 if (!args) SWIG_fail;
8970 swig_obj[0] = args;
8971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8972 if (!SWIG_IsOK(res1)) {
8973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8974 }
8975 arg1 = reinterpret_cast< wxIcon * >(argp1);
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 delete arg1;
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 resultobj = SWIG_Py_Void();
8984 return resultobj;
8985 fail:
8986 return NULL;
8987 }
8988
8989
8990 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8991 PyObject *resultobj = 0;
8992 wxIcon *result = 0 ;
8993
8994 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8995 {
8996 if (!wxPyCheckForApp()) SWIG_fail;
8997 PyThreadState* __tstate = wxPyBeginAllowThreads();
8998 result = (wxIcon *)new wxIcon();
8999 wxPyEndAllowThreads(__tstate);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9003 return resultobj;
9004 fail:
9005 return NULL;
9006 }
9007
9008
9009 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj = 0;
9011 wxIconLocation *arg1 = 0 ;
9012 wxIcon *result = 0 ;
9013 void *argp1 = 0 ;
9014 int res1 = 0 ;
9015 PyObject * obj0 = 0 ;
9016 char * kwnames[] = {
9017 (char *) "loc", NULL
9018 };
9019
9020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9021 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9022 if (!SWIG_IsOK(res1)) {
9023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9024 }
9025 if (!argp1) {
9026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9027 }
9028 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9029 {
9030 if (!wxPyCheckForApp()) SWIG_fail;
9031 PyThreadState* __tstate = wxPyBeginAllowThreads();
9032 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9037 return resultobj;
9038 fail:
9039 return NULL;
9040 }
9041
9042
9043 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj = 0;
9045 wxBitmap *arg1 = 0 ;
9046 wxIcon *result = 0 ;
9047 void *argp1 = 0 ;
9048 int res1 = 0 ;
9049 PyObject * obj0 = 0 ;
9050 char * kwnames[] = {
9051 (char *) "bmp", NULL
9052 };
9053
9054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9055 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9056 if (!SWIG_IsOK(res1)) {
9057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9058 }
9059 if (!argp1) {
9060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9061 }
9062 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9063 {
9064 if (!wxPyCheckForApp()) SWIG_fail;
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9071 return resultobj;
9072 fail:
9073 return NULL;
9074 }
9075
9076
9077 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9078 PyObject *resultobj = 0;
9079 PyObject *arg1 = (PyObject *) 0 ;
9080 wxIcon *result = 0 ;
9081 PyObject * obj0 = 0 ;
9082 char * kwnames[] = {
9083 (char *) "listOfStrings", NULL
9084 };
9085
9086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9087 arg1 = obj0;
9088 {
9089 if (!wxPyCheckForApp()) SWIG_fail;
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 result = (wxIcon *)new_wxIcon(arg1);
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9096 return resultobj;
9097 fail:
9098 return NULL;
9099 }
9100
9101
9102 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj = 0;
9104 wxIcon *arg1 = (wxIcon *) 0 ;
9105 wxString *arg2 = 0 ;
9106 wxBitmapType arg3 ;
9107 bool result;
9108 void *argp1 = 0 ;
9109 int res1 = 0 ;
9110 bool temp2 = false ;
9111 int val3 ;
9112 int ecode3 = 0 ;
9113 PyObject * obj0 = 0 ;
9114 PyObject * obj1 = 0 ;
9115 PyObject * obj2 = 0 ;
9116 char * kwnames[] = {
9117 (char *) "self",(char *) "name",(char *) "type", NULL
9118 };
9119
9120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9122 if (!SWIG_IsOK(res1)) {
9123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9124 }
9125 arg1 = reinterpret_cast< wxIcon * >(argp1);
9126 {
9127 arg2 = wxString_in_helper(obj1);
9128 if (arg2 == NULL) SWIG_fail;
9129 temp2 = true;
9130 }
9131 ecode3 = SWIG_AsVal_int(obj2, &val3);
9132 if (!SWIG_IsOK(ecode3)) {
9133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9134 }
9135 arg3 = static_cast< wxBitmapType >(val3);
9136 {
9137 PyThreadState* __tstate = wxPyBeginAllowThreads();
9138 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9139 wxPyEndAllowThreads(__tstate);
9140 if (PyErr_Occurred()) SWIG_fail;
9141 }
9142 {
9143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9144 }
9145 {
9146 if (temp2)
9147 delete arg2;
9148 }
9149 return resultobj;
9150 fail:
9151 {
9152 if (temp2)
9153 delete arg2;
9154 }
9155 return NULL;
9156 }
9157
9158
9159 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9160 PyObject *resultobj = 0;
9161 wxIcon *arg1 = (wxIcon *) 0 ;
9162 long result;
9163 void *argp1 = 0 ;
9164 int res1 = 0 ;
9165 PyObject *swig_obj[1] ;
9166
9167 if (!args) SWIG_fail;
9168 swig_obj[0] = args;
9169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9170 if (!SWIG_IsOK(res1)) {
9171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9172 }
9173 arg1 = reinterpret_cast< wxIcon * >(argp1);
9174 {
9175 PyThreadState* __tstate = wxPyBeginAllowThreads();
9176 result = (long)(arg1)->GetHandle();
9177 wxPyEndAllowThreads(__tstate);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 resultobj = SWIG_From_long(static_cast< long >(result));
9181 return resultobj;
9182 fail:
9183 return NULL;
9184 }
9185
9186
9187 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9188 PyObject *resultobj = 0;
9189 wxIcon *arg1 = (wxIcon *) 0 ;
9190 long arg2 ;
9191 void *argp1 = 0 ;
9192 int res1 = 0 ;
9193 long val2 ;
9194 int ecode2 = 0 ;
9195 PyObject * obj0 = 0 ;
9196 PyObject * obj1 = 0 ;
9197 char * kwnames[] = {
9198 (char *) "self",(char *) "handle", NULL
9199 };
9200
9201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9203 if (!SWIG_IsOK(res1)) {
9204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9205 }
9206 arg1 = reinterpret_cast< wxIcon * >(argp1);
9207 ecode2 = SWIG_AsVal_long(obj1, &val2);
9208 if (!SWIG_IsOK(ecode2)) {
9209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9210 }
9211 arg2 = static_cast< long >(val2);
9212 {
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 wxIcon_SetHandle(arg1,arg2);
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_Py_Void();
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226 PyObject *resultobj = 0;
9227 wxIcon *arg1 = (wxIcon *) 0 ;
9228 bool result;
9229 void *argp1 = 0 ;
9230 int res1 = 0 ;
9231 PyObject *swig_obj[1] ;
9232
9233 if (!args) SWIG_fail;
9234 swig_obj[0] = args;
9235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9236 if (!SWIG_IsOK(res1)) {
9237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9238 }
9239 arg1 = reinterpret_cast< wxIcon * >(argp1);
9240 {
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
9242 result = (bool)(arg1)->IsOk();
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 {
9247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9248 }
9249 return resultobj;
9250 fail:
9251 return NULL;
9252 }
9253
9254
9255 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9256 PyObject *resultobj = 0;
9257 wxIcon *arg1 = (wxIcon *) 0 ;
9258 int result;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 PyObject *swig_obj[1] ;
9262
9263 if (!args) SWIG_fail;
9264 swig_obj[0] = args;
9265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
9267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9268 }
9269 arg1 = reinterpret_cast< wxIcon * >(argp1);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (int)(arg1)->GetWidth();
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 resultobj = SWIG_From_int(static_cast< int >(result));
9277 return resultobj;
9278 fail:
9279 return NULL;
9280 }
9281
9282
9283 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9284 PyObject *resultobj = 0;
9285 wxIcon *arg1 = (wxIcon *) 0 ;
9286 int result;
9287 void *argp1 = 0 ;
9288 int res1 = 0 ;
9289 PyObject *swig_obj[1] ;
9290
9291 if (!args) SWIG_fail;
9292 swig_obj[0] = args;
9293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9294 if (!SWIG_IsOK(res1)) {
9295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9296 }
9297 arg1 = reinterpret_cast< wxIcon * >(argp1);
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = (int)(arg1)->GetHeight();
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 resultobj = SWIG_From_int(static_cast< int >(result));
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9312 PyObject *resultobj = 0;
9313 wxIcon *arg1 = (wxIcon *) 0 ;
9314 int result;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject *swig_obj[1] ;
9318
9319 if (!args) SWIG_fail;
9320 swig_obj[0] = args;
9321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9324 }
9325 arg1 = reinterpret_cast< wxIcon * >(argp1);
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 result = (int)(arg1)->GetDepth();
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = SWIG_From_int(static_cast< int >(result));
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj = 0;
9341 wxIcon *arg1 = (wxIcon *) 0 ;
9342 int arg2 ;
9343 void *argp1 = 0 ;
9344 int res1 = 0 ;
9345 int val2 ;
9346 int ecode2 = 0 ;
9347 PyObject * obj0 = 0 ;
9348 PyObject * obj1 = 0 ;
9349 char * kwnames[] = {
9350 (char *) "self",(char *) "w", NULL
9351 };
9352
9353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9355 if (!SWIG_IsOK(res1)) {
9356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9357 }
9358 arg1 = reinterpret_cast< wxIcon * >(argp1);
9359 ecode2 = SWIG_AsVal_int(obj1, &val2);
9360 if (!SWIG_IsOK(ecode2)) {
9361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9362 }
9363 arg2 = static_cast< int >(val2);
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 (arg1)->SetWidth(arg2);
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 resultobj = SWIG_Py_Void();
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj = 0;
9379 wxIcon *arg1 = (wxIcon *) 0 ;
9380 int arg2 ;
9381 void *argp1 = 0 ;
9382 int res1 = 0 ;
9383 int val2 ;
9384 int ecode2 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char * kwnames[] = {
9388 (char *) "self",(char *) "h", NULL
9389 };
9390
9391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9395 }
9396 arg1 = reinterpret_cast< wxIcon * >(argp1);
9397 ecode2 = SWIG_AsVal_int(obj1, &val2);
9398 if (!SWIG_IsOK(ecode2)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9400 }
9401 arg2 = static_cast< int >(val2);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->SetHeight(arg2);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_Py_Void();
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj = 0;
9417 wxIcon *arg1 = (wxIcon *) 0 ;
9418 int arg2 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 int val2 ;
9422 int ecode2 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
9425 char * kwnames[] = {
9426 (char *) "self",(char *) "d", NULL
9427 };
9428
9429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9431 if (!SWIG_IsOK(res1)) {
9432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9433 }
9434 arg1 = reinterpret_cast< wxIcon * >(argp1);
9435 ecode2 = SWIG_AsVal_int(obj1, &val2);
9436 if (!SWIG_IsOK(ecode2)) {
9437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9438 }
9439 arg2 = static_cast< int >(val2);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->SetDepth(arg2);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_Py_Void();
9447 return resultobj;
9448 fail:
9449 return NULL;
9450 }
9451
9452
9453 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj = 0;
9455 wxIcon *arg1 = (wxIcon *) 0 ;
9456 wxSize *arg2 = 0 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 wxSize temp2 ;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 char * kwnames[] = {
9463 (char *) "self",(char *) "size", NULL
9464 };
9465
9466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9470 }
9471 arg1 = reinterpret_cast< wxIcon * >(argp1);
9472 {
9473 arg2 = &temp2;
9474 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9475 }
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 (arg1)->SetSize((wxSize const &)*arg2);
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 resultobj = SWIG_Py_Void();
9483 return resultobj;
9484 fail:
9485 return NULL;
9486 }
9487
9488
9489 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj = 0;
9491 wxIcon *arg1 = (wxIcon *) 0 ;
9492 wxBitmap *arg2 = 0 ;
9493 void *argp1 = 0 ;
9494 int res1 = 0 ;
9495 void *argp2 = 0 ;
9496 int res2 = 0 ;
9497 PyObject * obj0 = 0 ;
9498 PyObject * obj1 = 0 ;
9499 char * kwnames[] = {
9500 (char *) "self",(char *) "bmp", NULL
9501 };
9502
9503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9505 if (!SWIG_IsOK(res1)) {
9506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9507 }
9508 arg1 = reinterpret_cast< wxIcon * >(argp1);
9509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9510 if (!SWIG_IsOK(res2)) {
9511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9512 }
9513 if (!argp2) {
9514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9515 }
9516 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9517 {
9518 PyThreadState* __tstate = wxPyBeginAllowThreads();
9519 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_Py_Void();
9524 return resultobj;
9525 fail:
9526 return NULL;
9527 }
9528
9529
9530 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9531 PyObject *obj;
9532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9533 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9534 return SWIG_Py_Void();
9535 }
9536
9537 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9538 return SWIG_Python_InitShadowInstance(args);
9539 }
9540
9541 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9542 PyObject *resultobj = 0;
9543 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9544 int arg2 = (int) 0 ;
9545 wxIconLocation *result = 0 ;
9546 bool temp1 = false ;
9547 int val2 ;
9548 int ecode2 = 0 ;
9549 PyObject * obj0 = 0 ;
9550 PyObject * obj1 = 0 ;
9551 char * kwnames[] = {
9552 (char *) "filename",(char *) "num", NULL
9553 };
9554
9555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9556 if (obj0) {
9557 {
9558 arg1 = wxString_in_helper(obj0);
9559 if (arg1 == NULL) SWIG_fail;
9560 temp1 = true;
9561 }
9562 }
9563 if (obj1) {
9564 ecode2 = SWIG_AsVal_int(obj1, &val2);
9565 if (!SWIG_IsOK(ecode2)) {
9566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9567 }
9568 arg2 = static_cast< int >(val2);
9569 }
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) SWIG_fail;
9575 }
9576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9577 {
9578 if (temp1)
9579 delete arg1;
9580 }
9581 return resultobj;
9582 fail:
9583 {
9584 if (temp1)
9585 delete arg1;
9586 }
9587 return NULL;
9588 }
9589
9590
9591 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9592 PyObject *resultobj = 0;
9593 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9594 void *argp1 = 0 ;
9595 int res1 = 0 ;
9596 PyObject *swig_obj[1] ;
9597
9598 if (!args) SWIG_fail;
9599 swig_obj[0] = args;
9600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9601 if (!SWIG_IsOK(res1)) {
9602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9603 }
9604 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 delete arg1;
9608
9609 wxPyEndAllowThreads(__tstate);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 resultobj = SWIG_Py_Void();
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9620 PyObject *resultobj = 0;
9621 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9622 bool result;
9623 void *argp1 = 0 ;
9624 int res1 = 0 ;
9625 PyObject *swig_obj[1] ;
9626
9627 if (!args) SWIG_fail;
9628 swig_obj[0] = args;
9629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9630 if (!SWIG_IsOK(res1)) {
9631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9632 }
9633 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 {
9641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9642 }
9643 return resultobj;
9644 fail:
9645 return NULL;
9646 }
9647
9648
9649 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9650 PyObject *resultobj = 0;
9651 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9652 wxString *arg2 = 0 ;
9653 void *argp1 = 0 ;
9654 int res1 = 0 ;
9655 bool temp2 = false ;
9656 PyObject * obj0 = 0 ;
9657 PyObject * obj1 = 0 ;
9658 char * kwnames[] = {
9659 (char *) "self",(char *) "filename", NULL
9660 };
9661
9662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9666 }
9667 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9668 {
9669 arg2 = wxString_in_helper(obj1);
9670 if (arg2 == NULL) SWIG_fail;
9671 temp2 = true;
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 (arg1)->SetFileName((wxString const &)*arg2);
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 resultobj = SWIG_Py_Void();
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return resultobj;
9685 fail:
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return NULL;
9691 }
9692
9693
9694 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9695 PyObject *resultobj = 0;
9696 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9697 wxString *result = 0 ;
9698 void *argp1 = 0 ;
9699 int res1 = 0 ;
9700 PyObject *swig_obj[1] ;
9701
9702 if (!args) SWIG_fail;
9703 swig_obj[0] = args;
9704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9705 if (!SWIG_IsOK(res1)) {
9706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9707 }
9708 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 {
9712 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9713 result = (wxString *) &_result_ref;
9714 }
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 {
9719 #if wxUSE_UNICODE
9720 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9721 #else
9722 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9723 #endif
9724 }
9725 return resultobj;
9726 fail:
9727 return NULL;
9728 }
9729
9730
9731 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9732 PyObject *resultobj = 0;
9733 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9734 int arg2 ;
9735 void *argp1 = 0 ;
9736 int res1 = 0 ;
9737 int val2 ;
9738 int ecode2 = 0 ;
9739 PyObject * obj0 = 0 ;
9740 PyObject * obj1 = 0 ;
9741 char * kwnames[] = {
9742 (char *) "self",(char *) "num", NULL
9743 };
9744
9745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9747 if (!SWIG_IsOK(res1)) {
9748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9749 }
9750 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9751 ecode2 = SWIG_AsVal_int(obj1, &val2);
9752 if (!SWIG_IsOK(ecode2)) {
9753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9754 }
9755 arg2 = static_cast< int >(val2);
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 wxIconLocation_SetIndex(arg1,arg2);
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_Py_Void();
9763 return resultobj;
9764 fail:
9765 return NULL;
9766 }
9767
9768
9769 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9770 PyObject *resultobj = 0;
9771 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9772 int result;
9773 void *argp1 = 0 ;
9774 int res1 = 0 ;
9775 PyObject *swig_obj[1] ;
9776
9777 if (!args) SWIG_fail;
9778 swig_obj[0] = args;
9779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9780 if (!SWIG_IsOK(res1)) {
9781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9782 }
9783 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)wxIconLocation_GetIndex(arg1);
9787 wxPyEndAllowThreads(__tstate);
9788 if (PyErr_Occurred()) SWIG_fail;
9789 }
9790 resultobj = SWIG_From_int(static_cast< int >(result));
9791 return resultobj;
9792 fail:
9793 return NULL;
9794 }
9795
9796
9797 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9798 PyObject *obj;
9799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9800 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9801 return SWIG_Py_Void();
9802 }
9803
9804 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9805 return SWIG_Python_InitShadowInstance(args);
9806 }
9807
9808 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9809 PyObject *resultobj = 0;
9810 wxIconBundle *result = 0 ;
9811
9812 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 result = (wxIconBundle *)new wxIconBundle();
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9820 return resultobj;
9821 fail:
9822 return NULL;
9823 }
9824
9825
9826 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj = 0;
9828 wxString *arg1 = 0 ;
9829 long arg2 ;
9830 wxIconBundle *result = 0 ;
9831 bool temp1 = false ;
9832 long val2 ;
9833 int ecode2 = 0 ;
9834 PyObject * obj0 = 0 ;
9835 PyObject * obj1 = 0 ;
9836 char * kwnames[] = {
9837 (char *) "file",(char *) "type", NULL
9838 };
9839
9840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9841 {
9842 arg1 = wxString_in_helper(obj0);
9843 if (arg1 == NULL) SWIG_fail;
9844 temp1 = true;
9845 }
9846 ecode2 = SWIG_AsVal_long(obj1, &val2);
9847 if (!SWIG_IsOK(ecode2)) {
9848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9849 }
9850 arg2 = static_cast< long >(val2);
9851 {
9852 PyThreadState* __tstate = wxPyBeginAllowThreads();
9853 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9858 {
9859 if (temp1)
9860 delete arg1;
9861 }
9862 return resultobj;
9863 fail:
9864 {
9865 if (temp1)
9866 delete arg1;
9867 }
9868 return NULL;
9869 }
9870
9871
9872 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj = 0;
9874 wxIcon *arg1 = 0 ;
9875 wxIconBundle *result = 0 ;
9876 void *argp1 = 0 ;
9877 int res1 = 0 ;
9878 PyObject * obj0 = 0 ;
9879 char * kwnames[] = {
9880 (char *) "icon", NULL
9881 };
9882
9883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9884 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9885 if (!SWIG_IsOK(res1)) {
9886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9887 }
9888 if (!argp1) {
9889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9890 }
9891 arg1 = reinterpret_cast< wxIcon * >(argp1);
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9899 return resultobj;
9900 fail:
9901 return NULL;
9902 }
9903
9904
9905 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9906 PyObject *resultobj = 0;
9907 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9908 void *argp1 = 0 ;
9909 int res1 = 0 ;
9910 PyObject *swig_obj[1] ;
9911
9912 if (!args) SWIG_fail;
9913 swig_obj[0] = args;
9914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9915 if (!SWIG_IsOK(res1)) {
9916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9917 }
9918 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9919 {
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 delete arg1;
9922
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 resultobj = SWIG_Py_Void();
9927 return resultobj;
9928 fail:
9929 return NULL;
9930 }
9931
9932
9933 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9934 PyObject *resultobj = 0;
9935 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9936 wxIcon *arg2 = 0 ;
9937 void *argp1 = 0 ;
9938 int res1 = 0 ;
9939 void *argp2 = 0 ;
9940 int res2 = 0 ;
9941 PyObject * obj0 = 0 ;
9942 PyObject * obj1 = 0 ;
9943 char * kwnames[] = {
9944 (char *) "self",(char *) "icon", NULL
9945 };
9946
9947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9949 if (!SWIG_IsOK(res1)) {
9950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9951 }
9952 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9954 if (!SWIG_IsOK(res2)) {
9955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9956 }
9957 if (!argp2) {
9958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9959 }
9960 arg2 = reinterpret_cast< wxIcon * >(argp2);
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 (arg1)->AddIcon((wxIcon const &)*arg2);
9964 wxPyEndAllowThreads(__tstate);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 resultobj = SWIG_Py_Void();
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9977 wxString *arg2 = 0 ;
9978 long arg3 ;
9979 void *argp1 = 0 ;
9980 int res1 = 0 ;
9981 bool temp2 = false ;
9982 long val3 ;
9983 int ecode3 = 0 ;
9984 PyObject * obj0 = 0 ;
9985 PyObject * obj1 = 0 ;
9986 PyObject * obj2 = 0 ;
9987 char * kwnames[] = {
9988 (char *) "self",(char *) "file",(char *) "type", NULL
9989 };
9990
9991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9993 if (!SWIG_IsOK(res1)) {
9994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9995 }
9996 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9997 {
9998 arg2 = wxString_in_helper(obj1);
9999 if (arg2 == NULL) SWIG_fail;
10000 temp2 = true;
10001 }
10002 ecode3 = SWIG_AsVal_long(obj2, &val3);
10003 if (!SWIG_IsOK(ecode3)) {
10004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10005 }
10006 arg3 = static_cast< long >(val3);
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_Py_Void();
10014 {
10015 if (temp2)
10016 delete arg2;
10017 }
10018 return resultobj;
10019 fail:
10020 {
10021 if (temp2)
10022 delete arg2;
10023 }
10024 return NULL;
10025 }
10026
10027
10028 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj = 0;
10030 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10031 wxSize *arg2 = 0 ;
10032 wxIcon *result = 0 ;
10033 void *argp1 = 0 ;
10034 int res1 = 0 ;
10035 wxSize temp2 ;
10036 PyObject * obj0 = 0 ;
10037 PyObject * obj1 = 0 ;
10038 char * kwnames[] = {
10039 (char *) "self",(char *) "size", NULL
10040 };
10041
10042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10044 if (!SWIG_IsOK(res1)) {
10045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10046 }
10047 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10048 {
10049 arg2 = &temp2;
10050 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10051 }
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 {
10055 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10056 result = (wxIcon *) &_result_ref;
10057 }
10058 wxPyEndAllowThreads(__tstate);
10059 if (PyErr_Occurred()) SWIG_fail;
10060 }
10061 {
10062 wxIcon* resultptr = new wxIcon(*result);
10063 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10064 }
10065 return resultobj;
10066 fail:
10067 return NULL;
10068 }
10069
10070
10071 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10072 PyObject *obj;
10073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10074 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10075 return SWIG_Py_Void();
10076 }
10077
10078 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10079 return SWIG_Python_InitShadowInstance(args);
10080 }
10081
10082 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj = 0;
10084 wxString *arg1 = 0 ;
10085 long arg2 ;
10086 int arg3 = (int) 0 ;
10087 int arg4 = (int) 0 ;
10088 wxCursor *result = 0 ;
10089 bool temp1 = false ;
10090 long val2 ;
10091 int ecode2 = 0 ;
10092 int val3 ;
10093 int ecode3 = 0 ;
10094 int val4 ;
10095 int ecode4 = 0 ;
10096 PyObject * obj0 = 0 ;
10097 PyObject * obj1 = 0 ;
10098 PyObject * obj2 = 0 ;
10099 PyObject * obj3 = 0 ;
10100 char * kwnames[] = {
10101 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10102 };
10103
10104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10105 {
10106 arg1 = wxString_in_helper(obj0);
10107 if (arg1 == NULL) SWIG_fail;
10108 temp1 = true;
10109 }
10110 ecode2 = SWIG_AsVal_long(obj1, &val2);
10111 if (!SWIG_IsOK(ecode2)) {
10112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10113 }
10114 arg2 = static_cast< long >(val2);
10115 if (obj2) {
10116 ecode3 = SWIG_AsVal_int(obj2, &val3);
10117 if (!SWIG_IsOK(ecode3)) {
10118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10119 }
10120 arg3 = static_cast< int >(val3);
10121 }
10122 if (obj3) {
10123 ecode4 = SWIG_AsVal_int(obj3, &val4);
10124 if (!SWIG_IsOK(ecode4)) {
10125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10126 }
10127 arg4 = static_cast< int >(val4);
10128 }
10129 {
10130 if (!wxPyCheckForApp()) SWIG_fail;
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10137 {
10138 if (temp1)
10139 delete arg1;
10140 }
10141 return resultobj;
10142 fail:
10143 {
10144 if (temp1)
10145 delete arg1;
10146 }
10147 return NULL;
10148 }
10149
10150
10151 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10152 PyObject *resultobj = 0;
10153 wxCursor *arg1 = (wxCursor *) 0 ;
10154 void *argp1 = 0 ;
10155 int res1 = 0 ;
10156 PyObject *swig_obj[1] ;
10157
10158 if (!args) SWIG_fail;
10159 swig_obj[0] = args;
10160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10161 if (!SWIG_IsOK(res1)) {
10162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10163 }
10164 arg1 = reinterpret_cast< wxCursor * >(argp1);
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 delete arg1;
10168
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 resultobj = SWIG_Py_Void();
10173 return resultobj;
10174 fail:
10175 return NULL;
10176 }
10177
10178
10179 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj = 0;
10181 int arg1 ;
10182 wxCursor *result = 0 ;
10183 int val1 ;
10184 int ecode1 = 0 ;
10185 PyObject * obj0 = 0 ;
10186 char * kwnames[] = {
10187 (char *) "id", NULL
10188 };
10189
10190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10191 ecode1 = SWIG_AsVal_int(obj0, &val1);
10192 if (!SWIG_IsOK(ecode1)) {
10193 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10194 }
10195 arg1 = static_cast< int >(val1);
10196 {
10197 if (!wxPyCheckForApp()) SWIG_fail;
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxCursor *)new wxCursor(arg1);
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10204 return resultobj;
10205 fail:
10206 return NULL;
10207 }
10208
10209
10210 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj = 0;
10212 wxImage *arg1 = 0 ;
10213 wxCursor *result = 0 ;
10214 void *argp1 = 0 ;
10215 int res1 = 0 ;
10216 PyObject * obj0 = 0 ;
10217 char * kwnames[] = {
10218 (char *) "image", NULL
10219 };
10220
10221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10222 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10223 if (!SWIG_IsOK(res1)) {
10224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10225 }
10226 if (!argp1) {
10227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10228 }
10229 arg1 = reinterpret_cast< wxImage * >(argp1);
10230 {
10231 if (!wxPyCheckForApp()) SWIG_fail;
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10238 return resultobj;
10239 fail:
10240 return NULL;
10241 }
10242
10243
10244 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10245 PyObject *resultobj = 0;
10246 wxCursor *arg1 = (wxCursor *) 0 ;
10247 long result;
10248 void *argp1 = 0 ;
10249 int res1 = 0 ;
10250 PyObject *swig_obj[1] ;
10251
10252 if (!args) SWIG_fail;
10253 swig_obj[0] = args;
10254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10255 if (!SWIG_IsOK(res1)) {
10256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10257 }
10258 arg1 = reinterpret_cast< wxCursor * >(argp1);
10259 {
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 result = (long)(arg1)->GetHandle();
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 resultobj = SWIG_From_long(static_cast< long >(result));
10266 return resultobj;
10267 fail:
10268 return NULL;
10269 }
10270
10271
10272 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj = 0;
10274 wxCursor *arg1 = (wxCursor *) 0 ;
10275 long arg2 ;
10276 void *argp1 = 0 ;
10277 int res1 = 0 ;
10278 long val2 ;
10279 int ecode2 = 0 ;
10280 PyObject * obj0 = 0 ;
10281 PyObject * obj1 = 0 ;
10282 char * kwnames[] = {
10283 (char *) "self",(char *) "handle", NULL
10284 };
10285
10286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10288 if (!SWIG_IsOK(res1)) {
10289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10290 }
10291 arg1 = reinterpret_cast< wxCursor * >(argp1);
10292 ecode2 = SWIG_AsVal_long(obj1, &val2);
10293 if (!SWIG_IsOK(ecode2)) {
10294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10295 }
10296 arg2 = static_cast< long >(val2);
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 wxCursor_SetHandle(arg1,arg2);
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 resultobj = SWIG_Py_Void();
10304 return resultobj;
10305 fail:
10306 return NULL;
10307 }
10308
10309
10310 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10311 PyObject *resultobj = 0;
10312 wxCursor *arg1 = (wxCursor *) 0 ;
10313 bool result;
10314 void *argp1 = 0 ;
10315 int res1 = 0 ;
10316 PyObject *swig_obj[1] ;
10317
10318 if (!args) SWIG_fail;
10319 swig_obj[0] = args;
10320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10321 if (!SWIG_IsOK(res1)) {
10322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10323 }
10324 arg1 = reinterpret_cast< wxCursor * >(argp1);
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 result = (bool)(arg1)->IsOk();
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 {
10332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10333 }
10334 return resultobj;
10335 fail:
10336 return NULL;
10337 }
10338
10339
10340 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10341 PyObject *resultobj = 0;
10342 wxCursor *arg1 = (wxCursor *) 0 ;
10343 int result;
10344 void *argp1 = 0 ;
10345 int res1 = 0 ;
10346 PyObject *swig_obj[1] ;
10347
10348 if (!args) SWIG_fail;
10349 swig_obj[0] = args;
10350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10351 if (!SWIG_IsOK(res1)) {
10352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10353 }
10354 arg1 = reinterpret_cast< wxCursor * >(argp1);
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 result = (int)(arg1)->GetWidth();
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 resultobj = SWIG_From_int(static_cast< int >(result));
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10369 PyObject *resultobj = 0;
10370 wxCursor *arg1 = (wxCursor *) 0 ;
10371 int result;
10372 void *argp1 = 0 ;
10373 int res1 = 0 ;
10374 PyObject *swig_obj[1] ;
10375
10376 if (!args) SWIG_fail;
10377 swig_obj[0] = args;
10378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10379 if (!SWIG_IsOK(res1)) {
10380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10381 }
10382 arg1 = reinterpret_cast< wxCursor * >(argp1);
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 result = (int)(arg1)->GetHeight();
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 resultobj = SWIG_From_int(static_cast< int >(result));
10390 return resultobj;
10391 fail:
10392 return NULL;
10393 }
10394
10395
10396 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10397 PyObject *resultobj = 0;
10398 wxCursor *arg1 = (wxCursor *) 0 ;
10399 int result;
10400 void *argp1 = 0 ;
10401 int res1 = 0 ;
10402 PyObject *swig_obj[1] ;
10403
10404 if (!args) SWIG_fail;
10405 swig_obj[0] = args;
10406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10407 if (!SWIG_IsOK(res1)) {
10408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10409 }
10410 arg1 = reinterpret_cast< wxCursor * >(argp1);
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 result = (int)(arg1)->GetDepth();
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 resultobj = SWIG_From_int(static_cast< int >(result));
10418 return resultobj;
10419 fail:
10420 return NULL;
10421 }
10422
10423
10424 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxCursor *arg1 = (wxCursor *) 0 ;
10427 int arg2 ;
10428 void *argp1 = 0 ;
10429 int res1 = 0 ;
10430 int val2 ;
10431 int ecode2 = 0 ;
10432 PyObject * obj0 = 0 ;
10433 PyObject * obj1 = 0 ;
10434 char * kwnames[] = {
10435 (char *) "self",(char *) "w", NULL
10436 };
10437
10438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10440 if (!SWIG_IsOK(res1)) {
10441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10442 }
10443 arg1 = reinterpret_cast< wxCursor * >(argp1);
10444 ecode2 = SWIG_AsVal_int(obj1, &val2);
10445 if (!SWIG_IsOK(ecode2)) {
10446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10447 }
10448 arg2 = static_cast< int >(val2);
10449 {
10450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10451 (arg1)->SetWidth(arg2);
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 resultobj = SWIG_Py_Void();
10456 return resultobj;
10457 fail:
10458 return NULL;
10459 }
10460
10461
10462 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj = 0;
10464 wxCursor *arg1 = (wxCursor *) 0 ;
10465 int arg2 ;
10466 void *argp1 = 0 ;
10467 int res1 = 0 ;
10468 int val2 ;
10469 int ecode2 = 0 ;
10470 PyObject * obj0 = 0 ;
10471 PyObject * obj1 = 0 ;
10472 char * kwnames[] = {
10473 (char *) "self",(char *) "h", NULL
10474 };
10475
10476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10478 if (!SWIG_IsOK(res1)) {
10479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10480 }
10481 arg1 = reinterpret_cast< wxCursor * >(argp1);
10482 ecode2 = SWIG_AsVal_int(obj1, &val2);
10483 if (!SWIG_IsOK(ecode2)) {
10484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10485 }
10486 arg2 = static_cast< int >(val2);
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 (arg1)->SetHeight(arg2);
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 resultobj = SWIG_Py_Void();
10494 return resultobj;
10495 fail:
10496 return NULL;
10497 }
10498
10499
10500 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj = 0;
10502 wxCursor *arg1 = (wxCursor *) 0 ;
10503 int arg2 ;
10504 void *argp1 = 0 ;
10505 int res1 = 0 ;
10506 int val2 ;
10507 int ecode2 = 0 ;
10508 PyObject * obj0 = 0 ;
10509 PyObject * obj1 = 0 ;
10510 char * kwnames[] = {
10511 (char *) "self",(char *) "d", NULL
10512 };
10513
10514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10516 if (!SWIG_IsOK(res1)) {
10517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10518 }
10519 arg1 = reinterpret_cast< wxCursor * >(argp1);
10520 ecode2 = SWIG_AsVal_int(obj1, &val2);
10521 if (!SWIG_IsOK(ecode2)) {
10522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10523 }
10524 arg2 = static_cast< int >(val2);
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 (arg1)->SetDepth(arg2);
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
10531 resultobj = SWIG_Py_Void();
10532 return resultobj;
10533 fail:
10534 return NULL;
10535 }
10536
10537
10538 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10539 PyObject *resultobj = 0;
10540 wxCursor *arg1 = (wxCursor *) 0 ;
10541 wxSize *arg2 = 0 ;
10542 void *argp1 = 0 ;
10543 int res1 = 0 ;
10544 wxSize temp2 ;
10545 PyObject * obj0 = 0 ;
10546 PyObject * obj1 = 0 ;
10547 char * kwnames[] = {
10548 (char *) "self",(char *) "size", NULL
10549 };
10550
10551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10555 }
10556 arg1 = reinterpret_cast< wxCursor * >(argp1);
10557 {
10558 arg2 = &temp2;
10559 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10560 }
10561 {
10562 PyThreadState* __tstate = wxPyBeginAllowThreads();
10563 (arg1)->SetSize((wxSize const &)*arg2);
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 resultobj = SWIG_Py_Void();
10568 return resultobj;
10569 fail:
10570 return NULL;
10571 }
10572
10573
10574 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10575 PyObject *obj;
10576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10577 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10578 return SWIG_Py_Void();
10579 }
10580
10581 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10582 return SWIG_Python_InitShadowInstance(args);
10583 }
10584
10585 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10586 PyObject *resultobj = 0;
10587 int arg1 = (int) 0 ;
10588 int arg2 = (int) 0 ;
10589 int arg3 = (int) 0 ;
10590 int arg4 = (int) 0 ;
10591 wxRegion *result = 0 ;
10592 int val1 ;
10593 int ecode1 = 0 ;
10594 int val2 ;
10595 int ecode2 = 0 ;
10596 int val3 ;
10597 int ecode3 = 0 ;
10598 int val4 ;
10599 int ecode4 = 0 ;
10600 PyObject * obj0 = 0 ;
10601 PyObject * obj1 = 0 ;
10602 PyObject * obj2 = 0 ;
10603 PyObject * obj3 = 0 ;
10604 char * kwnames[] = {
10605 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10606 };
10607
10608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10609 if (obj0) {
10610 ecode1 = SWIG_AsVal_int(obj0, &val1);
10611 if (!SWIG_IsOK(ecode1)) {
10612 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10613 }
10614 arg1 = static_cast< int >(val1);
10615 }
10616 if (obj1) {
10617 ecode2 = SWIG_AsVal_int(obj1, &val2);
10618 if (!SWIG_IsOK(ecode2)) {
10619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10620 }
10621 arg2 = static_cast< int >(val2);
10622 }
10623 if (obj2) {
10624 ecode3 = SWIG_AsVal_int(obj2, &val3);
10625 if (!SWIG_IsOK(ecode3)) {
10626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10627 }
10628 arg3 = static_cast< int >(val3);
10629 }
10630 if (obj3) {
10631 ecode4 = SWIG_AsVal_int(obj3, &val4);
10632 if (!SWIG_IsOK(ecode4)) {
10633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10634 }
10635 arg4 = static_cast< int >(val4);
10636 }
10637 {
10638 if (!wxPyCheckForApp()) SWIG_fail;
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10645 return resultobj;
10646 fail:
10647 return NULL;
10648 }
10649
10650
10651 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj = 0;
10653 wxBitmap *arg1 = 0 ;
10654 wxRegion *result = 0 ;
10655 void *argp1 = 0 ;
10656 int res1 = 0 ;
10657 PyObject * obj0 = 0 ;
10658 char * kwnames[] = {
10659 (char *) "bmp", NULL
10660 };
10661
10662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10663 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10664 if (!SWIG_IsOK(res1)) {
10665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10666 }
10667 if (!argp1) {
10668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10669 }
10670 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10671 {
10672 if (!wxPyCheckForApp()) SWIG_fail;
10673 PyThreadState* __tstate = wxPyBeginAllowThreads();
10674 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10675 wxPyEndAllowThreads(__tstate);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10679 return resultobj;
10680 fail:
10681 return NULL;
10682 }
10683
10684
10685 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10686 PyObject *resultobj = 0;
10687 wxBitmap *arg1 = 0 ;
10688 wxColour *arg2 = 0 ;
10689 int arg3 = (int) 0 ;
10690 wxRegion *result = 0 ;
10691 void *argp1 = 0 ;
10692 int res1 = 0 ;
10693 wxColour temp2 ;
10694 int val3 ;
10695 int ecode3 = 0 ;
10696 PyObject * obj0 = 0 ;
10697 PyObject * obj1 = 0 ;
10698 PyObject * obj2 = 0 ;
10699 char * kwnames[] = {
10700 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10701 };
10702
10703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10704 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10705 if (!SWIG_IsOK(res1)) {
10706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10707 }
10708 if (!argp1) {
10709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10710 }
10711 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10712 {
10713 arg2 = &temp2;
10714 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10715 }
10716 if (obj2) {
10717 ecode3 = SWIG_AsVal_int(obj2, &val3);
10718 if (!SWIG_IsOK(ecode3)) {
10719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10720 }
10721 arg3 = static_cast< int >(val3);
10722 }
10723 {
10724 if (!wxPyCheckForApp()) SWIG_fail;
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10727 wxPyEndAllowThreads(__tstate);
10728 if (PyErr_Occurred()) SWIG_fail;
10729 }
10730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10731 return resultobj;
10732 fail:
10733 return NULL;
10734 }
10735
10736
10737 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10738 PyObject *resultobj = 0;
10739 int arg1 ;
10740 wxPoint *arg2 = (wxPoint *) 0 ;
10741 int arg3 = (int) wxWINDING_RULE ;
10742 wxRegion *result = 0 ;
10743 int val3 ;
10744 int ecode3 = 0 ;
10745 PyObject * obj0 = 0 ;
10746 PyObject * obj1 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "points",(char *) "fillStyle", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10752 {
10753 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10754 if (arg2 == NULL) SWIG_fail;
10755 }
10756 if (obj1) {
10757 ecode3 = SWIG_AsVal_int(obj1, &val3);
10758 if (!SWIG_IsOK(ecode3)) {
10759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10760 }
10761 arg3 = static_cast< int >(val3);
10762 }
10763 {
10764 if (!wxPyCheckForApp()) SWIG_fail;
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10771 {
10772 if (arg2) delete [] arg2;
10773 }
10774 return resultobj;
10775 fail:
10776 {
10777 if (arg2) delete [] arg2;
10778 }
10779 return NULL;
10780 }
10781
10782
10783 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10784 PyObject *resultobj = 0;
10785 wxRegion *arg1 = (wxRegion *) 0 ;
10786 void *argp1 = 0 ;
10787 int res1 = 0 ;
10788 PyObject *swig_obj[1] ;
10789
10790 if (!args) SWIG_fail;
10791 swig_obj[0] = args;
10792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10793 if (!SWIG_IsOK(res1)) {
10794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10795 }
10796 arg1 = reinterpret_cast< wxRegion * >(argp1);
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 delete arg1;
10800
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 resultobj = SWIG_Py_Void();
10805 return resultobj;
10806 fail:
10807 return NULL;
10808 }
10809
10810
10811 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10812 PyObject *resultobj = 0;
10813 wxRegion *arg1 = (wxRegion *) 0 ;
10814 void *argp1 = 0 ;
10815 int res1 = 0 ;
10816 PyObject *swig_obj[1] ;
10817
10818 if (!args) SWIG_fail;
10819 swig_obj[0] = args;
10820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10823 }
10824 arg1 = reinterpret_cast< wxRegion * >(argp1);
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
10827 (arg1)->Clear();
10828 wxPyEndAllowThreads(__tstate);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 resultobj = SWIG_Py_Void();
10832 return resultobj;
10833 fail:
10834 return NULL;
10835 }
10836
10837
10838 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10839 PyObject *resultobj = 0;
10840 wxRegion *arg1 = (wxRegion *) 0 ;
10841 int arg2 ;
10842 int arg3 ;
10843 bool result;
10844 void *argp1 = 0 ;
10845 int res1 = 0 ;
10846 int val2 ;
10847 int ecode2 = 0 ;
10848 int val3 ;
10849 int ecode3 = 0 ;
10850 PyObject * obj0 = 0 ;
10851 PyObject * obj1 = 0 ;
10852 PyObject * obj2 = 0 ;
10853 char * kwnames[] = {
10854 (char *) "self",(char *) "x",(char *) "y", NULL
10855 };
10856
10857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10859 if (!SWIG_IsOK(res1)) {
10860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10861 }
10862 arg1 = reinterpret_cast< wxRegion * >(argp1);
10863 ecode2 = SWIG_AsVal_int(obj1, &val2);
10864 if (!SWIG_IsOK(ecode2)) {
10865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10866 }
10867 arg2 = static_cast< int >(val2);
10868 ecode3 = SWIG_AsVal_int(obj2, &val3);
10869 if (!SWIG_IsOK(ecode3)) {
10870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10871 }
10872 arg3 = static_cast< int >(val3);
10873 {
10874 PyThreadState* __tstate = wxPyBeginAllowThreads();
10875 result = (bool)(arg1)->Offset(arg2,arg3);
10876 wxPyEndAllowThreads(__tstate);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 {
10880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10881 }
10882 return resultobj;
10883 fail:
10884 return NULL;
10885 }
10886
10887
10888 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10889 PyObject *resultobj = 0;
10890 wxRegion *arg1 = (wxRegion *) 0 ;
10891 int arg2 ;
10892 int arg3 ;
10893 wxRegionContain result;
10894 void *argp1 = 0 ;
10895 int res1 = 0 ;
10896 int val2 ;
10897 int ecode2 = 0 ;
10898 int val3 ;
10899 int ecode3 = 0 ;
10900 PyObject * obj0 = 0 ;
10901 PyObject * obj1 = 0 ;
10902 PyObject * obj2 = 0 ;
10903 char * kwnames[] = {
10904 (char *) "self",(char *) "x",(char *) "y", NULL
10905 };
10906
10907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10909 if (!SWIG_IsOK(res1)) {
10910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10911 }
10912 arg1 = reinterpret_cast< wxRegion * >(argp1);
10913 ecode2 = SWIG_AsVal_int(obj1, &val2);
10914 if (!SWIG_IsOK(ecode2)) {
10915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10916 }
10917 arg2 = static_cast< int >(val2);
10918 ecode3 = SWIG_AsVal_int(obj2, &val3);
10919 if (!SWIG_IsOK(ecode3)) {
10920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10921 }
10922 arg3 = static_cast< int >(val3);
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10926 wxPyEndAllowThreads(__tstate);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 resultobj = SWIG_From_int(static_cast< int >(result));
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj = 0;
10938 wxRegion *arg1 = (wxRegion *) 0 ;
10939 wxPoint *arg2 = 0 ;
10940 wxRegionContain result;
10941 void *argp1 = 0 ;
10942 int res1 = 0 ;
10943 wxPoint temp2 ;
10944 PyObject * obj0 = 0 ;
10945 PyObject * obj1 = 0 ;
10946 char * kwnames[] = {
10947 (char *) "self",(char *) "pt", NULL
10948 };
10949
10950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10952 if (!SWIG_IsOK(res1)) {
10953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10954 }
10955 arg1 = reinterpret_cast< wxRegion * >(argp1);
10956 {
10957 arg2 = &temp2;
10958 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10959 }
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 resultobj = SWIG_From_int(static_cast< int >(result));
10967 return resultobj;
10968 fail:
10969 return NULL;
10970 }
10971
10972
10973 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10974 PyObject *resultobj = 0;
10975 wxRegion *arg1 = (wxRegion *) 0 ;
10976 wxRect *arg2 = 0 ;
10977 wxRegionContain result;
10978 void *argp1 = 0 ;
10979 int res1 = 0 ;
10980 wxRect temp2 ;
10981 PyObject * obj0 = 0 ;
10982 PyObject * obj1 = 0 ;
10983 char * kwnames[] = {
10984 (char *) "self",(char *) "rect", NULL
10985 };
10986
10987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10989 if (!SWIG_IsOK(res1)) {
10990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10991 }
10992 arg1 = reinterpret_cast< wxRegion * >(argp1);
10993 {
10994 arg2 = &temp2;
10995 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10996 }
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 resultobj = SWIG_From_int(static_cast< int >(result));
11004 return resultobj;
11005 fail:
11006 return NULL;
11007 }
11008
11009
11010 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj = 0;
11012 wxRegion *arg1 = (wxRegion *) 0 ;
11013 int arg2 ;
11014 int arg3 ;
11015 int arg4 ;
11016 int arg5 ;
11017 wxRegionContain result;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 int val2 ;
11021 int ecode2 = 0 ;
11022 int val3 ;
11023 int ecode3 = 0 ;
11024 int val4 ;
11025 int ecode4 = 0 ;
11026 int val5 ;
11027 int ecode5 = 0 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 PyObject * obj2 = 0 ;
11031 PyObject * obj3 = 0 ;
11032 PyObject * obj4 = 0 ;
11033 char * kwnames[] = {
11034 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11035 };
11036
11037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11039 if (!SWIG_IsOK(res1)) {
11040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11041 }
11042 arg1 = reinterpret_cast< wxRegion * >(argp1);
11043 ecode2 = SWIG_AsVal_int(obj1, &val2);
11044 if (!SWIG_IsOK(ecode2)) {
11045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11046 }
11047 arg2 = static_cast< int >(val2);
11048 ecode3 = SWIG_AsVal_int(obj2, &val3);
11049 if (!SWIG_IsOK(ecode3)) {
11050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11051 }
11052 arg3 = static_cast< int >(val3);
11053 ecode4 = SWIG_AsVal_int(obj3, &val4);
11054 if (!SWIG_IsOK(ecode4)) {
11055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11056 }
11057 arg4 = static_cast< int >(val4);
11058 ecode5 = SWIG_AsVal_int(obj4, &val5);
11059 if (!SWIG_IsOK(ecode5)) {
11060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11061 }
11062 arg5 = static_cast< int >(val5);
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
11065 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 resultobj = SWIG_From_int(static_cast< int >(result));
11070 return resultobj;
11071 fail:
11072 return NULL;
11073 }
11074
11075
11076 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11077 PyObject *resultobj = 0;
11078 wxRegion *arg1 = (wxRegion *) 0 ;
11079 wxRect result;
11080 void *argp1 = 0 ;
11081 int res1 = 0 ;
11082 PyObject *swig_obj[1] ;
11083
11084 if (!args) SWIG_fail;
11085 swig_obj[0] = args;
11086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11089 }
11090 arg1 = reinterpret_cast< wxRegion * >(argp1);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (arg1)->GetBox();
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11098 return resultobj;
11099 fail:
11100 return NULL;
11101 }
11102
11103
11104 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11105 PyObject *resultobj = 0;
11106 wxRegion *arg1 = (wxRegion *) 0 ;
11107 int arg2 ;
11108 int arg3 ;
11109 int arg4 ;
11110 int arg5 ;
11111 bool result;
11112 void *argp1 = 0 ;
11113 int res1 = 0 ;
11114 int val2 ;
11115 int ecode2 = 0 ;
11116 int val3 ;
11117 int ecode3 = 0 ;
11118 int val4 ;
11119 int ecode4 = 0 ;
11120 int val5 ;
11121 int ecode5 = 0 ;
11122 PyObject * obj0 = 0 ;
11123 PyObject * obj1 = 0 ;
11124 PyObject * obj2 = 0 ;
11125 PyObject * obj3 = 0 ;
11126 PyObject * obj4 = 0 ;
11127 char * kwnames[] = {
11128 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11129 };
11130
11131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11133 if (!SWIG_IsOK(res1)) {
11134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11135 }
11136 arg1 = reinterpret_cast< wxRegion * >(argp1);
11137 ecode2 = SWIG_AsVal_int(obj1, &val2);
11138 if (!SWIG_IsOK(ecode2)) {
11139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11140 }
11141 arg2 = static_cast< int >(val2);
11142 ecode3 = SWIG_AsVal_int(obj2, &val3);
11143 if (!SWIG_IsOK(ecode3)) {
11144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11145 }
11146 arg3 = static_cast< int >(val3);
11147 ecode4 = SWIG_AsVal_int(obj3, &val4);
11148 if (!SWIG_IsOK(ecode4)) {
11149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11150 }
11151 arg4 = static_cast< int >(val4);
11152 ecode5 = SWIG_AsVal_int(obj4, &val5);
11153 if (!SWIG_IsOK(ecode5)) {
11154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11155 }
11156 arg5 = static_cast< int >(val5);
11157 {
11158 PyThreadState* __tstate = wxPyBeginAllowThreads();
11159 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 {
11164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11165 }
11166 return resultobj;
11167 fail:
11168 return NULL;
11169 }
11170
11171
11172 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11173 PyObject *resultobj = 0;
11174 wxRegion *arg1 = (wxRegion *) 0 ;
11175 wxRect *arg2 = 0 ;
11176 bool result;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 wxRect temp2 ;
11180 PyObject * obj0 = 0 ;
11181 PyObject * obj1 = 0 ;
11182 char * kwnames[] = {
11183 (char *) "self",(char *) "rect", NULL
11184 };
11185
11186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11188 if (!SWIG_IsOK(res1)) {
11189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11190 }
11191 arg1 = reinterpret_cast< wxRegion * >(argp1);
11192 {
11193 arg2 = &temp2;
11194 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11195 }
11196 {
11197 PyThreadState* __tstate = wxPyBeginAllowThreads();
11198 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11199 wxPyEndAllowThreads(__tstate);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 {
11203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11204 }
11205 return resultobj;
11206 fail:
11207 return NULL;
11208 }
11209
11210
11211 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11212 PyObject *resultobj = 0;
11213 wxRegion *arg1 = (wxRegion *) 0 ;
11214 wxRegion *arg2 = 0 ;
11215 bool result;
11216 void *argp1 = 0 ;
11217 int res1 = 0 ;
11218 void *argp2 = 0 ;
11219 int res2 = 0 ;
11220 PyObject * obj0 = 0 ;
11221 PyObject * obj1 = 0 ;
11222 char * kwnames[] = {
11223 (char *) "self",(char *) "region", NULL
11224 };
11225
11226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11228 if (!SWIG_IsOK(res1)) {
11229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11230 }
11231 arg1 = reinterpret_cast< wxRegion * >(argp1);
11232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11233 if (!SWIG_IsOK(res2)) {
11234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11235 }
11236 if (!argp2) {
11237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11238 }
11239 arg2 = reinterpret_cast< wxRegion * >(argp2);
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
11242 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11243 wxPyEndAllowThreads(__tstate);
11244 if (PyErr_Occurred()) SWIG_fail;
11245 }
11246 {
11247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11248 }
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11256 PyObject *resultobj = 0;
11257 wxRegion *arg1 = (wxRegion *) 0 ;
11258 bool result;
11259 void *argp1 = 0 ;
11260 int res1 = 0 ;
11261 PyObject *swig_obj[1] ;
11262
11263 if (!args) SWIG_fail;
11264 swig_obj[0] = args;
11265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11266 if (!SWIG_IsOK(res1)) {
11267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11268 }
11269 arg1 = reinterpret_cast< wxRegion * >(argp1);
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 result = (bool)(arg1)->IsEmpty();
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 }
11276 {
11277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11278 }
11279 return resultobj;
11280 fail:
11281 return NULL;
11282 }
11283
11284
11285 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11286 PyObject *resultobj = 0;
11287 wxRegion *arg1 = (wxRegion *) 0 ;
11288 wxRegion *arg2 = 0 ;
11289 bool result;
11290 void *argp1 = 0 ;
11291 int res1 = 0 ;
11292 void *argp2 = 0 ;
11293 int res2 = 0 ;
11294 PyObject * obj0 = 0 ;
11295 PyObject * obj1 = 0 ;
11296 char * kwnames[] = {
11297 (char *) "self",(char *) "region", NULL
11298 };
11299
11300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11302 if (!SWIG_IsOK(res1)) {
11303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11304 }
11305 arg1 = reinterpret_cast< wxRegion * >(argp1);
11306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11307 if (!SWIG_IsOK(res2)) {
11308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11309 }
11310 if (!argp2) {
11311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11312 }
11313 arg2 = reinterpret_cast< wxRegion * >(argp2);
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11317 wxPyEndAllowThreads(__tstate);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 {
11321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11322 }
11323 return resultobj;
11324 fail:
11325 return NULL;
11326 }
11327
11328
11329 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11330 PyObject *resultobj = 0;
11331 wxRegion *arg1 = (wxRegion *) 0 ;
11332 int arg2 ;
11333 int arg3 ;
11334 int arg4 ;
11335 int arg5 ;
11336 bool result;
11337 void *argp1 = 0 ;
11338 int res1 = 0 ;
11339 int val2 ;
11340 int ecode2 = 0 ;
11341 int val3 ;
11342 int ecode3 = 0 ;
11343 int val4 ;
11344 int ecode4 = 0 ;
11345 int val5 ;
11346 int ecode5 = 0 ;
11347 PyObject * obj0 = 0 ;
11348 PyObject * obj1 = 0 ;
11349 PyObject * obj2 = 0 ;
11350 PyObject * obj3 = 0 ;
11351 PyObject * obj4 = 0 ;
11352 char * kwnames[] = {
11353 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11354 };
11355
11356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11360 }
11361 arg1 = reinterpret_cast< wxRegion * >(argp1);
11362 ecode2 = SWIG_AsVal_int(obj1, &val2);
11363 if (!SWIG_IsOK(ecode2)) {
11364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11365 }
11366 arg2 = static_cast< int >(val2);
11367 ecode3 = SWIG_AsVal_int(obj2, &val3);
11368 if (!SWIG_IsOK(ecode3)) {
11369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11370 }
11371 arg3 = static_cast< int >(val3);
11372 ecode4 = SWIG_AsVal_int(obj3, &val4);
11373 if (!SWIG_IsOK(ecode4)) {
11374 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11375 }
11376 arg4 = static_cast< int >(val4);
11377 ecode5 = SWIG_AsVal_int(obj4, &val5);
11378 if (!SWIG_IsOK(ecode5)) {
11379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11380 }
11381 arg5 = static_cast< int >(val5);
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11385 wxPyEndAllowThreads(__tstate);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 }
11388 {
11389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11390 }
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11398 PyObject *resultobj = 0;
11399 wxRegion *arg1 = (wxRegion *) 0 ;
11400 wxRect *arg2 = 0 ;
11401 bool result;
11402 void *argp1 = 0 ;
11403 int res1 = 0 ;
11404 wxRect temp2 ;
11405 PyObject * obj0 = 0 ;
11406 PyObject * obj1 = 0 ;
11407 char * kwnames[] = {
11408 (char *) "self",(char *) "rect", NULL
11409 };
11410
11411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11413 if (!SWIG_IsOK(res1)) {
11414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11415 }
11416 arg1 = reinterpret_cast< wxRegion * >(argp1);
11417 {
11418 arg2 = &temp2;
11419 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11420 }
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 {
11428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11429 }
11430 return resultobj;
11431 fail:
11432 return NULL;
11433 }
11434
11435
11436 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11437 PyObject *resultobj = 0;
11438 wxRegion *arg1 = (wxRegion *) 0 ;
11439 wxRegion *arg2 = 0 ;
11440 bool result;
11441 void *argp1 = 0 ;
11442 int res1 = 0 ;
11443 void *argp2 = 0 ;
11444 int res2 = 0 ;
11445 PyObject * obj0 = 0 ;
11446 PyObject * obj1 = 0 ;
11447 char * kwnames[] = {
11448 (char *) "self",(char *) "region", NULL
11449 };
11450
11451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11453 if (!SWIG_IsOK(res1)) {
11454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11455 }
11456 arg1 = reinterpret_cast< wxRegion * >(argp1);
11457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11458 if (!SWIG_IsOK(res2)) {
11459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11460 }
11461 if (!argp2) {
11462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11463 }
11464 arg2 = reinterpret_cast< wxRegion * >(argp2);
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 {
11472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11473 }
11474 return resultobj;
11475 fail:
11476 return NULL;
11477 }
11478
11479
11480 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11481 PyObject *resultobj = 0;
11482 wxRegion *arg1 = (wxRegion *) 0 ;
11483 int arg2 ;
11484 int arg3 ;
11485 int arg4 ;
11486 int arg5 ;
11487 bool result;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 int val2 ;
11491 int ecode2 = 0 ;
11492 int val3 ;
11493 int ecode3 = 0 ;
11494 int val4 ;
11495 int ecode4 = 0 ;
11496 int val5 ;
11497 int ecode5 = 0 ;
11498 PyObject * obj0 = 0 ;
11499 PyObject * obj1 = 0 ;
11500 PyObject * obj2 = 0 ;
11501 PyObject * obj3 = 0 ;
11502 PyObject * obj4 = 0 ;
11503 char * kwnames[] = {
11504 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11505 };
11506
11507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11511 }
11512 arg1 = reinterpret_cast< wxRegion * >(argp1);
11513 ecode2 = SWIG_AsVal_int(obj1, &val2);
11514 if (!SWIG_IsOK(ecode2)) {
11515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11516 }
11517 arg2 = static_cast< int >(val2);
11518 ecode3 = SWIG_AsVal_int(obj2, &val3);
11519 if (!SWIG_IsOK(ecode3)) {
11520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11521 }
11522 arg3 = static_cast< int >(val3);
11523 ecode4 = SWIG_AsVal_int(obj3, &val4);
11524 if (!SWIG_IsOK(ecode4)) {
11525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11526 }
11527 arg4 = static_cast< int >(val4);
11528 ecode5 = SWIG_AsVal_int(obj4, &val5);
11529 if (!SWIG_IsOK(ecode5)) {
11530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11531 }
11532 arg5 = static_cast< int >(val5);
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 {
11540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11541 }
11542 return resultobj;
11543 fail:
11544 return NULL;
11545 }
11546
11547
11548 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj = 0;
11550 wxRegion *arg1 = (wxRegion *) 0 ;
11551 wxRect *arg2 = 0 ;
11552 bool result;
11553 void *argp1 = 0 ;
11554 int res1 = 0 ;
11555 wxRect temp2 ;
11556 PyObject * obj0 = 0 ;
11557 PyObject * obj1 = 0 ;
11558 char * kwnames[] = {
11559 (char *) "self",(char *) "rect", NULL
11560 };
11561
11562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11564 if (!SWIG_IsOK(res1)) {
11565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11566 }
11567 arg1 = reinterpret_cast< wxRegion * >(argp1);
11568 {
11569 arg2 = &temp2;
11570 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11571 }
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 {
11579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11580 }
11581 return resultobj;
11582 fail:
11583 return NULL;
11584 }
11585
11586
11587 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11588 PyObject *resultobj = 0;
11589 wxRegion *arg1 = (wxRegion *) 0 ;
11590 wxRegion *arg2 = 0 ;
11591 bool result;
11592 void *argp1 = 0 ;
11593 int res1 = 0 ;
11594 void *argp2 = 0 ;
11595 int res2 = 0 ;
11596 PyObject * obj0 = 0 ;
11597 PyObject * obj1 = 0 ;
11598 char * kwnames[] = {
11599 (char *) "self",(char *) "region", NULL
11600 };
11601
11602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11604 if (!SWIG_IsOK(res1)) {
11605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11606 }
11607 arg1 = reinterpret_cast< wxRegion * >(argp1);
11608 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11609 if (!SWIG_IsOK(res2)) {
11610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11611 }
11612 if (!argp2) {
11613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11614 }
11615 arg2 = reinterpret_cast< wxRegion * >(argp2);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 {
11623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11624 }
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj = 0;
11633 wxRegion *arg1 = (wxRegion *) 0 ;
11634 int arg2 ;
11635 int arg3 ;
11636 int arg4 ;
11637 int arg5 ;
11638 bool result;
11639 void *argp1 = 0 ;
11640 int res1 = 0 ;
11641 int val2 ;
11642 int ecode2 = 0 ;
11643 int val3 ;
11644 int ecode3 = 0 ;
11645 int val4 ;
11646 int ecode4 = 0 ;
11647 int val5 ;
11648 int ecode5 = 0 ;
11649 PyObject * obj0 = 0 ;
11650 PyObject * obj1 = 0 ;
11651 PyObject * obj2 = 0 ;
11652 PyObject * obj3 = 0 ;
11653 PyObject * obj4 = 0 ;
11654 char * kwnames[] = {
11655 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11656 };
11657
11658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11660 if (!SWIG_IsOK(res1)) {
11661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11662 }
11663 arg1 = reinterpret_cast< wxRegion * >(argp1);
11664 ecode2 = SWIG_AsVal_int(obj1, &val2);
11665 if (!SWIG_IsOK(ecode2)) {
11666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11667 }
11668 arg2 = static_cast< int >(val2);
11669 ecode3 = SWIG_AsVal_int(obj2, &val3);
11670 if (!SWIG_IsOK(ecode3)) {
11671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11672 }
11673 arg3 = static_cast< int >(val3);
11674 ecode4 = SWIG_AsVal_int(obj3, &val4);
11675 if (!SWIG_IsOK(ecode4)) {
11676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11677 }
11678 arg4 = static_cast< int >(val4);
11679 ecode5 = SWIG_AsVal_int(obj4, &val5);
11680 if (!SWIG_IsOK(ecode5)) {
11681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11682 }
11683 arg5 = static_cast< int >(val5);
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11687 wxPyEndAllowThreads(__tstate);
11688 if (PyErr_Occurred()) SWIG_fail;
11689 }
11690 {
11691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11692 }
11693 return resultobj;
11694 fail:
11695 return NULL;
11696 }
11697
11698
11699 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = 0;
11701 wxRegion *arg1 = (wxRegion *) 0 ;
11702 wxRect *arg2 = 0 ;
11703 bool result;
11704 void *argp1 = 0 ;
11705 int res1 = 0 ;
11706 wxRect temp2 ;
11707 PyObject * obj0 = 0 ;
11708 PyObject * obj1 = 0 ;
11709 char * kwnames[] = {
11710 (char *) "self",(char *) "rect", NULL
11711 };
11712
11713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11715 if (!SWIG_IsOK(res1)) {
11716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11717 }
11718 arg1 = reinterpret_cast< wxRegion * >(argp1);
11719 {
11720 arg2 = &temp2;
11721 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11722 }
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 {
11730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11731 }
11732 return resultobj;
11733 fail:
11734 return NULL;
11735 }
11736
11737
11738 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11739 PyObject *resultobj = 0;
11740 wxRegion *arg1 = (wxRegion *) 0 ;
11741 wxRegion *arg2 = 0 ;
11742 bool result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 void *argp2 = 0 ;
11746 int res2 = 0 ;
11747 PyObject * obj0 = 0 ;
11748 PyObject * obj1 = 0 ;
11749 char * kwnames[] = {
11750 (char *) "self",(char *) "region", NULL
11751 };
11752
11753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11755 if (!SWIG_IsOK(res1)) {
11756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11757 }
11758 arg1 = reinterpret_cast< wxRegion * >(argp1);
11759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11760 if (!SWIG_IsOK(res2)) {
11761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11762 }
11763 if (!argp2) {
11764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11765 }
11766 arg2 = reinterpret_cast< wxRegion * >(argp2);
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 {
11774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11775 }
11776 return resultobj;
11777 fail:
11778 return NULL;
11779 }
11780
11781
11782 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11783 PyObject *resultobj = 0;
11784 wxRegion *arg1 = (wxRegion *) 0 ;
11785 SwigValueWrapper<wxBitmap > result;
11786 void *argp1 = 0 ;
11787 int res1 = 0 ;
11788 PyObject *swig_obj[1] ;
11789
11790 if (!args) SWIG_fail;
11791 swig_obj[0] = args;
11792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11793 if (!SWIG_IsOK(res1)) {
11794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11795 }
11796 arg1 = reinterpret_cast< wxRegion * >(argp1);
11797 {
11798 PyThreadState* __tstate = wxPyBeginAllowThreads();
11799 result = (arg1)->ConvertToBitmap();
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11804 return resultobj;
11805 fail:
11806 return NULL;
11807 }
11808
11809
11810 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11811 PyObject *resultobj = 0;
11812 wxRegion *arg1 = (wxRegion *) 0 ;
11813 wxBitmap *arg2 = 0 ;
11814 bool result;
11815 void *argp1 = 0 ;
11816 int res1 = 0 ;
11817 void *argp2 = 0 ;
11818 int res2 = 0 ;
11819 PyObject * obj0 = 0 ;
11820 PyObject * obj1 = 0 ;
11821 char * kwnames[] = {
11822 (char *) "self",(char *) "bmp", NULL
11823 };
11824
11825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11827 if (!SWIG_IsOK(res1)) {
11828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11829 }
11830 arg1 = reinterpret_cast< wxRegion * >(argp1);
11831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11832 if (!SWIG_IsOK(res2)) {
11833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11834 }
11835 if (!argp2) {
11836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11837 }
11838 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 {
11846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11847 }
11848 return resultobj;
11849 fail:
11850 return NULL;
11851 }
11852
11853
11854 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj = 0;
11856 wxRegion *arg1 = (wxRegion *) 0 ;
11857 wxBitmap *arg2 = 0 ;
11858 wxColour *arg3 = 0 ;
11859 int arg4 = (int) 0 ;
11860 bool result;
11861 void *argp1 = 0 ;
11862 int res1 = 0 ;
11863 void *argp2 = 0 ;
11864 int res2 = 0 ;
11865 wxColour temp3 ;
11866 int val4 ;
11867 int ecode4 = 0 ;
11868 PyObject * obj0 = 0 ;
11869 PyObject * obj1 = 0 ;
11870 PyObject * obj2 = 0 ;
11871 PyObject * obj3 = 0 ;
11872 char * kwnames[] = {
11873 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11874 };
11875
11876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11880 }
11881 arg1 = reinterpret_cast< wxRegion * >(argp1);
11882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11883 if (!SWIG_IsOK(res2)) {
11884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11885 }
11886 if (!argp2) {
11887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11888 }
11889 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11890 {
11891 arg3 = &temp3;
11892 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11893 }
11894 if (obj3) {
11895 ecode4 = SWIG_AsVal_int(obj3, &val4);
11896 if (!SWIG_IsOK(ecode4)) {
11897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11898 }
11899 arg4 = static_cast< int >(val4);
11900 }
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11904 wxPyEndAllowThreads(__tstate);
11905 if (PyErr_Occurred()) SWIG_fail;
11906 }
11907 {
11908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11909 }
11910 return resultobj;
11911 fail:
11912 return NULL;
11913 }
11914
11915
11916 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11917 PyObject *obj;
11918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11919 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11920 return SWIG_Py_Void();
11921 }
11922
11923 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11924 return SWIG_Python_InitShadowInstance(args);
11925 }
11926
11927 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11928 PyObject *resultobj = 0;
11929 wxRegion *arg1 = 0 ;
11930 wxRegionIterator *result = 0 ;
11931 void *argp1 = 0 ;
11932 int res1 = 0 ;
11933 PyObject * obj0 = 0 ;
11934 char * kwnames[] = {
11935 (char *) "region", NULL
11936 };
11937
11938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11940 if (!SWIG_IsOK(res1)) {
11941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11942 }
11943 if (!argp1) {
11944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11945 }
11946 arg1 = reinterpret_cast< wxRegion * >(argp1);
11947 {
11948 if (!wxPyCheckForApp()) SWIG_fail;
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11964 void *argp1 = 0 ;
11965 int res1 = 0 ;
11966 PyObject *swig_obj[1] ;
11967
11968 if (!args) SWIG_fail;
11969 swig_obj[0] = args;
11970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11973 }
11974 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 delete arg1;
11978
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 resultobj = SWIG_Py_Void();
11983 return resultobj;
11984 fail:
11985 return NULL;
11986 }
11987
11988
11989 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11990 PyObject *resultobj = 0;
11991 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11992 int result;
11993 void *argp1 = 0 ;
11994 int res1 = 0 ;
11995 PyObject *swig_obj[1] ;
11996
11997 if (!args) SWIG_fail;
11998 swig_obj[0] = args;
11999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12000 if (!SWIG_IsOK(res1)) {
12001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12002 }
12003 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12004 {
12005 PyThreadState* __tstate = wxPyBeginAllowThreads();
12006 result = (int)(arg1)->GetX();
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 resultobj = SWIG_From_int(static_cast< int >(result));
12011 return resultobj;
12012 fail:
12013 return NULL;
12014 }
12015
12016
12017 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12018 PyObject *resultobj = 0;
12019 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12020 int result;
12021 void *argp1 = 0 ;
12022 int res1 = 0 ;
12023 PyObject *swig_obj[1] ;
12024
12025 if (!args) SWIG_fail;
12026 swig_obj[0] = args;
12027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12028 if (!SWIG_IsOK(res1)) {
12029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12030 }
12031 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12032 {
12033 PyThreadState* __tstate = wxPyBeginAllowThreads();
12034 result = (int)(arg1)->GetY();
12035 wxPyEndAllowThreads(__tstate);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 }
12038 resultobj = SWIG_From_int(static_cast< int >(result));
12039 return resultobj;
12040 fail:
12041 return NULL;
12042 }
12043
12044
12045 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12046 PyObject *resultobj = 0;
12047 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12048 int result;
12049 void *argp1 = 0 ;
12050 int res1 = 0 ;
12051 PyObject *swig_obj[1] ;
12052
12053 if (!args) SWIG_fail;
12054 swig_obj[0] = args;
12055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12056 if (!SWIG_IsOK(res1)) {
12057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12058 }
12059 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 result = (int)(arg1)->GetW();
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 resultobj = SWIG_From_int(static_cast< int >(result));
12067 return resultobj;
12068 fail:
12069 return NULL;
12070 }
12071
12072
12073 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12074 PyObject *resultobj = 0;
12075 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12076 int result;
12077 void *argp1 = 0 ;
12078 int res1 = 0 ;
12079 PyObject *swig_obj[1] ;
12080
12081 if (!args) SWIG_fail;
12082 swig_obj[0] = args;
12083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12084 if (!SWIG_IsOK(res1)) {
12085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12086 }
12087 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12088 {
12089 PyThreadState* __tstate = wxPyBeginAllowThreads();
12090 result = (int)(arg1)->GetWidth();
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 resultobj = SWIG_From_int(static_cast< int >(result));
12095 return resultobj;
12096 fail:
12097 return NULL;
12098 }
12099
12100
12101 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12102 PyObject *resultobj = 0;
12103 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12104 int result;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12114 }
12115 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = (int)(arg1)->GetH();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = SWIG_From_int(static_cast< int >(result));
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12130 PyObject *resultobj = 0;
12131 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12132 int result;
12133 void *argp1 = 0 ;
12134 int res1 = 0 ;
12135 PyObject *swig_obj[1] ;
12136
12137 if (!args) SWIG_fail;
12138 swig_obj[0] = args;
12139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12140 if (!SWIG_IsOK(res1)) {
12141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12142 }
12143 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 result = (int)(arg1)->GetHeight();
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 resultobj = SWIG_From_int(static_cast< int >(result));
12151 return resultobj;
12152 fail:
12153 return NULL;
12154 }
12155
12156
12157 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12158 PyObject *resultobj = 0;
12159 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12160 wxRect result;
12161 void *argp1 = 0 ;
12162 int res1 = 0 ;
12163 PyObject *swig_obj[1] ;
12164
12165 if (!args) SWIG_fail;
12166 swig_obj[0] = args;
12167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12170 }
12171 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 result = (arg1)->GetRect();
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12179 return resultobj;
12180 fail:
12181 return NULL;
12182 }
12183
12184
12185 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12186 PyObject *resultobj = 0;
12187 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12188 bool result;
12189 void *argp1 = 0 ;
12190 int res1 = 0 ;
12191 PyObject *swig_obj[1] ;
12192
12193 if (!args) SWIG_fail;
12194 swig_obj[0] = args;
12195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12196 if (!SWIG_IsOK(res1)) {
12197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12198 }
12199 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 result = (bool)(arg1)->HaveRects();
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 {
12207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12208 }
12209 return resultobj;
12210 fail:
12211 return NULL;
12212 }
12213
12214
12215 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12216 PyObject *resultobj = 0;
12217 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12218 void *argp1 = 0 ;
12219 int res1 = 0 ;
12220 PyObject *swig_obj[1] ;
12221
12222 if (!args) SWIG_fail;
12223 swig_obj[0] = args;
12224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12225 if (!SWIG_IsOK(res1)) {
12226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12227 }
12228 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 (arg1)->Reset();
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 resultobj = SWIG_Py_Void();
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12243 PyObject *resultobj = 0;
12244 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 PyObject *swig_obj[1] ;
12248
12249 if (!args) SWIG_fail;
12250 swig_obj[0] = args;
12251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12252 if (!SWIG_IsOK(res1)) {
12253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12254 }
12255 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 wxRegionIterator_Next(arg1);
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 resultobj = SWIG_Py_Void();
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12272 bool result;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject *swig_obj[1] ;
12276
12277 if (!args) SWIG_fail;
12278 swig_obj[0] = args;
12279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12282 }
12283 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = (bool)wxRegionIterator___nonzero__(arg1);
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12292 }
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12300 PyObject *obj;
12301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12302 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12303 return SWIG_Py_Void();
12304 }
12305
12306 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 return SWIG_Python_InitShadowInstance(args);
12308 }
12309
12310 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12311 PyObject *resultobj = 0;
12312 wxNativeFontInfo *result = 0 ;
12313
12314 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12322 return resultobj;
12323 fail:
12324 return NULL;
12325 }
12326
12327
12328 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12329 PyObject *resultobj = 0;
12330 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12331 void *argp1 = 0 ;
12332 int res1 = 0 ;
12333 PyObject *swig_obj[1] ;
12334
12335 if (!args) SWIG_fail;
12336 swig_obj[0] = args;
12337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12338 if (!SWIG_IsOK(res1)) {
12339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12340 }
12341 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12342 {
12343 PyThreadState* __tstate = wxPyBeginAllowThreads();
12344 delete arg1;
12345
12346 wxPyEndAllowThreads(__tstate);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 }
12349 resultobj = SWIG_Py_Void();
12350 return resultobj;
12351 fail:
12352 return NULL;
12353 }
12354
12355
12356 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12357 PyObject *resultobj = 0;
12358 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12359 void *argp1 = 0 ;
12360 int res1 = 0 ;
12361 PyObject *swig_obj[1] ;
12362
12363 if (!args) SWIG_fail;
12364 swig_obj[0] = args;
12365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12368 }
12369 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 (arg1)->Init();
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 resultobj = SWIG_Py_Void();
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj = 0;
12385 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12386 wxFont *arg2 = 0 ;
12387 void *argp1 = 0 ;
12388 int res1 = 0 ;
12389 void *argp2 = 0 ;
12390 int res2 = 0 ;
12391 PyObject * obj0 = 0 ;
12392 PyObject * obj1 = 0 ;
12393 char * kwnames[] = {
12394 (char *) "self",(char *) "font", NULL
12395 };
12396
12397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12399 if (!SWIG_IsOK(res1)) {
12400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12401 }
12402 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12403 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12404 if (!SWIG_IsOK(res2)) {
12405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12406 }
12407 if (!argp2) {
12408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12409 }
12410 arg2 = reinterpret_cast< wxFont * >(argp2);
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 (arg1)->InitFromFont((wxFont const &)*arg2);
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 resultobj = SWIG_Py_Void();
12418 return resultobj;
12419 fail:
12420 return NULL;
12421 }
12422
12423
12424 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12425 PyObject *resultobj = 0;
12426 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12427 int result;
12428 void *argp1 = 0 ;
12429 int res1 = 0 ;
12430 PyObject *swig_obj[1] ;
12431
12432 if (!args) SWIG_fail;
12433 swig_obj[0] = args;
12434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12435 if (!SWIG_IsOK(res1)) {
12436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12437 }
12438 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12442 wxPyEndAllowThreads(__tstate);
12443 if (PyErr_Occurred()) SWIG_fail;
12444 }
12445 resultobj = SWIG_From_int(static_cast< int >(result));
12446 return resultobj;
12447 fail:
12448 return NULL;
12449 }
12450
12451
12452 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12453 PyObject *resultobj = 0;
12454 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12455 wxSize result;
12456 void *argp1 = 0 ;
12457 int res1 = 0 ;
12458 PyObject *swig_obj[1] ;
12459
12460 if (!args) SWIG_fail;
12461 swig_obj[0] = args;
12462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12463 if (!SWIG_IsOK(res1)) {
12464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12465 }
12466 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12467 {
12468 PyThreadState* __tstate = wxPyBeginAllowThreads();
12469 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12470 wxPyEndAllowThreads(__tstate);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 }
12473 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12474 return resultobj;
12475 fail:
12476 return NULL;
12477 }
12478
12479
12480 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12481 PyObject *resultobj = 0;
12482 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12483 wxFontStyle result;
12484 void *argp1 = 0 ;
12485 int res1 = 0 ;
12486 PyObject *swig_obj[1] ;
12487
12488 if (!args) SWIG_fail;
12489 swig_obj[0] = args;
12490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12491 if (!SWIG_IsOK(res1)) {
12492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12493 }
12494 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12498 wxPyEndAllowThreads(__tstate);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 }
12501 resultobj = SWIG_From_int(static_cast< int >(result));
12502 return resultobj;
12503 fail:
12504 return NULL;
12505 }
12506
12507
12508 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12509 PyObject *resultobj = 0;
12510 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12511 wxFontWeight result;
12512 void *argp1 = 0 ;
12513 int res1 = 0 ;
12514 PyObject *swig_obj[1] ;
12515
12516 if (!args) SWIG_fail;
12517 swig_obj[0] = args;
12518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12519 if (!SWIG_IsOK(res1)) {
12520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12521 }
12522 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 resultobj = SWIG_From_int(static_cast< int >(result));
12530 return resultobj;
12531 fail:
12532 return NULL;
12533 }
12534
12535
12536 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12537 PyObject *resultobj = 0;
12538 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12539 bool result;
12540 void *argp1 = 0 ;
12541 int res1 = 0 ;
12542 PyObject *swig_obj[1] ;
12543
12544 if (!args) SWIG_fail;
12545 swig_obj[0] = args;
12546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12547 if (!SWIG_IsOK(res1)) {
12548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12549 }
12550 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 {
12558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12559 }
12560 return resultobj;
12561 fail:
12562 return NULL;
12563 }
12564
12565
12566 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12567 PyObject *resultobj = 0;
12568 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12569 wxString result;
12570 void *argp1 = 0 ;
12571 int res1 = 0 ;
12572 PyObject *swig_obj[1] ;
12573
12574 if (!args) SWIG_fail;
12575 swig_obj[0] = args;
12576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12577 if (!SWIG_IsOK(res1)) {
12578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12579 }
12580 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12581 {
12582 PyThreadState* __tstate = wxPyBeginAllowThreads();
12583 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12584 wxPyEndAllowThreads(__tstate);
12585 if (PyErr_Occurred()) SWIG_fail;
12586 }
12587 {
12588 #if wxUSE_UNICODE
12589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12590 #else
12591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12592 #endif
12593 }
12594 return resultobj;
12595 fail:
12596 return NULL;
12597 }
12598
12599
12600 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12601 PyObject *resultobj = 0;
12602 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12603 wxFontFamily result;
12604 void *argp1 = 0 ;
12605 int res1 = 0 ;
12606 PyObject *swig_obj[1] ;
12607
12608 if (!args) SWIG_fail;
12609 swig_obj[0] = args;
12610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12611 if (!SWIG_IsOK(res1)) {
12612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12613 }
12614 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12618 wxPyEndAllowThreads(__tstate);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 resultobj = SWIG_From_int(static_cast< int >(result));
12622 return resultobj;
12623 fail:
12624 return NULL;
12625 }
12626
12627
12628 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12629 PyObject *resultobj = 0;
12630 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12631 wxFontEncoding result;
12632 void *argp1 = 0 ;
12633 int res1 = 0 ;
12634 PyObject *swig_obj[1] ;
12635
12636 if (!args) SWIG_fail;
12637 swig_obj[0] = args;
12638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12639 if (!SWIG_IsOK(res1)) {
12640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12641 }
12642 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12646 wxPyEndAllowThreads(__tstate);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 resultobj = SWIG_From_int(static_cast< int >(result));
12650 return resultobj;
12651 fail:
12652 return NULL;
12653 }
12654
12655
12656 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12657 PyObject *resultobj = 0;
12658 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12659 int arg2 ;
12660 void *argp1 = 0 ;
12661 int res1 = 0 ;
12662 int val2 ;
12663 int ecode2 = 0 ;
12664 PyObject * obj0 = 0 ;
12665 PyObject * obj1 = 0 ;
12666 char * kwnames[] = {
12667 (char *) "self",(char *) "pointsize", NULL
12668 };
12669
12670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12672 if (!SWIG_IsOK(res1)) {
12673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12674 }
12675 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12676 ecode2 = SWIG_AsVal_int(obj1, &val2);
12677 if (!SWIG_IsOK(ecode2)) {
12678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12679 }
12680 arg2 = static_cast< int >(val2);
12681 {
12682 PyThreadState* __tstate = wxPyBeginAllowThreads();
12683 (arg1)->SetPointSize(arg2);
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = SWIG_Py_Void();
12688 return resultobj;
12689 fail:
12690 return NULL;
12691 }
12692
12693
12694 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj = 0;
12696 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12697 wxSize *arg2 = 0 ;
12698 void *argp1 = 0 ;
12699 int res1 = 0 ;
12700 wxSize temp2 ;
12701 PyObject * obj0 = 0 ;
12702 PyObject * obj1 = 0 ;
12703 char * kwnames[] = {
12704 (char *) "self",(char *) "pixelSize", NULL
12705 };
12706
12707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12709 if (!SWIG_IsOK(res1)) {
12710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12711 }
12712 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12713 {
12714 arg2 = &temp2;
12715 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12716 }
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 (arg1)->SetPixelSize((wxSize const &)*arg2);
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 resultobj = SWIG_Py_Void();
12724 return resultobj;
12725 fail:
12726 return NULL;
12727 }
12728
12729
12730 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12731 PyObject *resultobj = 0;
12732 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12733 wxFontStyle arg2 ;
12734 void *argp1 = 0 ;
12735 int res1 = 0 ;
12736 int val2 ;
12737 int ecode2 = 0 ;
12738 PyObject * obj0 = 0 ;
12739 PyObject * obj1 = 0 ;
12740 char * kwnames[] = {
12741 (char *) "self",(char *) "style", NULL
12742 };
12743
12744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12746 if (!SWIG_IsOK(res1)) {
12747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12748 }
12749 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12750 ecode2 = SWIG_AsVal_int(obj1, &val2);
12751 if (!SWIG_IsOK(ecode2)) {
12752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12753 }
12754 arg2 = static_cast< wxFontStyle >(val2);
12755 {
12756 PyThreadState* __tstate = wxPyBeginAllowThreads();
12757 (arg1)->SetStyle(arg2);
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_Py_Void();
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj = 0;
12770 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12771 wxFontWeight arg2 ;
12772 void *argp1 = 0 ;
12773 int res1 = 0 ;
12774 int val2 ;
12775 int ecode2 = 0 ;
12776 PyObject * obj0 = 0 ;
12777 PyObject * obj1 = 0 ;
12778 char * kwnames[] = {
12779 (char *) "self",(char *) "weight", NULL
12780 };
12781
12782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12784 if (!SWIG_IsOK(res1)) {
12785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12786 }
12787 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12788 ecode2 = SWIG_AsVal_int(obj1, &val2);
12789 if (!SWIG_IsOK(ecode2)) {
12790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12791 }
12792 arg2 = static_cast< wxFontWeight >(val2);
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 (arg1)->SetWeight(arg2);
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 resultobj = SWIG_Py_Void();
12800 return resultobj;
12801 fail:
12802 return NULL;
12803 }
12804
12805
12806 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12807 PyObject *resultobj = 0;
12808 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12809 bool arg2 ;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 bool val2 ;
12813 int ecode2 = 0 ;
12814 PyObject * obj0 = 0 ;
12815 PyObject * obj1 = 0 ;
12816 char * kwnames[] = {
12817 (char *) "self",(char *) "underlined", NULL
12818 };
12819
12820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12822 if (!SWIG_IsOK(res1)) {
12823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12824 }
12825 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12826 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12827 if (!SWIG_IsOK(ecode2)) {
12828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12829 }
12830 arg2 = static_cast< bool >(val2);
12831 {
12832 PyThreadState* __tstate = wxPyBeginAllowThreads();
12833 (arg1)->SetUnderlined(arg2);
12834 wxPyEndAllowThreads(__tstate);
12835 if (PyErr_Occurred()) SWIG_fail;
12836 }
12837 resultobj = SWIG_Py_Void();
12838 return resultobj;
12839 fail:
12840 return NULL;
12841 }
12842
12843
12844 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12845 PyObject *resultobj = 0;
12846 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12847 wxString arg2 ;
12848 bool result;
12849 void *argp1 = 0 ;
12850 int res1 = 0 ;
12851 PyObject * obj0 = 0 ;
12852 PyObject * obj1 = 0 ;
12853 char * kwnames[] = {
12854 (char *) "self",(char *) "facename", NULL
12855 };
12856
12857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12859 if (!SWIG_IsOK(res1)) {
12860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12861 }
12862 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12863 {
12864 wxString* sptr = wxString_in_helper(obj1);
12865 if (sptr == NULL) SWIG_fail;
12866 arg2 = *sptr;
12867 delete sptr;
12868 }
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 result = (bool)(arg1)->SetFaceName(arg2);
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 {
12876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12877 }
12878 return resultobj;
12879 fail:
12880 return NULL;
12881 }
12882
12883
12884 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12885 PyObject *resultobj = 0;
12886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12887 wxFontFamily arg2 ;
12888 void *argp1 = 0 ;
12889 int res1 = 0 ;
12890 int val2 ;
12891 int ecode2 = 0 ;
12892 PyObject * obj0 = 0 ;
12893 PyObject * obj1 = 0 ;
12894 char * kwnames[] = {
12895 (char *) "self",(char *) "family", NULL
12896 };
12897
12898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12900 if (!SWIG_IsOK(res1)) {
12901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12902 }
12903 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12904 ecode2 = SWIG_AsVal_int(obj1, &val2);
12905 if (!SWIG_IsOK(ecode2)) {
12906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12907 }
12908 arg2 = static_cast< wxFontFamily >(val2);
12909 {
12910 PyThreadState* __tstate = wxPyBeginAllowThreads();
12911 (arg1)->SetFamily(arg2);
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 resultobj = SWIG_Py_Void();
12916 return resultobj;
12917 fail:
12918 return NULL;
12919 }
12920
12921
12922 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12923 PyObject *resultobj = 0;
12924 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12925 wxFontEncoding arg2 ;
12926 void *argp1 = 0 ;
12927 int res1 = 0 ;
12928 int val2 ;
12929 int ecode2 = 0 ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 char * kwnames[] = {
12933 (char *) "self",(char *) "encoding", NULL
12934 };
12935
12936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12938 if (!SWIG_IsOK(res1)) {
12939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12940 }
12941 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12942 ecode2 = SWIG_AsVal_int(obj1, &val2);
12943 if (!SWIG_IsOK(ecode2)) {
12944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12945 }
12946 arg2 = static_cast< wxFontEncoding >(val2);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 (arg1)->SetEncoding(arg2);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 resultobj = SWIG_Py_Void();
12954 return resultobj;
12955 fail:
12956 return NULL;
12957 }
12958
12959
12960 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12961 PyObject *resultobj = 0;
12962 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12963 wxString *arg2 = 0 ;
12964 bool result;
12965 void *argp1 = 0 ;
12966 int res1 = 0 ;
12967 bool temp2 = false ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 char * kwnames[] = {
12971 (char *) "self",(char *) "s", NULL
12972 };
12973
12974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12976 if (!SWIG_IsOK(res1)) {
12977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12978 }
12979 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12980 {
12981 arg2 = wxString_in_helper(obj1);
12982 if (arg2 == NULL) SWIG_fail;
12983 temp2 = true;
12984 }
12985 {
12986 PyThreadState* __tstate = wxPyBeginAllowThreads();
12987 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 {
12992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12993 }
12994 {
12995 if (temp2)
12996 delete arg2;
12997 }
12998 return resultobj;
12999 fail:
13000 {
13001 if (temp2)
13002 delete arg2;
13003 }
13004 return NULL;
13005 }
13006
13007
13008 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13009 PyObject *resultobj = 0;
13010 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13011 wxString result;
13012 void *argp1 = 0 ;
13013 int res1 = 0 ;
13014 PyObject *swig_obj[1] ;
13015
13016 if (!args) SWIG_fail;
13017 swig_obj[0] = args;
13018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13021 }
13022 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13023 {
13024 PyThreadState* __tstate = wxPyBeginAllowThreads();
13025 result = ((wxNativeFontInfo const *)arg1)->ToString();
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 {
13030 #if wxUSE_UNICODE
13031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13032 #else
13033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13034 #endif
13035 }
13036 return resultobj;
13037 fail:
13038 return NULL;
13039 }
13040
13041
13042 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13043 PyObject *resultobj = 0;
13044 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13045 wxString result;
13046 void *argp1 = 0 ;
13047 int res1 = 0 ;
13048 PyObject *swig_obj[1] ;
13049
13050 if (!args) SWIG_fail;
13051 swig_obj[0] = args;
13052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13053 if (!SWIG_IsOK(res1)) {
13054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13055 }
13056 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = wxNativeFontInfo___str__(arg1);
13060 wxPyEndAllowThreads(__tstate);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 {
13064 #if wxUSE_UNICODE
13065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13066 #else
13067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13068 #endif
13069 }
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj = 0;
13078 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13079 wxString *arg2 = 0 ;
13080 bool result;
13081 void *argp1 = 0 ;
13082 int res1 = 0 ;
13083 bool temp2 = false ;
13084 PyObject * obj0 = 0 ;
13085 PyObject * obj1 = 0 ;
13086 char * kwnames[] = {
13087 (char *) "self",(char *) "s", NULL
13088 };
13089
13090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13092 if (!SWIG_IsOK(res1)) {
13093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13094 }
13095 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13096 {
13097 arg2 = wxString_in_helper(obj1);
13098 if (arg2 == NULL) SWIG_fail;
13099 temp2 = true;
13100 }
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 {
13108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13109 }
13110 {
13111 if (temp2)
13112 delete arg2;
13113 }
13114 return resultobj;
13115 fail:
13116 {
13117 if (temp2)
13118 delete arg2;
13119 }
13120 return NULL;
13121 }
13122
13123
13124 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13125 PyObject *resultobj = 0;
13126 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13127 wxString result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 PyObject *swig_obj[1] ;
13131
13132 if (!args) SWIG_fail;
13133 swig_obj[0] = args;
13134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13135 if (!SWIG_IsOK(res1)) {
13136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13137 }
13138 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 {
13146 #if wxUSE_UNICODE
13147 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13148 #else
13149 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13150 #endif
13151 }
13152 return resultobj;
13153 fail:
13154 return NULL;
13155 }
13156
13157
13158 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13159 PyObject *obj;
13160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13161 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13162 return SWIG_Py_Void();
13163 }
13164
13165 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13166 return SWIG_Python_InitShadowInstance(args);
13167 }
13168
13169 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13170 PyObject *resultobj = 0;
13171 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13172 wxString *arg2 = (wxString *) 0 ;
13173 void *argp1 = 0 ;
13174 int res1 = 0 ;
13175 bool temp2 = false ;
13176 PyObject *swig_obj[2] ;
13177
13178 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13180 if (!SWIG_IsOK(res1)) {
13181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13182 }
13183 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13184 {
13185 arg2 = wxString_in_helper(swig_obj[1]);
13186 if (arg2 == NULL) SWIG_fail;
13187 temp2 = true;
13188 }
13189 if (arg1) (arg1)->facename = *arg2;
13190
13191 resultobj = SWIG_Py_Void();
13192 {
13193 if (temp2)
13194 delete arg2;
13195 }
13196 return resultobj;
13197 fail:
13198 {
13199 if (temp2)
13200 delete arg2;
13201 }
13202 return NULL;
13203 }
13204
13205
13206 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13207 PyObject *resultobj = 0;
13208 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13209 wxString *result = 0 ;
13210 void *argp1 = 0 ;
13211 int res1 = 0 ;
13212 PyObject *swig_obj[1] ;
13213
13214 if (!args) SWIG_fail;
13215 swig_obj[0] = args;
13216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13219 }
13220 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13221 result = (wxString *)& ((arg1)->facename);
13222 {
13223 #if wxUSE_UNICODE
13224 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13225 #else
13226 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13227 #endif
13228 }
13229 return resultobj;
13230 fail:
13231 return NULL;
13232 }
13233
13234
13235 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13236 PyObject *resultobj = 0;
13237 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13238 wxFontEncoding arg2 ;
13239 void *argp1 = 0 ;
13240 int res1 = 0 ;
13241 int val2 ;
13242 int ecode2 = 0 ;
13243 PyObject *swig_obj[2] ;
13244
13245 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13247 if (!SWIG_IsOK(res1)) {
13248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13249 }
13250 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13251 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13252 if (!SWIG_IsOK(ecode2)) {
13253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13254 }
13255 arg2 = static_cast< wxFontEncoding >(val2);
13256 if (arg1) (arg1)->encoding = arg2;
13257
13258 resultobj = SWIG_Py_Void();
13259 return resultobj;
13260 fail:
13261 return NULL;
13262 }
13263
13264
13265 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13266 PyObject *resultobj = 0;
13267 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13268 wxFontEncoding result;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 PyObject *swig_obj[1] ;
13272
13273 if (!args) SWIG_fail;
13274 swig_obj[0] = args;
13275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13276 if (!SWIG_IsOK(res1)) {
13277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13278 }
13279 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13280 result = (wxFontEncoding) ((arg1)->encoding);
13281 resultobj = SWIG_From_int(static_cast< int >(result));
13282 return resultobj;
13283 fail:
13284 return NULL;
13285 }
13286
13287
13288 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13289 PyObject *resultobj = 0;
13290 wxNativeEncodingInfo *result = 0 ;
13291
13292 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13300 return resultobj;
13301 fail:
13302 return NULL;
13303 }
13304
13305
13306 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13307 PyObject *resultobj = 0;
13308 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 PyObject *swig_obj[1] ;
13312
13313 if (!args) SWIG_fail;
13314 swig_obj[0] = args;
13315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13316 if (!SWIG_IsOK(res1)) {
13317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13318 }
13319 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 delete arg1;
13323
13324 wxPyEndAllowThreads(__tstate);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 }
13327 resultobj = SWIG_Py_Void();
13328 return resultobj;
13329 fail:
13330 return NULL;
13331 }
13332
13333
13334 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13335 PyObject *resultobj = 0;
13336 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13337 wxString *arg2 = 0 ;
13338 bool result;
13339 void *argp1 = 0 ;
13340 int res1 = 0 ;
13341 bool temp2 = false ;
13342 PyObject * obj0 = 0 ;
13343 PyObject * obj1 = 0 ;
13344 char * kwnames[] = {
13345 (char *) "self",(char *) "s", NULL
13346 };
13347
13348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13350 if (!SWIG_IsOK(res1)) {
13351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13352 }
13353 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13354 {
13355 arg2 = wxString_in_helper(obj1);
13356 if (arg2 == NULL) SWIG_fail;
13357 temp2 = true;
13358 }
13359 {
13360 PyThreadState* __tstate = wxPyBeginAllowThreads();
13361 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 {
13366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13367 }
13368 {
13369 if (temp2)
13370 delete arg2;
13371 }
13372 return resultobj;
13373 fail:
13374 {
13375 if (temp2)
13376 delete arg2;
13377 }
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13385 wxString result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13395 }
13396 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 {
13404 #if wxUSE_UNICODE
13405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13406 #else
13407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13408 #endif
13409 }
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13417 PyObject *obj;
13418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13419 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13420 return SWIG_Py_Void();
13421 }
13422
13423 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13424 return SWIG_Python_InitShadowInstance(args);
13425 }
13426
13427 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13428 PyObject *resultobj = 0;
13429 wxFontEncoding arg1 ;
13430 wxNativeEncodingInfo *result = 0 ;
13431 int val1 ;
13432 int ecode1 = 0 ;
13433 PyObject * obj0 = 0 ;
13434 char * kwnames[] = {
13435 (char *) "encoding", NULL
13436 };
13437
13438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13439 ecode1 = SWIG_AsVal_int(obj0, &val1);
13440 if (!SWIG_IsOK(ecode1)) {
13441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13442 }
13443 arg1 = static_cast< wxFontEncoding >(val1);
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13451 return resultobj;
13452 fail:
13453 return NULL;
13454 }
13455
13456
13457 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13458 PyObject *resultobj = 0;
13459 wxNativeEncodingInfo *arg1 = 0 ;
13460 bool result;
13461 void *argp1 = 0 ;
13462 int res1 = 0 ;
13463 PyObject * obj0 = 0 ;
13464 char * kwnames[] = {
13465 (char *) "info", NULL
13466 };
13467
13468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13469 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13470 if (!SWIG_IsOK(res1)) {
13471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13472 }
13473 if (!argp1) {
13474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13475 }
13476 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13477 {
13478 PyThreadState* __tstate = wxPyBeginAllowThreads();
13479 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 {
13484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13485 }
13486 return resultobj;
13487 fail:
13488 return NULL;
13489 }
13490
13491
13492 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13493 PyObject *resultobj = 0;
13494 wxFontMapper *result = 0 ;
13495
13496 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13497 {
13498 PyThreadState* __tstate = wxPyBeginAllowThreads();
13499 result = (wxFontMapper *)new wxFontMapper();
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13511 PyObject *resultobj = 0;
13512 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13513 void *argp1 = 0 ;
13514 int res1 = 0 ;
13515 PyObject *swig_obj[1] ;
13516
13517 if (!args) SWIG_fail;
13518 swig_obj[0] = args;
13519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13520 if (!SWIG_IsOK(res1)) {
13521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13522 }
13523 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 delete arg1;
13527
13528 wxPyEndAllowThreads(__tstate);
13529 if (PyErr_Occurred()) SWIG_fail;
13530 }
13531 resultobj = SWIG_Py_Void();
13532 return resultobj;
13533 fail:
13534 return NULL;
13535 }
13536
13537
13538 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13539 PyObject *resultobj = 0;
13540 wxFontMapper *result = 0 ;
13541
13542 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13543 {
13544 PyThreadState* __tstate = wxPyBeginAllowThreads();
13545 result = (wxFontMapper *)wxFontMapper::Get();
13546 wxPyEndAllowThreads(__tstate);
13547 if (PyErr_Occurred()) SWIG_fail;
13548 }
13549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13550 return resultobj;
13551 fail:
13552 return NULL;
13553 }
13554
13555
13556 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13557 PyObject *resultobj = 0;
13558 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13559 wxFontMapper *result = 0 ;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject * obj0 = 0 ;
13563 char * kwnames[] = {
13564 (char *) "mapper", NULL
13565 };
13566
13567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13569 if (!SWIG_IsOK(res1)) {
13570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13571 }
13572 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13576 wxPyEndAllowThreads(__tstate);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj = 0;
13588 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13589 wxString *arg2 = 0 ;
13590 bool arg3 = (bool) true ;
13591 wxFontEncoding result;
13592 void *argp1 = 0 ;
13593 int res1 = 0 ;
13594 bool temp2 = false ;
13595 bool val3 ;
13596 int ecode3 = 0 ;
13597 PyObject * obj0 = 0 ;
13598 PyObject * obj1 = 0 ;
13599 PyObject * obj2 = 0 ;
13600 char * kwnames[] = {
13601 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13602 };
13603
13604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13608 }
13609 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13610 {
13611 arg2 = wxString_in_helper(obj1);
13612 if (arg2 == NULL) SWIG_fail;
13613 temp2 = true;
13614 }
13615 if (obj2) {
13616 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13617 if (!SWIG_IsOK(ecode3)) {
13618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13619 }
13620 arg3 = static_cast< bool >(val3);
13621 }
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13625 wxPyEndAllowThreads(__tstate);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 resultobj = SWIG_From_int(static_cast< int >(result));
13629 {
13630 if (temp2)
13631 delete arg2;
13632 }
13633 return resultobj;
13634 fail:
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return NULL;
13640 }
13641
13642
13643 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13644 PyObject *resultobj = 0;
13645 size_t result;
13646
13647 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13655 return resultobj;
13656 fail:
13657 return NULL;
13658 }
13659
13660
13661 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13662 PyObject *resultobj = 0;
13663 size_t arg1 ;
13664 wxFontEncoding result;
13665 size_t val1 ;
13666 int ecode1 = 0 ;
13667 PyObject * obj0 = 0 ;
13668 char * kwnames[] = {
13669 (char *) "n", NULL
13670 };
13671
13672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13673 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13674 if (!SWIG_IsOK(ecode1)) {
13675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13676 }
13677 arg1 = static_cast< size_t >(val1);
13678 {
13679 PyThreadState* __tstate = wxPyBeginAllowThreads();
13680 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13681 wxPyEndAllowThreads(__tstate);
13682 if (PyErr_Occurred()) SWIG_fail;
13683 }
13684 resultobj = SWIG_From_int(static_cast< int >(result));
13685 return resultobj;
13686 fail:
13687 return NULL;
13688 }
13689
13690
13691 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13692 PyObject *resultobj = 0;
13693 wxFontEncoding arg1 ;
13694 wxString result;
13695 int val1 ;
13696 int ecode1 = 0 ;
13697 PyObject * obj0 = 0 ;
13698 char * kwnames[] = {
13699 (char *) "encoding", NULL
13700 };
13701
13702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13703 ecode1 = SWIG_AsVal_int(obj0, &val1);
13704 if (!SWIG_IsOK(ecode1)) {
13705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13706 }
13707 arg1 = static_cast< wxFontEncoding >(val1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 result = wxFontMapper::GetEncodingName(arg1);
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 {
13715 #if wxUSE_UNICODE
13716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13717 #else
13718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13719 #endif
13720 }
13721 return resultobj;
13722 fail:
13723 return NULL;
13724 }
13725
13726
13727 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13728 PyObject *resultobj = 0;
13729 wxFontEncoding arg1 ;
13730 wxString result;
13731 int val1 ;
13732 int ecode1 = 0 ;
13733 PyObject * obj0 = 0 ;
13734 char * kwnames[] = {
13735 (char *) "encoding", NULL
13736 };
13737
13738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13739 ecode1 = SWIG_AsVal_int(obj0, &val1);
13740 if (!SWIG_IsOK(ecode1)) {
13741 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13742 }
13743 arg1 = static_cast< wxFontEncoding >(val1);
13744 {
13745 PyThreadState* __tstate = wxPyBeginAllowThreads();
13746 result = wxFontMapper::GetEncodingDescription(arg1);
13747 wxPyEndAllowThreads(__tstate);
13748 if (PyErr_Occurred()) SWIG_fail;
13749 }
13750 {
13751 #if wxUSE_UNICODE
13752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13753 #else
13754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13755 #endif
13756 }
13757 return resultobj;
13758 fail:
13759 return NULL;
13760 }
13761
13762
13763 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj = 0;
13765 wxString *arg1 = 0 ;
13766 wxFontEncoding result;
13767 bool temp1 = false ;
13768 PyObject * obj0 = 0 ;
13769 char * kwnames[] = {
13770 (char *) "name", NULL
13771 };
13772
13773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13774 {
13775 arg1 = wxString_in_helper(obj0);
13776 if (arg1 == NULL) SWIG_fail;
13777 temp1 = true;
13778 }
13779 {
13780 PyThreadState* __tstate = wxPyBeginAllowThreads();
13781 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 resultobj = SWIG_From_int(static_cast< int >(result));
13786 {
13787 if (temp1)
13788 delete arg1;
13789 }
13790 return resultobj;
13791 fail:
13792 {
13793 if (temp1)
13794 delete arg1;
13795 }
13796 return NULL;
13797 }
13798
13799
13800 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13801 PyObject *resultobj = 0;
13802 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13803 wxString *arg2 = 0 ;
13804 void *argp1 = 0 ;
13805 int res1 = 0 ;
13806 bool temp2 = false ;
13807 PyObject * obj0 = 0 ;
13808 PyObject * obj1 = 0 ;
13809 char * kwnames[] = {
13810 (char *) "self",(char *) "prefix", NULL
13811 };
13812
13813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13815 if (!SWIG_IsOK(res1)) {
13816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13817 }
13818 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13819 {
13820 arg2 = wxString_in_helper(obj1);
13821 if (arg2 == NULL) SWIG_fail;
13822 temp2 = true;
13823 }
13824 {
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 (arg1)->SetConfigPath((wxString const &)*arg2);
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = SWIG_Py_Void();
13831 {
13832 if (temp2)
13833 delete arg2;
13834 }
13835 return resultobj;
13836 fail:
13837 {
13838 if (temp2)
13839 delete arg2;
13840 }
13841 return NULL;
13842 }
13843
13844
13845 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13846 PyObject *resultobj = 0;
13847 wxString result;
13848
13849 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 result = wxFontMapper::GetDefaultConfigPath();
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 {
13857 #if wxUSE_UNICODE
13858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13859 #else
13860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13861 #endif
13862 }
13863 return resultobj;
13864 fail:
13865 return NULL;
13866 }
13867
13868
13869 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13870 PyObject *resultobj = 0;
13871 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13872 wxFontEncoding arg2 ;
13873 wxString const &arg3_defvalue = wxPyEmptyString ;
13874 wxString *arg3 = (wxString *) &arg3_defvalue ;
13875 bool arg4 = (bool) true ;
13876 PyObject *result = 0 ;
13877 void *argp1 = 0 ;
13878 int res1 = 0 ;
13879 int val2 ;
13880 int ecode2 = 0 ;
13881 bool temp3 = false ;
13882 bool val4 ;
13883 int ecode4 = 0 ;
13884 PyObject * obj0 = 0 ;
13885 PyObject * obj1 = 0 ;
13886 PyObject * obj2 = 0 ;
13887 PyObject * obj3 = 0 ;
13888 char * kwnames[] = {
13889 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13890 };
13891
13892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13894 if (!SWIG_IsOK(res1)) {
13895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13896 }
13897 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13898 ecode2 = SWIG_AsVal_int(obj1, &val2);
13899 if (!SWIG_IsOK(ecode2)) {
13900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13901 }
13902 arg2 = static_cast< wxFontEncoding >(val2);
13903 if (obj2) {
13904 {
13905 arg3 = wxString_in_helper(obj2);
13906 if (arg3 == NULL) SWIG_fail;
13907 temp3 = true;
13908 }
13909 }
13910 if (obj3) {
13911 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13912 if (!SWIG_IsOK(ecode4)) {
13913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13914 }
13915 arg4 = static_cast< bool >(val4);
13916 }
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 resultobj = result;
13924 {
13925 if (temp3)
13926 delete arg3;
13927 }
13928 return resultobj;
13929 fail:
13930 {
13931 if (temp3)
13932 delete arg3;
13933 }
13934 return NULL;
13935 }
13936
13937
13938 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj = 0;
13940 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13941 wxFontEncoding arg2 ;
13942 wxString const &arg3_defvalue = wxPyEmptyString ;
13943 wxString *arg3 = (wxString *) &arg3_defvalue ;
13944 bool result;
13945 void *argp1 = 0 ;
13946 int res1 = 0 ;
13947 int val2 ;
13948 int ecode2 = 0 ;
13949 bool temp3 = false ;
13950 PyObject * obj0 = 0 ;
13951 PyObject * obj1 = 0 ;
13952 PyObject * obj2 = 0 ;
13953 char * kwnames[] = {
13954 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13955 };
13956
13957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13959 if (!SWIG_IsOK(res1)) {
13960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13961 }
13962 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13963 ecode2 = SWIG_AsVal_int(obj1, &val2);
13964 if (!SWIG_IsOK(ecode2)) {
13965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13966 }
13967 arg2 = static_cast< wxFontEncoding >(val2);
13968 if (obj2) {
13969 {
13970 arg3 = wxString_in_helper(obj2);
13971 if (arg3 == NULL) SWIG_fail;
13972 temp3 = true;
13973 }
13974 }
13975 {
13976 PyThreadState* __tstate = wxPyBeginAllowThreads();
13977 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13978 wxPyEndAllowThreads(__tstate);
13979 if (PyErr_Occurred()) SWIG_fail;
13980 }
13981 {
13982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13983 }
13984 {
13985 if (temp3)
13986 delete arg3;
13987 }
13988 return resultobj;
13989 fail:
13990 {
13991 if (temp3)
13992 delete arg3;
13993 }
13994 return NULL;
13995 }
13996
13997
13998 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj = 0;
14000 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14001 wxWindow *arg2 = (wxWindow *) 0 ;
14002 void *argp1 = 0 ;
14003 int res1 = 0 ;
14004 void *argp2 = 0 ;
14005 int res2 = 0 ;
14006 PyObject * obj0 = 0 ;
14007 PyObject * obj1 = 0 ;
14008 char * kwnames[] = {
14009 (char *) "self",(char *) "parent", NULL
14010 };
14011
14012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14014 if (!SWIG_IsOK(res1)) {
14015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14016 }
14017 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14019 if (!SWIG_IsOK(res2)) {
14020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14021 }
14022 arg2 = reinterpret_cast< wxWindow * >(argp2);
14023 {
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 (arg1)->SetDialogParent(arg2);
14026 wxPyEndAllowThreads(__tstate);
14027 if (PyErr_Occurred()) SWIG_fail;
14028 }
14029 resultobj = SWIG_Py_Void();
14030 return resultobj;
14031 fail:
14032 return NULL;
14033 }
14034
14035
14036 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj = 0;
14038 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14039 wxString *arg2 = 0 ;
14040 void *argp1 = 0 ;
14041 int res1 = 0 ;
14042 bool temp2 = false ;
14043 PyObject * obj0 = 0 ;
14044 PyObject * obj1 = 0 ;
14045 char * kwnames[] = {
14046 (char *) "self",(char *) "title", NULL
14047 };
14048
14049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14051 if (!SWIG_IsOK(res1)) {
14052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14053 }
14054 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14055 {
14056 arg2 = wxString_in_helper(obj1);
14057 if (arg2 == NULL) SWIG_fail;
14058 temp2 = true;
14059 }
14060 {
14061 PyThreadState* __tstate = wxPyBeginAllowThreads();
14062 (arg1)->SetDialogTitle((wxString const &)*arg2);
14063 wxPyEndAllowThreads(__tstate);
14064 if (PyErr_Occurred()) SWIG_fail;
14065 }
14066 resultobj = SWIG_Py_Void();
14067 {
14068 if (temp2)
14069 delete arg2;
14070 }
14071 return resultobj;
14072 fail:
14073 {
14074 if (temp2)
14075 delete arg2;
14076 }
14077 return NULL;
14078 }
14079
14080
14081 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14082 PyObject *obj;
14083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14084 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14085 return SWIG_Py_Void();
14086 }
14087
14088 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14089 return SWIG_Python_InitShadowInstance(args);
14090 }
14091
14092 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj = 0;
14094 int arg1 ;
14095 int arg2 ;
14096 int arg3 ;
14097 int arg4 ;
14098 bool arg5 = (bool) false ;
14099 wxString const &arg6_defvalue = wxPyEmptyString ;
14100 wxString *arg6 = (wxString *) &arg6_defvalue ;
14101 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14102 wxFont *result = 0 ;
14103 int val1 ;
14104 int ecode1 = 0 ;
14105 int val2 ;
14106 int ecode2 = 0 ;
14107 int val3 ;
14108 int ecode3 = 0 ;
14109 int val4 ;
14110 int ecode4 = 0 ;
14111 bool val5 ;
14112 int ecode5 = 0 ;
14113 bool temp6 = false ;
14114 int val7 ;
14115 int ecode7 = 0 ;
14116 PyObject * obj0 = 0 ;
14117 PyObject * obj1 = 0 ;
14118 PyObject * obj2 = 0 ;
14119 PyObject * obj3 = 0 ;
14120 PyObject * obj4 = 0 ;
14121 PyObject * obj5 = 0 ;
14122 PyObject * obj6 = 0 ;
14123 char * kwnames[] = {
14124 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14125 };
14126
14127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14128 ecode1 = SWIG_AsVal_int(obj0, &val1);
14129 if (!SWIG_IsOK(ecode1)) {
14130 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14131 }
14132 arg1 = static_cast< int >(val1);
14133 ecode2 = SWIG_AsVal_int(obj1, &val2);
14134 if (!SWIG_IsOK(ecode2)) {
14135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14136 }
14137 arg2 = static_cast< int >(val2);
14138 ecode3 = SWIG_AsVal_int(obj2, &val3);
14139 if (!SWIG_IsOK(ecode3)) {
14140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14141 }
14142 arg3 = static_cast< int >(val3);
14143 ecode4 = SWIG_AsVal_int(obj3, &val4);
14144 if (!SWIG_IsOK(ecode4)) {
14145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14146 }
14147 arg4 = static_cast< int >(val4);
14148 if (obj4) {
14149 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14150 if (!SWIG_IsOK(ecode5)) {
14151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14152 }
14153 arg5 = static_cast< bool >(val5);
14154 }
14155 if (obj5) {
14156 {
14157 arg6 = wxString_in_helper(obj5);
14158 if (arg6 == NULL) SWIG_fail;
14159 temp6 = true;
14160 }
14161 }
14162 if (obj6) {
14163 ecode7 = SWIG_AsVal_int(obj6, &val7);
14164 if (!SWIG_IsOK(ecode7)) {
14165 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14166 }
14167 arg7 = static_cast< wxFontEncoding >(val7);
14168 }
14169 {
14170 if (!wxPyCheckForApp()) SWIG_fail;
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14177 {
14178 if (temp6)
14179 delete arg6;
14180 }
14181 return resultobj;
14182 fail:
14183 {
14184 if (temp6)
14185 delete arg6;
14186 }
14187 return NULL;
14188 }
14189
14190
14191 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxFont *arg1 = (wxFont *) 0 ;
14194 void *argp1 = 0 ;
14195 int res1 = 0 ;
14196 PyObject *swig_obj[1] ;
14197
14198 if (!args) SWIG_fail;
14199 swig_obj[0] = args;
14200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14201 if (!SWIG_IsOK(res1)) {
14202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14203 }
14204 arg1 = reinterpret_cast< wxFont * >(argp1);
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 delete arg1;
14208
14209 wxPyEndAllowThreads(__tstate);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 }
14212 resultobj = SWIG_Py_Void();
14213 return resultobj;
14214 fail:
14215 return NULL;
14216 }
14217
14218
14219 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14220 PyObject *resultobj = 0;
14221 wxNativeFontInfo *arg1 = 0 ;
14222 wxFont *result = 0 ;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 PyObject * obj0 = 0 ;
14226 char * kwnames[] = {
14227 (char *) "info", NULL
14228 };
14229
14230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14231 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14232 if (!SWIG_IsOK(res1)) {
14233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14234 }
14235 if (!argp1) {
14236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14237 }
14238 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14239 {
14240 if (!wxPyCheckForApp()) SWIG_fail;
14241 PyThreadState* __tstate = wxPyBeginAllowThreads();
14242 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14243 wxPyEndAllowThreads(__tstate);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14247 return resultobj;
14248 fail:
14249 return NULL;
14250 }
14251
14252
14253 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14254 PyObject *resultobj = 0;
14255 wxString *arg1 = 0 ;
14256 wxFont *result = 0 ;
14257 bool temp1 = false ;
14258 PyObject * obj0 = 0 ;
14259 char * kwnames[] = {
14260 (char *) "info", NULL
14261 };
14262
14263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14264 {
14265 arg1 = wxString_in_helper(obj0);
14266 if (arg1 == NULL) SWIG_fail;
14267 temp1 = true;
14268 }
14269 {
14270 if (!wxPyCheckForApp()) SWIG_fail;
14271 PyThreadState* __tstate = wxPyBeginAllowThreads();
14272 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14277 {
14278 if (temp1)
14279 delete arg1;
14280 }
14281 return resultobj;
14282 fail:
14283 {
14284 if (temp1)
14285 delete arg1;
14286 }
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14292 PyObject *resultobj = 0;
14293 int arg1 ;
14294 wxFontFamily arg2 ;
14295 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14296 wxString const &arg4_defvalue = wxPyEmptyString ;
14297 wxString *arg4 = (wxString *) &arg4_defvalue ;
14298 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14299 wxFont *result = 0 ;
14300 int val1 ;
14301 int ecode1 = 0 ;
14302 int val2 ;
14303 int ecode2 = 0 ;
14304 int val3 ;
14305 int ecode3 = 0 ;
14306 bool temp4 = false ;
14307 int val5 ;
14308 int ecode5 = 0 ;
14309 PyObject * obj0 = 0 ;
14310 PyObject * obj1 = 0 ;
14311 PyObject * obj2 = 0 ;
14312 PyObject * obj3 = 0 ;
14313 PyObject * obj4 = 0 ;
14314 char * kwnames[] = {
14315 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14316 };
14317
14318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14319 ecode1 = SWIG_AsVal_int(obj0, &val1);
14320 if (!SWIG_IsOK(ecode1)) {
14321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14322 }
14323 arg1 = static_cast< int >(val1);
14324 ecode2 = SWIG_AsVal_int(obj1, &val2);
14325 if (!SWIG_IsOK(ecode2)) {
14326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14327 }
14328 arg2 = static_cast< wxFontFamily >(val2);
14329 if (obj2) {
14330 ecode3 = SWIG_AsVal_int(obj2, &val3);
14331 if (!SWIG_IsOK(ecode3)) {
14332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14333 }
14334 arg3 = static_cast< int >(val3);
14335 }
14336 if (obj3) {
14337 {
14338 arg4 = wxString_in_helper(obj3);
14339 if (arg4 == NULL) SWIG_fail;
14340 temp4 = true;
14341 }
14342 }
14343 if (obj4) {
14344 ecode5 = SWIG_AsVal_int(obj4, &val5);
14345 if (!SWIG_IsOK(ecode5)) {
14346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14347 }
14348 arg5 = static_cast< wxFontEncoding >(val5);
14349 }
14350 {
14351 if (!wxPyCheckForApp()) SWIG_fail;
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14358 {
14359 if (temp4)
14360 delete arg4;
14361 }
14362 return resultobj;
14363 fail:
14364 {
14365 if (temp4)
14366 delete arg4;
14367 }
14368 return NULL;
14369 }
14370
14371
14372 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14373 PyObject *resultobj = 0;
14374 wxSize *arg1 = 0 ;
14375 int arg2 ;
14376 int arg3 ;
14377 int arg4 ;
14378 bool arg5 = (bool) false ;
14379 wxString const &arg6_defvalue = wxEmptyString ;
14380 wxString *arg6 = (wxString *) &arg6_defvalue ;
14381 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14382 wxFont *result = 0 ;
14383 wxSize temp1 ;
14384 int val2 ;
14385 int ecode2 = 0 ;
14386 int val3 ;
14387 int ecode3 = 0 ;
14388 int val4 ;
14389 int ecode4 = 0 ;
14390 bool val5 ;
14391 int ecode5 = 0 ;
14392 bool temp6 = false ;
14393 int val7 ;
14394 int ecode7 = 0 ;
14395 PyObject * obj0 = 0 ;
14396 PyObject * obj1 = 0 ;
14397 PyObject * obj2 = 0 ;
14398 PyObject * obj3 = 0 ;
14399 PyObject * obj4 = 0 ;
14400 PyObject * obj5 = 0 ;
14401 PyObject * obj6 = 0 ;
14402 char * kwnames[] = {
14403 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14404 };
14405
14406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14407 {
14408 arg1 = &temp1;
14409 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14410 }
14411 ecode2 = SWIG_AsVal_int(obj1, &val2);
14412 if (!SWIG_IsOK(ecode2)) {
14413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14414 }
14415 arg2 = static_cast< int >(val2);
14416 ecode3 = SWIG_AsVal_int(obj2, &val3);
14417 if (!SWIG_IsOK(ecode3)) {
14418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14419 }
14420 arg3 = static_cast< int >(val3);
14421 ecode4 = SWIG_AsVal_int(obj3, &val4);
14422 if (!SWIG_IsOK(ecode4)) {
14423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14424 }
14425 arg4 = static_cast< int >(val4);
14426 if (obj4) {
14427 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14428 if (!SWIG_IsOK(ecode5)) {
14429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14430 }
14431 arg5 = static_cast< bool >(val5);
14432 }
14433 if (obj5) {
14434 {
14435 arg6 = wxString_in_helper(obj5);
14436 if (arg6 == NULL) SWIG_fail;
14437 temp6 = true;
14438 }
14439 }
14440 if (obj6) {
14441 ecode7 = SWIG_AsVal_int(obj6, &val7);
14442 if (!SWIG_IsOK(ecode7)) {
14443 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14444 }
14445 arg7 = static_cast< wxFontEncoding >(val7);
14446 }
14447 {
14448 if (!wxPyCheckForApp()) SWIG_fail;
14449 PyThreadState* __tstate = wxPyBeginAllowThreads();
14450 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14451 wxPyEndAllowThreads(__tstate);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 }
14454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14455 {
14456 if (temp6)
14457 delete arg6;
14458 }
14459 return resultobj;
14460 fail:
14461 {
14462 if (temp6)
14463 delete arg6;
14464 }
14465 return NULL;
14466 }
14467
14468
14469 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj = 0;
14471 wxSize *arg1 = 0 ;
14472 wxFontFamily arg2 ;
14473 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14474 wxString const &arg4_defvalue = wxEmptyString ;
14475 wxString *arg4 = (wxString *) &arg4_defvalue ;
14476 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14477 wxFont *result = 0 ;
14478 wxSize temp1 ;
14479 int val2 ;
14480 int ecode2 = 0 ;
14481 int val3 ;
14482 int ecode3 = 0 ;
14483 bool temp4 = false ;
14484 int val5 ;
14485 int ecode5 = 0 ;
14486 PyObject * obj0 = 0 ;
14487 PyObject * obj1 = 0 ;
14488 PyObject * obj2 = 0 ;
14489 PyObject * obj3 = 0 ;
14490 PyObject * obj4 = 0 ;
14491 char * kwnames[] = {
14492 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14493 };
14494
14495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14496 {
14497 arg1 = &temp1;
14498 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14499 }
14500 ecode2 = SWIG_AsVal_int(obj1, &val2);
14501 if (!SWIG_IsOK(ecode2)) {
14502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14503 }
14504 arg2 = static_cast< wxFontFamily >(val2);
14505 if (obj2) {
14506 ecode3 = SWIG_AsVal_int(obj2, &val3);
14507 if (!SWIG_IsOK(ecode3)) {
14508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14509 }
14510 arg3 = static_cast< int >(val3);
14511 }
14512 if (obj3) {
14513 {
14514 arg4 = wxString_in_helper(obj3);
14515 if (arg4 == NULL) SWIG_fail;
14516 temp4 = true;
14517 }
14518 }
14519 if (obj4) {
14520 ecode5 = SWIG_AsVal_int(obj4, &val5);
14521 if (!SWIG_IsOK(ecode5)) {
14522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14523 }
14524 arg5 = static_cast< wxFontEncoding >(val5);
14525 }
14526 {
14527 if (!wxPyCheckForApp()) SWIG_fail;
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14534 {
14535 if (temp4)
14536 delete arg4;
14537 }
14538 return resultobj;
14539 fail:
14540 {
14541 if (temp4)
14542 delete arg4;
14543 }
14544 return NULL;
14545 }
14546
14547
14548 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14549 PyObject *resultobj = 0;
14550 wxFont *arg1 = (wxFont *) 0 ;
14551 bool result;
14552 void *argp1 = 0 ;
14553 int res1 = 0 ;
14554 PyObject *swig_obj[1] ;
14555
14556 if (!args) SWIG_fail;
14557 swig_obj[0] = args;
14558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14559 if (!SWIG_IsOK(res1)) {
14560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14561 }
14562 arg1 = reinterpret_cast< wxFont * >(argp1);
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 result = (bool)((wxFont const *)arg1)->IsOk();
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 {
14570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14571 }
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj = 0;
14580 wxFont *arg1 = (wxFont *) 0 ;
14581 wxFont *arg2 = (wxFont *) 0 ;
14582 bool result;
14583 void *argp1 = 0 ;
14584 int res1 = 0 ;
14585 void *argp2 = 0 ;
14586 int res2 = 0 ;
14587 PyObject * obj0 = 0 ;
14588 PyObject * obj1 = 0 ;
14589 char * kwnames[] = {
14590 (char *) "self",(char *) "other", NULL
14591 };
14592
14593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14595 if (!SWIG_IsOK(res1)) {
14596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14597 }
14598 arg1 = reinterpret_cast< wxFont * >(argp1);
14599 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14600 if (!SWIG_IsOK(res2)) {
14601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14602 }
14603 arg2 = reinterpret_cast< wxFont * >(argp2);
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 {
14611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14612 }
14613 return resultobj;
14614 fail:
14615 return NULL;
14616 }
14617
14618
14619 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14620 PyObject *resultobj = 0;
14621 wxFont *arg1 = (wxFont *) 0 ;
14622 wxFont *arg2 = (wxFont *) 0 ;
14623 bool result;
14624 void *argp1 = 0 ;
14625 int res1 = 0 ;
14626 void *argp2 = 0 ;
14627 int res2 = 0 ;
14628 PyObject * obj0 = 0 ;
14629 PyObject * obj1 = 0 ;
14630 char * kwnames[] = {
14631 (char *) "self",(char *) "other", NULL
14632 };
14633
14634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14636 if (!SWIG_IsOK(res1)) {
14637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14638 }
14639 arg1 = reinterpret_cast< wxFont * >(argp1);
14640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14641 if (!SWIG_IsOK(res2)) {
14642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14643 }
14644 arg2 = reinterpret_cast< wxFont * >(argp2);
14645 {
14646 PyThreadState* __tstate = wxPyBeginAllowThreads();
14647 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14648 wxPyEndAllowThreads(__tstate);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 {
14652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14653 }
14654 return resultobj;
14655 fail:
14656 return NULL;
14657 }
14658
14659
14660 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14661 PyObject *resultobj = 0;
14662 wxFont *arg1 = (wxFont *) 0 ;
14663 int result;
14664 void *argp1 = 0 ;
14665 int res1 = 0 ;
14666 PyObject *swig_obj[1] ;
14667
14668 if (!args) SWIG_fail;
14669 swig_obj[0] = args;
14670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14671 if (!SWIG_IsOK(res1)) {
14672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14673 }
14674 arg1 = reinterpret_cast< wxFont * >(argp1);
14675 {
14676 PyThreadState* __tstate = wxPyBeginAllowThreads();
14677 result = (int)((wxFont const *)arg1)->GetPointSize();
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 resultobj = SWIG_From_int(static_cast< int >(result));
14682 return resultobj;
14683 fail:
14684 return NULL;
14685 }
14686
14687
14688 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14689 PyObject *resultobj = 0;
14690 wxFont *arg1 = (wxFont *) 0 ;
14691 wxSize result;
14692 void *argp1 = 0 ;
14693 int res1 = 0 ;
14694 PyObject *swig_obj[1] ;
14695
14696 if (!args) SWIG_fail;
14697 swig_obj[0] = args;
14698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14699 if (!SWIG_IsOK(res1)) {
14700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14701 }
14702 arg1 = reinterpret_cast< wxFont * >(argp1);
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 result = ((wxFont const *)arg1)->GetPixelSize();
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14710 return resultobj;
14711 fail:
14712 return NULL;
14713 }
14714
14715
14716 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14717 PyObject *resultobj = 0;
14718 wxFont *arg1 = (wxFont *) 0 ;
14719 bool result;
14720 void *argp1 = 0 ;
14721 int res1 = 0 ;
14722 PyObject *swig_obj[1] ;
14723
14724 if (!args) SWIG_fail;
14725 swig_obj[0] = args;
14726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14727 if (!SWIG_IsOK(res1)) {
14728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14729 }
14730 arg1 = reinterpret_cast< wxFont * >(argp1);
14731 {
14732 PyThreadState* __tstate = wxPyBeginAllowThreads();
14733 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 {
14738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14739 }
14740 return resultobj;
14741 fail:
14742 return NULL;
14743 }
14744
14745
14746 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14747 PyObject *resultobj = 0;
14748 wxFont *arg1 = (wxFont *) 0 ;
14749 int result;
14750 void *argp1 = 0 ;
14751 int res1 = 0 ;
14752 PyObject *swig_obj[1] ;
14753
14754 if (!args) SWIG_fail;
14755 swig_obj[0] = args;
14756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14757 if (!SWIG_IsOK(res1)) {
14758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14759 }
14760 arg1 = reinterpret_cast< wxFont * >(argp1);
14761 {
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 result = (int)((wxFont const *)arg1)->GetFamily();
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = SWIG_From_int(static_cast< int >(result));
14768 return resultobj;
14769 fail:
14770 return NULL;
14771 }
14772
14773
14774 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14775 PyObject *resultobj = 0;
14776 wxFont *arg1 = (wxFont *) 0 ;
14777 int result;
14778 void *argp1 = 0 ;
14779 int res1 = 0 ;
14780 PyObject *swig_obj[1] ;
14781
14782 if (!args) SWIG_fail;
14783 swig_obj[0] = args;
14784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14785 if (!SWIG_IsOK(res1)) {
14786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14787 }
14788 arg1 = reinterpret_cast< wxFont * >(argp1);
14789 {
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 result = (int)((wxFont const *)arg1)->GetStyle();
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 resultobj = SWIG_From_int(static_cast< int >(result));
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14803 PyObject *resultobj = 0;
14804 wxFont *arg1 = (wxFont *) 0 ;
14805 int result;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 PyObject *swig_obj[1] ;
14809
14810 if (!args) SWIG_fail;
14811 swig_obj[0] = args;
14812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14813 if (!SWIG_IsOK(res1)) {
14814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14815 }
14816 arg1 = reinterpret_cast< wxFont * >(argp1);
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 result = (int)((wxFont const *)arg1)->GetWeight();
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = SWIG_From_int(static_cast< int >(result));
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14831 PyObject *resultobj = 0;
14832 wxFont *arg1 = (wxFont *) 0 ;
14833 bool result;
14834 void *argp1 = 0 ;
14835 int res1 = 0 ;
14836 PyObject *swig_obj[1] ;
14837
14838 if (!args) SWIG_fail;
14839 swig_obj[0] = args;
14840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14841 if (!SWIG_IsOK(res1)) {
14842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14843 }
14844 arg1 = reinterpret_cast< wxFont * >(argp1);
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14848 wxPyEndAllowThreads(__tstate);
14849 if (PyErr_Occurred()) SWIG_fail;
14850 }
14851 {
14852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14853 }
14854 return resultobj;
14855 fail:
14856 return NULL;
14857 }
14858
14859
14860 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14861 PyObject *resultobj = 0;
14862 wxFont *arg1 = (wxFont *) 0 ;
14863 wxString result;
14864 void *argp1 = 0 ;
14865 int res1 = 0 ;
14866 PyObject *swig_obj[1] ;
14867
14868 if (!args) SWIG_fail;
14869 swig_obj[0] = args;
14870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14871 if (!SWIG_IsOK(res1)) {
14872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14873 }
14874 arg1 = reinterpret_cast< wxFont * >(argp1);
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 result = ((wxFont const *)arg1)->GetFaceName();
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 {
14882 #if wxUSE_UNICODE
14883 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14884 #else
14885 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14886 #endif
14887 }
14888 return resultobj;
14889 fail:
14890 return NULL;
14891 }
14892
14893
14894 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14895 PyObject *resultobj = 0;
14896 wxFont *arg1 = (wxFont *) 0 ;
14897 wxFontEncoding result;
14898 void *argp1 = 0 ;
14899 int res1 = 0 ;
14900 PyObject *swig_obj[1] ;
14901
14902 if (!args) SWIG_fail;
14903 swig_obj[0] = args;
14904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14905 if (!SWIG_IsOK(res1)) {
14906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14907 }
14908 arg1 = reinterpret_cast< wxFont * >(argp1);
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 resultobj = SWIG_From_int(static_cast< int >(result));
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14923 PyObject *resultobj = 0;
14924 wxFont *arg1 = (wxFont *) 0 ;
14925 wxNativeFontInfo *result = 0 ;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 PyObject *swig_obj[1] ;
14929
14930 if (!args) SWIG_fail;
14931 swig_obj[0] = args;
14932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14933 if (!SWIG_IsOK(res1)) {
14934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14935 }
14936 arg1 = reinterpret_cast< wxFont * >(argp1);
14937 {
14938 PyThreadState* __tstate = wxPyBeginAllowThreads();
14939 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14951 PyObject *resultobj = 0;
14952 wxFont *arg1 = (wxFont *) 0 ;
14953 bool result;
14954 void *argp1 = 0 ;
14955 int res1 = 0 ;
14956 PyObject *swig_obj[1] ;
14957
14958 if (!args) SWIG_fail;
14959 swig_obj[0] = args;
14960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14961 if (!SWIG_IsOK(res1)) {
14962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14963 }
14964 arg1 = reinterpret_cast< wxFont * >(argp1);
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 {
14972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14973 }
14974 return resultobj;
14975 fail:
14976 return NULL;
14977 }
14978
14979
14980 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14981 PyObject *resultobj = 0;
14982 wxFont *arg1 = (wxFont *) 0 ;
14983 wxString result;
14984 void *argp1 = 0 ;
14985 int res1 = 0 ;
14986 PyObject *swig_obj[1] ;
14987
14988 if (!args) SWIG_fail;
14989 swig_obj[0] = args;
14990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14991 if (!SWIG_IsOK(res1)) {
14992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14993 }
14994 arg1 = reinterpret_cast< wxFont * >(argp1);
14995 {
14996 PyThreadState* __tstate = wxPyBeginAllowThreads();
14997 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14998 wxPyEndAllowThreads(__tstate);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 }
15001 {
15002 #if wxUSE_UNICODE
15003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15004 #else
15005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15006 #endif
15007 }
15008 return resultobj;
15009 fail:
15010 return NULL;
15011 }
15012
15013
15014 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15015 PyObject *resultobj = 0;
15016 wxFont *arg1 = (wxFont *) 0 ;
15017 wxString result;
15018 void *argp1 = 0 ;
15019 int res1 = 0 ;
15020 PyObject *swig_obj[1] ;
15021
15022 if (!args) SWIG_fail;
15023 swig_obj[0] = args;
15024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15025 if (!SWIG_IsOK(res1)) {
15026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15027 }
15028 arg1 = reinterpret_cast< wxFont * >(argp1);
15029 {
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 {
15036 #if wxUSE_UNICODE
15037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15038 #else
15039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15040 #endif
15041 }
15042 return resultobj;
15043 fail:
15044 return NULL;
15045 }
15046
15047
15048 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15049 PyObject *resultobj = 0;
15050 wxFont *arg1 = (wxFont *) 0 ;
15051 int arg2 ;
15052 void *argp1 = 0 ;
15053 int res1 = 0 ;
15054 int val2 ;
15055 int ecode2 = 0 ;
15056 PyObject * obj0 = 0 ;
15057 PyObject * obj1 = 0 ;
15058 char * kwnames[] = {
15059 (char *) "self",(char *) "pointSize", NULL
15060 };
15061
15062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15064 if (!SWIG_IsOK(res1)) {
15065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15066 }
15067 arg1 = reinterpret_cast< wxFont * >(argp1);
15068 ecode2 = SWIG_AsVal_int(obj1, &val2);
15069 if (!SWIG_IsOK(ecode2)) {
15070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15071 }
15072 arg2 = static_cast< int >(val2);
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 (arg1)->SetPointSize(arg2);
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 resultobj = SWIG_Py_Void();
15080 return resultobj;
15081 fail:
15082 return NULL;
15083 }
15084
15085
15086 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj = 0;
15088 wxFont *arg1 = (wxFont *) 0 ;
15089 wxSize *arg2 = 0 ;
15090 void *argp1 = 0 ;
15091 int res1 = 0 ;
15092 wxSize temp2 ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 char * kwnames[] = {
15096 (char *) "self",(char *) "pixelSize", NULL
15097 };
15098
15099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15101 if (!SWIG_IsOK(res1)) {
15102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15103 }
15104 arg1 = reinterpret_cast< wxFont * >(argp1);
15105 {
15106 arg2 = &temp2;
15107 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15108 }
15109 {
15110 PyThreadState* __tstate = wxPyBeginAllowThreads();
15111 (arg1)->SetPixelSize((wxSize const &)*arg2);
15112 wxPyEndAllowThreads(__tstate);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 }
15115 resultobj = SWIG_Py_Void();
15116 return resultobj;
15117 fail:
15118 return NULL;
15119 }
15120
15121
15122 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15123 PyObject *resultobj = 0;
15124 wxFont *arg1 = (wxFont *) 0 ;
15125 int arg2 ;
15126 void *argp1 = 0 ;
15127 int res1 = 0 ;
15128 int val2 ;
15129 int ecode2 = 0 ;
15130 PyObject * obj0 = 0 ;
15131 PyObject * obj1 = 0 ;
15132 char * kwnames[] = {
15133 (char *) "self",(char *) "family", NULL
15134 };
15135
15136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15138 if (!SWIG_IsOK(res1)) {
15139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15140 }
15141 arg1 = reinterpret_cast< wxFont * >(argp1);
15142 ecode2 = SWIG_AsVal_int(obj1, &val2);
15143 if (!SWIG_IsOK(ecode2)) {
15144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15145 }
15146 arg2 = static_cast< int >(val2);
15147 {
15148 PyThreadState* __tstate = wxPyBeginAllowThreads();
15149 (arg1)->SetFamily(arg2);
15150 wxPyEndAllowThreads(__tstate);
15151 if (PyErr_Occurred()) SWIG_fail;
15152 }
15153 resultobj = SWIG_Py_Void();
15154 return resultobj;
15155 fail:
15156 return NULL;
15157 }
15158
15159
15160 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15161 PyObject *resultobj = 0;
15162 wxFont *arg1 = (wxFont *) 0 ;
15163 int arg2 ;
15164 void *argp1 = 0 ;
15165 int res1 = 0 ;
15166 int val2 ;
15167 int ecode2 = 0 ;
15168 PyObject * obj0 = 0 ;
15169 PyObject * obj1 = 0 ;
15170 char * kwnames[] = {
15171 (char *) "self",(char *) "style", NULL
15172 };
15173
15174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15176 if (!SWIG_IsOK(res1)) {
15177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15178 }
15179 arg1 = reinterpret_cast< wxFont * >(argp1);
15180 ecode2 = SWIG_AsVal_int(obj1, &val2);
15181 if (!SWIG_IsOK(ecode2)) {
15182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15183 }
15184 arg2 = static_cast< int >(val2);
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 (arg1)->SetStyle(arg2);
15188 wxPyEndAllowThreads(__tstate);
15189 if (PyErr_Occurred()) SWIG_fail;
15190 }
15191 resultobj = SWIG_Py_Void();
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj = 0;
15200 wxFont *arg1 = (wxFont *) 0 ;
15201 int arg2 ;
15202 void *argp1 = 0 ;
15203 int res1 = 0 ;
15204 int val2 ;
15205 int ecode2 = 0 ;
15206 PyObject * obj0 = 0 ;
15207 PyObject * obj1 = 0 ;
15208 char * kwnames[] = {
15209 (char *) "self",(char *) "weight", NULL
15210 };
15211
15212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15214 if (!SWIG_IsOK(res1)) {
15215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15216 }
15217 arg1 = reinterpret_cast< wxFont * >(argp1);
15218 ecode2 = SWIG_AsVal_int(obj1, &val2);
15219 if (!SWIG_IsOK(ecode2)) {
15220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15221 }
15222 arg2 = static_cast< int >(val2);
15223 {
15224 PyThreadState* __tstate = wxPyBeginAllowThreads();
15225 (arg1)->SetWeight(arg2);
15226 wxPyEndAllowThreads(__tstate);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 resultobj = SWIG_Py_Void();
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj = 0;
15238 wxFont *arg1 = (wxFont *) 0 ;
15239 wxString *arg2 = 0 ;
15240 bool result;
15241 void *argp1 = 0 ;
15242 int res1 = 0 ;
15243 bool temp2 = false ;
15244 PyObject * obj0 = 0 ;
15245 PyObject * obj1 = 0 ;
15246 char * kwnames[] = {
15247 (char *) "self",(char *) "faceName", NULL
15248 };
15249
15250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15252 if (!SWIG_IsOK(res1)) {
15253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15254 }
15255 arg1 = reinterpret_cast< wxFont * >(argp1);
15256 {
15257 arg2 = wxString_in_helper(obj1);
15258 if (arg2 == NULL) SWIG_fail;
15259 temp2 = true;
15260 }
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 {
15268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15269 }
15270 {
15271 if (temp2)
15272 delete arg2;
15273 }
15274 return resultobj;
15275 fail:
15276 {
15277 if (temp2)
15278 delete arg2;
15279 }
15280 return NULL;
15281 }
15282
15283
15284 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 bool arg2 ;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 bool val2 ;
15291 int ecode2 = 0 ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 char * kwnames[] = {
15295 (char *) "self",(char *) "underlined", NULL
15296 };
15297
15298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15300 if (!SWIG_IsOK(res1)) {
15301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15302 }
15303 arg1 = reinterpret_cast< wxFont * >(argp1);
15304 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15305 if (!SWIG_IsOK(ecode2)) {
15306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15307 }
15308 arg2 = static_cast< bool >(val2);
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 (arg1)->SetUnderlined(arg2);
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 resultobj = SWIG_Py_Void();
15316 return resultobj;
15317 fail:
15318 return NULL;
15319 }
15320
15321
15322 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15323 PyObject *resultobj = 0;
15324 wxFont *arg1 = (wxFont *) 0 ;
15325 wxFontEncoding arg2 ;
15326 void *argp1 = 0 ;
15327 int res1 = 0 ;
15328 int val2 ;
15329 int ecode2 = 0 ;
15330 PyObject * obj0 = 0 ;
15331 PyObject * obj1 = 0 ;
15332 char * kwnames[] = {
15333 (char *) "self",(char *) "encoding", NULL
15334 };
15335
15336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15338 if (!SWIG_IsOK(res1)) {
15339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15340 }
15341 arg1 = reinterpret_cast< wxFont * >(argp1);
15342 ecode2 = SWIG_AsVal_int(obj1, &val2);
15343 if (!SWIG_IsOK(ecode2)) {
15344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15345 }
15346 arg2 = static_cast< wxFontEncoding >(val2);
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 (arg1)->SetEncoding(arg2);
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_Py_Void();
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj = 0;
15362 wxFont *arg1 = (wxFont *) 0 ;
15363 wxNativeFontInfo *arg2 = 0 ;
15364 void *argp1 = 0 ;
15365 int res1 = 0 ;
15366 void *argp2 = 0 ;
15367 int res2 = 0 ;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 char * kwnames[] = {
15371 (char *) "self",(char *) "info", NULL
15372 };
15373
15374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15378 }
15379 arg1 = reinterpret_cast< wxFont * >(argp1);
15380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15381 if (!SWIG_IsOK(res2)) {
15382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15383 }
15384 if (!argp2) {
15385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15386 }
15387 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15388 {
15389 PyThreadState* __tstate = wxPyBeginAllowThreads();
15390 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15391 wxPyEndAllowThreads(__tstate);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 resultobj = SWIG_Py_Void();
15395 return resultobj;
15396 fail:
15397 return NULL;
15398 }
15399
15400
15401 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15402 PyObject *resultobj = 0;
15403 wxFont *arg1 = (wxFont *) 0 ;
15404 wxString *arg2 = 0 ;
15405 bool result;
15406 void *argp1 = 0 ;
15407 int res1 = 0 ;
15408 bool temp2 = false ;
15409 PyObject * obj0 = 0 ;
15410 PyObject * obj1 = 0 ;
15411 char * kwnames[] = {
15412 (char *) "self",(char *) "info", NULL
15413 };
15414
15415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15417 if (!SWIG_IsOK(res1)) {
15418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15419 }
15420 arg1 = reinterpret_cast< wxFont * >(argp1);
15421 {
15422 arg2 = wxString_in_helper(obj1);
15423 if (arg2 == NULL) SWIG_fail;
15424 temp2 = true;
15425 }
15426 {
15427 PyThreadState* __tstate = wxPyBeginAllowThreads();
15428 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15429 wxPyEndAllowThreads(__tstate);
15430 if (PyErr_Occurred()) SWIG_fail;
15431 }
15432 {
15433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15434 }
15435 {
15436 if (temp2)
15437 delete arg2;
15438 }
15439 return resultobj;
15440 fail:
15441 {
15442 if (temp2)
15443 delete arg2;
15444 }
15445 return NULL;
15446 }
15447
15448
15449 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj = 0;
15451 wxFont *arg1 = (wxFont *) 0 ;
15452 wxString *arg2 = 0 ;
15453 bool result;
15454 void *argp1 = 0 ;
15455 int res1 = 0 ;
15456 bool temp2 = false ;
15457 PyObject * obj0 = 0 ;
15458 PyObject * obj1 = 0 ;
15459 char * kwnames[] = {
15460 (char *) "self",(char *) "info", NULL
15461 };
15462
15463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15465 if (!SWIG_IsOK(res1)) {
15466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15467 }
15468 arg1 = reinterpret_cast< wxFont * >(argp1);
15469 {
15470 arg2 = wxString_in_helper(obj1);
15471 if (arg2 == NULL) SWIG_fail;
15472 temp2 = true;
15473 }
15474 {
15475 PyThreadState* __tstate = wxPyBeginAllowThreads();
15476 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 {
15481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15482 }
15483 {
15484 if (temp2)
15485 delete arg2;
15486 }
15487 return resultobj;
15488 fail:
15489 {
15490 if (temp2)
15491 delete arg2;
15492 }
15493 return NULL;
15494 }
15495
15496
15497 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15498 PyObject *resultobj = 0;
15499 wxFont *arg1 = (wxFont *) 0 ;
15500 wxString result;
15501 void *argp1 = 0 ;
15502 int res1 = 0 ;
15503 PyObject *swig_obj[1] ;
15504
15505 if (!args) SWIG_fail;
15506 swig_obj[0] = args;
15507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15508 if (!SWIG_IsOK(res1)) {
15509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15510 }
15511 arg1 = reinterpret_cast< wxFont * >(argp1);
15512 {
15513 PyThreadState* __tstate = wxPyBeginAllowThreads();
15514 result = ((wxFont const *)arg1)->GetFamilyString();
15515 wxPyEndAllowThreads(__tstate);
15516 if (PyErr_Occurred()) SWIG_fail;
15517 }
15518 {
15519 #if wxUSE_UNICODE
15520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15521 #else
15522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15523 #endif
15524 }
15525 return resultobj;
15526 fail:
15527 return NULL;
15528 }
15529
15530
15531 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15532 PyObject *resultobj = 0;
15533 wxFont *arg1 = (wxFont *) 0 ;
15534 wxString result;
15535 void *argp1 = 0 ;
15536 int res1 = 0 ;
15537 PyObject *swig_obj[1] ;
15538
15539 if (!args) SWIG_fail;
15540 swig_obj[0] = args;
15541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15542 if (!SWIG_IsOK(res1)) {
15543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15544 }
15545 arg1 = reinterpret_cast< wxFont * >(argp1);
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = ((wxFont const *)arg1)->GetStyleString();
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 {
15553 #if wxUSE_UNICODE
15554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15555 #else
15556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15557 #endif
15558 }
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15566 PyObject *resultobj = 0;
15567 wxFont *arg1 = (wxFont *) 0 ;
15568 wxString result;
15569 void *argp1 = 0 ;
15570 int res1 = 0 ;
15571 PyObject *swig_obj[1] ;
15572
15573 if (!args) SWIG_fail;
15574 swig_obj[0] = args;
15575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15576 if (!SWIG_IsOK(res1)) {
15577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15578 }
15579 arg1 = reinterpret_cast< wxFont * >(argp1);
15580 {
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 result = ((wxFont const *)arg1)->GetWeightString();
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 {
15587 #if wxUSE_UNICODE
15588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15589 #else
15590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15591 #endif
15592 }
15593 return resultobj;
15594 fail:
15595 return NULL;
15596 }
15597
15598
15599 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj = 0;
15601 wxFont *arg1 = (wxFont *) 0 ;
15602 bool arg2 = (bool) true ;
15603 void *argp1 = 0 ;
15604 int res1 = 0 ;
15605 bool val2 ;
15606 int ecode2 = 0 ;
15607 PyObject * obj0 = 0 ;
15608 PyObject * obj1 = 0 ;
15609 char * kwnames[] = {
15610 (char *) "self",(char *) "no", NULL
15611 };
15612
15613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15615 if (!SWIG_IsOK(res1)) {
15616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15617 }
15618 arg1 = reinterpret_cast< wxFont * >(argp1);
15619 if (obj1) {
15620 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15621 if (!SWIG_IsOK(ecode2)) {
15622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15623 }
15624 arg2 = static_cast< bool >(val2);
15625 }
15626 {
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 (arg1)->SetNoAntiAliasing(arg2);
15629 wxPyEndAllowThreads(__tstate);
15630 if (PyErr_Occurred()) SWIG_fail;
15631 }
15632 resultobj = SWIG_Py_Void();
15633 return resultobj;
15634 fail:
15635 return NULL;
15636 }
15637
15638
15639 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15640 PyObject *resultobj = 0;
15641 wxFont *arg1 = (wxFont *) 0 ;
15642 bool result;
15643 void *argp1 = 0 ;
15644 int res1 = 0 ;
15645 PyObject *swig_obj[1] ;
15646
15647 if (!args) SWIG_fail;
15648 swig_obj[0] = args;
15649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15650 if (!SWIG_IsOK(res1)) {
15651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15652 }
15653 arg1 = reinterpret_cast< wxFont * >(argp1);
15654 {
15655 PyThreadState* __tstate = wxPyBeginAllowThreads();
15656 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 {
15661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15662 }
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15670 PyObject *resultobj = 0;
15671 wxFontEncoding result;
15672
15673 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15674 {
15675 if (!wxPyCheckForApp()) SWIG_fail;
15676 PyThreadState* __tstate = wxPyBeginAllowThreads();
15677 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15678 wxPyEndAllowThreads(__tstate);
15679 if (PyErr_Occurred()) SWIG_fail;
15680 }
15681 resultobj = SWIG_From_int(static_cast< int >(result));
15682 return resultobj;
15683 fail:
15684 return NULL;
15685 }
15686
15687
15688 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj = 0;
15690 wxFontEncoding arg1 ;
15691 int val1 ;
15692 int ecode1 = 0 ;
15693 PyObject * obj0 = 0 ;
15694 char * kwnames[] = {
15695 (char *) "encoding", NULL
15696 };
15697
15698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15699 ecode1 = SWIG_AsVal_int(obj0, &val1);
15700 if (!SWIG_IsOK(ecode1)) {
15701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15702 }
15703 arg1 = static_cast< wxFontEncoding >(val1);
15704 {
15705 if (!wxPyCheckForApp()) SWIG_fail;
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 wxFont::SetDefaultEncoding(arg1);
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 resultobj = SWIG_Py_Void();
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15719 PyObject *obj;
15720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15721 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15722 return SWIG_Py_Void();
15723 }
15724
15725 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15726 return SWIG_Python_InitShadowInstance(args);
15727 }
15728
15729 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15730 PyObject *resultobj = 0;
15731 wxPyFontEnumerator *result = 0 ;
15732
15733 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15734 {
15735 if (!wxPyCheckForApp()) SWIG_fail;
15736 PyThreadState* __tstate = wxPyBeginAllowThreads();
15737 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15742 return resultobj;
15743 fail:
15744 return NULL;
15745 }
15746
15747
15748 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15749 PyObject *resultobj = 0;
15750 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15751 void *argp1 = 0 ;
15752 int res1 = 0 ;
15753 PyObject *swig_obj[1] ;
15754
15755 if (!args) SWIG_fail;
15756 swig_obj[0] = args;
15757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15758 if (!SWIG_IsOK(res1)) {
15759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15760 }
15761 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 delete arg1;
15765
15766 wxPyEndAllowThreads(__tstate);
15767 if (PyErr_Occurred()) SWIG_fail;
15768 }
15769 resultobj = SWIG_Py_Void();
15770 return resultobj;
15771 fail:
15772 return NULL;
15773 }
15774
15775
15776 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15777 PyObject *resultobj = 0;
15778 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15779 PyObject *arg2 = (PyObject *) 0 ;
15780 PyObject *arg3 = (PyObject *) 0 ;
15781 bool arg4 ;
15782 void *argp1 = 0 ;
15783 int res1 = 0 ;
15784 bool val4 ;
15785 int ecode4 = 0 ;
15786 PyObject * obj0 = 0 ;
15787 PyObject * obj1 = 0 ;
15788 PyObject * obj2 = 0 ;
15789 PyObject * obj3 = 0 ;
15790 char * kwnames[] = {
15791 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15792 };
15793
15794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15796 if (!SWIG_IsOK(res1)) {
15797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15798 }
15799 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15800 arg2 = obj1;
15801 arg3 = obj2;
15802 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15803 if (!SWIG_IsOK(ecode4)) {
15804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15805 }
15806 arg4 = static_cast< bool >(val4);
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15810 wxPyEndAllowThreads(__tstate);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 }
15813 resultobj = SWIG_Py_Void();
15814 return resultobj;
15815 fail:
15816 return NULL;
15817 }
15818
15819
15820 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15821 PyObject *resultobj = 0;
15822 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15823 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15824 bool arg3 = (bool) false ;
15825 bool result;
15826 void *argp1 = 0 ;
15827 int res1 = 0 ;
15828 int val2 ;
15829 int ecode2 = 0 ;
15830 bool val3 ;
15831 int ecode3 = 0 ;
15832 PyObject * obj0 = 0 ;
15833 PyObject * obj1 = 0 ;
15834 PyObject * obj2 = 0 ;
15835 char * kwnames[] = {
15836 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15837 };
15838
15839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15843 }
15844 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15845 if (obj1) {
15846 ecode2 = SWIG_AsVal_int(obj1, &val2);
15847 if (!SWIG_IsOK(ecode2)) {
15848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15849 }
15850 arg2 = static_cast< wxFontEncoding >(val2);
15851 }
15852 if (obj2) {
15853 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15854 if (!SWIG_IsOK(ecode3)) {
15855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15856 }
15857 arg3 = static_cast< bool >(val3);
15858 }
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15862 wxPyEndAllowThreads(__tstate);
15863 if (PyErr_Occurred()) SWIG_fail;
15864 }
15865 {
15866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15867 }
15868 return resultobj;
15869 fail:
15870 return NULL;
15871 }
15872
15873
15874 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15875 PyObject *resultobj = 0;
15876 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15877 wxString const &arg2_defvalue = wxPyEmptyString ;
15878 wxString *arg2 = (wxString *) &arg2_defvalue ;
15879 bool result;
15880 void *argp1 = 0 ;
15881 int res1 = 0 ;
15882 bool temp2 = false ;
15883 PyObject * obj0 = 0 ;
15884 PyObject * obj1 = 0 ;
15885 char * kwnames[] = {
15886 (char *) "self",(char *) "facename", NULL
15887 };
15888
15889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15891 if (!SWIG_IsOK(res1)) {
15892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15893 }
15894 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15895 if (obj1) {
15896 {
15897 arg2 = wxString_in_helper(obj1);
15898 if (arg2 == NULL) SWIG_fail;
15899 temp2 = true;
15900 }
15901 }
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 {
15909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15910 }
15911 {
15912 if (temp2)
15913 delete arg2;
15914 }
15915 return resultobj;
15916 fail:
15917 {
15918 if (temp2)
15919 delete arg2;
15920 }
15921 return NULL;
15922 }
15923
15924
15925 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15926 PyObject *resultobj = 0;
15927 PyObject *result = 0 ;
15928
15929 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15933 wxPyEndAllowThreads(__tstate);
15934 if (PyErr_Occurred()) SWIG_fail;
15935 }
15936 resultobj = result;
15937 return resultobj;
15938 fail:
15939 return NULL;
15940 }
15941
15942
15943 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15944 PyObject *resultobj = 0;
15945 PyObject *result = 0 ;
15946
15947 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15948 {
15949 PyThreadState* __tstate = wxPyBeginAllowThreads();
15950 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15951 wxPyEndAllowThreads(__tstate);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 }
15954 resultobj = result;
15955 return resultobj;
15956 fail:
15957 return NULL;
15958 }
15959
15960
15961 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15962 PyObject *resultobj = 0;
15963 wxString *arg1 = 0 ;
15964 bool result;
15965 bool temp1 = false ;
15966 PyObject * obj0 = 0 ;
15967 char * kwnames[] = {
15968 (char *) "str", NULL
15969 };
15970
15971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15972 {
15973 arg1 = wxString_in_helper(obj0);
15974 if (arg1 == NULL) SWIG_fail;
15975 temp1 = true;
15976 }
15977 {
15978 PyThreadState* __tstate = wxPyBeginAllowThreads();
15979 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15980 wxPyEndAllowThreads(__tstate);
15981 if (PyErr_Occurred()) SWIG_fail;
15982 }
15983 {
15984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15985 }
15986 {
15987 if (temp1)
15988 delete arg1;
15989 }
15990 return resultobj;
15991 fail:
15992 {
15993 if (temp1)
15994 delete arg1;
15995 }
15996 return NULL;
15997 }
15998
15999
16000 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16001 PyObject *obj;
16002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16003 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16004 return SWIG_Py_Void();
16005 }
16006
16007 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16008 return SWIG_Python_InitShadowInstance(args);
16009 }
16010
16011 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16012 PyObject *resultobj = 0;
16013 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16014 int arg2 ;
16015 void *argp1 = 0 ;
16016 int res1 = 0 ;
16017 int val2 ;
16018 int ecode2 = 0 ;
16019 PyObject *swig_obj[2] ;
16020
16021 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16023 if (!SWIG_IsOK(res1)) {
16024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16025 }
16026 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16027 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16028 if (!SWIG_IsOK(ecode2)) {
16029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16030 }
16031 arg2 = static_cast< int >(val2);
16032 if (arg1) (arg1)->Language = arg2;
16033
16034 resultobj = SWIG_Py_Void();
16035 return resultobj;
16036 fail:
16037 return NULL;
16038 }
16039
16040
16041 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16042 PyObject *resultobj = 0;
16043 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16044 int result;
16045 void *argp1 = 0 ;
16046 int res1 = 0 ;
16047 PyObject *swig_obj[1] ;
16048
16049 if (!args) SWIG_fail;
16050 swig_obj[0] = args;
16051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16052 if (!SWIG_IsOK(res1)) {
16053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16054 }
16055 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16056 result = (int) ((arg1)->Language);
16057 resultobj = SWIG_From_int(static_cast< int >(result));
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16065 PyObject *resultobj = 0;
16066 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16067 wxString *arg2 = (wxString *) 0 ;
16068 void *argp1 = 0 ;
16069 int res1 = 0 ;
16070 bool temp2 = false ;
16071 PyObject *swig_obj[2] ;
16072
16073 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16075 if (!SWIG_IsOK(res1)) {
16076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16077 }
16078 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16079 {
16080 arg2 = wxString_in_helper(swig_obj[1]);
16081 if (arg2 == NULL) SWIG_fail;
16082 temp2 = true;
16083 }
16084 if (arg1) (arg1)->CanonicalName = *arg2;
16085
16086 resultobj = SWIG_Py_Void();
16087 {
16088 if (temp2)
16089 delete arg2;
16090 }
16091 return resultobj;
16092 fail:
16093 {
16094 if (temp2)
16095 delete arg2;
16096 }
16097 return NULL;
16098 }
16099
16100
16101 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16102 PyObject *resultobj = 0;
16103 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16104 wxString *result = 0 ;
16105 void *argp1 = 0 ;
16106 int res1 = 0 ;
16107 PyObject *swig_obj[1] ;
16108
16109 if (!args) SWIG_fail;
16110 swig_obj[0] = args;
16111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16112 if (!SWIG_IsOK(res1)) {
16113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16114 }
16115 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16116 result = (wxString *)& ((arg1)->CanonicalName);
16117 {
16118 #if wxUSE_UNICODE
16119 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16120 #else
16121 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16122 #endif
16123 }
16124 return resultobj;
16125 fail:
16126 return NULL;
16127 }
16128
16129
16130 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16131 PyObject *resultobj = 0;
16132 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16133 wxString *arg2 = (wxString *) 0 ;
16134 void *argp1 = 0 ;
16135 int res1 = 0 ;
16136 bool temp2 = false ;
16137 PyObject *swig_obj[2] ;
16138
16139 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16141 if (!SWIG_IsOK(res1)) {
16142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16143 }
16144 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16145 {
16146 arg2 = wxString_in_helper(swig_obj[1]);
16147 if (arg2 == NULL) SWIG_fail;
16148 temp2 = true;
16149 }
16150 if (arg1) (arg1)->Description = *arg2;
16151
16152 resultobj = SWIG_Py_Void();
16153 {
16154 if (temp2)
16155 delete arg2;
16156 }
16157 return resultobj;
16158 fail:
16159 {
16160 if (temp2)
16161 delete arg2;
16162 }
16163 return NULL;
16164 }
16165
16166
16167 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16168 PyObject *resultobj = 0;
16169 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16170 wxString *result = 0 ;
16171 void *argp1 = 0 ;
16172 int res1 = 0 ;
16173 PyObject *swig_obj[1] ;
16174
16175 if (!args) SWIG_fail;
16176 swig_obj[0] = args;
16177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16178 if (!SWIG_IsOK(res1)) {
16179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16180 }
16181 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16182 result = (wxString *)& ((arg1)->Description);
16183 {
16184 #if wxUSE_UNICODE
16185 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16186 #else
16187 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16188 #endif
16189 }
16190 return resultobj;
16191 fail:
16192 return NULL;
16193 }
16194
16195
16196 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16197 PyObject *obj;
16198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16199 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16200 return SWIG_Py_Void();
16201 }
16202
16203 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16204 PyObject *resultobj = 0;
16205 int arg1 = (int) -1 ;
16206 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16207 wxLocale *result = 0 ;
16208 int val1 ;
16209 int ecode1 = 0 ;
16210 int val2 ;
16211 int ecode2 = 0 ;
16212 PyObject * obj0 = 0 ;
16213 PyObject * obj1 = 0 ;
16214 char * kwnames[] = {
16215 (char *) "language",(char *) "flags", NULL
16216 };
16217
16218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16219 if (obj0) {
16220 ecode1 = SWIG_AsVal_int(obj0, &val1);
16221 if (!SWIG_IsOK(ecode1)) {
16222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16223 }
16224 arg1 = static_cast< int >(val1);
16225 }
16226 if (obj1) {
16227 ecode2 = SWIG_AsVal_int(obj1, &val2);
16228 if (!SWIG_IsOK(ecode2)) {
16229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16230 }
16231 arg2 = static_cast< int >(val2);
16232 }
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 result = (wxLocale *)new_wxLocale(arg1,arg2);
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16240 return resultobj;
16241 fail:
16242 return NULL;
16243 }
16244
16245
16246 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16247 PyObject *resultobj = 0;
16248 wxLocale *arg1 = (wxLocale *) 0 ;
16249 void *argp1 = 0 ;
16250 int res1 = 0 ;
16251 PyObject *swig_obj[1] ;
16252
16253 if (!args) SWIG_fail;
16254 swig_obj[0] = args;
16255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16256 if (!SWIG_IsOK(res1)) {
16257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16258 }
16259 arg1 = reinterpret_cast< wxLocale * >(argp1);
16260 {
16261 PyThreadState* __tstate = wxPyBeginAllowThreads();
16262 delete arg1;
16263
16264 wxPyEndAllowThreads(__tstate);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 }
16267 resultobj = SWIG_Py_Void();
16268 return resultobj;
16269 fail:
16270 return NULL;
16271 }
16272
16273
16274 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16275 PyObject *resultobj = 0;
16276 wxLocale *arg1 = (wxLocale *) 0 ;
16277 wxString *arg2 = 0 ;
16278 wxString const &arg3_defvalue = wxPyEmptyString ;
16279 wxString *arg3 = (wxString *) &arg3_defvalue ;
16280 wxString const &arg4_defvalue = wxPyEmptyString ;
16281 wxString *arg4 = (wxString *) &arg4_defvalue ;
16282 bool arg5 = (bool) true ;
16283 bool arg6 = (bool) false ;
16284 bool result;
16285 void *argp1 = 0 ;
16286 int res1 = 0 ;
16287 bool temp2 = false ;
16288 bool temp3 = false ;
16289 bool temp4 = false ;
16290 bool val5 ;
16291 int ecode5 = 0 ;
16292 bool val6 ;
16293 int ecode6 = 0 ;
16294 PyObject * obj0 = 0 ;
16295 PyObject * obj1 = 0 ;
16296 PyObject * obj2 = 0 ;
16297 PyObject * obj3 = 0 ;
16298 PyObject * obj4 = 0 ;
16299 PyObject * obj5 = 0 ;
16300 char * kwnames[] = {
16301 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16302 };
16303
16304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16306 if (!SWIG_IsOK(res1)) {
16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16308 }
16309 arg1 = reinterpret_cast< wxLocale * >(argp1);
16310 {
16311 arg2 = wxString_in_helper(obj1);
16312 if (arg2 == NULL) SWIG_fail;
16313 temp2 = true;
16314 }
16315 if (obj2) {
16316 {
16317 arg3 = wxString_in_helper(obj2);
16318 if (arg3 == NULL) SWIG_fail;
16319 temp3 = true;
16320 }
16321 }
16322 if (obj3) {
16323 {
16324 arg4 = wxString_in_helper(obj3);
16325 if (arg4 == NULL) SWIG_fail;
16326 temp4 = true;
16327 }
16328 }
16329 if (obj4) {
16330 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16331 if (!SWIG_IsOK(ecode5)) {
16332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16333 }
16334 arg5 = static_cast< bool >(val5);
16335 }
16336 if (obj5) {
16337 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16338 if (!SWIG_IsOK(ecode6)) {
16339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16340 }
16341 arg6 = static_cast< bool >(val6);
16342 }
16343 {
16344 PyThreadState* __tstate = wxPyBeginAllowThreads();
16345 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16346 wxPyEndAllowThreads(__tstate);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
16349 {
16350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16351 }
16352 {
16353 if (temp2)
16354 delete arg2;
16355 }
16356 {
16357 if (temp3)
16358 delete arg3;
16359 }
16360 {
16361 if (temp4)
16362 delete arg4;
16363 }
16364 return resultobj;
16365 fail:
16366 {
16367 if (temp2)
16368 delete arg2;
16369 }
16370 {
16371 if (temp3)
16372 delete arg3;
16373 }
16374 {
16375 if (temp4)
16376 delete arg4;
16377 }
16378 return NULL;
16379 }
16380
16381
16382 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj = 0;
16384 wxLocale *arg1 = (wxLocale *) 0 ;
16385 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16386 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16387 bool result;
16388 void *argp1 = 0 ;
16389 int res1 = 0 ;
16390 int val2 ;
16391 int ecode2 = 0 ;
16392 int val3 ;
16393 int ecode3 = 0 ;
16394 PyObject * obj0 = 0 ;
16395 PyObject * obj1 = 0 ;
16396 PyObject * obj2 = 0 ;
16397 char * kwnames[] = {
16398 (char *) "self",(char *) "language",(char *) "flags", NULL
16399 };
16400
16401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16403 if (!SWIG_IsOK(res1)) {
16404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16405 }
16406 arg1 = reinterpret_cast< wxLocale * >(argp1);
16407 if (obj1) {
16408 ecode2 = SWIG_AsVal_int(obj1, &val2);
16409 if (!SWIG_IsOK(ecode2)) {
16410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16411 }
16412 arg2 = static_cast< int >(val2);
16413 }
16414 if (obj2) {
16415 ecode3 = SWIG_AsVal_int(obj2, &val3);
16416 if (!SWIG_IsOK(ecode3)) {
16417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16418 }
16419 arg3 = static_cast< int >(val3);
16420 }
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 {
16428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16429 }
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16437 PyObject *resultobj = 0;
16438 int result;
16439
16440 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 result = (int)wxLocale::GetSystemLanguage();
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 resultobj = SWIG_From_int(static_cast< int >(result));
16448 return resultobj;
16449 fail:
16450 return NULL;
16451 }
16452
16453
16454 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16455 PyObject *resultobj = 0;
16456 wxFontEncoding result;
16457
16458 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16462 wxPyEndAllowThreads(__tstate);
16463 if (PyErr_Occurred()) SWIG_fail;
16464 }
16465 resultobj = SWIG_From_int(static_cast< int >(result));
16466 return resultobj;
16467 fail:
16468 return NULL;
16469 }
16470
16471
16472 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16473 PyObject *resultobj = 0;
16474 wxString result;
16475
16476 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 result = wxLocale::GetSystemEncodingName();
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 {
16484 #if wxUSE_UNICODE
16485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16486 #else
16487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16488 #endif
16489 }
16490 return resultobj;
16491 fail:
16492 return NULL;
16493 }
16494
16495
16496 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16497 PyObject *resultobj = 0;
16498 wxLocale *arg1 = (wxLocale *) 0 ;
16499 bool result;
16500 void *argp1 = 0 ;
16501 int res1 = 0 ;
16502 PyObject *swig_obj[1] ;
16503
16504 if (!args) SWIG_fail;
16505 swig_obj[0] = args;
16506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16507 if (!SWIG_IsOK(res1)) {
16508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16509 }
16510 arg1 = reinterpret_cast< wxLocale * >(argp1);
16511 {
16512 PyThreadState* __tstate = wxPyBeginAllowThreads();
16513 result = (bool)((wxLocale const *)arg1)->IsOk();
16514 wxPyEndAllowThreads(__tstate);
16515 if (PyErr_Occurred()) SWIG_fail;
16516 }
16517 {
16518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16519 }
16520 return resultobj;
16521 fail:
16522 return NULL;
16523 }
16524
16525
16526 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16527 PyObject *resultobj = 0;
16528 wxLocale *arg1 = (wxLocale *) 0 ;
16529 wxString result;
16530 void *argp1 = 0 ;
16531 int res1 = 0 ;
16532 PyObject *swig_obj[1] ;
16533
16534 if (!args) SWIG_fail;
16535 swig_obj[0] = args;
16536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16537 if (!SWIG_IsOK(res1)) {
16538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16539 }
16540 arg1 = reinterpret_cast< wxLocale * >(argp1);
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 result = ((wxLocale const *)arg1)->GetLocale();
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 {
16548 #if wxUSE_UNICODE
16549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16550 #else
16551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16552 #endif
16553 }
16554 return resultobj;
16555 fail:
16556 return NULL;
16557 }
16558
16559
16560 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16561 PyObject *resultobj = 0;
16562 wxLocale *arg1 = (wxLocale *) 0 ;
16563 int result;
16564 void *argp1 = 0 ;
16565 int res1 = 0 ;
16566 PyObject *swig_obj[1] ;
16567
16568 if (!args) SWIG_fail;
16569 swig_obj[0] = args;
16570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16571 if (!SWIG_IsOK(res1)) {
16572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16573 }
16574 arg1 = reinterpret_cast< wxLocale * >(argp1);
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (int)((wxLocale const *)arg1)->GetLanguage();
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_From_int(static_cast< int >(result));
16582 return resultobj;
16583 fail:
16584 return NULL;
16585 }
16586
16587
16588 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16589 PyObject *resultobj = 0;
16590 wxLocale *arg1 = (wxLocale *) 0 ;
16591 wxString result;
16592 void *argp1 = 0 ;
16593 int res1 = 0 ;
16594 PyObject *swig_obj[1] ;
16595
16596 if (!args) SWIG_fail;
16597 swig_obj[0] = args;
16598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16599 if (!SWIG_IsOK(res1)) {
16600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16601 }
16602 arg1 = reinterpret_cast< wxLocale * >(argp1);
16603 {
16604 PyThreadState* __tstate = wxPyBeginAllowThreads();
16605 result = ((wxLocale const *)arg1)->GetSysName();
16606 wxPyEndAllowThreads(__tstate);
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 {
16610 #if wxUSE_UNICODE
16611 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16612 #else
16613 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16614 #endif
16615 }
16616 return resultobj;
16617 fail:
16618 return NULL;
16619 }
16620
16621
16622 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16623 PyObject *resultobj = 0;
16624 wxLocale *arg1 = (wxLocale *) 0 ;
16625 wxString result;
16626 void *argp1 = 0 ;
16627 int res1 = 0 ;
16628 PyObject *swig_obj[1] ;
16629
16630 if (!args) SWIG_fail;
16631 swig_obj[0] = args;
16632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16633 if (!SWIG_IsOK(res1)) {
16634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16635 }
16636 arg1 = reinterpret_cast< wxLocale * >(argp1);
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 result = ((wxLocale const *)arg1)->GetCanonicalName();
16640 wxPyEndAllowThreads(__tstate);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
16643 {
16644 #if wxUSE_UNICODE
16645 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16646 #else
16647 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16648 #endif
16649 }
16650 return resultobj;
16651 fail:
16652 return NULL;
16653 }
16654
16655
16656 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16657 PyObject *resultobj = 0;
16658 wxString *arg1 = 0 ;
16659 bool temp1 = false ;
16660 PyObject * obj0 = 0 ;
16661 char * kwnames[] = {
16662 (char *) "prefix", NULL
16663 };
16664
16665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16666 {
16667 arg1 = wxString_in_helper(obj0);
16668 if (arg1 == NULL) SWIG_fail;
16669 temp1 = true;
16670 }
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 resultobj = SWIG_Py_Void();
16678 {
16679 if (temp1)
16680 delete arg1;
16681 }
16682 return resultobj;
16683 fail:
16684 {
16685 if (temp1)
16686 delete arg1;
16687 }
16688 return NULL;
16689 }
16690
16691
16692 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj = 0;
16694 wxLocale *arg1 = (wxLocale *) 0 ;
16695 wxString *arg2 = 0 ;
16696 bool result;
16697 void *argp1 = 0 ;
16698 int res1 = 0 ;
16699 bool temp2 = false ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "szDomain", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16710 }
16711 arg1 = reinterpret_cast< wxLocale * >(argp1);
16712 {
16713 arg2 = wxString_in_helper(obj1);
16714 if (arg2 == NULL) SWIG_fail;
16715 temp2 = true;
16716 }
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 {
16724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16725 }
16726 {
16727 if (temp2)
16728 delete arg2;
16729 }
16730 return resultobj;
16731 fail:
16732 {
16733 if (temp2)
16734 delete arg2;
16735 }
16736 return NULL;
16737 }
16738
16739
16740 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16741 PyObject *resultobj = 0;
16742 int arg1 ;
16743 bool result;
16744 int val1 ;
16745 int ecode1 = 0 ;
16746 PyObject * obj0 = 0 ;
16747 char * kwnames[] = {
16748 (char *) "lang", NULL
16749 };
16750
16751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16752 ecode1 = SWIG_AsVal_int(obj0, &val1);
16753 if (!SWIG_IsOK(ecode1)) {
16754 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16755 }
16756 arg1 = static_cast< int >(val1);
16757 {
16758 PyThreadState* __tstate = wxPyBeginAllowThreads();
16759 result = (bool)wxLocale::IsAvailable(arg1);
16760 wxPyEndAllowThreads(__tstate);
16761 if (PyErr_Occurred()) SWIG_fail;
16762 }
16763 {
16764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16765 }
16766 return resultobj;
16767 fail:
16768 return NULL;
16769 }
16770
16771
16772 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16773 PyObject *resultobj = 0;
16774 wxLocale *arg1 = (wxLocale *) 0 ;
16775 wxString *arg2 = 0 ;
16776 bool result;
16777 void *argp1 = 0 ;
16778 int res1 = 0 ;
16779 bool temp2 = false ;
16780 PyObject * obj0 = 0 ;
16781 PyObject * obj1 = 0 ;
16782 char * kwnames[] = {
16783 (char *) "self",(char *) "szDomain", NULL
16784 };
16785
16786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16788 if (!SWIG_IsOK(res1)) {
16789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16790 }
16791 arg1 = reinterpret_cast< wxLocale * >(argp1);
16792 {
16793 arg2 = wxString_in_helper(obj1);
16794 if (arg2 == NULL) SWIG_fail;
16795 temp2 = true;
16796 }
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16800 wxPyEndAllowThreads(__tstate);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 }
16803 {
16804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16805 }
16806 {
16807 if (temp2)
16808 delete arg2;
16809 }
16810 return resultobj;
16811 fail:
16812 {
16813 if (temp2)
16814 delete arg2;
16815 }
16816 return NULL;
16817 }
16818
16819
16820 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj = 0;
16822 int arg1 ;
16823 wxLanguageInfo *result = 0 ;
16824 int val1 ;
16825 int ecode1 = 0 ;
16826 PyObject * obj0 = 0 ;
16827 char * kwnames[] = {
16828 (char *) "lang", NULL
16829 };
16830
16831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16832 ecode1 = SWIG_AsVal_int(obj0, &val1);
16833 if (!SWIG_IsOK(ecode1)) {
16834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16835 }
16836 arg1 = static_cast< int >(val1);
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16844 return resultobj;
16845 fail:
16846 return NULL;
16847 }
16848
16849
16850 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj = 0;
16852 int arg1 ;
16853 wxString result;
16854 int val1 ;
16855 int ecode1 = 0 ;
16856 PyObject * obj0 = 0 ;
16857 char * kwnames[] = {
16858 (char *) "lang", NULL
16859 };
16860
16861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16862 ecode1 = SWIG_AsVal_int(obj0, &val1);
16863 if (!SWIG_IsOK(ecode1)) {
16864 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16865 }
16866 arg1 = static_cast< int >(val1);
16867 {
16868 PyThreadState* __tstate = wxPyBeginAllowThreads();
16869 result = wxLocale::GetLanguageName(arg1);
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 {
16874 #if wxUSE_UNICODE
16875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16876 #else
16877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16878 #endif
16879 }
16880 return resultobj;
16881 fail:
16882 return NULL;
16883 }
16884
16885
16886 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16887 PyObject *resultobj = 0;
16888 wxString *arg1 = 0 ;
16889 wxLanguageInfo *result = 0 ;
16890 bool temp1 = false ;
16891 PyObject * obj0 = 0 ;
16892 char * kwnames[] = {
16893 (char *) "locale", NULL
16894 };
16895
16896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16897 {
16898 arg1 = wxString_in_helper(obj0);
16899 if (arg1 == NULL) SWIG_fail;
16900 temp1 = true;
16901 }
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16909 {
16910 if (temp1)
16911 delete arg1;
16912 }
16913 return resultobj;
16914 fail:
16915 {
16916 if (temp1)
16917 delete arg1;
16918 }
16919 return NULL;
16920 }
16921
16922
16923 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16924 PyObject *resultobj = 0;
16925 wxLanguageInfo *arg1 = 0 ;
16926 void *argp1 = 0 ;
16927 int res1 = 0 ;
16928 PyObject * obj0 = 0 ;
16929 char * kwnames[] = {
16930 (char *) "info", NULL
16931 };
16932
16933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16934 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16935 if (!SWIG_IsOK(res1)) {
16936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16937 }
16938 if (!argp1) {
16939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16940 }
16941 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16942 {
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16945 wxPyEndAllowThreads(__tstate);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 resultobj = SWIG_Py_Void();
16949 return resultobj;
16950 fail:
16951 return NULL;
16952 }
16953
16954
16955 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj = 0;
16957 wxLocale *arg1 = (wxLocale *) 0 ;
16958 wxString *arg2 = 0 ;
16959 wxString const &arg3_defvalue = wxPyEmptyString ;
16960 wxString *arg3 = (wxString *) &arg3_defvalue ;
16961 wxString result;
16962 void *argp1 = 0 ;
16963 int res1 = 0 ;
16964 bool temp2 = false ;
16965 bool temp3 = false ;
16966 PyObject * obj0 = 0 ;
16967 PyObject * obj1 = 0 ;
16968 PyObject * obj2 = 0 ;
16969 char * kwnames[] = {
16970 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16971 };
16972
16973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16975 if (!SWIG_IsOK(res1)) {
16976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16977 }
16978 arg1 = reinterpret_cast< wxLocale * >(argp1);
16979 {
16980 arg2 = wxString_in_helper(obj1);
16981 if (arg2 == NULL) SWIG_fail;
16982 temp2 = true;
16983 }
16984 if (obj2) {
16985 {
16986 arg3 = wxString_in_helper(obj2);
16987 if (arg3 == NULL) SWIG_fail;
16988 temp3 = true;
16989 }
16990 }
16991 {
16992 PyThreadState* __tstate = wxPyBeginAllowThreads();
16993 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16994 wxPyEndAllowThreads(__tstate);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 {
16998 #if wxUSE_UNICODE
16999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17000 #else
17001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17002 #endif
17003 }
17004 {
17005 if (temp2)
17006 delete arg2;
17007 }
17008 {
17009 if (temp3)
17010 delete arg3;
17011 }
17012 return resultobj;
17013 fail:
17014 {
17015 if (temp2)
17016 delete arg2;
17017 }
17018 {
17019 if (temp3)
17020 delete arg3;
17021 }
17022 return NULL;
17023 }
17024
17025
17026 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17027 PyObject *resultobj = 0;
17028 wxLocale *arg1 = (wxLocale *) 0 ;
17029 wxString *result = 0 ;
17030 void *argp1 = 0 ;
17031 int res1 = 0 ;
17032 PyObject *swig_obj[1] ;
17033
17034 if (!args) SWIG_fail;
17035 swig_obj[0] = args;
17036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17037 if (!SWIG_IsOK(res1)) {
17038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17039 }
17040 arg1 = reinterpret_cast< wxLocale * >(argp1);
17041 {
17042 PyThreadState* __tstate = wxPyBeginAllowThreads();
17043 {
17044 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17045 result = (wxString *) &_result_ref;
17046 }
17047 wxPyEndAllowThreads(__tstate);
17048 if (PyErr_Occurred()) SWIG_fail;
17049 }
17050 {
17051 #if wxUSE_UNICODE
17052 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17053 #else
17054 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17055 #endif
17056 }
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17064 PyObject *obj;
17065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17066 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17067 return SWIG_Py_Void();
17068 }
17069
17070 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17071 return SWIG_Python_InitShadowInstance(args);
17072 }
17073
17074 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17075 PyObject *resultobj = 0;
17076 int arg1 = (int) -1 ;
17077 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17078 wxPyLocale *result = 0 ;
17079 int val1 ;
17080 int ecode1 = 0 ;
17081 int val2 ;
17082 int ecode2 = 0 ;
17083 PyObject * obj0 = 0 ;
17084 PyObject * obj1 = 0 ;
17085 char * kwnames[] = {
17086 (char *) "language",(char *) "flags", NULL
17087 };
17088
17089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17090 if (obj0) {
17091 ecode1 = SWIG_AsVal_int(obj0, &val1);
17092 if (!SWIG_IsOK(ecode1)) {
17093 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17094 }
17095 arg1 = static_cast< int >(val1);
17096 }
17097 if (obj1) {
17098 ecode2 = SWIG_AsVal_int(obj1, &val2);
17099 if (!SWIG_IsOK(ecode2)) {
17100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17101 }
17102 arg2 = static_cast< int >(val2);
17103 }
17104 {
17105 PyThreadState* __tstate = wxPyBeginAllowThreads();
17106 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17107 wxPyEndAllowThreads(__tstate);
17108 if (PyErr_Occurred()) SWIG_fail;
17109 }
17110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17111 return resultobj;
17112 fail:
17113 return NULL;
17114 }
17115
17116
17117 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17118 PyObject *resultobj = 0;
17119 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17120 void *argp1 = 0 ;
17121 int res1 = 0 ;
17122 PyObject *swig_obj[1] ;
17123
17124 if (!args) SWIG_fail;
17125 swig_obj[0] = args;
17126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17127 if (!SWIG_IsOK(res1)) {
17128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17129 }
17130 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 delete arg1;
17134
17135 wxPyEndAllowThreads(__tstate);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 resultobj = SWIG_Py_Void();
17139 return resultobj;
17140 fail:
17141 return NULL;
17142 }
17143
17144
17145 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17146 PyObject *resultobj = 0;
17147 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17148 PyObject *arg2 = (PyObject *) 0 ;
17149 PyObject *arg3 = (PyObject *) 0 ;
17150 void *argp1 = 0 ;
17151 int res1 = 0 ;
17152 PyObject * obj0 = 0 ;
17153 PyObject * obj1 = 0 ;
17154 PyObject * obj2 = 0 ;
17155 char * kwnames[] = {
17156 (char *) "self",(char *) "self",(char *) "_class", NULL
17157 };
17158
17159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17161 if (!SWIG_IsOK(res1)) {
17162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17163 }
17164 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17165 arg2 = obj1;
17166 arg3 = obj2;
17167 {
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 (arg1)->_setCallbackInfo(arg2,arg3);
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 resultobj = SWIG_Py_Void();
17174 return resultobj;
17175 fail:
17176 return NULL;
17177 }
17178
17179
17180 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17181 PyObject *resultobj = 0;
17182 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17183 wxChar *arg2 = (wxChar *) 0 ;
17184 wxChar *arg3 = (wxChar *) NULL ;
17185 wxChar *result = 0 ;
17186 void *argp1 = 0 ;
17187 int res1 = 0 ;
17188 void *argp2 = 0 ;
17189 int res2 = 0 ;
17190 void *argp3 = 0 ;
17191 int res3 = 0 ;
17192 PyObject * obj0 = 0 ;
17193 PyObject * obj1 = 0 ;
17194 PyObject * obj2 = 0 ;
17195 char * kwnames[] = {
17196 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17197 };
17198
17199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17201 if (!SWIG_IsOK(res1)) {
17202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17203 }
17204 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17205 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17206 if (!SWIG_IsOK(res2)) {
17207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17208 }
17209 arg2 = reinterpret_cast< wxChar * >(argp2);
17210 if (obj2) {
17211 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17212 if (!SWIG_IsOK(res3)) {
17213 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17214 }
17215 arg3 = reinterpret_cast< wxChar * >(argp3);
17216 }
17217 {
17218 PyThreadState* __tstate = wxPyBeginAllowThreads();
17219 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
17223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17224 return resultobj;
17225 fail:
17226 return NULL;
17227 }
17228
17229
17230 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17231 PyObject *resultobj = 0;
17232 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17233 wxChar *arg2 = (wxChar *) 0 ;
17234 wxChar *arg3 = (wxChar *) 0 ;
17235 size_t arg4 ;
17236 wxChar *arg5 = (wxChar *) NULL ;
17237 wxChar *result = 0 ;
17238 void *argp1 = 0 ;
17239 int res1 = 0 ;
17240 void *argp2 = 0 ;
17241 int res2 = 0 ;
17242 void *argp3 = 0 ;
17243 int res3 = 0 ;
17244 size_t val4 ;
17245 int ecode4 = 0 ;
17246 void *argp5 = 0 ;
17247 int res5 = 0 ;
17248 PyObject * obj0 = 0 ;
17249 PyObject * obj1 = 0 ;
17250 PyObject * obj2 = 0 ;
17251 PyObject * obj3 = 0 ;
17252 PyObject * obj4 = 0 ;
17253 char * kwnames[] = {
17254 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17255 };
17256
17257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17259 if (!SWIG_IsOK(res1)) {
17260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17261 }
17262 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17264 if (!SWIG_IsOK(res2)) {
17265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17266 }
17267 arg2 = reinterpret_cast< wxChar * >(argp2);
17268 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17269 if (!SWIG_IsOK(res3)) {
17270 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17271 }
17272 arg3 = reinterpret_cast< wxChar * >(argp3);
17273 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17274 if (!SWIG_IsOK(ecode4)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17276 }
17277 arg4 = static_cast< size_t >(val4);
17278 if (obj4) {
17279 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17280 if (!SWIG_IsOK(res5)) {
17281 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17282 }
17283 arg5 = reinterpret_cast< wxChar * >(argp5);
17284 }
17285 {
17286 PyThreadState* __tstate = wxPyBeginAllowThreads();
17287 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17292 return resultobj;
17293 fail:
17294 return NULL;
17295 }
17296
17297
17298 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17299 PyObject *obj;
17300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17301 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17302 return SWIG_Py_Void();
17303 }
17304
17305 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17306 return SWIG_Python_InitShadowInstance(args);
17307 }
17308
17309 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17310 PyObject *resultobj = 0;
17311 wxLocale *result = 0 ;
17312
17313 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17314 {
17315 PyThreadState* __tstate = wxPyBeginAllowThreads();
17316 result = (wxLocale *)wxGetLocale();
17317 wxPyEndAllowThreads(__tstate);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 }
17320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17321 return resultobj;
17322 fail:
17323 return NULL;
17324 }
17325
17326
17327 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17328 PyObject *resultobj = 0;
17329 wxString *arg1 = 0 ;
17330 wxString result;
17331 bool temp1 = false ;
17332
17333 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17334 {
17335 arg1 = wxString_in_helper(swig_obj[0]);
17336 if (arg1 == NULL) SWIG_fail;
17337 temp1 = true;
17338 }
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = wxGetTranslation((wxString const &)*arg1);
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 {
17346 #if wxUSE_UNICODE
17347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17348 #else
17349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17350 #endif
17351 }
17352 {
17353 if (temp1)
17354 delete arg1;
17355 }
17356 return resultobj;
17357 fail:
17358 {
17359 if (temp1)
17360 delete arg1;
17361 }
17362 return NULL;
17363 }
17364
17365
17366 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17367 PyObject *resultobj = 0;
17368 wxString *arg1 = 0 ;
17369 wxString *arg2 = 0 ;
17370 wxString result;
17371 bool temp1 = false ;
17372 bool temp2 = false ;
17373
17374 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17375 {
17376 arg1 = wxString_in_helper(swig_obj[0]);
17377 if (arg1 == NULL) SWIG_fail;
17378 temp1 = true;
17379 }
17380 {
17381 arg2 = wxString_in_helper(swig_obj[1]);
17382 if (arg2 == NULL) SWIG_fail;
17383 temp2 = true;
17384 }
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 {
17392 #if wxUSE_UNICODE
17393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17394 #else
17395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17396 #endif
17397 }
17398 {
17399 if (temp1)
17400 delete arg1;
17401 }
17402 {
17403 if (temp2)
17404 delete arg2;
17405 }
17406 return resultobj;
17407 fail:
17408 {
17409 if (temp1)
17410 delete arg1;
17411 }
17412 {
17413 if (temp2)
17414 delete arg2;
17415 }
17416 return NULL;
17417 }
17418
17419
17420 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17421 PyObject *resultobj = 0;
17422 wxString *arg1 = 0 ;
17423 wxString *arg2 = 0 ;
17424 size_t arg3 ;
17425 wxString result;
17426 bool temp1 = false ;
17427 bool temp2 = false ;
17428 size_t val3 ;
17429 int ecode3 = 0 ;
17430
17431 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17432 {
17433 arg1 = wxString_in_helper(swig_obj[0]);
17434 if (arg1 == NULL) SWIG_fail;
17435 temp1 = true;
17436 }
17437 {
17438 arg2 = wxString_in_helper(swig_obj[1]);
17439 if (arg2 == NULL) SWIG_fail;
17440 temp2 = true;
17441 }
17442 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17443 if (!SWIG_IsOK(ecode3)) {
17444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17445 }
17446 arg3 = static_cast< size_t >(val3);
17447 {
17448 PyThreadState* __tstate = wxPyBeginAllowThreads();
17449 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17450 wxPyEndAllowThreads(__tstate);
17451 if (PyErr_Occurred()) SWIG_fail;
17452 }
17453 {
17454 #if wxUSE_UNICODE
17455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17456 #else
17457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17458 #endif
17459 }
17460 {
17461 if (temp1)
17462 delete arg1;
17463 }
17464 {
17465 if (temp2)
17466 delete arg2;
17467 }
17468 return resultobj;
17469 fail:
17470 {
17471 if (temp1)
17472 delete arg1;
17473 }
17474 {
17475 if (temp2)
17476 delete arg2;
17477 }
17478 return NULL;
17479 }
17480
17481
17482 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17483 PyObject *resultobj = 0;
17484 wxString *arg1 = 0 ;
17485 wxString *arg2 = 0 ;
17486 size_t arg3 ;
17487 wxString *arg4 = 0 ;
17488 wxString result;
17489 bool temp1 = false ;
17490 bool temp2 = false ;
17491 size_t val3 ;
17492 int ecode3 = 0 ;
17493 bool temp4 = false ;
17494
17495 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17496 {
17497 arg1 = wxString_in_helper(swig_obj[0]);
17498 if (arg1 == NULL) SWIG_fail;
17499 temp1 = true;
17500 }
17501 {
17502 arg2 = wxString_in_helper(swig_obj[1]);
17503 if (arg2 == NULL) SWIG_fail;
17504 temp2 = true;
17505 }
17506 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17507 if (!SWIG_IsOK(ecode3)) {
17508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17509 }
17510 arg3 = static_cast< size_t >(val3);
17511 {
17512 arg4 = wxString_in_helper(swig_obj[3]);
17513 if (arg4 == NULL) SWIG_fail;
17514 temp4 = true;
17515 }
17516 {
17517 PyThreadState* __tstate = wxPyBeginAllowThreads();
17518 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17519 wxPyEndAllowThreads(__tstate);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 {
17523 #if wxUSE_UNICODE
17524 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17525 #else
17526 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17527 #endif
17528 }
17529 {
17530 if (temp1)
17531 delete arg1;
17532 }
17533 {
17534 if (temp2)
17535 delete arg2;
17536 }
17537 {
17538 if (temp4)
17539 delete arg4;
17540 }
17541 return resultobj;
17542 fail:
17543 {
17544 if (temp1)
17545 delete arg1;
17546 }
17547 {
17548 if (temp2)
17549 delete arg2;
17550 }
17551 {
17552 if (temp4)
17553 delete arg4;
17554 }
17555 return NULL;
17556 }
17557
17558
17559 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17560 int argc;
17561 PyObject *argv[5];
17562
17563 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17564 --argc;
17565 if (argc == 1) {
17566 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17567 }
17568 if (argc == 2) {
17569 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17570 }
17571 if (argc == 3) {
17572 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17573 }
17574 if (argc == 4) {
17575 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17576 }
17577
17578 fail:
17579 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17580 return NULL;
17581 }
17582
17583
17584 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17585 PyObject *resultobj = 0;
17586 wxEncodingConverter *result = 0 ;
17587
17588 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17589 {
17590 PyThreadState* __tstate = wxPyBeginAllowThreads();
17591 result = (wxEncodingConverter *)new wxEncodingConverter();
17592 wxPyEndAllowThreads(__tstate);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17596 return resultobj;
17597 fail:
17598 return NULL;
17599 }
17600
17601
17602 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17603 PyObject *resultobj = 0;
17604 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17605 void *argp1 = 0 ;
17606 int res1 = 0 ;
17607 PyObject *swig_obj[1] ;
17608
17609 if (!args) SWIG_fail;
17610 swig_obj[0] = args;
17611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17612 if (!SWIG_IsOK(res1)) {
17613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17614 }
17615 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 delete arg1;
17619
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_Py_Void();
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj = 0;
17632 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17633 wxFontEncoding arg2 ;
17634 wxFontEncoding arg3 ;
17635 int arg4 = (int) wxCONVERT_STRICT ;
17636 bool result;
17637 void *argp1 = 0 ;
17638 int res1 = 0 ;
17639 int val2 ;
17640 int ecode2 = 0 ;
17641 int val3 ;
17642 int ecode3 = 0 ;
17643 int val4 ;
17644 int ecode4 = 0 ;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 PyObject * obj2 = 0 ;
17648 PyObject * obj3 = 0 ;
17649 char * kwnames[] = {
17650 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17651 };
17652
17653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17655 if (!SWIG_IsOK(res1)) {
17656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17657 }
17658 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17659 ecode2 = SWIG_AsVal_int(obj1, &val2);
17660 if (!SWIG_IsOK(ecode2)) {
17661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17662 }
17663 arg2 = static_cast< wxFontEncoding >(val2);
17664 ecode3 = SWIG_AsVal_int(obj2, &val3);
17665 if (!SWIG_IsOK(ecode3)) {
17666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17667 }
17668 arg3 = static_cast< wxFontEncoding >(val3);
17669 if (obj3) {
17670 ecode4 = SWIG_AsVal_int(obj3, &val4);
17671 if (!SWIG_IsOK(ecode4)) {
17672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17673 }
17674 arg4 = static_cast< int >(val4);
17675 }
17676 {
17677 PyThreadState* __tstate = wxPyBeginAllowThreads();
17678 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17679 wxPyEndAllowThreads(__tstate);
17680 if (PyErr_Occurred()) SWIG_fail;
17681 }
17682 {
17683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17684 }
17685 return resultobj;
17686 fail:
17687 return NULL;
17688 }
17689
17690
17691 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17692 PyObject *resultobj = 0;
17693 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17694 wxString *arg2 = 0 ;
17695 wxString result;
17696 void *argp1 = 0 ;
17697 int res1 = 0 ;
17698 bool temp2 = false ;
17699 PyObject * obj0 = 0 ;
17700 PyObject * obj1 = 0 ;
17701 char * kwnames[] = {
17702 (char *) "self",(char *) "input", NULL
17703 };
17704
17705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17707 if (!SWIG_IsOK(res1)) {
17708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17709 }
17710 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17711 {
17712 arg2 = wxString_in_helper(obj1);
17713 if (arg2 == NULL) SWIG_fail;
17714 temp2 = true;
17715 }
17716 {
17717 PyThreadState* __tstate = wxPyBeginAllowThreads();
17718 result = (arg1)->Convert((wxString const &)*arg2);
17719 wxPyEndAllowThreads(__tstate);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 }
17722 {
17723 #if wxUSE_UNICODE
17724 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17725 #else
17726 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17727 #endif
17728 }
17729 {
17730 if (temp2)
17731 delete arg2;
17732 }
17733 return resultobj;
17734 fail:
17735 {
17736 if (temp2)
17737 delete arg2;
17738 }
17739 return NULL;
17740 }
17741
17742
17743 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17744 PyObject *resultobj = 0;
17745 wxFontEncoding arg1 ;
17746 int arg2 = (int) wxPLATFORM_CURRENT ;
17747 wxFontEncodingArray result;
17748 int val1 ;
17749 int ecode1 = 0 ;
17750 int val2 ;
17751 int ecode2 = 0 ;
17752 PyObject * obj0 = 0 ;
17753 PyObject * obj1 = 0 ;
17754 char * kwnames[] = {
17755 (char *) "enc",(char *) "platform", NULL
17756 };
17757
17758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17759 ecode1 = SWIG_AsVal_int(obj0, &val1);
17760 if (!SWIG_IsOK(ecode1)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17762 }
17763 arg1 = static_cast< wxFontEncoding >(val1);
17764 if (obj1) {
17765 ecode2 = SWIG_AsVal_int(obj1, &val2);
17766 if (!SWIG_IsOK(ecode2)) {
17767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17768 }
17769 arg2 = static_cast< int >(val2);
17770 }
17771 {
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 {
17778 resultobj = PyList_New(0);
17779 for (size_t i=0; i < (&result)->GetCount(); i++) {
17780 PyObject* number = PyInt_FromLong((&result)->Item(i));
17781 PyList_Append(resultobj, number);
17782 Py_DECREF(number);
17783 }
17784 }
17785 return resultobj;
17786 fail:
17787 return NULL;
17788 }
17789
17790
17791 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17792 PyObject *resultobj = 0;
17793 wxFontEncoding arg1 ;
17794 wxFontEncodingArray result;
17795 int val1 ;
17796 int ecode1 = 0 ;
17797 PyObject * obj0 = 0 ;
17798 char * kwnames[] = {
17799 (char *) "enc", NULL
17800 };
17801
17802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17803 ecode1 = SWIG_AsVal_int(obj0, &val1);
17804 if (!SWIG_IsOK(ecode1)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17806 }
17807 arg1 = static_cast< wxFontEncoding >(val1);
17808 {
17809 PyThreadState* __tstate = wxPyBeginAllowThreads();
17810 result = wxEncodingConverter::GetAllEquivalents(arg1);
17811 wxPyEndAllowThreads(__tstate);
17812 if (PyErr_Occurred()) SWIG_fail;
17813 }
17814 {
17815 resultobj = PyList_New(0);
17816 for (size_t i=0; i < (&result)->GetCount(); i++) {
17817 PyObject* number = PyInt_FromLong((&result)->Item(i));
17818 PyList_Append(resultobj, number);
17819 Py_DECREF(number);
17820 }
17821 }
17822 return resultobj;
17823 fail:
17824 return NULL;
17825 }
17826
17827
17828 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17829 PyObject *resultobj = 0;
17830 wxFontEncoding arg1 ;
17831 wxFontEncoding arg2 ;
17832 bool result;
17833 int val1 ;
17834 int ecode1 = 0 ;
17835 int val2 ;
17836 int ecode2 = 0 ;
17837 PyObject * obj0 = 0 ;
17838 PyObject * obj1 = 0 ;
17839 char * kwnames[] = {
17840 (char *) "encIn",(char *) "encOut", NULL
17841 };
17842
17843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17844 ecode1 = SWIG_AsVal_int(obj0, &val1);
17845 if (!SWIG_IsOK(ecode1)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17847 }
17848 arg1 = static_cast< wxFontEncoding >(val1);
17849 ecode2 = SWIG_AsVal_int(obj1, &val2);
17850 if (!SWIG_IsOK(ecode2)) {
17851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17852 }
17853 arg2 = static_cast< wxFontEncoding >(val2);
17854 {
17855 PyThreadState* __tstate = wxPyBeginAllowThreads();
17856 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17857 wxPyEndAllowThreads(__tstate);
17858 if (PyErr_Occurred()) SWIG_fail;
17859 }
17860 {
17861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17862 }
17863 return resultobj;
17864 fail:
17865 return NULL;
17866 }
17867
17868
17869 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17870 PyObject *obj;
17871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17872 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17873 return SWIG_Py_Void();
17874 }
17875
17876 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17877 return SWIG_Python_InitShadowInstance(args);
17878 }
17879
17880 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17881 PyObject *resultobj = 0;
17882 wxDC *arg1 = (wxDC *) 0 ;
17883 void *argp1 = 0 ;
17884 int res1 = 0 ;
17885 PyObject *swig_obj[1] ;
17886
17887 if (!args) SWIG_fail;
17888 swig_obj[0] = args;
17889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17890 if (!SWIG_IsOK(res1)) {
17891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17892 }
17893 arg1 = reinterpret_cast< wxDC * >(argp1);
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 delete arg1;
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_Py_Void();
17902 return resultobj;
17903 fail:
17904 return NULL;
17905 }
17906
17907
17908 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj = 0;
17910 wxDC *arg1 = (wxDC *) 0 ;
17911 int arg2 ;
17912 int arg3 ;
17913 wxColour *arg4 = 0 ;
17914 int arg5 = (int) wxFLOOD_SURFACE ;
17915 bool result;
17916 void *argp1 = 0 ;
17917 int res1 = 0 ;
17918 int val2 ;
17919 int ecode2 = 0 ;
17920 int val3 ;
17921 int ecode3 = 0 ;
17922 wxColour temp4 ;
17923 int val5 ;
17924 int ecode5 = 0 ;
17925 PyObject * obj0 = 0 ;
17926 PyObject * obj1 = 0 ;
17927 PyObject * obj2 = 0 ;
17928 PyObject * obj3 = 0 ;
17929 PyObject * obj4 = 0 ;
17930 char * kwnames[] = {
17931 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17932 };
17933
17934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17936 if (!SWIG_IsOK(res1)) {
17937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17938 }
17939 arg1 = reinterpret_cast< wxDC * >(argp1);
17940 ecode2 = SWIG_AsVal_int(obj1, &val2);
17941 if (!SWIG_IsOK(ecode2)) {
17942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17943 }
17944 arg2 = static_cast< int >(val2);
17945 ecode3 = SWIG_AsVal_int(obj2, &val3);
17946 if (!SWIG_IsOK(ecode3)) {
17947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17948 }
17949 arg3 = static_cast< int >(val3);
17950 {
17951 arg4 = &temp4;
17952 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17953 }
17954 if (obj4) {
17955 ecode5 = SWIG_AsVal_int(obj4, &val5);
17956 if (!SWIG_IsOK(ecode5)) {
17957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17958 }
17959 arg5 = static_cast< int >(val5);
17960 }
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 {
17968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17969 }
17970 return resultobj;
17971 fail:
17972 return NULL;
17973 }
17974
17975
17976 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17977 PyObject *resultobj = 0;
17978 wxDC *arg1 = (wxDC *) 0 ;
17979 wxPoint *arg2 = 0 ;
17980 wxColour *arg3 = 0 ;
17981 int arg4 = (int) wxFLOOD_SURFACE ;
17982 bool result;
17983 void *argp1 = 0 ;
17984 int res1 = 0 ;
17985 wxPoint temp2 ;
17986 wxColour temp3 ;
17987 int val4 ;
17988 int ecode4 = 0 ;
17989 PyObject * obj0 = 0 ;
17990 PyObject * obj1 = 0 ;
17991 PyObject * obj2 = 0 ;
17992 PyObject * obj3 = 0 ;
17993 char * kwnames[] = {
17994 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17995 };
17996
17997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17999 if (!SWIG_IsOK(res1)) {
18000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18001 }
18002 arg1 = reinterpret_cast< wxDC * >(argp1);
18003 {
18004 arg2 = &temp2;
18005 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18006 }
18007 {
18008 arg3 = &temp3;
18009 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18010 }
18011 if (obj3) {
18012 ecode4 = SWIG_AsVal_int(obj3, &val4);
18013 if (!SWIG_IsOK(ecode4)) {
18014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18015 }
18016 arg4 = static_cast< int >(val4);
18017 }
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 {
18025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18026 }
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj = 0;
18035 wxDC *arg1 = (wxDC *) 0 ;
18036 wxRect *arg2 = 0 ;
18037 wxColour *arg3 = 0 ;
18038 wxColour *arg4 = 0 ;
18039 wxPoint *arg5 = 0 ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 wxRect temp2 ;
18043 wxColour temp3 ;
18044 wxColour temp4 ;
18045 wxPoint temp5 ;
18046 PyObject * obj0 = 0 ;
18047 PyObject * obj1 = 0 ;
18048 PyObject * obj2 = 0 ;
18049 PyObject * obj3 = 0 ;
18050 PyObject * obj4 = 0 ;
18051 char * kwnames[] = {
18052 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18053 };
18054
18055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18057 if (!SWIG_IsOK(res1)) {
18058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18059 }
18060 arg1 = reinterpret_cast< wxDC * >(argp1);
18061 {
18062 arg2 = &temp2;
18063 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18064 }
18065 {
18066 arg3 = &temp3;
18067 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18068 }
18069 {
18070 arg4 = &temp4;
18071 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18072 }
18073 {
18074 arg5 = &temp5;
18075 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18076 }
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 resultobj = SWIG_Py_Void();
18084 return resultobj;
18085 fail:
18086 return NULL;
18087 }
18088
18089
18090 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18091 PyObject *resultobj = 0;
18092 wxDC *arg1 = (wxDC *) 0 ;
18093 wxRect *arg2 = 0 ;
18094 wxColour *arg3 = 0 ;
18095 wxColour *arg4 = 0 ;
18096 wxDirection arg5 = (wxDirection) wxEAST ;
18097 void *argp1 = 0 ;
18098 int res1 = 0 ;
18099 wxRect temp2 ;
18100 wxColour temp3 ;
18101 wxColour temp4 ;
18102 int val5 ;
18103 int ecode5 = 0 ;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 PyObject * obj2 = 0 ;
18107 PyObject * obj3 = 0 ;
18108 PyObject * obj4 = 0 ;
18109 char * kwnames[] = {
18110 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18111 };
18112
18113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18115 if (!SWIG_IsOK(res1)) {
18116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18117 }
18118 arg1 = reinterpret_cast< wxDC * >(argp1);
18119 {
18120 arg2 = &temp2;
18121 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18122 }
18123 {
18124 arg3 = &temp3;
18125 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18126 }
18127 {
18128 arg4 = &temp4;
18129 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18130 }
18131 if (obj4) {
18132 ecode5 = SWIG_AsVal_int(obj4, &val5);
18133 if (!SWIG_IsOK(ecode5)) {
18134 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18135 }
18136 arg5 = static_cast< wxDirection >(val5);
18137 }
18138 {
18139 PyThreadState* __tstate = wxPyBeginAllowThreads();
18140 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18141 wxPyEndAllowThreads(__tstate);
18142 if (PyErr_Occurred()) SWIG_fail;
18143 }
18144 resultobj = SWIG_Py_Void();
18145 return resultobj;
18146 fail:
18147 return NULL;
18148 }
18149
18150
18151 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18152 PyObject *resultobj = 0;
18153 wxDC *arg1 = (wxDC *) 0 ;
18154 int arg2 ;
18155 int arg3 ;
18156 wxColour result;
18157 void *argp1 = 0 ;
18158 int res1 = 0 ;
18159 int val2 ;
18160 int ecode2 = 0 ;
18161 int val3 ;
18162 int ecode3 = 0 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 PyObject * obj2 = 0 ;
18166 char * kwnames[] = {
18167 (char *) "self",(char *) "x",(char *) "y", NULL
18168 };
18169
18170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18172 if (!SWIG_IsOK(res1)) {
18173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18174 }
18175 arg1 = reinterpret_cast< wxDC * >(argp1);
18176 ecode2 = SWIG_AsVal_int(obj1, &val2);
18177 if (!SWIG_IsOK(ecode2)) {
18178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18179 }
18180 arg2 = static_cast< int >(val2);
18181 ecode3 = SWIG_AsVal_int(obj2, &val3);
18182 if (!SWIG_IsOK(ecode3)) {
18183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18184 }
18185 arg3 = static_cast< int >(val3);
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 result = wxDC_GetPixel(arg1,arg2,arg3);
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18193 return resultobj;
18194 fail:
18195 return NULL;
18196 }
18197
18198
18199 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18200 PyObject *resultobj = 0;
18201 wxDC *arg1 = (wxDC *) 0 ;
18202 wxPoint *arg2 = 0 ;
18203 wxColour result;
18204 void *argp1 = 0 ;
18205 int res1 = 0 ;
18206 wxPoint temp2 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 char * kwnames[] = {
18210 (char *) "self",(char *) "pt", NULL
18211 };
18212
18213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18215 if (!SWIG_IsOK(res1)) {
18216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18217 }
18218 arg1 = reinterpret_cast< wxDC * >(argp1);
18219 {
18220 arg2 = &temp2;
18221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18222 }
18223 {
18224 PyThreadState* __tstate = wxPyBeginAllowThreads();
18225 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18230 return resultobj;
18231 fail:
18232 return NULL;
18233 }
18234
18235
18236 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18237 PyObject *resultobj = 0;
18238 wxDC *arg1 = (wxDC *) 0 ;
18239 int arg2 ;
18240 int arg3 ;
18241 int arg4 ;
18242 int arg5 ;
18243 void *argp1 = 0 ;
18244 int res1 = 0 ;
18245 int val2 ;
18246 int ecode2 = 0 ;
18247 int val3 ;
18248 int ecode3 = 0 ;
18249 int val4 ;
18250 int ecode4 = 0 ;
18251 int val5 ;
18252 int ecode5 = 0 ;
18253 PyObject * obj0 = 0 ;
18254 PyObject * obj1 = 0 ;
18255 PyObject * obj2 = 0 ;
18256 PyObject * obj3 = 0 ;
18257 PyObject * obj4 = 0 ;
18258 char * kwnames[] = {
18259 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18260 };
18261
18262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18264 if (!SWIG_IsOK(res1)) {
18265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18266 }
18267 arg1 = reinterpret_cast< wxDC * >(argp1);
18268 ecode2 = SWIG_AsVal_int(obj1, &val2);
18269 if (!SWIG_IsOK(ecode2)) {
18270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18271 }
18272 arg2 = static_cast< int >(val2);
18273 ecode3 = SWIG_AsVal_int(obj2, &val3);
18274 if (!SWIG_IsOK(ecode3)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18276 }
18277 arg3 = static_cast< int >(val3);
18278 ecode4 = SWIG_AsVal_int(obj3, &val4);
18279 if (!SWIG_IsOK(ecode4)) {
18280 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18281 }
18282 arg4 = static_cast< int >(val4);
18283 ecode5 = SWIG_AsVal_int(obj4, &val5);
18284 if (!SWIG_IsOK(ecode5)) {
18285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18286 }
18287 arg5 = static_cast< int >(val5);
18288 {
18289 PyThreadState* __tstate = wxPyBeginAllowThreads();
18290 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18291 wxPyEndAllowThreads(__tstate);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 resultobj = SWIG_Py_Void();
18295 return resultobj;
18296 fail:
18297 return NULL;
18298 }
18299
18300
18301 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18302 PyObject *resultobj = 0;
18303 wxDC *arg1 = (wxDC *) 0 ;
18304 wxPoint *arg2 = 0 ;
18305 wxPoint *arg3 = 0 ;
18306 void *argp1 = 0 ;
18307 int res1 = 0 ;
18308 wxPoint temp2 ;
18309 wxPoint temp3 ;
18310 PyObject * obj0 = 0 ;
18311 PyObject * obj1 = 0 ;
18312 PyObject * obj2 = 0 ;
18313 char * kwnames[] = {
18314 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18315 };
18316
18317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18319 if (!SWIG_IsOK(res1)) {
18320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18321 }
18322 arg1 = reinterpret_cast< wxDC * >(argp1);
18323 {
18324 arg2 = &temp2;
18325 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18326 }
18327 {
18328 arg3 = &temp3;
18329 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18330 }
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18334 wxPyEndAllowThreads(__tstate);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 resultobj = SWIG_Py_Void();
18338 return resultobj;
18339 fail:
18340 return NULL;
18341 }
18342
18343
18344 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18345 PyObject *resultobj = 0;
18346 wxDC *arg1 = (wxDC *) 0 ;
18347 int arg2 ;
18348 int arg3 ;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 int val2 ;
18352 int ecode2 = 0 ;
18353 int val3 ;
18354 int ecode3 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 PyObject * obj2 = 0 ;
18358 char * kwnames[] = {
18359 (char *) "self",(char *) "x",(char *) "y", NULL
18360 };
18361
18362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18366 }
18367 arg1 = reinterpret_cast< wxDC * >(argp1);
18368 ecode2 = SWIG_AsVal_int(obj1, &val2);
18369 if (!SWIG_IsOK(ecode2)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18371 }
18372 arg2 = static_cast< int >(val2);
18373 ecode3 = SWIG_AsVal_int(obj2, &val3);
18374 if (!SWIG_IsOK(ecode3)) {
18375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18376 }
18377 arg3 = static_cast< int >(val3);
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 (arg1)->CrossHair(arg2,arg3);
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 resultobj = SWIG_Py_Void();
18385 return resultobj;
18386 fail:
18387 return NULL;
18388 }
18389
18390
18391 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18392 PyObject *resultobj = 0;
18393 wxDC *arg1 = (wxDC *) 0 ;
18394 wxPoint *arg2 = 0 ;
18395 void *argp1 = 0 ;
18396 int res1 = 0 ;
18397 wxPoint temp2 ;
18398 PyObject * obj0 = 0 ;
18399 PyObject * obj1 = 0 ;
18400 char * kwnames[] = {
18401 (char *) "self",(char *) "pt", NULL
18402 };
18403
18404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18406 if (!SWIG_IsOK(res1)) {
18407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18408 }
18409 arg1 = reinterpret_cast< wxDC * >(argp1);
18410 {
18411 arg2 = &temp2;
18412 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18413 }
18414 {
18415 PyThreadState* __tstate = wxPyBeginAllowThreads();
18416 (arg1)->CrossHair((wxPoint const &)*arg2);
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 resultobj = SWIG_Py_Void();
18421 return resultobj;
18422 fail:
18423 return NULL;
18424 }
18425
18426
18427 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18428 PyObject *resultobj = 0;
18429 wxDC *arg1 = (wxDC *) 0 ;
18430 int arg2 ;
18431 int arg3 ;
18432 int arg4 ;
18433 int arg5 ;
18434 int arg6 ;
18435 int arg7 ;
18436 void *argp1 = 0 ;
18437 int res1 = 0 ;
18438 int val2 ;
18439 int ecode2 = 0 ;
18440 int val3 ;
18441 int ecode3 = 0 ;
18442 int val4 ;
18443 int ecode4 = 0 ;
18444 int val5 ;
18445 int ecode5 = 0 ;
18446 int val6 ;
18447 int ecode6 = 0 ;
18448 int val7 ;
18449 int ecode7 = 0 ;
18450 PyObject * obj0 = 0 ;
18451 PyObject * obj1 = 0 ;
18452 PyObject * obj2 = 0 ;
18453 PyObject * obj3 = 0 ;
18454 PyObject * obj4 = 0 ;
18455 PyObject * obj5 = 0 ;
18456 PyObject * obj6 = 0 ;
18457 char * kwnames[] = {
18458 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18459 };
18460
18461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18463 if (!SWIG_IsOK(res1)) {
18464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18465 }
18466 arg1 = reinterpret_cast< wxDC * >(argp1);
18467 ecode2 = SWIG_AsVal_int(obj1, &val2);
18468 if (!SWIG_IsOK(ecode2)) {
18469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18470 }
18471 arg2 = static_cast< int >(val2);
18472 ecode3 = SWIG_AsVal_int(obj2, &val3);
18473 if (!SWIG_IsOK(ecode3)) {
18474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18475 }
18476 arg3 = static_cast< int >(val3);
18477 ecode4 = SWIG_AsVal_int(obj3, &val4);
18478 if (!SWIG_IsOK(ecode4)) {
18479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18480 }
18481 arg4 = static_cast< int >(val4);
18482 ecode5 = SWIG_AsVal_int(obj4, &val5);
18483 if (!SWIG_IsOK(ecode5)) {
18484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18485 }
18486 arg5 = static_cast< int >(val5);
18487 ecode6 = SWIG_AsVal_int(obj5, &val6);
18488 if (!SWIG_IsOK(ecode6)) {
18489 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18490 }
18491 arg6 = static_cast< int >(val6);
18492 ecode7 = SWIG_AsVal_int(obj6, &val7);
18493 if (!SWIG_IsOK(ecode7)) {
18494 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18495 }
18496 arg7 = static_cast< int >(val7);
18497 {
18498 PyThreadState* __tstate = wxPyBeginAllowThreads();
18499 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18500 wxPyEndAllowThreads(__tstate);
18501 if (PyErr_Occurred()) SWIG_fail;
18502 }
18503 resultobj = SWIG_Py_Void();
18504 return resultobj;
18505 fail:
18506 return NULL;
18507 }
18508
18509
18510 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18511 PyObject *resultobj = 0;
18512 wxDC *arg1 = (wxDC *) 0 ;
18513 wxPoint *arg2 = 0 ;
18514 wxPoint *arg3 = 0 ;
18515 wxPoint *arg4 = 0 ;
18516 void *argp1 = 0 ;
18517 int res1 = 0 ;
18518 wxPoint temp2 ;
18519 wxPoint temp3 ;
18520 wxPoint temp4 ;
18521 PyObject * obj0 = 0 ;
18522 PyObject * obj1 = 0 ;
18523 PyObject * obj2 = 0 ;
18524 PyObject * obj3 = 0 ;
18525 char * kwnames[] = {
18526 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18527 };
18528
18529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18531 if (!SWIG_IsOK(res1)) {
18532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18533 }
18534 arg1 = reinterpret_cast< wxDC * >(argp1);
18535 {
18536 arg2 = &temp2;
18537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18538 }
18539 {
18540 arg3 = &temp3;
18541 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18542 }
18543 {
18544 arg4 = &temp4;
18545 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18546 }
18547 {
18548 PyThreadState* __tstate = wxPyBeginAllowThreads();
18549 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18550 wxPyEndAllowThreads(__tstate);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 resultobj = SWIG_Py_Void();
18554 return resultobj;
18555 fail:
18556 return NULL;
18557 }
18558
18559
18560 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18561 PyObject *resultobj = 0;
18562 wxDC *arg1 = (wxDC *) 0 ;
18563 int arg2 ;
18564 int arg3 ;
18565 int arg4 ;
18566 int arg5 ;
18567 void *argp1 = 0 ;
18568 int res1 = 0 ;
18569 int val2 ;
18570 int ecode2 = 0 ;
18571 int val3 ;
18572 int ecode3 = 0 ;
18573 int val4 ;
18574 int ecode4 = 0 ;
18575 int val5 ;
18576 int ecode5 = 0 ;
18577 PyObject * obj0 = 0 ;
18578 PyObject * obj1 = 0 ;
18579 PyObject * obj2 = 0 ;
18580 PyObject * obj3 = 0 ;
18581 PyObject * obj4 = 0 ;
18582 char * kwnames[] = {
18583 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18584 };
18585
18586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18588 if (!SWIG_IsOK(res1)) {
18589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18590 }
18591 arg1 = reinterpret_cast< wxDC * >(argp1);
18592 ecode2 = SWIG_AsVal_int(obj1, &val2);
18593 if (!SWIG_IsOK(ecode2)) {
18594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18595 }
18596 arg2 = static_cast< int >(val2);
18597 ecode3 = SWIG_AsVal_int(obj2, &val3);
18598 if (!SWIG_IsOK(ecode3)) {
18599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18600 }
18601 arg3 = static_cast< int >(val3);
18602 ecode4 = SWIG_AsVal_int(obj3, &val4);
18603 if (!SWIG_IsOK(ecode4)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18605 }
18606 arg4 = static_cast< int >(val4);
18607 ecode5 = SWIG_AsVal_int(obj4, &val5);
18608 if (!SWIG_IsOK(ecode5)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18610 }
18611 arg5 = static_cast< int >(val5);
18612 {
18613 PyThreadState* __tstate = wxPyBeginAllowThreads();
18614 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18615 wxPyEndAllowThreads(__tstate);
18616 if (PyErr_Occurred()) SWIG_fail;
18617 }
18618 resultobj = SWIG_Py_Void();
18619 return resultobj;
18620 fail:
18621 return NULL;
18622 }
18623
18624
18625 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18626 PyObject *resultobj = 0;
18627 wxDC *arg1 = (wxDC *) 0 ;
18628 wxRect *arg2 = 0 ;
18629 void *argp1 = 0 ;
18630 int res1 = 0 ;
18631 wxRect temp2 ;
18632 PyObject * obj0 = 0 ;
18633 PyObject * obj1 = 0 ;
18634 char * kwnames[] = {
18635 (char *) "self",(char *) "rect", NULL
18636 };
18637
18638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18640 if (!SWIG_IsOK(res1)) {
18641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18642 }
18643 arg1 = reinterpret_cast< wxDC * >(argp1);
18644 {
18645 arg2 = &temp2;
18646 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18647 }
18648 {
18649 PyThreadState* __tstate = wxPyBeginAllowThreads();
18650 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 resultobj = SWIG_Py_Void();
18655 return resultobj;
18656 fail:
18657 return NULL;
18658 }
18659
18660
18661 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj = 0;
18663 wxDC *arg1 = (wxDC *) 0 ;
18664 int arg2 ;
18665 int arg3 ;
18666 int arg4 ;
18667 int arg5 ;
18668 double arg6 ;
18669 double arg7 ;
18670 void *argp1 = 0 ;
18671 int res1 = 0 ;
18672 int val2 ;
18673 int ecode2 = 0 ;
18674 int val3 ;
18675 int ecode3 = 0 ;
18676 int val4 ;
18677 int ecode4 = 0 ;
18678 int val5 ;
18679 int ecode5 = 0 ;
18680 double val6 ;
18681 int ecode6 = 0 ;
18682 double val7 ;
18683 int ecode7 = 0 ;
18684 PyObject * obj0 = 0 ;
18685 PyObject * obj1 = 0 ;
18686 PyObject * obj2 = 0 ;
18687 PyObject * obj3 = 0 ;
18688 PyObject * obj4 = 0 ;
18689 PyObject * obj5 = 0 ;
18690 PyObject * obj6 = 0 ;
18691 char * kwnames[] = {
18692 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18693 };
18694
18695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18697 if (!SWIG_IsOK(res1)) {
18698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18699 }
18700 arg1 = reinterpret_cast< wxDC * >(argp1);
18701 ecode2 = SWIG_AsVal_int(obj1, &val2);
18702 if (!SWIG_IsOK(ecode2)) {
18703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18704 }
18705 arg2 = static_cast< int >(val2);
18706 ecode3 = SWIG_AsVal_int(obj2, &val3);
18707 if (!SWIG_IsOK(ecode3)) {
18708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18709 }
18710 arg3 = static_cast< int >(val3);
18711 ecode4 = SWIG_AsVal_int(obj3, &val4);
18712 if (!SWIG_IsOK(ecode4)) {
18713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18714 }
18715 arg4 = static_cast< int >(val4);
18716 ecode5 = SWIG_AsVal_int(obj4, &val5);
18717 if (!SWIG_IsOK(ecode5)) {
18718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18719 }
18720 arg5 = static_cast< int >(val5);
18721 ecode6 = SWIG_AsVal_double(obj5, &val6);
18722 if (!SWIG_IsOK(ecode6)) {
18723 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18724 }
18725 arg6 = static_cast< double >(val6);
18726 ecode7 = SWIG_AsVal_double(obj6, &val7);
18727 if (!SWIG_IsOK(ecode7)) {
18728 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18729 }
18730 arg7 = static_cast< double >(val7);
18731 {
18732 PyThreadState* __tstate = wxPyBeginAllowThreads();
18733 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18734 wxPyEndAllowThreads(__tstate);
18735 if (PyErr_Occurred()) SWIG_fail;
18736 }
18737 resultobj = SWIG_Py_Void();
18738 return resultobj;
18739 fail:
18740 return NULL;
18741 }
18742
18743
18744 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18745 PyObject *resultobj = 0;
18746 wxDC *arg1 = (wxDC *) 0 ;
18747 wxPoint *arg2 = 0 ;
18748 wxSize *arg3 = 0 ;
18749 double arg4 ;
18750 double arg5 ;
18751 void *argp1 = 0 ;
18752 int res1 = 0 ;
18753 wxPoint temp2 ;
18754 wxSize temp3 ;
18755 double val4 ;
18756 int ecode4 = 0 ;
18757 double val5 ;
18758 int ecode5 = 0 ;
18759 PyObject * obj0 = 0 ;
18760 PyObject * obj1 = 0 ;
18761 PyObject * obj2 = 0 ;
18762 PyObject * obj3 = 0 ;
18763 PyObject * obj4 = 0 ;
18764 char * kwnames[] = {
18765 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18766 };
18767
18768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18770 if (!SWIG_IsOK(res1)) {
18771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18772 }
18773 arg1 = reinterpret_cast< wxDC * >(argp1);
18774 {
18775 arg2 = &temp2;
18776 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18777 }
18778 {
18779 arg3 = &temp3;
18780 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18781 }
18782 ecode4 = SWIG_AsVal_double(obj3, &val4);
18783 if (!SWIG_IsOK(ecode4)) {
18784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18785 }
18786 arg4 = static_cast< double >(val4);
18787 ecode5 = SWIG_AsVal_double(obj4, &val5);
18788 if (!SWIG_IsOK(ecode5)) {
18789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18790 }
18791 arg5 = static_cast< double >(val5);
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18795 wxPyEndAllowThreads(__tstate);
18796 if (PyErr_Occurred()) SWIG_fail;
18797 }
18798 resultobj = SWIG_Py_Void();
18799 return resultobj;
18800 fail:
18801 return NULL;
18802 }
18803
18804
18805 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18806 PyObject *resultobj = 0;
18807 wxDC *arg1 = (wxDC *) 0 ;
18808 int arg2 ;
18809 int arg3 ;
18810 void *argp1 = 0 ;
18811 int res1 = 0 ;
18812 int val2 ;
18813 int ecode2 = 0 ;
18814 int val3 ;
18815 int ecode3 = 0 ;
18816 PyObject * obj0 = 0 ;
18817 PyObject * obj1 = 0 ;
18818 PyObject * obj2 = 0 ;
18819 char * kwnames[] = {
18820 (char *) "self",(char *) "x",(char *) "y", NULL
18821 };
18822
18823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18825 if (!SWIG_IsOK(res1)) {
18826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18827 }
18828 arg1 = reinterpret_cast< wxDC * >(argp1);
18829 ecode2 = SWIG_AsVal_int(obj1, &val2);
18830 if (!SWIG_IsOK(ecode2)) {
18831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18832 }
18833 arg2 = static_cast< int >(val2);
18834 ecode3 = SWIG_AsVal_int(obj2, &val3);
18835 if (!SWIG_IsOK(ecode3)) {
18836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18837 }
18838 arg3 = static_cast< int >(val3);
18839 {
18840 PyThreadState* __tstate = wxPyBeginAllowThreads();
18841 (arg1)->DrawPoint(arg2,arg3);
18842 wxPyEndAllowThreads(__tstate);
18843 if (PyErr_Occurred()) SWIG_fail;
18844 }
18845 resultobj = SWIG_Py_Void();
18846 return resultobj;
18847 fail:
18848 return NULL;
18849 }
18850
18851
18852 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj = 0;
18854 wxDC *arg1 = (wxDC *) 0 ;
18855 wxPoint *arg2 = 0 ;
18856 void *argp1 = 0 ;
18857 int res1 = 0 ;
18858 wxPoint temp2 ;
18859 PyObject * obj0 = 0 ;
18860 PyObject * obj1 = 0 ;
18861 char * kwnames[] = {
18862 (char *) "self",(char *) "pt", NULL
18863 };
18864
18865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18867 if (!SWIG_IsOK(res1)) {
18868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18869 }
18870 arg1 = reinterpret_cast< wxDC * >(argp1);
18871 {
18872 arg2 = &temp2;
18873 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18874 }
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
18877 (arg1)->DrawPoint((wxPoint const &)*arg2);
18878 wxPyEndAllowThreads(__tstate);
18879 if (PyErr_Occurred()) SWIG_fail;
18880 }
18881 resultobj = SWIG_Py_Void();
18882 return resultobj;
18883 fail:
18884 return NULL;
18885 }
18886
18887
18888 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18889 PyObject *resultobj = 0;
18890 wxDC *arg1 = (wxDC *) 0 ;
18891 int arg2 ;
18892 int arg3 ;
18893 int arg4 ;
18894 int arg5 ;
18895 void *argp1 = 0 ;
18896 int res1 = 0 ;
18897 int val2 ;
18898 int ecode2 = 0 ;
18899 int val3 ;
18900 int ecode3 = 0 ;
18901 int val4 ;
18902 int ecode4 = 0 ;
18903 int val5 ;
18904 int ecode5 = 0 ;
18905 PyObject * obj0 = 0 ;
18906 PyObject * obj1 = 0 ;
18907 PyObject * obj2 = 0 ;
18908 PyObject * obj3 = 0 ;
18909 PyObject * obj4 = 0 ;
18910 char * kwnames[] = {
18911 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18912 };
18913
18914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18916 if (!SWIG_IsOK(res1)) {
18917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18918 }
18919 arg1 = reinterpret_cast< wxDC * >(argp1);
18920 ecode2 = SWIG_AsVal_int(obj1, &val2);
18921 if (!SWIG_IsOK(ecode2)) {
18922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18923 }
18924 arg2 = static_cast< int >(val2);
18925 ecode3 = SWIG_AsVal_int(obj2, &val3);
18926 if (!SWIG_IsOK(ecode3)) {
18927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18928 }
18929 arg3 = static_cast< int >(val3);
18930 ecode4 = SWIG_AsVal_int(obj3, &val4);
18931 if (!SWIG_IsOK(ecode4)) {
18932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18933 }
18934 arg4 = static_cast< int >(val4);
18935 ecode5 = SWIG_AsVal_int(obj4, &val5);
18936 if (!SWIG_IsOK(ecode5)) {
18937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18938 }
18939 arg5 = static_cast< int >(val5);
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18943 wxPyEndAllowThreads(__tstate);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 }
18946 resultobj = SWIG_Py_Void();
18947 return resultobj;
18948 fail:
18949 return NULL;
18950 }
18951
18952
18953 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18954 PyObject *resultobj = 0;
18955 wxDC *arg1 = (wxDC *) 0 ;
18956 wxRect *arg2 = 0 ;
18957 void *argp1 = 0 ;
18958 int res1 = 0 ;
18959 wxRect temp2 ;
18960 PyObject * obj0 = 0 ;
18961 PyObject * obj1 = 0 ;
18962 char * kwnames[] = {
18963 (char *) "self",(char *) "rect", NULL
18964 };
18965
18966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18968 if (!SWIG_IsOK(res1)) {
18969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18970 }
18971 arg1 = reinterpret_cast< wxDC * >(argp1);
18972 {
18973 arg2 = &temp2;
18974 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18975 }
18976 {
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 (arg1)->DrawRectangle((wxRect const &)*arg2);
18979 wxPyEndAllowThreads(__tstate);
18980 if (PyErr_Occurred()) SWIG_fail;
18981 }
18982 resultobj = SWIG_Py_Void();
18983 return resultobj;
18984 fail:
18985 return NULL;
18986 }
18987
18988
18989 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18990 PyObject *resultobj = 0;
18991 wxDC *arg1 = (wxDC *) 0 ;
18992 wxPoint *arg2 = 0 ;
18993 wxSize *arg3 = 0 ;
18994 void *argp1 = 0 ;
18995 int res1 = 0 ;
18996 wxPoint temp2 ;
18997 wxSize temp3 ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 PyObject * obj2 = 0 ;
19001 char * kwnames[] = {
19002 (char *) "self",(char *) "pt",(char *) "sz", NULL
19003 };
19004
19005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19007 if (!SWIG_IsOK(res1)) {
19008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19009 }
19010 arg1 = reinterpret_cast< wxDC * >(argp1);
19011 {
19012 arg2 = &temp2;
19013 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19014 }
19015 {
19016 arg3 = &temp3;
19017 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19018 }
19019 {
19020 PyThreadState* __tstate = wxPyBeginAllowThreads();
19021 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19022 wxPyEndAllowThreads(__tstate);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 }
19025 resultobj = SWIG_Py_Void();
19026 return resultobj;
19027 fail:
19028 return NULL;
19029 }
19030
19031
19032 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19033 PyObject *resultobj = 0;
19034 wxDC *arg1 = (wxDC *) 0 ;
19035 int arg2 ;
19036 int arg3 ;
19037 int arg4 ;
19038 int arg5 ;
19039 double arg6 ;
19040 void *argp1 = 0 ;
19041 int res1 = 0 ;
19042 int val2 ;
19043 int ecode2 = 0 ;
19044 int val3 ;
19045 int ecode3 = 0 ;
19046 int val4 ;
19047 int ecode4 = 0 ;
19048 int val5 ;
19049 int ecode5 = 0 ;
19050 double val6 ;
19051 int ecode6 = 0 ;
19052 PyObject * obj0 = 0 ;
19053 PyObject * obj1 = 0 ;
19054 PyObject * obj2 = 0 ;
19055 PyObject * obj3 = 0 ;
19056 PyObject * obj4 = 0 ;
19057 PyObject * obj5 = 0 ;
19058 char * kwnames[] = {
19059 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19060 };
19061
19062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19064 if (!SWIG_IsOK(res1)) {
19065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19066 }
19067 arg1 = reinterpret_cast< wxDC * >(argp1);
19068 ecode2 = SWIG_AsVal_int(obj1, &val2);
19069 if (!SWIG_IsOK(ecode2)) {
19070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19071 }
19072 arg2 = static_cast< int >(val2);
19073 ecode3 = SWIG_AsVal_int(obj2, &val3);
19074 if (!SWIG_IsOK(ecode3)) {
19075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19076 }
19077 arg3 = static_cast< int >(val3);
19078 ecode4 = SWIG_AsVal_int(obj3, &val4);
19079 if (!SWIG_IsOK(ecode4)) {
19080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19081 }
19082 arg4 = static_cast< int >(val4);
19083 ecode5 = SWIG_AsVal_int(obj4, &val5);
19084 if (!SWIG_IsOK(ecode5)) {
19085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19086 }
19087 arg5 = static_cast< int >(val5);
19088 ecode6 = SWIG_AsVal_double(obj5, &val6);
19089 if (!SWIG_IsOK(ecode6)) {
19090 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19091 }
19092 arg6 = static_cast< double >(val6);
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 resultobj = SWIG_Py_Void();
19100 return resultobj;
19101 fail:
19102 return NULL;
19103 }
19104
19105
19106 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj = 0;
19108 wxDC *arg1 = (wxDC *) 0 ;
19109 wxRect *arg2 = 0 ;
19110 double arg3 ;
19111 void *argp1 = 0 ;
19112 int res1 = 0 ;
19113 wxRect temp2 ;
19114 double val3 ;
19115 int ecode3 = 0 ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 PyObject * obj2 = 0 ;
19119 char * kwnames[] = {
19120 (char *) "self",(char *) "r",(char *) "radius", NULL
19121 };
19122
19123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19125 if (!SWIG_IsOK(res1)) {
19126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19127 }
19128 arg1 = reinterpret_cast< wxDC * >(argp1);
19129 {
19130 arg2 = &temp2;
19131 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19132 }
19133 ecode3 = SWIG_AsVal_double(obj2, &val3);
19134 if (!SWIG_IsOK(ecode3)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19136 }
19137 arg3 = static_cast< double >(val3);
19138 {
19139 PyThreadState* __tstate = wxPyBeginAllowThreads();
19140 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19141 wxPyEndAllowThreads(__tstate);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 resultobj = SWIG_Py_Void();
19145 return resultobj;
19146 fail:
19147 return NULL;
19148 }
19149
19150
19151 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19152 PyObject *resultobj = 0;
19153 wxDC *arg1 = (wxDC *) 0 ;
19154 wxPoint *arg2 = 0 ;
19155 wxSize *arg3 = 0 ;
19156 double arg4 ;
19157 void *argp1 = 0 ;
19158 int res1 = 0 ;
19159 wxPoint temp2 ;
19160 wxSize temp3 ;
19161 double val4 ;
19162 int ecode4 = 0 ;
19163 PyObject * obj0 = 0 ;
19164 PyObject * obj1 = 0 ;
19165 PyObject * obj2 = 0 ;
19166 PyObject * obj3 = 0 ;
19167 char * kwnames[] = {
19168 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19169 };
19170
19171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19175 }
19176 arg1 = reinterpret_cast< wxDC * >(argp1);
19177 {
19178 arg2 = &temp2;
19179 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19180 }
19181 {
19182 arg3 = &temp3;
19183 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19184 }
19185 ecode4 = SWIG_AsVal_double(obj3, &val4);
19186 if (!SWIG_IsOK(ecode4)) {
19187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19188 }
19189 arg4 = static_cast< double >(val4);
19190 {
19191 PyThreadState* __tstate = wxPyBeginAllowThreads();
19192 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19193 wxPyEndAllowThreads(__tstate);
19194 if (PyErr_Occurred()) SWIG_fail;
19195 }
19196 resultobj = SWIG_Py_Void();
19197 return resultobj;
19198 fail:
19199 return NULL;
19200 }
19201
19202
19203 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19204 PyObject *resultobj = 0;
19205 wxDC *arg1 = (wxDC *) 0 ;
19206 int arg2 ;
19207 int arg3 ;
19208 int arg4 ;
19209 void *argp1 = 0 ;
19210 int res1 = 0 ;
19211 int val2 ;
19212 int ecode2 = 0 ;
19213 int val3 ;
19214 int ecode3 = 0 ;
19215 int val4 ;
19216 int ecode4 = 0 ;
19217 PyObject * obj0 = 0 ;
19218 PyObject * obj1 = 0 ;
19219 PyObject * obj2 = 0 ;
19220 PyObject * obj3 = 0 ;
19221 char * kwnames[] = {
19222 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19223 };
19224
19225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19227 if (!SWIG_IsOK(res1)) {
19228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19229 }
19230 arg1 = reinterpret_cast< wxDC * >(argp1);
19231 ecode2 = SWIG_AsVal_int(obj1, &val2);
19232 if (!SWIG_IsOK(ecode2)) {
19233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19234 }
19235 arg2 = static_cast< int >(val2);
19236 ecode3 = SWIG_AsVal_int(obj2, &val3);
19237 if (!SWIG_IsOK(ecode3)) {
19238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19239 }
19240 arg3 = static_cast< int >(val3);
19241 ecode4 = SWIG_AsVal_int(obj3, &val4);
19242 if (!SWIG_IsOK(ecode4)) {
19243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19244 }
19245 arg4 = static_cast< int >(val4);
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 (arg1)->DrawCircle(arg2,arg3,arg4);
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_Py_Void();
19253 return resultobj;
19254 fail:
19255 return NULL;
19256 }
19257
19258
19259 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19260 PyObject *resultobj = 0;
19261 wxDC *arg1 = (wxDC *) 0 ;
19262 wxPoint *arg2 = 0 ;
19263 int arg3 ;
19264 void *argp1 = 0 ;
19265 int res1 = 0 ;
19266 wxPoint temp2 ;
19267 int val3 ;
19268 int ecode3 = 0 ;
19269 PyObject * obj0 = 0 ;
19270 PyObject * obj1 = 0 ;
19271 PyObject * obj2 = 0 ;
19272 char * kwnames[] = {
19273 (char *) "self",(char *) "pt",(char *) "radius", NULL
19274 };
19275
19276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19278 if (!SWIG_IsOK(res1)) {
19279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19280 }
19281 arg1 = reinterpret_cast< wxDC * >(argp1);
19282 {
19283 arg2 = &temp2;
19284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19285 }
19286 ecode3 = SWIG_AsVal_int(obj2, &val3);
19287 if (!SWIG_IsOK(ecode3)) {
19288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19289 }
19290 arg3 = static_cast< int >(val3);
19291 {
19292 PyThreadState* __tstate = wxPyBeginAllowThreads();
19293 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19294 wxPyEndAllowThreads(__tstate);
19295 if (PyErr_Occurred()) SWIG_fail;
19296 }
19297 resultobj = SWIG_Py_Void();
19298 return resultobj;
19299 fail:
19300 return NULL;
19301 }
19302
19303
19304 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19305 PyObject *resultobj = 0;
19306 wxDC *arg1 = (wxDC *) 0 ;
19307 int arg2 ;
19308 int arg3 ;
19309 int arg4 ;
19310 int arg5 ;
19311 void *argp1 = 0 ;
19312 int res1 = 0 ;
19313 int val2 ;
19314 int ecode2 = 0 ;
19315 int val3 ;
19316 int ecode3 = 0 ;
19317 int val4 ;
19318 int ecode4 = 0 ;
19319 int val5 ;
19320 int ecode5 = 0 ;
19321 PyObject * obj0 = 0 ;
19322 PyObject * obj1 = 0 ;
19323 PyObject * obj2 = 0 ;
19324 PyObject * obj3 = 0 ;
19325 PyObject * obj4 = 0 ;
19326 char * kwnames[] = {
19327 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19328 };
19329
19330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19332 if (!SWIG_IsOK(res1)) {
19333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19334 }
19335 arg1 = reinterpret_cast< wxDC * >(argp1);
19336 ecode2 = SWIG_AsVal_int(obj1, &val2);
19337 if (!SWIG_IsOK(ecode2)) {
19338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19339 }
19340 arg2 = static_cast< int >(val2);
19341 ecode3 = SWIG_AsVal_int(obj2, &val3);
19342 if (!SWIG_IsOK(ecode3)) {
19343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19344 }
19345 arg3 = static_cast< int >(val3);
19346 ecode4 = SWIG_AsVal_int(obj3, &val4);
19347 if (!SWIG_IsOK(ecode4)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19349 }
19350 arg4 = static_cast< int >(val4);
19351 ecode5 = SWIG_AsVal_int(obj4, &val5);
19352 if (!SWIG_IsOK(ecode5)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19354 }
19355 arg5 = static_cast< int >(val5);
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19359 wxPyEndAllowThreads(__tstate);
19360 if (PyErr_Occurred()) SWIG_fail;
19361 }
19362 resultobj = SWIG_Py_Void();
19363 return resultobj;
19364 fail:
19365 return NULL;
19366 }
19367
19368
19369 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19370 PyObject *resultobj = 0;
19371 wxDC *arg1 = (wxDC *) 0 ;
19372 wxRect *arg2 = 0 ;
19373 void *argp1 = 0 ;
19374 int res1 = 0 ;
19375 wxRect temp2 ;
19376 PyObject * obj0 = 0 ;
19377 PyObject * obj1 = 0 ;
19378 char * kwnames[] = {
19379 (char *) "self",(char *) "rect", NULL
19380 };
19381
19382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19384 if (!SWIG_IsOK(res1)) {
19385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19386 }
19387 arg1 = reinterpret_cast< wxDC * >(argp1);
19388 {
19389 arg2 = &temp2;
19390 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19391 }
19392 {
19393 PyThreadState* __tstate = wxPyBeginAllowThreads();
19394 (arg1)->DrawEllipse((wxRect const &)*arg2);
19395 wxPyEndAllowThreads(__tstate);
19396 if (PyErr_Occurred()) SWIG_fail;
19397 }
19398 resultobj = SWIG_Py_Void();
19399 return resultobj;
19400 fail:
19401 return NULL;
19402 }
19403
19404
19405 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj = 0;
19407 wxDC *arg1 = (wxDC *) 0 ;
19408 wxPoint *arg2 = 0 ;
19409 wxSize *arg3 = 0 ;
19410 void *argp1 = 0 ;
19411 int res1 = 0 ;
19412 wxPoint temp2 ;
19413 wxSize temp3 ;
19414 PyObject * obj0 = 0 ;
19415 PyObject * obj1 = 0 ;
19416 PyObject * obj2 = 0 ;
19417 char * kwnames[] = {
19418 (char *) "self",(char *) "pt",(char *) "sz", NULL
19419 };
19420
19421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19423 if (!SWIG_IsOK(res1)) {
19424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19425 }
19426 arg1 = reinterpret_cast< wxDC * >(argp1);
19427 {
19428 arg2 = &temp2;
19429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19430 }
19431 {
19432 arg3 = &temp3;
19433 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19434 }
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19438 wxPyEndAllowThreads(__tstate);
19439 if (PyErr_Occurred()) SWIG_fail;
19440 }
19441 resultobj = SWIG_Py_Void();
19442 return resultobj;
19443 fail:
19444 return NULL;
19445 }
19446
19447
19448 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19449 PyObject *resultobj = 0;
19450 wxDC *arg1 = (wxDC *) 0 ;
19451 wxIcon *arg2 = 0 ;
19452 int arg3 ;
19453 int arg4 ;
19454 void *argp1 = 0 ;
19455 int res1 = 0 ;
19456 void *argp2 = 0 ;
19457 int res2 = 0 ;
19458 int val3 ;
19459 int ecode3 = 0 ;
19460 int val4 ;
19461 int ecode4 = 0 ;
19462 PyObject * obj0 = 0 ;
19463 PyObject * obj1 = 0 ;
19464 PyObject * obj2 = 0 ;
19465 PyObject * obj3 = 0 ;
19466 char * kwnames[] = {
19467 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19468 };
19469
19470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19472 if (!SWIG_IsOK(res1)) {
19473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19474 }
19475 arg1 = reinterpret_cast< wxDC * >(argp1);
19476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19477 if (!SWIG_IsOK(res2)) {
19478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19479 }
19480 if (!argp2) {
19481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19482 }
19483 arg2 = reinterpret_cast< wxIcon * >(argp2);
19484 ecode3 = SWIG_AsVal_int(obj2, &val3);
19485 if (!SWIG_IsOK(ecode3)) {
19486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19487 }
19488 arg3 = static_cast< int >(val3);
19489 ecode4 = SWIG_AsVal_int(obj3, &val4);
19490 if (!SWIG_IsOK(ecode4)) {
19491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19492 }
19493 arg4 = static_cast< int >(val4);
19494 {
19495 PyThreadState* __tstate = wxPyBeginAllowThreads();
19496 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19497 wxPyEndAllowThreads(__tstate);
19498 if (PyErr_Occurred()) SWIG_fail;
19499 }
19500 resultobj = SWIG_Py_Void();
19501 return resultobj;
19502 fail:
19503 return NULL;
19504 }
19505
19506
19507 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj = 0;
19509 wxDC *arg1 = (wxDC *) 0 ;
19510 wxIcon *arg2 = 0 ;
19511 wxPoint *arg3 = 0 ;
19512 void *argp1 = 0 ;
19513 int res1 = 0 ;
19514 void *argp2 = 0 ;
19515 int res2 = 0 ;
19516 wxPoint temp3 ;
19517 PyObject * obj0 = 0 ;
19518 PyObject * obj1 = 0 ;
19519 PyObject * obj2 = 0 ;
19520 char * kwnames[] = {
19521 (char *) "self",(char *) "icon",(char *) "pt", NULL
19522 };
19523
19524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19526 if (!SWIG_IsOK(res1)) {
19527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19528 }
19529 arg1 = reinterpret_cast< wxDC * >(argp1);
19530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19531 if (!SWIG_IsOK(res2)) {
19532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19533 }
19534 if (!argp2) {
19535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19536 }
19537 arg2 = reinterpret_cast< wxIcon * >(argp2);
19538 {
19539 arg3 = &temp3;
19540 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19541 }
19542 {
19543 PyThreadState* __tstate = wxPyBeginAllowThreads();
19544 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 resultobj = SWIG_Py_Void();
19549 return resultobj;
19550 fail:
19551 return NULL;
19552 }
19553
19554
19555 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxDC *arg1 = (wxDC *) 0 ;
19558 wxBitmap *arg2 = 0 ;
19559 int arg3 ;
19560 int arg4 ;
19561 bool arg5 = (bool) false ;
19562 void *argp1 = 0 ;
19563 int res1 = 0 ;
19564 void *argp2 = 0 ;
19565 int res2 = 0 ;
19566 int val3 ;
19567 int ecode3 = 0 ;
19568 int val4 ;
19569 int ecode4 = 0 ;
19570 bool val5 ;
19571 int ecode5 = 0 ;
19572 PyObject * obj0 = 0 ;
19573 PyObject * obj1 = 0 ;
19574 PyObject * obj2 = 0 ;
19575 PyObject * obj3 = 0 ;
19576 PyObject * obj4 = 0 ;
19577 char * kwnames[] = {
19578 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19579 };
19580
19581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19583 if (!SWIG_IsOK(res1)) {
19584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19585 }
19586 arg1 = reinterpret_cast< wxDC * >(argp1);
19587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19588 if (!SWIG_IsOK(res2)) {
19589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19590 }
19591 if (!argp2) {
19592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19593 }
19594 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19595 ecode3 = SWIG_AsVal_int(obj2, &val3);
19596 if (!SWIG_IsOK(ecode3)) {
19597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19598 }
19599 arg3 = static_cast< int >(val3);
19600 ecode4 = SWIG_AsVal_int(obj3, &val4);
19601 if (!SWIG_IsOK(ecode4)) {
19602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19603 }
19604 arg4 = static_cast< int >(val4);
19605 if (obj4) {
19606 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19607 if (!SWIG_IsOK(ecode5)) {
19608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19609 }
19610 arg5 = static_cast< bool >(val5);
19611 }
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
19618 resultobj = SWIG_Py_Void();
19619 return resultobj;
19620 fail:
19621 return NULL;
19622 }
19623
19624
19625 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19626 PyObject *resultobj = 0;
19627 wxDC *arg1 = (wxDC *) 0 ;
19628 wxBitmap *arg2 = 0 ;
19629 wxPoint *arg3 = 0 ;
19630 bool arg4 = (bool) false ;
19631 void *argp1 = 0 ;
19632 int res1 = 0 ;
19633 void *argp2 = 0 ;
19634 int res2 = 0 ;
19635 wxPoint temp3 ;
19636 bool val4 ;
19637 int ecode4 = 0 ;
19638 PyObject * obj0 = 0 ;
19639 PyObject * obj1 = 0 ;
19640 PyObject * obj2 = 0 ;
19641 PyObject * obj3 = 0 ;
19642 char * kwnames[] = {
19643 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19644 };
19645
19646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19648 if (!SWIG_IsOK(res1)) {
19649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19650 }
19651 arg1 = reinterpret_cast< wxDC * >(argp1);
19652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19653 if (!SWIG_IsOK(res2)) {
19654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19655 }
19656 if (!argp2) {
19657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19658 }
19659 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19660 {
19661 arg3 = &temp3;
19662 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19663 }
19664 if (obj3) {
19665 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19666 if (!SWIG_IsOK(ecode4)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19668 }
19669 arg4 = static_cast< bool >(val4);
19670 }
19671 {
19672 PyThreadState* __tstate = wxPyBeginAllowThreads();
19673 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19674 wxPyEndAllowThreads(__tstate);
19675 if (PyErr_Occurred()) SWIG_fail;
19676 }
19677 resultobj = SWIG_Py_Void();
19678 return resultobj;
19679 fail:
19680 return NULL;
19681 }
19682
19683
19684 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19685 PyObject *resultobj = 0;
19686 wxDC *arg1 = (wxDC *) 0 ;
19687 wxString *arg2 = 0 ;
19688 int arg3 ;
19689 int arg4 ;
19690 void *argp1 = 0 ;
19691 int res1 = 0 ;
19692 bool temp2 = false ;
19693 int val3 ;
19694 int ecode3 = 0 ;
19695 int val4 ;
19696 int ecode4 = 0 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 PyObject * obj2 = 0 ;
19700 PyObject * obj3 = 0 ;
19701 char * kwnames[] = {
19702 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19703 };
19704
19705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19707 if (!SWIG_IsOK(res1)) {
19708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19709 }
19710 arg1 = reinterpret_cast< wxDC * >(argp1);
19711 {
19712 arg2 = wxString_in_helper(obj1);
19713 if (arg2 == NULL) SWIG_fail;
19714 temp2 = true;
19715 }
19716 ecode3 = SWIG_AsVal_int(obj2, &val3);
19717 if (!SWIG_IsOK(ecode3)) {
19718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19719 }
19720 arg3 = static_cast< int >(val3);
19721 ecode4 = SWIG_AsVal_int(obj3, &val4);
19722 if (!SWIG_IsOK(ecode4)) {
19723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19724 }
19725 arg4 = static_cast< int >(val4);
19726 {
19727 PyThreadState* __tstate = wxPyBeginAllowThreads();
19728 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19729 wxPyEndAllowThreads(__tstate);
19730 if (PyErr_Occurred()) SWIG_fail;
19731 }
19732 resultobj = SWIG_Py_Void();
19733 {
19734 if (temp2)
19735 delete arg2;
19736 }
19737 return resultobj;
19738 fail:
19739 {
19740 if (temp2)
19741 delete arg2;
19742 }
19743 return NULL;
19744 }
19745
19746
19747 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19748 PyObject *resultobj = 0;
19749 wxDC *arg1 = (wxDC *) 0 ;
19750 wxString *arg2 = 0 ;
19751 wxPoint *arg3 = 0 ;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 bool temp2 = false ;
19755 wxPoint temp3 ;
19756 PyObject * obj0 = 0 ;
19757 PyObject * obj1 = 0 ;
19758 PyObject * obj2 = 0 ;
19759 char * kwnames[] = {
19760 (char *) "self",(char *) "text",(char *) "pt", NULL
19761 };
19762
19763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19765 if (!SWIG_IsOK(res1)) {
19766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19767 }
19768 arg1 = reinterpret_cast< wxDC * >(argp1);
19769 {
19770 arg2 = wxString_in_helper(obj1);
19771 if (arg2 == NULL) SWIG_fail;
19772 temp2 = true;
19773 }
19774 {
19775 arg3 = &temp3;
19776 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19777 }
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 resultobj = SWIG_Py_Void();
19785 {
19786 if (temp2)
19787 delete arg2;
19788 }
19789 return resultobj;
19790 fail:
19791 {
19792 if (temp2)
19793 delete arg2;
19794 }
19795 return NULL;
19796 }
19797
19798
19799 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj = 0;
19801 wxDC *arg1 = (wxDC *) 0 ;
19802 wxString *arg2 = 0 ;
19803 int arg3 ;
19804 int arg4 ;
19805 double arg5 ;
19806 void *argp1 = 0 ;
19807 int res1 = 0 ;
19808 bool temp2 = false ;
19809 int val3 ;
19810 int ecode3 = 0 ;
19811 int val4 ;
19812 int ecode4 = 0 ;
19813 double val5 ;
19814 int ecode5 = 0 ;
19815 PyObject * obj0 = 0 ;
19816 PyObject * obj1 = 0 ;
19817 PyObject * obj2 = 0 ;
19818 PyObject * obj3 = 0 ;
19819 PyObject * obj4 = 0 ;
19820 char * kwnames[] = {
19821 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19822 };
19823
19824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19826 if (!SWIG_IsOK(res1)) {
19827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19828 }
19829 arg1 = reinterpret_cast< wxDC * >(argp1);
19830 {
19831 arg2 = wxString_in_helper(obj1);
19832 if (arg2 == NULL) SWIG_fail;
19833 temp2 = true;
19834 }
19835 ecode3 = SWIG_AsVal_int(obj2, &val3);
19836 if (!SWIG_IsOK(ecode3)) {
19837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19838 }
19839 arg3 = static_cast< int >(val3);
19840 ecode4 = SWIG_AsVal_int(obj3, &val4);
19841 if (!SWIG_IsOK(ecode4)) {
19842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19843 }
19844 arg4 = static_cast< int >(val4);
19845 ecode5 = SWIG_AsVal_double(obj4, &val5);
19846 if (!SWIG_IsOK(ecode5)) {
19847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19848 }
19849 arg5 = static_cast< double >(val5);
19850 {
19851 PyThreadState* __tstate = wxPyBeginAllowThreads();
19852 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19853 wxPyEndAllowThreads(__tstate);
19854 if (PyErr_Occurred()) SWIG_fail;
19855 }
19856 resultobj = SWIG_Py_Void();
19857 {
19858 if (temp2)
19859 delete arg2;
19860 }
19861 return resultobj;
19862 fail:
19863 {
19864 if (temp2)
19865 delete arg2;
19866 }
19867 return NULL;
19868 }
19869
19870
19871 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19872 PyObject *resultobj = 0;
19873 wxDC *arg1 = (wxDC *) 0 ;
19874 wxString *arg2 = 0 ;
19875 wxPoint *arg3 = 0 ;
19876 double arg4 ;
19877 void *argp1 = 0 ;
19878 int res1 = 0 ;
19879 bool temp2 = false ;
19880 wxPoint temp3 ;
19881 double val4 ;
19882 int ecode4 = 0 ;
19883 PyObject * obj0 = 0 ;
19884 PyObject * obj1 = 0 ;
19885 PyObject * obj2 = 0 ;
19886 PyObject * obj3 = 0 ;
19887 char * kwnames[] = {
19888 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19889 };
19890
19891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19893 if (!SWIG_IsOK(res1)) {
19894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19895 }
19896 arg1 = reinterpret_cast< wxDC * >(argp1);
19897 {
19898 arg2 = wxString_in_helper(obj1);
19899 if (arg2 == NULL) SWIG_fail;
19900 temp2 = true;
19901 }
19902 {
19903 arg3 = &temp3;
19904 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19905 }
19906 ecode4 = SWIG_AsVal_double(obj3, &val4);
19907 if (!SWIG_IsOK(ecode4)) {
19908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19909 }
19910 arg4 = static_cast< double >(val4);
19911 {
19912 PyThreadState* __tstate = wxPyBeginAllowThreads();
19913 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19914 wxPyEndAllowThreads(__tstate);
19915 if (PyErr_Occurred()) SWIG_fail;
19916 }
19917 resultobj = SWIG_Py_Void();
19918 {
19919 if (temp2)
19920 delete arg2;
19921 }
19922 return resultobj;
19923 fail:
19924 {
19925 if (temp2)
19926 delete arg2;
19927 }
19928 return NULL;
19929 }
19930
19931
19932 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19933 PyObject *resultobj = 0;
19934 wxDC *arg1 = (wxDC *) 0 ;
19935 int arg2 ;
19936 int arg3 ;
19937 int arg4 ;
19938 int arg5 ;
19939 wxDC *arg6 = (wxDC *) 0 ;
19940 int arg7 ;
19941 int arg8 ;
19942 int arg9 = (int) wxCOPY ;
19943 bool arg10 = (bool) false ;
19944 int arg11 = (int) -1 ;
19945 int arg12 = (int) -1 ;
19946 bool result;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 int val2 ;
19950 int ecode2 = 0 ;
19951 int val3 ;
19952 int ecode3 = 0 ;
19953 int val4 ;
19954 int ecode4 = 0 ;
19955 int val5 ;
19956 int ecode5 = 0 ;
19957 void *argp6 = 0 ;
19958 int res6 = 0 ;
19959 int val7 ;
19960 int ecode7 = 0 ;
19961 int val8 ;
19962 int ecode8 = 0 ;
19963 int val9 ;
19964 int ecode9 = 0 ;
19965 bool val10 ;
19966 int ecode10 = 0 ;
19967 int val11 ;
19968 int ecode11 = 0 ;
19969 int val12 ;
19970 int ecode12 = 0 ;
19971 PyObject * obj0 = 0 ;
19972 PyObject * obj1 = 0 ;
19973 PyObject * obj2 = 0 ;
19974 PyObject * obj3 = 0 ;
19975 PyObject * obj4 = 0 ;
19976 PyObject * obj5 = 0 ;
19977 PyObject * obj6 = 0 ;
19978 PyObject * obj7 = 0 ;
19979 PyObject * obj8 = 0 ;
19980 PyObject * obj9 = 0 ;
19981 PyObject * obj10 = 0 ;
19982 PyObject * obj11 = 0 ;
19983 char * kwnames[] = {
19984 (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
19985 };
19986
19987 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;
19988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19989 if (!SWIG_IsOK(res1)) {
19990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19991 }
19992 arg1 = reinterpret_cast< wxDC * >(argp1);
19993 ecode2 = SWIG_AsVal_int(obj1, &val2);
19994 if (!SWIG_IsOK(ecode2)) {
19995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19996 }
19997 arg2 = static_cast< int >(val2);
19998 ecode3 = SWIG_AsVal_int(obj2, &val3);
19999 if (!SWIG_IsOK(ecode3)) {
20000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20001 }
20002 arg3 = static_cast< int >(val3);
20003 ecode4 = SWIG_AsVal_int(obj3, &val4);
20004 if (!SWIG_IsOK(ecode4)) {
20005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20006 }
20007 arg4 = static_cast< int >(val4);
20008 ecode5 = SWIG_AsVal_int(obj4, &val5);
20009 if (!SWIG_IsOK(ecode5)) {
20010 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20011 }
20012 arg5 = static_cast< int >(val5);
20013 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20014 if (!SWIG_IsOK(res6)) {
20015 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20016 }
20017 arg6 = reinterpret_cast< wxDC * >(argp6);
20018 ecode7 = SWIG_AsVal_int(obj6, &val7);
20019 if (!SWIG_IsOK(ecode7)) {
20020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20021 }
20022 arg7 = static_cast< int >(val7);
20023 ecode8 = SWIG_AsVal_int(obj7, &val8);
20024 if (!SWIG_IsOK(ecode8)) {
20025 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20026 }
20027 arg8 = static_cast< int >(val8);
20028 if (obj8) {
20029 ecode9 = SWIG_AsVal_int(obj8, &val9);
20030 if (!SWIG_IsOK(ecode9)) {
20031 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20032 }
20033 arg9 = static_cast< int >(val9);
20034 }
20035 if (obj9) {
20036 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20037 if (!SWIG_IsOK(ecode10)) {
20038 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20039 }
20040 arg10 = static_cast< bool >(val10);
20041 }
20042 if (obj10) {
20043 ecode11 = SWIG_AsVal_int(obj10, &val11);
20044 if (!SWIG_IsOK(ecode11)) {
20045 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20046 }
20047 arg11 = static_cast< int >(val11);
20048 }
20049 if (obj11) {
20050 ecode12 = SWIG_AsVal_int(obj11, &val12);
20051 if (!SWIG_IsOK(ecode12)) {
20052 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20053 }
20054 arg12 = static_cast< int >(val12);
20055 }
20056 {
20057 PyThreadState* __tstate = wxPyBeginAllowThreads();
20058 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20059 wxPyEndAllowThreads(__tstate);
20060 if (PyErr_Occurred()) SWIG_fail;
20061 }
20062 {
20063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20064 }
20065 return resultobj;
20066 fail:
20067 return NULL;
20068 }
20069
20070
20071 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20072 PyObject *resultobj = 0;
20073 wxDC *arg1 = (wxDC *) 0 ;
20074 wxPoint *arg2 = 0 ;
20075 wxSize *arg3 = 0 ;
20076 wxDC *arg4 = (wxDC *) 0 ;
20077 wxPoint *arg5 = 0 ;
20078 int arg6 = (int) wxCOPY ;
20079 bool arg7 = (bool) false ;
20080 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20081 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20082 bool result;
20083 void *argp1 = 0 ;
20084 int res1 = 0 ;
20085 wxPoint temp2 ;
20086 wxSize temp3 ;
20087 void *argp4 = 0 ;
20088 int res4 = 0 ;
20089 wxPoint temp5 ;
20090 int val6 ;
20091 int ecode6 = 0 ;
20092 bool val7 ;
20093 int ecode7 = 0 ;
20094 wxPoint temp8 ;
20095 PyObject * obj0 = 0 ;
20096 PyObject * obj1 = 0 ;
20097 PyObject * obj2 = 0 ;
20098 PyObject * obj3 = 0 ;
20099 PyObject * obj4 = 0 ;
20100 PyObject * obj5 = 0 ;
20101 PyObject * obj6 = 0 ;
20102 PyObject * obj7 = 0 ;
20103 char * kwnames[] = {
20104 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20105 };
20106
20107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20109 if (!SWIG_IsOK(res1)) {
20110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20111 }
20112 arg1 = reinterpret_cast< wxDC * >(argp1);
20113 {
20114 arg2 = &temp2;
20115 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20116 }
20117 {
20118 arg3 = &temp3;
20119 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20120 }
20121 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20122 if (!SWIG_IsOK(res4)) {
20123 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20124 }
20125 arg4 = reinterpret_cast< wxDC * >(argp4);
20126 {
20127 arg5 = &temp5;
20128 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20129 }
20130 if (obj5) {
20131 ecode6 = SWIG_AsVal_int(obj5, &val6);
20132 if (!SWIG_IsOK(ecode6)) {
20133 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20134 }
20135 arg6 = static_cast< int >(val6);
20136 }
20137 if (obj6) {
20138 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20139 if (!SWIG_IsOK(ecode7)) {
20140 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20141 }
20142 arg7 = static_cast< bool >(val7);
20143 }
20144 if (obj7) {
20145 {
20146 arg8 = &temp8;
20147 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20148 }
20149 }
20150 {
20151 PyThreadState* __tstate = wxPyBeginAllowThreads();
20152 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20153 wxPyEndAllowThreads(__tstate);
20154 if (PyErr_Occurred()) SWIG_fail;
20155 }
20156 {
20157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20158 }
20159 return resultobj;
20160 fail:
20161 return NULL;
20162 }
20163
20164
20165 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20166 PyObject *resultobj = 0;
20167 wxDC *arg1 = (wxDC *) 0 ;
20168 int arg2 ;
20169 int arg3 ;
20170 int arg4 ;
20171 int arg5 ;
20172 void *argp1 = 0 ;
20173 int res1 = 0 ;
20174 int val2 ;
20175 int ecode2 = 0 ;
20176 int val3 ;
20177 int ecode3 = 0 ;
20178 int val4 ;
20179 int ecode4 = 0 ;
20180 int val5 ;
20181 int ecode5 = 0 ;
20182 PyObject * obj0 = 0 ;
20183 PyObject * obj1 = 0 ;
20184 PyObject * obj2 = 0 ;
20185 PyObject * obj3 = 0 ;
20186 PyObject * obj4 = 0 ;
20187 char * kwnames[] = {
20188 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20189 };
20190
20191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20193 if (!SWIG_IsOK(res1)) {
20194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20195 }
20196 arg1 = reinterpret_cast< wxDC * >(argp1);
20197 ecode2 = SWIG_AsVal_int(obj1, &val2);
20198 if (!SWIG_IsOK(ecode2)) {
20199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20200 }
20201 arg2 = static_cast< int >(val2);
20202 ecode3 = SWIG_AsVal_int(obj2, &val3);
20203 if (!SWIG_IsOK(ecode3)) {
20204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20205 }
20206 arg3 = static_cast< int >(val3);
20207 ecode4 = SWIG_AsVal_int(obj3, &val4);
20208 if (!SWIG_IsOK(ecode4)) {
20209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20210 }
20211 arg4 = static_cast< int >(val4);
20212 ecode5 = SWIG_AsVal_int(obj4, &val5);
20213 if (!SWIG_IsOK(ecode5)) {
20214 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20215 }
20216 arg5 = static_cast< int >(val5);
20217 {
20218 PyThreadState* __tstate = wxPyBeginAllowThreads();
20219 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20220 wxPyEndAllowThreads(__tstate);
20221 if (PyErr_Occurred()) SWIG_fail;
20222 }
20223 resultobj = SWIG_Py_Void();
20224 return resultobj;
20225 fail:
20226 return NULL;
20227 }
20228
20229
20230 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20231 PyObject *resultobj = 0;
20232 wxDC *arg1 = (wxDC *) 0 ;
20233 wxPoint *arg2 = 0 ;
20234 wxSize *arg3 = 0 ;
20235 void *argp1 = 0 ;
20236 int res1 = 0 ;
20237 wxPoint temp2 ;
20238 wxSize temp3 ;
20239 PyObject * obj0 = 0 ;
20240 PyObject * obj1 = 0 ;
20241 PyObject * obj2 = 0 ;
20242 char * kwnames[] = {
20243 (char *) "self",(char *) "pt",(char *) "sz", NULL
20244 };
20245
20246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20248 if (!SWIG_IsOK(res1)) {
20249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20250 }
20251 arg1 = reinterpret_cast< wxDC * >(argp1);
20252 {
20253 arg2 = &temp2;
20254 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20255 }
20256 {
20257 arg3 = &temp3;
20258 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20259 }
20260 {
20261 PyThreadState* __tstate = wxPyBeginAllowThreads();
20262 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20263 wxPyEndAllowThreads(__tstate);
20264 if (PyErr_Occurred()) SWIG_fail;
20265 }
20266 resultobj = SWIG_Py_Void();
20267 return resultobj;
20268 fail:
20269 return NULL;
20270 }
20271
20272
20273 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20274 PyObject *resultobj = 0;
20275 wxDC *arg1 = (wxDC *) 0 ;
20276 wxRegion *arg2 = 0 ;
20277 void *argp1 = 0 ;
20278 int res1 = 0 ;
20279 void *argp2 = 0 ;
20280 int res2 = 0 ;
20281 PyObject * obj0 = 0 ;
20282 PyObject * obj1 = 0 ;
20283 char * kwnames[] = {
20284 (char *) "self",(char *) "region", NULL
20285 };
20286
20287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20289 if (!SWIG_IsOK(res1)) {
20290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20291 }
20292 arg1 = reinterpret_cast< wxDC * >(argp1);
20293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20294 if (!SWIG_IsOK(res2)) {
20295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20296 }
20297 if (!argp2) {
20298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20299 }
20300 arg2 = reinterpret_cast< wxRegion * >(argp2);
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_Py_Void();
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxDC *arg1 = (wxDC *) 0 ;
20317 wxRect *arg2 = 0 ;
20318 void *argp1 = 0 ;
20319 int res1 = 0 ;
20320 wxRect temp2 ;
20321 PyObject * obj0 = 0 ;
20322 PyObject * obj1 = 0 ;
20323 char * kwnames[] = {
20324 (char *) "self",(char *) "rect", NULL
20325 };
20326
20327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20329 if (!SWIG_IsOK(res1)) {
20330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20331 }
20332 arg1 = reinterpret_cast< wxDC * >(argp1);
20333 {
20334 arg2 = &temp2;
20335 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20336 }
20337 {
20338 PyThreadState* __tstate = wxPyBeginAllowThreads();
20339 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 resultobj = SWIG_Py_Void();
20344 return resultobj;
20345 fail:
20346 return NULL;
20347 }
20348
20349
20350 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20351 PyObject *resultobj = 0;
20352 wxDC *arg1 = (wxDC *) 0 ;
20353 int arg2 ;
20354 wxPoint *arg3 = (wxPoint *) 0 ;
20355 int arg4 = (int) 0 ;
20356 int arg5 = (int) 0 ;
20357 void *argp1 = 0 ;
20358 int res1 = 0 ;
20359 int val4 ;
20360 int ecode4 = 0 ;
20361 int val5 ;
20362 int ecode5 = 0 ;
20363 PyObject * obj0 = 0 ;
20364 PyObject * obj1 = 0 ;
20365 PyObject * obj2 = 0 ;
20366 PyObject * obj3 = 0 ;
20367 char * kwnames[] = {
20368 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20369 };
20370
20371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20373 if (!SWIG_IsOK(res1)) {
20374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20375 }
20376 arg1 = reinterpret_cast< wxDC * >(argp1);
20377 {
20378 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20379 if (arg3 == NULL) SWIG_fail;
20380 }
20381 if (obj2) {
20382 ecode4 = SWIG_AsVal_int(obj2, &val4);
20383 if (!SWIG_IsOK(ecode4)) {
20384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20385 }
20386 arg4 = static_cast< int >(val4);
20387 }
20388 if (obj3) {
20389 ecode5 = SWIG_AsVal_int(obj3, &val5);
20390 if (!SWIG_IsOK(ecode5)) {
20391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20392 }
20393 arg5 = static_cast< int >(val5);
20394 }
20395 {
20396 PyThreadState* __tstate = wxPyBeginAllowThreads();
20397 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20398 wxPyEndAllowThreads(__tstate);
20399 if (PyErr_Occurred()) SWIG_fail;
20400 }
20401 resultobj = SWIG_Py_Void();
20402 {
20403 if (arg3) delete [] arg3;
20404 }
20405 return resultobj;
20406 fail:
20407 {
20408 if (arg3) delete [] arg3;
20409 }
20410 return NULL;
20411 }
20412
20413
20414 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20415 PyObject *resultobj = 0;
20416 wxDC *arg1 = (wxDC *) 0 ;
20417 int arg2 ;
20418 wxPoint *arg3 = (wxPoint *) 0 ;
20419 int arg4 = (int) 0 ;
20420 int arg5 = (int) 0 ;
20421 int arg6 = (int) wxODDEVEN_RULE ;
20422 void *argp1 = 0 ;
20423 int res1 = 0 ;
20424 int val4 ;
20425 int ecode4 = 0 ;
20426 int val5 ;
20427 int ecode5 = 0 ;
20428 int val6 ;
20429 int ecode6 = 0 ;
20430 PyObject * obj0 = 0 ;
20431 PyObject * obj1 = 0 ;
20432 PyObject * obj2 = 0 ;
20433 PyObject * obj3 = 0 ;
20434 PyObject * obj4 = 0 ;
20435 char * kwnames[] = {
20436 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20437 };
20438
20439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20441 if (!SWIG_IsOK(res1)) {
20442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20443 }
20444 arg1 = reinterpret_cast< wxDC * >(argp1);
20445 {
20446 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20447 if (arg3 == NULL) SWIG_fail;
20448 }
20449 if (obj2) {
20450 ecode4 = SWIG_AsVal_int(obj2, &val4);
20451 if (!SWIG_IsOK(ecode4)) {
20452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20453 }
20454 arg4 = static_cast< int >(val4);
20455 }
20456 if (obj3) {
20457 ecode5 = SWIG_AsVal_int(obj3, &val5);
20458 if (!SWIG_IsOK(ecode5)) {
20459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20460 }
20461 arg5 = static_cast< int >(val5);
20462 }
20463 if (obj4) {
20464 ecode6 = SWIG_AsVal_int(obj4, &val6);
20465 if (!SWIG_IsOK(ecode6)) {
20466 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20467 }
20468 arg6 = static_cast< int >(val6);
20469 }
20470 {
20471 PyThreadState* __tstate = wxPyBeginAllowThreads();
20472 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20473 wxPyEndAllowThreads(__tstate);
20474 if (PyErr_Occurred()) SWIG_fail;
20475 }
20476 resultobj = SWIG_Py_Void();
20477 {
20478 if (arg3) delete [] arg3;
20479 }
20480 return resultobj;
20481 fail:
20482 {
20483 if (arg3) delete [] arg3;
20484 }
20485 return NULL;
20486 }
20487
20488
20489 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj = 0;
20491 wxDC *arg1 = (wxDC *) 0 ;
20492 wxString *arg2 = 0 ;
20493 wxRect *arg3 = 0 ;
20494 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20495 int arg5 = (int) -1 ;
20496 void *argp1 = 0 ;
20497 int res1 = 0 ;
20498 bool temp2 = false ;
20499 wxRect temp3 ;
20500 int val4 ;
20501 int ecode4 = 0 ;
20502 int val5 ;
20503 int ecode5 = 0 ;
20504 PyObject * obj0 = 0 ;
20505 PyObject * obj1 = 0 ;
20506 PyObject * obj2 = 0 ;
20507 PyObject * obj3 = 0 ;
20508 PyObject * obj4 = 0 ;
20509 char * kwnames[] = {
20510 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20511 };
20512
20513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20515 if (!SWIG_IsOK(res1)) {
20516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20517 }
20518 arg1 = reinterpret_cast< wxDC * >(argp1);
20519 {
20520 arg2 = wxString_in_helper(obj1);
20521 if (arg2 == NULL) SWIG_fail;
20522 temp2 = true;
20523 }
20524 {
20525 arg3 = &temp3;
20526 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20527 }
20528 if (obj3) {
20529 ecode4 = SWIG_AsVal_int(obj3, &val4);
20530 if (!SWIG_IsOK(ecode4)) {
20531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20532 }
20533 arg4 = static_cast< int >(val4);
20534 }
20535 if (obj4) {
20536 ecode5 = SWIG_AsVal_int(obj4, &val5);
20537 if (!SWIG_IsOK(ecode5)) {
20538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20539 }
20540 arg5 = static_cast< int >(val5);
20541 }
20542 {
20543 PyThreadState* __tstate = wxPyBeginAllowThreads();
20544 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 resultobj = SWIG_Py_Void();
20549 {
20550 if (temp2)
20551 delete arg2;
20552 }
20553 return resultobj;
20554 fail:
20555 {
20556 if (temp2)
20557 delete arg2;
20558 }
20559 return NULL;
20560 }
20561
20562
20563 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20564 PyObject *resultobj = 0;
20565 wxDC *arg1 = (wxDC *) 0 ;
20566 wxString *arg2 = 0 ;
20567 wxBitmap *arg3 = 0 ;
20568 wxRect *arg4 = 0 ;
20569 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20570 int arg6 = (int) -1 ;
20571 wxRect result;
20572 void *argp1 = 0 ;
20573 int res1 = 0 ;
20574 bool temp2 = false ;
20575 void *argp3 = 0 ;
20576 int res3 = 0 ;
20577 wxRect temp4 ;
20578 int val5 ;
20579 int ecode5 = 0 ;
20580 int val6 ;
20581 int ecode6 = 0 ;
20582 PyObject * obj0 = 0 ;
20583 PyObject * obj1 = 0 ;
20584 PyObject * obj2 = 0 ;
20585 PyObject * obj3 = 0 ;
20586 PyObject * obj4 = 0 ;
20587 PyObject * obj5 = 0 ;
20588 char * kwnames[] = {
20589 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20590 };
20591
20592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20594 if (!SWIG_IsOK(res1)) {
20595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20596 }
20597 arg1 = reinterpret_cast< wxDC * >(argp1);
20598 {
20599 arg2 = wxString_in_helper(obj1);
20600 if (arg2 == NULL) SWIG_fail;
20601 temp2 = true;
20602 }
20603 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20604 if (!SWIG_IsOK(res3)) {
20605 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20606 }
20607 if (!argp3) {
20608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20609 }
20610 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20611 {
20612 arg4 = &temp4;
20613 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20614 }
20615 if (obj4) {
20616 ecode5 = SWIG_AsVal_int(obj4, &val5);
20617 if (!SWIG_IsOK(ecode5)) {
20618 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20619 }
20620 arg5 = static_cast< int >(val5);
20621 }
20622 if (obj5) {
20623 ecode6 = SWIG_AsVal_int(obj5, &val6);
20624 if (!SWIG_IsOK(ecode6)) {
20625 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20626 }
20627 arg6 = static_cast< int >(val6);
20628 }
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20636 {
20637 if (temp2)
20638 delete arg2;
20639 }
20640 return resultobj;
20641 fail:
20642 {
20643 if (temp2)
20644 delete arg2;
20645 }
20646 return NULL;
20647 }
20648
20649
20650 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20651 PyObject *resultobj = 0;
20652 wxDC *arg1 = (wxDC *) 0 ;
20653 int arg2 ;
20654 wxPoint *arg3 = (wxPoint *) 0 ;
20655 void *argp1 = 0 ;
20656 int res1 = 0 ;
20657 PyObject * obj0 = 0 ;
20658 PyObject * obj1 = 0 ;
20659 char * kwnames[] = {
20660 (char *) "self",(char *) "points", NULL
20661 };
20662
20663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20665 if (!SWIG_IsOK(res1)) {
20666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20667 }
20668 arg1 = reinterpret_cast< wxDC * >(argp1);
20669 {
20670 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20671 if (arg3 == NULL) SWIG_fail;
20672 }
20673 {
20674 PyThreadState* __tstate = wxPyBeginAllowThreads();
20675 (arg1)->DrawSpline(arg2,arg3);
20676 wxPyEndAllowThreads(__tstate);
20677 if (PyErr_Occurred()) SWIG_fail;
20678 }
20679 resultobj = SWIG_Py_Void();
20680 {
20681 if (arg3) delete [] arg3;
20682 }
20683 return resultobj;
20684 fail:
20685 {
20686 if (arg3) delete [] arg3;
20687 }
20688 return NULL;
20689 }
20690
20691
20692 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20693 PyObject *resultobj = 0;
20694 wxDC *arg1 = (wxDC *) 0 ;
20695 void *argp1 = 0 ;
20696 int res1 = 0 ;
20697 PyObject *swig_obj[1] ;
20698
20699 if (!args) SWIG_fail;
20700 swig_obj[0] = args;
20701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20702 if (!SWIG_IsOK(res1)) {
20703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20704 }
20705 arg1 = reinterpret_cast< wxDC * >(argp1);
20706 {
20707 PyThreadState* __tstate = wxPyBeginAllowThreads();
20708 (arg1)->Clear();
20709 wxPyEndAllowThreads(__tstate);
20710 if (PyErr_Occurred()) SWIG_fail;
20711 }
20712 resultobj = SWIG_Py_Void();
20713 return resultobj;
20714 fail:
20715 return NULL;
20716 }
20717
20718
20719 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20720 PyObject *resultobj = 0;
20721 wxDC *arg1 = (wxDC *) 0 ;
20722 wxString *arg2 = 0 ;
20723 bool result;
20724 void *argp1 = 0 ;
20725 int res1 = 0 ;
20726 bool temp2 = false ;
20727 PyObject * obj0 = 0 ;
20728 PyObject * obj1 = 0 ;
20729 char * kwnames[] = {
20730 (char *) "self",(char *) "message", NULL
20731 };
20732
20733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20735 if (!SWIG_IsOK(res1)) {
20736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20737 }
20738 arg1 = reinterpret_cast< wxDC * >(argp1);
20739 {
20740 arg2 = wxString_in_helper(obj1);
20741 if (arg2 == NULL) SWIG_fail;
20742 temp2 = true;
20743 }
20744 {
20745 PyThreadState* __tstate = wxPyBeginAllowThreads();
20746 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20747 wxPyEndAllowThreads(__tstate);
20748 if (PyErr_Occurred()) SWIG_fail;
20749 }
20750 {
20751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20752 }
20753 {
20754 if (temp2)
20755 delete arg2;
20756 }
20757 return resultobj;
20758 fail:
20759 {
20760 if (temp2)
20761 delete arg2;
20762 }
20763 return NULL;
20764 }
20765
20766
20767 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20768 PyObject *resultobj = 0;
20769 wxDC *arg1 = (wxDC *) 0 ;
20770 void *argp1 = 0 ;
20771 int res1 = 0 ;
20772 PyObject *swig_obj[1] ;
20773
20774 if (!args) SWIG_fail;
20775 swig_obj[0] = args;
20776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20777 if (!SWIG_IsOK(res1)) {
20778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20779 }
20780 arg1 = reinterpret_cast< wxDC * >(argp1);
20781 {
20782 PyThreadState* __tstate = wxPyBeginAllowThreads();
20783 (arg1)->EndDoc();
20784 wxPyEndAllowThreads(__tstate);
20785 if (PyErr_Occurred()) SWIG_fail;
20786 }
20787 resultobj = SWIG_Py_Void();
20788 return resultobj;
20789 fail:
20790 return NULL;
20791 }
20792
20793
20794 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20795 PyObject *resultobj = 0;
20796 wxDC *arg1 = (wxDC *) 0 ;
20797 void *argp1 = 0 ;
20798 int res1 = 0 ;
20799 PyObject *swig_obj[1] ;
20800
20801 if (!args) SWIG_fail;
20802 swig_obj[0] = args;
20803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20804 if (!SWIG_IsOK(res1)) {
20805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20806 }
20807 arg1 = reinterpret_cast< wxDC * >(argp1);
20808 {
20809 PyThreadState* __tstate = wxPyBeginAllowThreads();
20810 (arg1)->StartPage();
20811 wxPyEndAllowThreads(__tstate);
20812 if (PyErr_Occurred()) SWIG_fail;
20813 }
20814 resultobj = SWIG_Py_Void();
20815 return resultobj;
20816 fail:
20817 return NULL;
20818 }
20819
20820
20821 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 PyObject *resultobj = 0;
20823 wxDC *arg1 = (wxDC *) 0 ;
20824 void *argp1 = 0 ;
20825 int res1 = 0 ;
20826 PyObject *swig_obj[1] ;
20827
20828 if (!args) SWIG_fail;
20829 swig_obj[0] = args;
20830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20831 if (!SWIG_IsOK(res1)) {
20832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20833 }
20834 arg1 = reinterpret_cast< wxDC * >(argp1);
20835 {
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 (arg1)->EndPage();
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_Py_Void();
20842 return resultobj;
20843 fail:
20844 return NULL;
20845 }
20846
20847
20848 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj = 0;
20850 wxDC *arg1 = (wxDC *) 0 ;
20851 wxFont *arg2 = 0 ;
20852 void *argp1 = 0 ;
20853 int res1 = 0 ;
20854 void *argp2 = 0 ;
20855 int res2 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 PyObject * obj1 = 0 ;
20858 char * kwnames[] = {
20859 (char *) "self",(char *) "font", NULL
20860 };
20861
20862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20866 }
20867 arg1 = reinterpret_cast< wxDC * >(argp1);
20868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20869 if (!SWIG_IsOK(res2)) {
20870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20871 }
20872 if (!argp2) {
20873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20874 }
20875 arg2 = reinterpret_cast< wxFont * >(argp2);
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 (arg1)->SetFont((wxFont const &)*arg2);
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = SWIG_Py_Void();
20883 return resultobj;
20884 fail:
20885 return NULL;
20886 }
20887
20888
20889 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj = 0;
20891 wxDC *arg1 = (wxDC *) 0 ;
20892 wxPen *arg2 = 0 ;
20893 void *argp1 = 0 ;
20894 int res1 = 0 ;
20895 void *argp2 = 0 ;
20896 int res2 = 0 ;
20897 PyObject * obj0 = 0 ;
20898 PyObject * obj1 = 0 ;
20899 char * kwnames[] = {
20900 (char *) "self",(char *) "pen", NULL
20901 };
20902
20903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20905 if (!SWIG_IsOK(res1)) {
20906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20907 }
20908 arg1 = reinterpret_cast< wxDC * >(argp1);
20909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20910 if (!SWIG_IsOK(res2)) {
20911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20912 }
20913 if (!argp2) {
20914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20915 }
20916 arg2 = reinterpret_cast< wxPen * >(argp2);
20917 {
20918 PyThreadState* __tstate = wxPyBeginAllowThreads();
20919 (arg1)->SetPen((wxPen const &)*arg2);
20920 wxPyEndAllowThreads(__tstate);
20921 if (PyErr_Occurred()) SWIG_fail;
20922 }
20923 resultobj = SWIG_Py_Void();
20924 return resultobj;
20925 fail:
20926 return NULL;
20927 }
20928
20929
20930 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20931 PyObject *resultobj = 0;
20932 wxDC *arg1 = (wxDC *) 0 ;
20933 wxBrush *arg2 = 0 ;
20934 void *argp1 = 0 ;
20935 int res1 = 0 ;
20936 void *argp2 = 0 ;
20937 int res2 = 0 ;
20938 PyObject * obj0 = 0 ;
20939 PyObject * obj1 = 0 ;
20940 char * kwnames[] = {
20941 (char *) "self",(char *) "brush", NULL
20942 };
20943
20944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20946 if (!SWIG_IsOK(res1)) {
20947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20948 }
20949 arg1 = reinterpret_cast< wxDC * >(argp1);
20950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20951 if (!SWIG_IsOK(res2)) {
20952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20953 }
20954 if (!argp2) {
20955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20956 }
20957 arg2 = reinterpret_cast< wxBrush * >(argp2);
20958 {
20959 PyThreadState* __tstate = wxPyBeginAllowThreads();
20960 (arg1)->SetBrush((wxBrush const &)*arg2);
20961 wxPyEndAllowThreads(__tstate);
20962 if (PyErr_Occurred()) SWIG_fail;
20963 }
20964 resultobj = SWIG_Py_Void();
20965 return resultobj;
20966 fail:
20967 return NULL;
20968 }
20969
20970
20971 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20972 PyObject *resultobj = 0;
20973 wxDC *arg1 = (wxDC *) 0 ;
20974 wxBrush *arg2 = 0 ;
20975 void *argp1 = 0 ;
20976 int res1 = 0 ;
20977 void *argp2 = 0 ;
20978 int res2 = 0 ;
20979 PyObject * obj0 = 0 ;
20980 PyObject * obj1 = 0 ;
20981 char * kwnames[] = {
20982 (char *) "self",(char *) "brush", NULL
20983 };
20984
20985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20987 if (!SWIG_IsOK(res1)) {
20988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20989 }
20990 arg1 = reinterpret_cast< wxDC * >(argp1);
20991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20992 if (!SWIG_IsOK(res2)) {
20993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20994 }
20995 if (!argp2) {
20996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20997 }
20998 arg2 = reinterpret_cast< wxBrush * >(argp2);
20999 {
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 (arg1)->SetBackground((wxBrush const &)*arg2);
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_Py_Void();
21006 return resultobj;
21007 fail:
21008 return NULL;
21009 }
21010
21011
21012 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21013 PyObject *resultobj = 0;
21014 wxDC *arg1 = (wxDC *) 0 ;
21015 int arg2 ;
21016 void *argp1 = 0 ;
21017 int res1 = 0 ;
21018 int val2 ;
21019 int ecode2 = 0 ;
21020 PyObject * obj0 = 0 ;
21021 PyObject * obj1 = 0 ;
21022 char * kwnames[] = {
21023 (char *) "self",(char *) "mode", NULL
21024 };
21025
21026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21028 if (!SWIG_IsOK(res1)) {
21029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21030 }
21031 arg1 = reinterpret_cast< wxDC * >(argp1);
21032 ecode2 = SWIG_AsVal_int(obj1, &val2);
21033 if (!SWIG_IsOK(ecode2)) {
21034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21035 }
21036 arg2 = static_cast< int >(val2);
21037 {
21038 PyThreadState* __tstate = wxPyBeginAllowThreads();
21039 (arg1)->SetBackgroundMode(arg2);
21040 wxPyEndAllowThreads(__tstate);
21041 if (PyErr_Occurred()) SWIG_fail;
21042 }
21043 resultobj = SWIG_Py_Void();
21044 return resultobj;
21045 fail:
21046 return NULL;
21047 }
21048
21049
21050 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21051 PyObject *resultobj = 0;
21052 wxDC *arg1 = (wxDC *) 0 ;
21053 wxPalette *arg2 = 0 ;
21054 void *argp1 = 0 ;
21055 int res1 = 0 ;
21056 void *argp2 = 0 ;
21057 int res2 = 0 ;
21058 PyObject * obj0 = 0 ;
21059 PyObject * obj1 = 0 ;
21060 char * kwnames[] = {
21061 (char *) "self",(char *) "palette", NULL
21062 };
21063
21064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21066 if (!SWIG_IsOK(res1)) {
21067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21068 }
21069 arg1 = reinterpret_cast< wxDC * >(argp1);
21070 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21071 if (!SWIG_IsOK(res2)) {
21072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21073 }
21074 if (!argp2) {
21075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21076 }
21077 arg2 = reinterpret_cast< wxPalette * >(argp2);
21078 {
21079 PyThreadState* __tstate = wxPyBeginAllowThreads();
21080 (arg1)->SetPalette((wxPalette const &)*arg2);
21081 wxPyEndAllowThreads(__tstate);
21082 if (PyErr_Occurred()) SWIG_fail;
21083 }
21084 resultobj = SWIG_Py_Void();
21085 return resultobj;
21086 fail:
21087 return NULL;
21088 }
21089
21090
21091 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21092 PyObject *resultobj = 0;
21093 wxDC *arg1 = (wxDC *) 0 ;
21094 void *argp1 = 0 ;
21095 int res1 = 0 ;
21096 PyObject *swig_obj[1] ;
21097
21098 if (!args) SWIG_fail;
21099 swig_obj[0] = args;
21100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21101 if (!SWIG_IsOK(res1)) {
21102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21103 }
21104 arg1 = reinterpret_cast< wxDC * >(argp1);
21105 {
21106 PyThreadState* __tstate = wxPyBeginAllowThreads();
21107 (arg1)->DestroyClippingRegion();
21108 wxPyEndAllowThreads(__tstate);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 resultobj = SWIG_Py_Void();
21112 return resultobj;
21113 fail:
21114 return NULL;
21115 }
21116
21117
21118 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21119 PyObject *resultobj = 0;
21120 wxDC *arg1 = (wxDC *) 0 ;
21121 int *arg2 = (int *) 0 ;
21122 int *arg3 = (int *) 0 ;
21123 int *arg4 = (int *) 0 ;
21124 int *arg5 = (int *) 0 ;
21125 void *argp1 = 0 ;
21126 int res1 = 0 ;
21127 int temp2 ;
21128 int res2 = SWIG_TMPOBJ ;
21129 int temp3 ;
21130 int res3 = SWIG_TMPOBJ ;
21131 int temp4 ;
21132 int res4 = SWIG_TMPOBJ ;
21133 int temp5 ;
21134 int res5 = SWIG_TMPOBJ ;
21135 PyObject *swig_obj[1] ;
21136
21137 arg2 = &temp2;
21138 arg3 = &temp3;
21139 arg4 = &temp4;
21140 arg5 = &temp5;
21141 if (!args) SWIG_fail;
21142 swig_obj[0] = args;
21143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21144 if (!SWIG_IsOK(res1)) {
21145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21146 }
21147 arg1 = reinterpret_cast< wxDC * >(argp1);
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21151 wxPyEndAllowThreads(__tstate);
21152 if (PyErr_Occurred()) SWIG_fail;
21153 }
21154 resultobj = SWIG_Py_Void();
21155 if (SWIG_IsTmpObj(res2)) {
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21157 } else {
21158 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21160 }
21161 if (SWIG_IsTmpObj(res3)) {
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21163 } else {
21164 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21166 }
21167 if (SWIG_IsTmpObj(res4)) {
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21169 } else {
21170 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21172 }
21173 if (SWIG_IsTmpObj(res5)) {
21174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21175 } else {
21176 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21178 }
21179 return resultobj;
21180 fail:
21181 return NULL;
21182 }
21183
21184
21185 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21186 PyObject *resultobj = 0;
21187 wxDC *arg1 = (wxDC *) 0 ;
21188 wxRect result;
21189 void *argp1 = 0 ;
21190 int res1 = 0 ;
21191 PyObject *swig_obj[1] ;
21192
21193 if (!args) SWIG_fail;
21194 swig_obj[0] = args;
21195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21196 if (!SWIG_IsOK(res1)) {
21197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21198 }
21199 arg1 = reinterpret_cast< wxDC * >(argp1);
21200 {
21201 PyThreadState* __tstate = wxPyBeginAllowThreads();
21202 result = wxDC_GetClippingRect(arg1);
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21207 return resultobj;
21208 fail:
21209 return NULL;
21210 }
21211
21212
21213 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21214 PyObject *resultobj = 0;
21215 wxDC *arg1 = (wxDC *) 0 ;
21216 int result;
21217 void *argp1 = 0 ;
21218 int res1 = 0 ;
21219 PyObject *swig_obj[1] ;
21220
21221 if (!args) SWIG_fail;
21222 swig_obj[0] = args;
21223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21224 if (!SWIG_IsOK(res1)) {
21225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21226 }
21227 arg1 = reinterpret_cast< wxDC * >(argp1);
21228 {
21229 PyThreadState* __tstate = wxPyBeginAllowThreads();
21230 result = (int)((wxDC const *)arg1)->GetCharHeight();
21231 wxPyEndAllowThreads(__tstate);
21232 if (PyErr_Occurred()) SWIG_fail;
21233 }
21234 resultobj = SWIG_From_int(static_cast< int >(result));
21235 return resultobj;
21236 fail:
21237 return NULL;
21238 }
21239
21240
21241 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21242 PyObject *resultobj = 0;
21243 wxDC *arg1 = (wxDC *) 0 ;
21244 int result;
21245 void *argp1 = 0 ;
21246 int res1 = 0 ;
21247 PyObject *swig_obj[1] ;
21248
21249 if (!args) SWIG_fail;
21250 swig_obj[0] = args;
21251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21252 if (!SWIG_IsOK(res1)) {
21253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21254 }
21255 arg1 = reinterpret_cast< wxDC * >(argp1);
21256 {
21257 PyThreadState* __tstate = wxPyBeginAllowThreads();
21258 result = (int)((wxDC const *)arg1)->GetCharWidth();
21259 wxPyEndAllowThreads(__tstate);
21260 if (PyErr_Occurred()) SWIG_fail;
21261 }
21262 resultobj = SWIG_From_int(static_cast< int >(result));
21263 return resultobj;
21264 fail:
21265 return NULL;
21266 }
21267
21268
21269 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21270 PyObject *resultobj = 0;
21271 wxDC *arg1 = (wxDC *) 0 ;
21272 wxString *arg2 = 0 ;
21273 int *arg3 = (int *) 0 ;
21274 int *arg4 = (int *) 0 ;
21275 void *argp1 = 0 ;
21276 int res1 = 0 ;
21277 bool temp2 = false ;
21278 int temp3 ;
21279 int res3 = SWIG_TMPOBJ ;
21280 int temp4 ;
21281 int res4 = SWIG_TMPOBJ ;
21282 PyObject * obj0 = 0 ;
21283 PyObject * obj1 = 0 ;
21284 char * kwnames[] = {
21285 (char *) "self",(char *) "string", NULL
21286 };
21287
21288 arg3 = &temp3;
21289 arg4 = &temp4;
21290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21292 if (!SWIG_IsOK(res1)) {
21293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21294 }
21295 arg1 = reinterpret_cast< wxDC * >(argp1);
21296 {
21297 arg2 = wxString_in_helper(obj1);
21298 if (arg2 == NULL) SWIG_fail;
21299 temp2 = true;
21300 }
21301 {
21302 PyThreadState* __tstate = wxPyBeginAllowThreads();
21303 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21304 wxPyEndAllowThreads(__tstate);
21305 if (PyErr_Occurred()) SWIG_fail;
21306 }
21307 resultobj = SWIG_Py_Void();
21308 if (SWIG_IsTmpObj(res3)) {
21309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21310 } else {
21311 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21313 }
21314 if (SWIG_IsTmpObj(res4)) {
21315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21316 } else {
21317 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21319 }
21320 {
21321 if (temp2)
21322 delete arg2;
21323 }
21324 return resultobj;
21325 fail:
21326 {
21327 if (temp2)
21328 delete arg2;
21329 }
21330 return NULL;
21331 }
21332
21333
21334 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21335 PyObject *resultobj = 0;
21336 wxDC *arg1 = (wxDC *) 0 ;
21337 wxString *arg2 = 0 ;
21338 int *arg3 = (int *) 0 ;
21339 int *arg4 = (int *) 0 ;
21340 int *arg5 = (int *) 0 ;
21341 int *arg6 = (int *) 0 ;
21342 wxFont *arg7 = (wxFont *) NULL ;
21343 void *argp1 = 0 ;
21344 int res1 = 0 ;
21345 bool temp2 = false ;
21346 int temp3 ;
21347 int res3 = SWIG_TMPOBJ ;
21348 int temp4 ;
21349 int res4 = SWIG_TMPOBJ ;
21350 int temp5 ;
21351 int res5 = SWIG_TMPOBJ ;
21352 int temp6 ;
21353 int res6 = SWIG_TMPOBJ ;
21354 void *argp7 = 0 ;
21355 int res7 = 0 ;
21356 PyObject * obj0 = 0 ;
21357 PyObject * obj1 = 0 ;
21358 PyObject * obj2 = 0 ;
21359 char * kwnames[] = {
21360 (char *) "self",(char *) "string",(char *) "font", NULL
21361 };
21362
21363 arg3 = &temp3;
21364 arg4 = &temp4;
21365 arg5 = &temp5;
21366 arg6 = &temp6;
21367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21369 if (!SWIG_IsOK(res1)) {
21370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21371 }
21372 arg1 = reinterpret_cast< wxDC * >(argp1);
21373 {
21374 arg2 = wxString_in_helper(obj1);
21375 if (arg2 == NULL) SWIG_fail;
21376 temp2 = true;
21377 }
21378 if (obj2) {
21379 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21380 if (!SWIG_IsOK(res7)) {
21381 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21382 }
21383 arg7 = reinterpret_cast< wxFont * >(argp7);
21384 }
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21388 wxPyEndAllowThreads(__tstate);
21389 if (PyErr_Occurred()) SWIG_fail;
21390 }
21391 resultobj = SWIG_Py_Void();
21392 if (SWIG_IsTmpObj(res3)) {
21393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21394 } else {
21395 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21397 }
21398 if (SWIG_IsTmpObj(res4)) {
21399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21400 } else {
21401 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21403 }
21404 if (SWIG_IsTmpObj(res5)) {
21405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21406 } else {
21407 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21409 }
21410 if (SWIG_IsTmpObj(res6)) {
21411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21412 } else {
21413 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21415 }
21416 {
21417 if (temp2)
21418 delete arg2;
21419 }
21420 return resultobj;
21421 fail:
21422 {
21423 if (temp2)
21424 delete arg2;
21425 }
21426 return NULL;
21427 }
21428
21429
21430 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21431 PyObject *resultobj = 0;
21432 wxDC *arg1 = (wxDC *) 0 ;
21433 wxString *arg2 = 0 ;
21434 int *arg3 = (int *) 0 ;
21435 int *arg4 = (int *) 0 ;
21436 int *arg5 = (int *) 0 ;
21437 wxFont *arg6 = (wxFont *) NULL ;
21438 void *argp1 = 0 ;
21439 int res1 = 0 ;
21440 bool temp2 = false ;
21441 int temp3 ;
21442 int res3 = SWIG_TMPOBJ ;
21443 int temp4 ;
21444 int res4 = SWIG_TMPOBJ ;
21445 int temp5 ;
21446 int res5 = SWIG_TMPOBJ ;
21447 void *argp6 = 0 ;
21448 int res6 = 0 ;
21449 PyObject * obj0 = 0 ;
21450 PyObject * obj1 = 0 ;
21451 PyObject * obj2 = 0 ;
21452 char * kwnames[] = {
21453 (char *) "self",(char *) "text",(char *) "font", NULL
21454 };
21455
21456 arg3 = &temp3;
21457 arg4 = &temp4;
21458 arg5 = &temp5;
21459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21461 if (!SWIG_IsOK(res1)) {
21462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21463 }
21464 arg1 = reinterpret_cast< wxDC * >(argp1);
21465 {
21466 arg2 = wxString_in_helper(obj1);
21467 if (arg2 == NULL) SWIG_fail;
21468 temp2 = true;
21469 }
21470 if (obj2) {
21471 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21472 if (!SWIG_IsOK(res6)) {
21473 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21474 }
21475 arg6 = reinterpret_cast< wxFont * >(argp6);
21476 }
21477 {
21478 PyThreadState* __tstate = wxPyBeginAllowThreads();
21479 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21480 wxPyEndAllowThreads(__tstate);
21481 if (PyErr_Occurred()) SWIG_fail;
21482 }
21483 resultobj = SWIG_Py_Void();
21484 if (SWIG_IsTmpObj(res3)) {
21485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21486 } else {
21487 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21489 }
21490 if (SWIG_IsTmpObj(res4)) {
21491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21492 } else {
21493 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21495 }
21496 if (SWIG_IsTmpObj(res5)) {
21497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21498 } else {
21499 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21501 }
21502 {
21503 if (temp2)
21504 delete arg2;
21505 }
21506 return resultobj;
21507 fail:
21508 {
21509 if (temp2)
21510 delete arg2;
21511 }
21512 return NULL;
21513 }
21514
21515
21516 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21517 PyObject *resultobj = 0;
21518 wxDC *arg1 = (wxDC *) 0 ;
21519 wxString *arg2 = 0 ;
21520 wxArrayInt result;
21521 void *argp1 = 0 ;
21522 int res1 = 0 ;
21523 bool temp2 = false ;
21524 PyObject * obj0 = 0 ;
21525 PyObject * obj1 = 0 ;
21526 char * kwnames[] = {
21527 (char *) "self",(char *) "text", NULL
21528 };
21529
21530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21532 if (!SWIG_IsOK(res1)) {
21533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21534 }
21535 arg1 = reinterpret_cast< wxDC * >(argp1);
21536 {
21537 arg2 = wxString_in_helper(obj1);
21538 if (arg2 == NULL) SWIG_fail;
21539 temp2 = true;
21540 }
21541 {
21542 PyThreadState* __tstate = wxPyBeginAllowThreads();
21543 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 {
21548 resultobj = wxArrayInt2PyList_helper(result);
21549 }
21550 {
21551 if (temp2)
21552 delete arg2;
21553 }
21554 return resultobj;
21555 fail:
21556 {
21557 if (temp2)
21558 delete arg2;
21559 }
21560 return NULL;
21561 }
21562
21563
21564 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21565 PyObject *resultobj = 0;
21566 wxDC *arg1 = (wxDC *) 0 ;
21567 wxSize result;
21568 void *argp1 = 0 ;
21569 int res1 = 0 ;
21570 PyObject *swig_obj[1] ;
21571
21572 if (!args) SWIG_fail;
21573 swig_obj[0] = args;
21574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21575 if (!SWIG_IsOK(res1)) {
21576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21577 }
21578 arg1 = reinterpret_cast< wxDC * >(argp1);
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (arg1)->GetSize();
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21593 PyObject *resultobj = 0;
21594 wxDC *arg1 = (wxDC *) 0 ;
21595 int *arg2 = (int *) 0 ;
21596 int *arg3 = (int *) 0 ;
21597 void *argp1 = 0 ;
21598 int res1 = 0 ;
21599 int temp2 ;
21600 int res2 = SWIG_TMPOBJ ;
21601 int temp3 ;
21602 int res3 = SWIG_TMPOBJ ;
21603 PyObject *swig_obj[1] ;
21604
21605 arg2 = &temp2;
21606 arg3 = &temp3;
21607 if (!args) SWIG_fail;
21608 swig_obj[0] = args;
21609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21610 if (!SWIG_IsOK(res1)) {
21611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21612 }
21613 arg1 = reinterpret_cast< wxDC * >(argp1);
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 (arg1)->GetSize(arg2,arg3);
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 resultobj = SWIG_Py_Void();
21621 if (SWIG_IsTmpObj(res2)) {
21622 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21623 } else {
21624 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21625 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21626 }
21627 if (SWIG_IsTmpObj(res3)) {
21628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21629 } else {
21630 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21632 }
21633 return resultobj;
21634 fail:
21635 return NULL;
21636 }
21637
21638
21639 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21640 PyObject *resultobj = 0;
21641 wxDC *arg1 = (wxDC *) 0 ;
21642 wxSize result;
21643 void *argp1 = 0 ;
21644 int res1 = 0 ;
21645 PyObject *swig_obj[1] ;
21646
21647 if (!args) SWIG_fail;
21648 swig_obj[0] = args;
21649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21650 if (!SWIG_IsOK(res1)) {
21651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21652 }
21653 arg1 = reinterpret_cast< wxDC * >(argp1);
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 result = ((wxDC const *)arg1)->GetSizeMM();
21657 wxPyEndAllowThreads(__tstate);
21658 if (PyErr_Occurred()) SWIG_fail;
21659 }
21660 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21661 return resultobj;
21662 fail:
21663 return NULL;
21664 }
21665
21666
21667 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21668 PyObject *resultobj = 0;
21669 wxDC *arg1 = (wxDC *) 0 ;
21670 int *arg2 = (int *) 0 ;
21671 int *arg3 = (int *) 0 ;
21672 void *argp1 = 0 ;
21673 int res1 = 0 ;
21674 int temp2 ;
21675 int res2 = SWIG_TMPOBJ ;
21676 int temp3 ;
21677 int res3 = SWIG_TMPOBJ ;
21678 PyObject *swig_obj[1] ;
21679
21680 arg2 = &temp2;
21681 arg3 = &temp3;
21682 if (!args) SWIG_fail;
21683 swig_obj[0] = args;
21684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21685 if (!SWIG_IsOK(res1)) {
21686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21687 }
21688 arg1 = reinterpret_cast< wxDC * >(argp1);
21689 {
21690 PyThreadState* __tstate = wxPyBeginAllowThreads();
21691 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21692 wxPyEndAllowThreads(__tstate);
21693 if (PyErr_Occurred()) SWIG_fail;
21694 }
21695 resultobj = SWIG_Py_Void();
21696 if (SWIG_IsTmpObj(res2)) {
21697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21698 } else {
21699 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21701 }
21702 if (SWIG_IsTmpObj(res3)) {
21703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21704 } else {
21705 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21707 }
21708 return resultobj;
21709 fail:
21710 return NULL;
21711 }
21712
21713
21714 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21715 PyObject *resultobj = 0;
21716 wxDC *arg1 = (wxDC *) 0 ;
21717 int arg2 ;
21718 int result;
21719 void *argp1 = 0 ;
21720 int res1 = 0 ;
21721 int val2 ;
21722 int ecode2 = 0 ;
21723 PyObject * obj0 = 0 ;
21724 PyObject * obj1 = 0 ;
21725 char * kwnames[] = {
21726 (char *) "self",(char *) "x", NULL
21727 };
21728
21729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21731 if (!SWIG_IsOK(res1)) {
21732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21733 }
21734 arg1 = reinterpret_cast< wxDC * >(argp1);
21735 ecode2 = SWIG_AsVal_int(obj1, &val2);
21736 if (!SWIG_IsOK(ecode2)) {
21737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21738 }
21739 arg2 = static_cast< int >(val2);
21740 {
21741 PyThreadState* __tstate = wxPyBeginAllowThreads();
21742 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21743 wxPyEndAllowThreads(__tstate);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 }
21746 resultobj = SWIG_From_int(static_cast< int >(result));
21747 return resultobj;
21748 fail:
21749 return NULL;
21750 }
21751
21752
21753 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21754 PyObject *resultobj = 0;
21755 wxDC *arg1 = (wxDC *) 0 ;
21756 int arg2 ;
21757 int result;
21758 void *argp1 = 0 ;
21759 int res1 = 0 ;
21760 int val2 ;
21761 int ecode2 = 0 ;
21762 PyObject * obj0 = 0 ;
21763 PyObject * obj1 = 0 ;
21764 char * kwnames[] = {
21765 (char *) "self",(char *) "y", NULL
21766 };
21767
21768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21770 if (!SWIG_IsOK(res1)) {
21771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21772 }
21773 arg1 = reinterpret_cast< wxDC * >(argp1);
21774 ecode2 = SWIG_AsVal_int(obj1, &val2);
21775 if (!SWIG_IsOK(ecode2)) {
21776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21777 }
21778 arg2 = static_cast< int >(val2);
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 resultobj = SWIG_From_int(static_cast< int >(result));
21786 return resultobj;
21787 fail:
21788 return NULL;
21789 }
21790
21791
21792 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21793 PyObject *resultobj = 0;
21794 wxDC *arg1 = (wxDC *) 0 ;
21795 int arg2 ;
21796 int result;
21797 void *argp1 = 0 ;
21798 int res1 = 0 ;
21799 int val2 ;
21800 int ecode2 = 0 ;
21801 PyObject * obj0 = 0 ;
21802 PyObject * obj1 = 0 ;
21803 char * kwnames[] = {
21804 (char *) "self",(char *) "x", NULL
21805 };
21806
21807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21809 if (!SWIG_IsOK(res1)) {
21810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21811 }
21812 arg1 = reinterpret_cast< wxDC * >(argp1);
21813 ecode2 = SWIG_AsVal_int(obj1, &val2);
21814 if (!SWIG_IsOK(ecode2)) {
21815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21816 }
21817 arg2 = static_cast< int >(val2);
21818 {
21819 PyThreadState* __tstate = wxPyBeginAllowThreads();
21820 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 resultobj = SWIG_From_int(static_cast< int >(result));
21825 return resultobj;
21826 fail:
21827 return NULL;
21828 }
21829
21830
21831 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21832 PyObject *resultobj = 0;
21833 wxDC *arg1 = (wxDC *) 0 ;
21834 int arg2 ;
21835 int result;
21836 void *argp1 = 0 ;
21837 int res1 = 0 ;
21838 int val2 ;
21839 int ecode2 = 0 ;
21840 PyObject * obj0 = 0 ;
21841 PyObject * obj1 = 0 ;
21842 char * kwnames[] = {
21843 (char *) "self",(char *) "y", NULL
21844 };
21845
21846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21848 if (!SWIG_IsOK(res1)) {
21849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21850 }
21851 arg1 = reinterpret_cast< wxDC * >(argp1);
21852 ecode2 = SWIG_AsVal_int(obj1, &val2);
21853 if (!SWIG_IsOK(ecode2)) {
21854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21855 }
21856 arg2 = static_cast< int >(val2);
21857 {
21858 PyThreadState* __tstate = wxPyBeginAllowThreads();
21859 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 resultobj = SWIG_From_int(static_cast< int >(result));
21864 return resultobj;
21865 fail:
21866 return NULL;
21867 }
21868
21869
21870 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21871 PyObject *resultobj = 0;
21872 wxDC *arg1 = (wxDC *) 0 ;
21873 int arg2 ;
21874 int result;
21875 void *argp1 = 0 ;
21876 int res1 = 0 ;
21877 int val2 ;
21878 int ecode2 = 0 ;
21879 PyObject * obj0 = 0 ;
21880 PyObject * obj1 = 0 ;
21881 char * kwnames[] = {
21882 (char *) "self",(char *) "x", NULL
21883 };
21884
21885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21887 if (!SWIG_IsOK(res1)) {
21888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21889 }
21890 arg1 = reinterpret_cast< wxDC * >(argp1);
21891 ecode2 = SWIG_AsVal_int(obj1, &val2);
21892 if (!SWIG_IsOK(ecode2)) {
21893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21894 }
21895 arg2 = static_cast< int >(val2);
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21899 wxPyEndAllowThreads(__tstate);
21900 if (PyErr_Occurred()) SWIG_fail;
21901 }
21902 resultobj = SWIG_From_int(static_cast< int >(result));
21903 return resultobj;
21904 fail:
21905 return NULL;
21906 }
21907
21908
21909 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21910 PyObject *resultobj = 0;
21911 wxDC *arg1 = (wxDC *) 0 ;
21912 int arg2 ;
21913 int result;
21914 void *argp1 = 0 ;
21915 int res1 = 0 ;
21916 int val2 ;
21917 int ecode2 = 0 ;
21918 PyObject * obj0 = 0 ;
21919 PyObject * obj1 = 0 ;
21920 char * kwnames[] = {
21921 (char *) "self",(char *) "y", NULL
21922 };
21923
21924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21926 if (!SWIG_IsOK(res1)) {
21927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21928 }
21929 arg1 = reinterpret_cast< wxDC * >(argp1);
21930 ecode2 = SWIG_AsVal_int(obj1, &val2);
21931 if (!SWIG_IsOK(ecode2)) {
21932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21933 }
21934 arg2 = static_cast< int >(val2);
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
21937 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21938 wxPyEndAllowThreads(__tstate);
21939 if (PyErr_Occurred()) SWIG_fail;
21940 }
21941 resultobj = SWIG_From_int(static_cast< int >(result));
21942 return resultobj;
21943 fail:
21944 return NULL;
21945 }
21946
21947
21948 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21949 PyObject *resultobj = 0;
21950 wxDC *arg1 = (wxDC *) 0 ;
21951 int arg2 ;
21952 int result;
21953 void *argp1 = 0 ;
21954 int res1 = 0 ;
21955 int val2 ;
21956 int ecode2 = 0 ;
21957 PyObject * obj0 = 0 ;
21958 PyObject * obj1 = 0 ;
21959 char * kwnames[] = {
21960 (char *) "self",(char *) "x", NULL
21961 };
21962
21963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21967 }
21968 arg1 = reinterpret_cast< wxDC * >(argp1);
21969 ecode2 = SWIG_AsVal_int(obj1, &val2);
21970 if (!SWIG_IsOK(ecode2)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21972 }
21973 arg2 = static_cast< int >(val2);
21974 {
21975 PyThreadState* __tstate = wxPyBeginAllowThreads();
21976 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21977 wxPyEndAllowThreads(__tstate);
21978 if (PyErr_Occurred()) SWIG_fail;
21979 }
21980 resultobj = SWIG_From_int(static_cast< int >(result));
21981 return resultobj;
21982 fail:
21983 return NULL;
21984 }
21985
21986
21987 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj = 0;
21989 wxDC *arg1 = (wxDC *) 0 ;
21990 int arg2 ;
21991 int result;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 int val2 ;
21995 int ecode2 = 0 ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 char * kwnames[] = {
21999 (char *) "self",(char *) "y", NULL
22000 };
22001
22002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22004 if (!SWIG_IsOK(res1)) {
22005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22006 }
22007 arg1 = reinterpret_cast< wxDC * >(argp1);
22008 ecode2 = SWIG_AsVal_int(obj1, &val2);
22009 if (!SWIG_IsOK(ecode2)) {
22010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22011 }
22012 arg2 = static_cast< int >(val2);
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 resultobj = SWIG_From_int(static_cast< int >(result));
22020 return resultobj;
22021 fail:
22022 return NULL;
22023 }
22024
22025
22026 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22027 PyObject *resultobj = 0;
22028 wxDC *arg1 = (wxDC *) 0 ;
22029 bool result;
22030 void *argp1 = 0 ;
22031 int res1 = 0 ;
22032 PyObject *swig_obj[1] ;
22033
22034 if (!args) SWIG_fail;
22035 swig_obj[0] = args;
22036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22037 if (!SWIG_IsOK(res1)) {
22038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22039 }
22040 arg1 = reinterpret_cast< wxDC * >(argp1);
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
22043 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 {
22048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22049 }
22050 return resultobj;
22051 fail:
22052 return NULL;
22053 }
22054
22055
22056 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22057 PyObject *resultobj = 0;
22058 wxDC *arg1 = (wxDC *) 0 ;
22059 bool result;
22060 void *argp1 = 0 ;
22061 int res1 = 0 ;
22062 PyObject *swig_obj[1] ;
22063
22064 if (!args) SWIG_fail;
22065 swig_obj[0] = args;
22066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22067 if (!SWIG_IsOK(res1)) {
22068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22069 }
22070 arg1 = reinterpret_cast< wxDC * >(argp1);
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 {
22078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22079 }
22080 return resultobj;
22081 fail:
22082 return NULL;
22083 }
22084
22085
22086 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22087 PyObject *resultobj = 0;
22088 wxDC *arg1 = (wxDC *) 0 ;
22089 int result;
22090 void *argp1 = 0 ;
22091 int res1 = 0 ;
22092 PyObject *swig_obj[1] ;
22093
22094 if (!args) SWIG_fail;
22095 swig_obj[0] = args;
22096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22097 if (!SWIG_IsOK(res1)) {
22098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22099 }
22100 arg1 = reinterpret_cast< wxDC * >(argp1);
22101 {
22102 PyThreadState* __tstate = wxPyBeginAllowThreads();
22103 result = (int)((wxDC const *)arg1)->GetDepth();
22104 wxPyEndAllowThreads(__tstate);
22105 if (PyErr_Occurred()) SWIG_fail;
22106 }
22107 resultobj = SWIG_From_int(static_cast< int >(result));
22108 return resultobj;
22109 fail:
22110 return NULL;
22111 }
22112
22113
22114 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22115 PyObject *resultobj = 0;
22116 wxDC *arg1 = (wxDC *) 0 ;
22117 wxSize result;
22118 void *argp1 = 0 ;
22119 int res1 = 0 ;
22120 PyObject *swig_obj[1] ;
22121
22122 if (!args) SWIG_fail;
22123 swig_obj[0] = args;
22124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22125 if (!SWIG_IsOK(res1)) {
22126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22127 }
22128 arg1 = reinterpret_cast< wxDC * >(argp1);
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 result = ((wxDC const *)arg1)->GetPPI();
22132 wxPyEndAllowThreads(__tstate);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 }
22135 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22143 PyObject *resultobj = 0;
22144 wxDC *arg1 = (wxDC *) 0 ;
22145 bool result;
22146 void *argp1 = 0 ;
22147 int res1 = 0 ;
22148 PyObject *swig_obj[1] ;
22149
22150 if (!args) SWIG_fail;
22151 swig_obj[0] = args;
22152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22153 if (!SWIG_IsOK(res1)) {
22154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22155 }
22156 arg1 = reinterpret_cast< wxDC * >(argp1);
22157 {
22158 PyThreadState* __tstate = wxPyBeginAllowThreads();
22159 result = (bool)((wxDC const *)arg1)->IsOk();
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 {
22164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22165 }
22166 return resultobj;
22167 fail:
22168 return NULL;
22169 }
22170
22171
22172 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22173 PyObject *resultobj = 0;
22174 wxDC *arg1 = (wxDC *) 0 ;
22175 int result;
22176 void *argp1 = 0 ;
22177 int res1 = 0 ;
22178 PyObject *swig_obj[1] ;
22179
22180 if (!args) SWIG_fail;
22181 swig_obj[0] = args;
22182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22183 if (!SWIG_IsOK(res1)) {
22184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22185 }
22186 arg1 = reinterpret_cast< wxDC * >(argp1);
22187 {
22188 PyThreadState* __tstate = wxPyBeginAllowThreads();
22189 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 resultobj = SWIG_From_int(static_cast< int >(result));
22194 return resultobj;
22195 fail:
22196 return NULL;
22197 }
22198
22199
22200 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22201 PyObject *resultobj = 0;
22202 wxDC *arg1 = (wxDC *) 0 ;
22203 wxBrush *result = 0 ;
22204 void *argp1 = 0 ;
22205 int res1 = 0 ;
22206 PyObject *swig_obj[1] ;
22207
22208 if (!args) SWIG_fail;
22209 swig_obj[0] = args;
22210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22211 if (!SWIG_IsOK(res1)) {
22212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22213 }
22214 arg1 = reinterpret_cast< wxDC * >(argp1);
22215 {
22216 PyThreadState* __tstate = wxPyBeginAllowThreads();
22217 {
22218 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22219 result = (wxBrush *) &_result_ref;
22220 }
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 {
22225 wxBrush* resultptr = new wxBrush(*result);
22226 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22227 }
22228 return resultobj;
22229 fail:
22230 return NULL;
22231 }
22232
22233
22234 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22235 PyObject *resultobj = 0;
22236 wxDC *arg1 = (wxDC *) 0 ;
22237 wxBrush *result = 0 ;
22238 void *argp1 = 0 ;
22239 int res1 = 0 ;
22240 PyObject *swig_obj[1] ;
22241
22242 if (!args) SWIG_fail;
22243 swig_obj[0] = args;
22244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22245 if (!SWIG_IsOK(res1)) {
22246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22247 }
22248 arg1 = reinterpret_cast< wxDC * >(argp1);
22249 {
22250 PyThreadState* __tstate = wxPyBeginAllowThreads();
22251 {
22252 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22253 result = (wxBrush *) &_result_ref;
22254 }
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 {
22259 wxBrush* resultptr = new wxBrush(*result);
22260 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22261 }
22262 return resultobj;
22263 fail:
22264 return NULL;
22265 }
22266
22267
22268 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22269 PyObject *resultobj = 0;
22270 wxDC *arg1 = (wxDC *) 0 ;
22271 wxFont *result = 0 ;
22272 void *argp1 = 0 ;
22273 int res1 = 0 ;
22274 PyObject *swig_obj[1] ;
22275
22276 if (!args) SWIG_fail;
22277 swig_obj[0] = args;
22278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22279 if (!SWIG_IsOK(res1)) {
22280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22281 }
22282 arg1 = reinterpret_cast< wxDC * >(argp1);
22283 {
22284 PyThreadState* __tstate = wxPyBeginAllowThreads();
22285 {
22286 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22287 result = (wxFont *) &_result_ref;
22288 }
22289 wxPyEndAllowThreads(__tstate);
22290 if (PyErr_Occurred()) SWIG_fail;
22291 }
22292 {
22293 wxFont* resultptr = new wxFont(*result);
22294 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22295 }
22296 return resultobj;
22297 fail:
22298 return NULL;
22299 }
22300
22301
22302 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22303 PyObject *resultobj = 0;
22304 wxDC *arg1 = (wxDC *) 0 ;
22305 wxPen *result = 0 ;
22306 void *argp1 = 0 ;
22307 int res1 = 0 ;
22308 PyObject *swig_obj[1] ;
22309
22310 if (!args) SWIG_fail;
22311 swig_obj[0] = args;
22312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22313 if (!SWIG_IsOK(res1)) {
22314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22315 }
22316 arg1 = reinterpret_cast< wxDC * >(argp1);
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 {
22320 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22321 result = (wxPen *) &_result_ref;
22322 }
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 {
22327 wxPen* resultptr = new wxPen(*result);
22328 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22329 }
22330 return resultobj;
22331 fail:
22332 return NULL;
22333 }
22334
22335
22336 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22337 PyObject *resultobj = 0;
22338 wxDC *arg1 = (wxDC *) 0 ;
22339 wxColour *result = 0 ;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 PyObject *swig_obj[1] ;
22343
22344 if (!args) SWIG_fail;
22345 swig_obj[0] = args;
22346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22347 if (!SWIG_IsOK(res1)) {
22348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22349 }
22350 arg1 = reinterpret_cast< wxDC * >(argp1);
22351 {
22352 PyThreadState* __tstate = wxPyBeginAllowThreads();
22353 {
22354 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22355 result = (wxColour *) &_result_ref;
22356 }
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22361 return resultobj;
22362 fail:
22363 return NULL;
22364 }
22365
22366
22367 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22368 PyObject *resultobj = 0;
22369 wxDC *arg1 = (wxDC *) 0 ;
22370 wxColour *result = 0 ;
22371 void *argp1 = 0 ;
22372 int res1 = 0 ;
22373 PyObject *swig_obj[1] ;
22374
22375 if (!args) SWIG_fail;
22376 swig_obj[0] = args;
22377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22378 if (!SWIG_IsOK(res1)) {
22379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22380 }
22381 arg1 = reinterpret_cast< wxDC * >(argp1);
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 {
22385 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22386 result = (wxColour *) &_result_ref;
22387 }
22388 wxPyEndAllowThreads(__tstate);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22392 return resultobj;
22393 fail:
22394 return NULL;
22395 }
22396
22397
22398 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22399 PyObject *resultobj = 0;
22400 wxDC *arg1 = (wxDC *) 0 ;
22401 wxColour *arg2 = 0 ;
22402 void *argp1 = 0 ;
22403 int res1 = 0 ;
22404 wxColour temp2 ;
22405 PyObject * obj0 = 0 ;
22406 PyObject * obj1 = 0 ;
22407 char * kwnames[] = {
22408 (char *) "self",(char *) "colour", NULL
22409 };
22410
22411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22413 if (!SWIG_IsOK(res1)) {
22414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22415 }
22416 arg1 = reinterpret_cast< wxDC * >(argp1);
22417 {
22418 arg2 = &temp2;
22419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22420 }
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 (arg1)->SetTextForeground((wxColour const &)*arg2);
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 resultobj = SWIG_Py_Void();
22428 return resultobj;
22429 fail:
22430 return NULL;
22431 }
22432
22433
22434 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22435 PyObject *resultobj = 0;
22436 wxDC *arg1 = (wxDC *) 0 ;
22437 wxColour *arg2 = 0 ;
22438 void *argp1 = 0 ;
22439 int res1 = 0 ;
22440 wxColour temp2 ;
22441 PyObject * obj0 = 0 ;
22442 PyObject * obj1 = 0 ;
22443 char * kwnames[] = {
22444 (char *) "self",(char *) "colour", NULL
22445 };
22446
22447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22449 if (!SWIG_IsOK(res1)) {
22450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22451 }
22452 arg1 = reinterpret_cast< wxDC * >(argp1);
22453 {
22454 arg2 = &temp2;
22455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22456 }
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
22459 (arg1)->SetTextBackground((wxColour const &)*arg2);
22460 wxPyEndAllowThreads(__tstate);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 }
22463 resultobj = SWIG_Py_Void();
22464 return resultobj;
22465 fail:
22466 return NULL;
22467 }
22468
22469
22470 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22471 PyObject *resultobj = 0;
22472 wxDC *arg1 = (wxDC *) 0 ;
22473 int result;
22474 void *argp1 = 0 ;
22475 int res1 = 0 ;
22476 PyObject *swig_obj[1] ;
22477
22478 if (!args) SWIG_fail;
22479 swig_obj[0] = args;
22480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22481 if (!SWIG_IsOK(res1)) {
22482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22483 }
22484 arg1 = reinterpret_cast< wxDC * >(argp1);
22485 {
22486 PyThreadState* __tstate = wxPyBeginAllowThreads();
22487 result = (int)((wxDC const *)arg1)->GetMapMode();
22488 wxPyEndAllowThreads(__tstate);
22489 if (PyErr_Occurred()) SWIG_fail;
22490 }
22491 resultobj = SWIG_From_int(static_cast< int >(result));
22492 return resultobj;
22493 fail:
22494 return NULL;
22495 }
22496
22497
22498 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22499 PyObject *resultobj = 0;
22500 wxDC *arg1 = (wxDC *) 0 ;
22501 int arg2 ;
22502 void *argp1 = 0 ;
22503 int res1 = 0 ;
22504 int val2 ;
22505 int ecode2 = 0 ;
22506 PyObject * obj0 = 0 ;
22507 PyObject * obj1 = 0 ;
22508 char * kwnames[] = {
22509 (char *) "self",(char *) "mode", NULL
22510 };
22511
22512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22514 if (!SWIG_IsOK(res1)) {
22515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22516 }
22517 arg1 = reinterpret_cast< wxDC * >(argp1);
22518 ecode2 = SWIG_AsVal_int(obj1, &val2);
22519 if (!SWIG_IsOK(ecode2)) {
22520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22521 }
22522 arg2 = static_cast< int >(val2);
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 (arg1)->SetMapMode(arg2);
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 resultobj = SWIG_Py_Void();
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22537 PyObject *resultobj = 0;
22538 wxDC *arg1 = (wxDC *) 0 ;
22539 double *arg2 = (double *) 0 ;
22540 double *arg3 = (double *) 0 ;
22541 void *argp1 = 0 ;
22542 int res1 = 0 ;
22543 double temp2 ;
22544 int res2 = SWIG_TMPOBJ ;
22545 double temp3 ;
22546 int res3 = SWIG_TMPOBJ ;
22547 PyObject *swig_obj[1] ;
22548
22549 arg2 = &temp2;
22550 arg3 = &temp3;
22551 if (!args) SWIG_fail;
22552 swig_obj[0] = args;
22553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22554 if (!SWIG_IsOK(res1)) {
22555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22556 }
22557 arg1 = reinterpret_cast< wxDC * >(argp1);
22558 {
22559 PyThreadState* __tstate = wxPyBeginAllowThreads();
22560 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22561 wxPyEndAllowThreads(__tstate);
22562 if (PyErr_Occurred()) SWIG_fail;
22563 }
22564 resultobj = SWIG_Py_Void();
22565 if (SWIG_IsTmpObj(res2)) {
22566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22567 } else {
22568 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22570 }
22571 if (SWIG_IsTmpObj(res3)) {
22572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22573 } else {
22574 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22576 }
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22584 PyObject *resultobj = 0;
22585 wxDC *arg1 = (wxDC *) 0 ;
22586 double arg2 ;
22587 double arg3 ;
22588 void *argp1 = 0 ;
22589 int res1 = 0 ;
22590 double val2 ;
22591 int ecode2 = 0 ;
22592 double val3 ;
22593 int ecode3 = 0 ;
22594 PyObject * obj0 = 0 ;
22595 PyObject * obj1 = 0 ;
22596 PyObject * obj2 = 0 ;
22597 char * kwnames[] = {
22598 (char *) "self",(char *) "x",(char *) "y", NULL
22599 };
22600
22601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22603 if (!SWIG_IsOK(res1)) {
22604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22605 }
22606 arg1 = reinterpret_cast< wxDC * >(argp1);
22607 ecode2 = SWIG_AsVal_double(obj1, &val2);
22608 if (!SWIG_IsOK(ecode2)) {
22609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22610 }
22611 arg2 = static_cast< double >(val2);
22612 ecode3 = SWIG_AsVal_double(obj2, &val3);
22613 if (!SWIG_IsOK(ecode3)) {
22614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22615 }
22616 arg3 = static_cast< double >(val3);
22617 {
22618 PyThreadState* __tstate = wxPyBeginAllowThreads();
22619 (arg1)->SetUserScale(arg2,arg3);
22620 wxPyEndAllowThreads(__tstate);
22621 if (PyErr_Occurred()) SWIG_fail;
22622 }
22623 resultobj = SWIG_Py_Void();
22624 return resultobj;
22625 fail:
22626 return NULL;
22627 }
22628
22629
22630 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22631 PyObject *resultobj = 0;
22632 wxDC *arg1 = (wxDC *) 0 ;
22633 double *arg2 = (double *) 0 ;
22634 double *arg3 = (double *) 0 ;
22635 void *argp1 = 0 ;
22636 int res1 = 0 ;
22637 double temp2 ;
22638 int res2 = SWIG_TMPOBJ ;
22639 double temp3 ;
22640 int res3 = SWIG_TMPOBJ ;
22641 PyObject *swig_obj[1] ;
22642
22643 arg2 = &temp2;
22644 arg3 = &temp3;
22645 if (!args) SWIG_fail;
22646 swig_obj[0] = args;
22647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22650 }
22651 arg1 = reinterpret_cast< wxDC * >(argp1);
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 (arg1)->GetLogicalScale(arg2,arg3);
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 resultobj = SWIG_Py_Void();
22659 if (SWIG_IsTmpObj(res2)) {
22660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22661 } else {
22662 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22664 }
22665 if (SWIG_IsTmpObj(res3)) {
22666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22667 } else {
22668 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22670 }
22671 return resultobj;
22672 fail:
22673 return NULL;
22674 }
22675
22676
22677 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj = 0;
22679 wxDC *arg1 = (wxDC *) 0 ;
22680 double arg2 ;
22681 double arg3 ;
22682 void *argp1 = 0 ;
22683 int res1 = 0 ;
22684 double val2 ;
22685 int ecode2 = 0 ;
22686 double val3 ;
22687 int ecode3 = 0 ;
22688 PyObject * obj0 = 0 ;
22689 PyObject * obj1 = 0 ;
22690 PyObject * obj2 = 0 ;
22691 char * kwnames[] = {
22692 (char *) "self",(char *) "x",(char *) "y", NULL
22693 };
22694
22695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22697 if (!SWIG_IsOK(res1)) {
22698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22699 }
22700 arg1 = reinterpret_cast< wxDC * >(argp1);
22701 ecode2 = SWIG_AsVal_double(obj1, &val2);
22702 if (!SWIG_IsOK(ecode2)) {
22703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22704 }
22705 arg2 = static_cast< double >(val2);
22706 ecode3 = SWIG_AsVal_double(obj2, &val3);
22707 if (!SWIG_IsOK(ecode3)) {
22708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22709 }
22710 arg3 = static_cast< double >(val3);
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 (arg1)->SetLogicalScale(arg2,arg3);
22714 wxPyEndAllowThreads(__tstate);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 }
22717 resultobj = SWIG_Py_Void();
22718 return resultobj;
22719 fail:
22720 return NULL;
22721 }
22722
22723
22724 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22725 PyObject *resultobj = 0;
22726 wxDC *arg1 = (wxDC *) 0 ;
22727 wxPoint result;
22728 void *argp1 = 0 ;
22729 int res1 = 0 ;
22730 PyObject *swig_obj[1] ;
22731
22732 if (!args) SWIG_fail;
22733 swig_obj[0] = args;
22734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22735 if (!SWIG_IsOK(res1)) {
22736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22737 }
22738 arg1 = reinterpret_cast< wxDC * >(argp1);
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22746 return resultobj;
22747 fail:
22748 return NULL;
22749 }
22750
22751
22752 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22753 PyObject *resultobj = 0;
22754 wxDC *arg1 = (wxDC *) 0 ;
22755 int *arg2 = (int *) 0 ;
22756 int *arg3 = (int *) 0 ;
22757 void *argp1 = 0 ;
22758 int res1 = 0 ;
22759 int temp2 ;
22760 int res2 = SWIG_TMPOBJ ;
22761 int temp3 ;
22762 int res3 = SWIG_TMPOBJ ;
22763 PyObject *swig_obj[1] ;
22764
22765 arg2 = &temp2;
22766 arg3 = &temp3;
22767 if (!args) SWIG_fail;
22768 swig_obj[0] = args;
22769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22770 if (!SWIG_IsOK(res1)) {
22771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22772 }
22773 arg1 = reinterpret_cast< wxDC * >(argp1);
22774 {
22775 PyThreadState* __tstate = wxPyBeginAllowThreads();
22776 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 resultobj = SWIG_Py_Void();
22781 if (SWIG_IsTmpObj(res2)) {
22782 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22783 } else {
22784 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22786 }
22787 if (SWIG_IsTmpObj(res3)) {
22788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22789 } else {
22790 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22792 }
22793 return resultobj;
22794 fail:
22795 return NULL;
22796 }
22797
22798
22799 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22800 PyObject *resultobj = 0;
22801 wxDC *arg1 = (wxDC *) 0 ;
22802 int arg2 ;
22803 int arg3 ;
22804 void *argp1 = 0 ;
22805 int res1 = 0 ;
22806 int val2 ;
22807 int ecode2 = 0 ;
22808 int val3 ;
22809 int ecode3 = 0 ;
22810 PyObject * obj0 = 0 ;
22811 PyObject * obj1 = 0 ;
22812 PyObject * obj2 = 0 ;
22813 char * kwnames[] = {
22814 (char *) "self",(char *) "x",(char *) "y", NULL
22815 };
22816
22817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22819 if (!SWIG_IsOK(res1)) {
22820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22821 }
22822 arg1 = reinterpret_cast< wxDC * >(argp1);
22823 ecode2 = SWIG_AsVal_int(obj1, &val2);
22824 if (!SWIG_IsOK(ecode2)) {
22825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22826 }
22827 arg2 = static_cast< int >(val2);
22828 ecode3 = SWIG_AsVal_int(obj2, &val3);
22829 if (!SWIG_IsOK(ecode3)) {
22830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22831 }
22832 arg3 = static_cast< int >(val3);
22833 {
22834 PyThreadState* __tstate = wxPyBeginAllowThreads();
22835 (arg1)->SetLogicalOrigin(arg2,arg3);
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 resultobj = SWIG_Py_Void();
22840 return resultobj;
22841 fail:
22842 return NULL;
22843 }
22844
22845
22846 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22847 PyObject *resultobj = 0;
22848 wxDC *arg1 = (wxDC *) 0 ;
22849 wxPoint *arg2 = 0 ;
22850 void *argp1 = 0 ;
22851 int res1 = 0 ;
22852 wxPoint temp2 ;
22853 PyObject * obj0 = 0 ;
22854 PyObject * obj1 = 0 ;
22855 char * kwnames[] = {
22856 (char *) "self",(char *) "point", NULL
22857 };
22858
22859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22861 if (!SWIG_IsOK(res1)) {
22862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22863 }
22864 arg1 = reinterpret_cast< wxDC * >(argp1);
22865 {
22866 arg2 = &temp2;
22867 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22868 }
22869 {
22870 PyThreadState* __tstate = wxPyBeginAllowThreads();
22871 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 resultobj = SWIG_Py_Void();
22876 return resultobj;
22877 fail:
22878 return NULL;
22879 }
22880
22881
22882 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22883 PyObject *resultobj = 0;
22884 wxDC *arg1 = (wxDC *) 0 ;
22885 wxPoint result;
22886 void *argp1 = 0 ;
22887 int res1 = 0 ;
22888 PyObject *swig_obj[1] ;
22889
22890 if (!args) SWIG_fail;
22891 swig_obj[0] = args;
22892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22893 if (!SWIG_IsOK(res1)) {
22894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22895 }
22896 arg1 = reinterpret_cast< wxDC * >(argp1);
22897 {
22898 PyThreadState* __tstate = wxPyBeginAllowThreads();
22899 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22904 return resultobj;
22905 fail:
22906 return NULL;
22907 }
22908
22909
22910 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22911 PyObject *resultobj = 0;
22912 wxDC *arg1 = (wxDC *) 0 ;
22913 int *arg2 = (int *) 0 ;
22914 int *arg3 = (int *) 0 ;
22915 void *argp1 = 0 ;
22916 int res1 = 0 ;
22917 int temp2 ;
22918 int res2 = SWIG_TMPOBJ ;
22919 int temp3 ;
22920 int res3 = SWIG_TMPOBJ ;
22921 PyObject *swig_obj[1] ;
22922
22923 arg2 = &temp2;
22924 arg3 = &temp3;
22925 if (!args) SWIG_fail;
22926 swig_obj[0] = args;
22927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22930 }
22931 arg1 = reinterpret_cast< wxDC * >(argp1);
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 resultobj = SWIG_Py_Void();
22939 if (SWIG_IsTmpObj(res2)) {
22940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22941 } else {
22942 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22944 }
22945 if (SWIG_IsTmpObj(res3)) {
22946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22947 } else {
22948 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22950 }
22951 return resultobj;
22952 fail:
22953 return NULL;
22954 }
22955
22956
22957 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22958 PyObject *resultobj = 0;
22959 wxDC *arg1 = (wxDC *) 0 ;
22960 int arg2 ;
22961 int arg3 ;
22962 void *argp1 = 0 ;
22963 int res1 = 0 ;
22964 int val2 ;
22965 int ecode2 = 0 ;
22966 int val3 ;
22967 int ecode3 = 0 ;
22968 PyObject * obj0 = 0 ;
22969 PyObject * obj1 = 0 ;
22970 PyObject * obj2 = 0 ;
22971 char * kwnames[] = {
22972 (char *) "self",(char *) "x",(char *) "y", NULL
22973 };
22974
22975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22977 if (!SWIG_IsOK(res1)) {
22978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22979 }
22980 arg1 = reinterpret_cast< wxDC * >(argp1);
22981 ecode2 = SWIG_AsVal_int(obj1, &val2);
22982 if (!SWIG_IsOK(ecode2)) {
22983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22984 }
22985 arg2 = static_cast< int >(val2);
22986 ecode3 = SWIG_AsVal_int(obj2, &val3);
22987 if (!SWIG_IsOK(ecode3)) {
22988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22989 }
22990 arg3 = static_cast< int >(val3);
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 (arg1)->SetDeviceOrigin(arg2,arg3);
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = SWIG_Py_Void();
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23005 PyObject *resultobj = 0;
23006 wxDC *arg1 = (wxDC *) 0 ;
23007 wxPoint *arg2 = 0 ;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 wxPoint temp2 ;
23011 PyObject * obj0 = 0 ;
23012 PyObject * obj1 = 0 ;
23013 char * kwnames[] = {
23014 (char *) "self",(char *) "point", NULL
23015 };
23016
23017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23021 }
23022 arg1 = reinterpret_cast< wxDC * >(argp1);
23023 {
23024 arg2 = &temp2;
23025 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23026 }
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23030 wxPyEndAllowThreads(__tstate);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 }
23033 resultobj = SWIG_Py_Void();
23034 return resultobj;
23035 fail:
23036 return NULL;
23037 }
23038
23039
23040 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23041 PyObject *resultobj = 0;
23042 wxDC *arg1 = (wxDC *) 0 ;
23043 bool arg2 ;
23044 bool arg3 ;
23045 void *argp1 = 0 ;
23046 int res1 = 0 ;
23047 bool val2 ;
23048 int ecode2 = 0 ;
23049 bool val3 ;
23050 int ecode3 = 0 ;
23051 PyObject * obj0 = 0 ;
23052 PyObject * obj1 = 0 ;
23053 PyObject * obj2 = 0 ;
23054 char * kwnames[] = {
23055 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23056 };
23057
23058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23060 if (!SWIG_IsOK(res1)) {
23061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23062 }
23063 arg1 = reinterpret_cast< wxDC * >(argp1);
23064 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23065 if (!SWIG_IsOK(ecode2)) {
23066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23067 }
23068 arg2 = static_cast< bool >(val2);
23069 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23070 if (!SWIG_IsOK(ecode3)) {
23071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23072 }
23073 arg3 = static_cast< bool >(val3);
23074 {
23075 PyThreadState* __tstate = wxPyBeginAllowThreads();
23076 (arg1)->SetAxisOrientation(arg2,arg3);
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 resultobj = SWIG_Py_Void();
23081 return resultobj;
23082 fail:
23083 return NULL;
23084 }
23085
23086
23087 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxDC *arg1 = (wxDC *) 0 ;
23090 int result;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 PyObject *swig_obj[1] ;
23094
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23100 }
23101 arg1 = reinterpret_cast< wxDC * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 resultobj = SWIG_From_int(static_cast< int >(result));
23109 return resultobj;
23110 fail:
23111 return NULL;
23112 }
23113
23114
23115 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23116 PyObject *resultobj = 0;
23117 wxDC *arg1 = (wxDC *) 0 ;
23118 int arg2 ;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 int val2 ;
23122 int ecode2 = 0 ;
23123 PyObject * obj0 = 0 ;
23124 PyObject * obj1 = 0 ;
23125 char * kwnames[] = {
23126 (char *) "self",(char *) "function", NULL
23127 };
23128
23129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23131 if (!SWIG_IsOK(res1)) {
23132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23133 }
23134 arg1 = reinterpret_cast< wxDC * >(argp1);
23135 ecode2 = SWIG_AsVal_int(obj1, &val2);
23136 if (!SWIG_IsOK(ecode2)) {
23137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23138 }
23139 arg2 = static_cast< int >(val2);
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
23142 (arg1)->SetLogicalFunction(arg2);
23143 wxPyEndAllowThreads(__tstate);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 }
23146 resultobj = SWIG_Py_Void();
23147 return resultobj;
23148 fail:
23149 return NULL;
23150 }
23151
23152
23153 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23154 PyObject *resultobj = 0;
23155 wxDC *arg1 = (wxDC *) 0 ;
23156 void *argp1 = 0 ;
23157 int res1 = 0 ;
23158 PyObject *swig_obj[1] ;
23159
23160 if (!args) SWIG_fail;
23161 swig_obj[0] = args;
23162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23163 if (!SWIG_IsOK(res1)) {
23164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23165 }
23166 arg1 = reinterpret_cast< wxDC * >(argp1);
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 (arg1)->ComputeScaleAndOrigin();
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 resultobj = SWIG_Py_Void();
23174 return resultobj;
23175 fail:
23176 return NULL;
23177 }
23178
23179
23180 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23181 PyObject *resultobj = 0;
23182 wxDC *arg1 = (wxDC *) 0 ;
23183 int arg2 ;
23184 int arg3 ;
23185 void *argp1 = 0 ;
23186 int res1 = 0 ;
23187 int val2 ;
23188 int ecode2 = 0 ;
23189 int val3 ;
23190 int ecode3 = 0 ;
23191 PyObject * obj0 = 0 ;
23192 PyObject * obj1 = 0 ;
23193 PyObject * obj2 = 0 ;
23194 char * kwnames[] = {
23195 (char *) "self",(char *) "x",(char *) "y", NULL
23196 };
23197
23198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23200 if (!SWIG_IsOK(res1)) {
23201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23202 }
23203 arg1 = reinterpret_cast< wxDC * >(argp1);
23204 ecode2 = SWIG_AsVal_int(obj1, &val2);
23205 if (!SWIG_IsOK(ecode2)) {
23206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23207 }
23208 arg2 = static_cast< int >(val2);
23209 ecode3 = SWIG_AsVal_int(obj2, &val3);
23210 if (!SWIG_IsOK(ecode3)) {
23211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23212 }
23213 arg3 = static_cast< int >(val3);
23214 {
23215 PyThreadState* __tstate = wxPyBeginAllowThreads();
23216 (arg1)->CalcBoundingBox(arg2,arg3);
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 resultobj = SWIG_Py_Void();
23221 return resultobj;
23222 fail:
23223 return NULL;
23224 }
23225
23226
23227 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23228 PyObject *resultobj = 0;
23229 wxDC *arg1 = (wxDC *) 0 ;
23230 wxPoint *arg2 = 0 ;
23231 void *argp1 = 0 ;
23232 int res1 = 0 ;
23233 wxPoint temp2 ;
23234 PyObject * obj0 = 0 ;
23235 PyObject * obj1 = 0 ;
23236 char * kwnames[] = {
23237 (char *) "self",(char *) "point", NULL
23238 };
23239
23240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23242 if (!SWIG_IsOK(res1)) {
23243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23244 }
23245 arg1 = reinterpret_cast< wxDC * >(argp1);
23246 {
23247 arg2 = &temp2;
23248 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23249 }
23250 {
23251 PyThreadState* __tstate = wxPyBeginAllowThreads();
23252 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23253 wxPyEndAllowThreads(__tstate);
23254 if (PyErr_Occurred()) SWIG_fail;
23255 }
23256 resultobj = SWIG_Py_Void();
23257 return resultobj;
23258 fail:
23259 return NULL;
23260 }
23261
23262
23263 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23264 PyObject *resultobj = 0;
23265 wxDC *arg1 = (wxDC *) 0 ;
23266 void *argp1 = 0 ;
23267 int res1 = 0 ;
23268 PyObject *swig_obj[1] ;
23269
23270 if (!args) SWIG_fail;
23271 swig_obj[0] = args;
23272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23273 if (!SWIG_IsOK(res1)) {
23274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23275 }
23276 arg1 = reinterpret_cast< wxDC * >(argp1);
23277 {
23278 PyThreadState* __tstate = wxPyBeginAllowThreads();
23279 (arg1)->ResetBoundingBox();
23280 wxPyEndAllowThreads(__tstate);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 }
23283 resultobj = SWIG_Py_Void();
23284 return resultobj;
23285 fail:
23286 return NULL;
23287 }
23288
23289
23290 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23291 PyObject *resultobj = 0;
23292 wxDC *arg1 = (wxDC *) 0 ;
23293 int result;
23294 void *argp1 = 0 ;
23295 int res1 = 0 ;
23296 PyObject *swig_obj[1] ;
23297
23298 if (!args) SWIG_fail;
23299 swig_obj[0] = args;
23300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23303 }
23304 arg1 = reinterpret_cast< wxDC * >(argp1);
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 result = (int)((wxDC const *)arg1)->MinX();
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 resultobj = SWIG_From_int(static_cast< int >(result));
23312 return resultobj;
23313 fail:
23314 return NULL;
23315 }
23316
23317
23318 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319 PyObject *resultobj = 0;
23320 wxDC *arg1 = (wxDC *) 0 ;
23321 int result;
23322 void *argp1 = 0 ;
23323 int res1 = 0 ;
23324 PyObject *swig_obj[1] ;
23325
23326 if (!args) SWIG_fail;
23327 swig_obj[0] = args;
23328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23329 if (!SWIG_IsOK(res1)) {
23330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23331 }
23332 arg1 = reinterpret_cast< wxDC * >(argp1);
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (int)((wxDC const *)arg1)->MaxX();
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = SWIG_From_int(static_cast< int >(result));
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *resultobj = 0;
23348 wxDC *arg1 = (wxDC *) 0 ;
23349 int result;
23350 void *argp1 = 0 ;
23351 int res1 = 0 ;
23352 PyObject *swig_obj[1] ;
23353
23354 if (!args) SWIG_fail;
23355 swig_obj[0] = args;
23356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23357 if (!SWIG_IsOK(res1)) {
23358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23359 }
23360 arg1 = reinterpret_cast< wxDC * >(argp1);
23361 {
23362 PyThreadState* __tstate = wxPyBeginAllowThreads();
23363 result = (int)((wxDC const *)arg1)->MinY();
23364 wxPyEndAllowThreads(__tstate);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 }
23367 resultobj = SWIG_From_int(static_cast< int >(result));
23368 return resultobj;
23369 fail:
23370 return NULL;
23371 }
23372
23373
23374 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23375 PyObject *resultobj = 0;
23376 wxDC *arg1 = (wxDC *) 0 ;
23377 int result;
23378 void *argp1 = 0 ;
23379 int res1 = 0 ;
23380 PyObject *swig_obj[1] ;
23381
23382 if (!args) SWIG_fail;
23383 swig_obj[0] = args;
23384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23385 if (!SWIG_IsOK(res1)) {
23386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23387 }
23388 arg1 = reinterpret_cast< wxDC * >(argp1);
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 result = (int)((wxDC const *)arg1)->MaxY();
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_From_int(static_cast< int >(result));
23396 return resultobj;
23397 fail:
23398 return NULL;
23399 }
23400
23401
23402 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23403 PyObject *resultobj = 0;
23404 wxDC *arg1 = (wxDC *) 0 ;
23405 int *arg2 = (int *) 0 ;
23406 int *arg3 = (int *) 0 ;
23407 int *arg4 = (int *) 0 ;
23408 int *arg5 = (int *) 0 ;
23409 void *argp1 = 0 ;
23410 int res1 = 0 ;
23411 int temp2 ;
23412 int res2 = SWIG_TMPOBJ ;
23413 int temp3 ;
23414 int res3 = SWIG_TMPOBJ ;
23415 int temp4 ;
23416 int res4 = SWIG_TMPOBJ ;
23417 int temp5 ;
23418 int res5 = SWIG_TMPOBJ ;
23419 PyObject *swig_obj[1] ;
23420
23421 arg2 = &temp2;
23422 arg3 = &temp3;
23423 arg4 = &temp4;
23424 arg5 = &temp5;
23425 if (!args) SWIG_fail;
23426 swig_obj[0] = args;
23427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23428 if (!SWIG_IsOK(res1)) {
23429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23430 }
23431 arg1 = reinterpret_cast< wxDC * >(argp1);
23432 {
23433 PyThreadState* __tstate = wxPyBeginAllowThreads();
23434 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 resultobj = SWIG_Py_Void();
23439 if (SWIG_IsTmpObj(res2)) {
23440 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23441 } else {
23442 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23444 }
23445 if (SWIG_IsTmpObj(res3)) {
23446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23447 } else {
23448 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23450 }
23451 if (SWIG_IsTmpObj(res4)) {
23452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23453 } else {
23454 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23456 }
23457 if (SWIG_IsTmpObj(res5)) {
23458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23459 } else {
23460 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23462 }
23463 return resultobj;
23464 fail:
23465 return NULL;
23466 }
23467
23468
23469 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23470 PyObject *resultobj = 0;
23471 wxDC *arg1 = (wxDC *) 0 ;
23472 wxLayoutDirection result;
23473 void *argp1 = 0 ;
23474 int res1 = 0 ;
23475 PyObject *swig_obj[1] ;
23476
23477 if (!args) SWIG_fail;
23478 swig_obj[0] = args;
23479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23480 if (!SWIG_IsOK(res1)) {
23481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23482 }
23483 arg1 = reinterpret_cast< wxDC * >(argp1);
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23487 wxPyEndAllowThreads(__tstate);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 resultobj = SWIG_From_int(static_cast< int >(result));
23491 return resultobj;
23492 fail:
23493 return NULL;
23494 }
23495
23496
23497 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23498 PyObject *resultobj = 0;
23499 wxDC *arg1 = (wxDC *) 0 ;
23500 wxLayoutDirection arg2 ;
23501 void *argp1 = 0 ;
23502 int res1 = 0 ;
23503 int val2 ;
23504 int ecode2 = 0 ;
23505 PyObject * obj0 = 0 ;
23506 PyObject * obj1 = 0 ;
23507 char * kwnames[] = {
23508 (char *) "self",(char *) "dir", NULL
23509 };
23510
23511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23513 if (!SWIG_IsOK(res1)) {
23514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23515 }
23516 arg1 = reinterpret_cast< wxDC * >(argp1);
23517 ecode2 = SWIG_AsVal_int(obj1, &val2);
23518 if (!SWIG_IsOK(ecode2)) {
23519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23520 }
23521 arg2 = static_cast< wxLayoutDirection >(val2);
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 (arg1)->SetLayoutDirection(arg2);
23525 wxPyEndAllowThreads(__tstate);
23526 if (PyErr_Occurred()) SWIG_fail;
23527 }
23528 resultobj = SWIG_Py_Void();
23529 return resultobj;
23530 fail:
23531 return NULL;
23532 }
23533
23534
23535 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23536 PyObject *resultobj = 0;
23537 wxDC *arg1 = (wxDC *) 0 ;
23538 long result;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 PyObject *swig_obj[1] ;
23542
23543 if (!args) SWIG_fail;
23544 swig_obj[0] = args;
23545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23548 }
23549 arg1 = reinterpret_cast< wxDC * >(argp1);
23550 {
23551 PyThreadState* __tstate = wxPyBeginAllowThreads();
23552 result = (long)(arg1)->GetHDC();
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 resultobj = SWIG_From_long(static_cast< long >(result));
23557 return resultobj;
23558 fail:
23559 return NULL;
23560 }
23561
23562
23563 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23564 PyObject *resultobj = 0;
23565 wxDC *arg1 = (wxDC *) 0 ;
23566 PyObject *arg2 = (PyObject *) 0 ;
23567 PyObject *arg3 = (PyObject *) 0 ;
23568 PyObject *arg4 = (PyObject *) 0 ;
23569 PyObject *result = 0 ;
23570 void *argp1 = 0 ;
23571 int res1 = 0 ;
23572 PyObject * obj0 = 0 ;
23573 PyObject * obj1 = 0 ;
23574 PyObject * obj2 = 0 ;
23575 PyObject * obj3 = 0 ;
23576 char * kwnames[] = {
23577 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23578 };
23579
23580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23582 if (!SWIG_IsOK(res1)) {
23583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23584 }
23585 arg1 = reinterpret_cast< wxDC * >(argp1);
23586 arg2 = obj1;
23587 arg3 = obj2;
23588 arg4 = obj3;
23589 {
23590 PyThreadState* __tstate = wxPyBeginAllowThreads();
23591 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23592 wxPyEndAllowThreads(__tstate);
23593 if (PyErr_Occurred()) SWIG_fail;
23594 }
23595 resultobj = result;
23596 return resultobj;
23597 fail:
23598 return NULL;
23599 }
23600
23601
23602 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23603 PyObject *resultobj = 0;
23604 wxDC *arg1 = (wxDC *) 0 ;
23605 PyObject *arg2 = (PyObject *) 0 ;
23606 PyObject *arg3 = (PyObject *) 0 ;
23607 PyObject *arg4 = (PyObject *) 0 ;
23608 PyObject *result = 0 ;
23609 void *argp1 = 0 ;
23610 int res1 = 0 ;
23611 PyObject * obj0 = 0 ;
23612 PyObject * obj1 = 0 ;
23613 PyObject * obj2 = 0 ;
23614 PyObject * obj3 = 0 ;
23615 char * kwnames[] = {
23616 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23617 };
23618
23619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23621 if (!SWIG_IsOK(res1)) {
23622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23623 }
23624 arg1 = reinterpret_cast< wxDC * >(argp1);
23625 arg2 = obj1;
23626 arg3 = obj2;
23627 arg4 = obj3;
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23631 wxPyEndAllowThreads(__tstate);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 }
23634 resultobj = result;
23635 return resultobj;
23636 fail:
23637 return NULL;
23638 }
23639
23640
23641 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23642 PyObject *resultobj = 0;
23643 wxDC *arg1 = (wxDC *) 0 ;
23644 PyObject *arg2 = (PyObject *) 0 ;
23645 PyObject *arg3 = (PyObject *) 0 ;
23646 PyObject *arg4 = (PyObject *) 0 ;
23647 PyObject *result = 0 ;
23648 void *argp1 = 0 ;
23649 int res1 = 0 ;
23650 PyObject * obj0 = 0 ;
23651 PyObject * obj1 = 0 ;
23652 PyObject * obj2 = 0 ;
23653 PyObject * obj3 = 0 ;
23654 char * kwnames[] = {
23655 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23656 };
23657
23658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23662 }
23663 arg1 = reinterpret_cast< wxDC * >(argp1);
23664 arg2 = obj1;
23665 arg3 = obj2;
23666 arg4 = obj3;
23667 {
23668 PyThreadState* __tstate = wxPyBeginAllowThreads();
23669 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23670 wxPyEndAllowThreads(__tstate);
23671 if (PyErr_Occurred()) SWIG_fail;
23672 }
23673 resultobj = result;
23674 return resultobj;
23675 fail:
23676 return NULL;
23677 }
23678
23679
23680 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23681 PyObject *resultobj = 0;
23682 wxDC *arg1 = (wxDC *) 0 ;
23683 PyObject *arg2 = (PyObject *) 0 ;
23684 PyObject *arg3 = (PyObject *) 0 ;
23685 PyObject *arg4 = (PyObject *) 0 ;
23686 PyObject *result = 0 ;
23687 void *argp1 = 0 ;
23688 int res1 = 0 ;
23689 PyObject * obj0 = 0 ;
23690 PyObject * obj1 = 0 ;
23691 PyObject * obj2 = 0 ;
23692 PyObject * obj3 = 0 ;
23693 char * kwnames[] = {
23694 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23695 };
23696
23697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23699 if (!SWIG_IsOK(res1)) {
23700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23701 }
23702 arg1 = reinterpret_cast< wxDC * >(argp1);
23703 arg2 = obj1;
23704 arg3 = obj2;
23705 arg4 = obj3;
23706 {
23707 PyThreadState* __tstate = wxPyBeginAllowThreads();
23708 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23709 wxPyEndAllowThreads(__tstate);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 }
23712 resultobj = result;
23713 return resultobj;
23714 fail:
23715 return NULL;
23716 }
23717
23718
23719 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23720 PyObject *resultobj = 0;
23721 wxDC *arg1 = (wxDC *) 0 ;
23722 PyObject *arg2 = (PyObject *) 0 ;
23723 PyObject *arg3 = (PyObject *) 0 ;
23724 PyObject *arg4 = (PyObject *) 0 ;
23725 PyObject *result = 0 ;
23726 void *argp1 = 0 ;
23727 int res1 = 0 ;
23728 PyObject * obj0 = 0 ;
23729 PyObject * obj1 = 0 ;
23730 PyObject * obj2 = 0 ;
23731 PyObject * obj3 = 0 ;
23732 char * kwnames[] = {
23733 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23734 };
23735
23736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23738 if (!SWIG_IsOK(res1)) {
23739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23740 }
23741 arg1 = reinterpret_cast< wxDC * >(argp1);
23742 arg2 = obj1;
23743 arg3 = obj2;
23744 arg4 = obj3;
23745 {
23746 PyThreadState* __tstate = wxPyBeginAllowThreads();
23747 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 resultobj = result;
23752 return resultobj;
23753 fail:
23754 return NULL;
23755 }
23756
23757
23758 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23759 PyObject *resultobj = 0;
23760 wxDC *arg1 = (wxDC *) 0 ;
23761 PyObject *arg2 = (PyObject *) 0 ;
23762 PyObject *arg3 = (PyObject *) 0 ;
23763 PyObject *arg4 = (PyObject *) 0 ;
23764 PyObject *arg5 = (PyObject *) 0 ;
23765 PyObject *result = 0 ;
23766 void *argp1 = 0 ;
23767 int res1 = 0 ;
23768 PyObject * obj0 = 0 ;
23769 PyObject * obj1 = 0 ;
23770 PyObject * obj2 = 0 ;
23771 PyObject * obj3 = 0 ;
23772 PyObject * obj4 = 0 ;
23773 char * kwnames[] = {
23774 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23775 };
23776
23777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23779 if (!SWIG_IsOK(res1)) {
23780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23781 }
23782 arg1 = reinterpret_cast< wxDC * >(argp1);
23783 arg2 = obj1;
23784 arg3 = obj2;
23785 arg4 = obj3;
23786 arg5 = obj4;
23787 {
23788 PyThreadState* __tstate = wxPyBeginAllowThreads();
23789 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23790 wxPyEndAllowThreads(__tstate);
23791 if (PyErr_Occurred()) SWIG_fail;
23792 }
23793 resultobj = result;
23794 return resultobj;
23795 fail:
23796 return NULL;
23797 }
23798
23799
23800 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23801 PyObject *obj;
23802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23803 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23804 return SWIG_Py_Void();
23805 }
23806
23807 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23808 PyObject *resultobj = 0;
23809 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23810 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23811 wxMemoryDC *result = 0 ;
23812 void *argp1 = 0 ;
23813 int res1 = 0 ;
23814 PyObject * obj0 = 0 ;
23815 char * kwnames[] = {
23816 (char *) "bitmap", NULL
23817 };
23818
23819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23820 if (obj0) {
23821 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23824 }
23825 if (!argp1) {
23826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23827 }
23828 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23829 }
23830 {
23831 if (!wxPyCheckForApp()) SWIG_fail;
23832 PyThreadState* __tstate = wxPyBeginAllowThreads();
23833 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23834 wxPyEndAllowThreads(__tstate);
23835 if (PyErr_Occurred()) SWIG_fail;
23836 }
23837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23838 return resultobj;
23839 fail:
23840 return NULL;
23841 }
23842
23843
23844 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23845 PyObject *resultobj = 0;
23846 wxDC *arg1 = (wxDC *) 0 ;
23847 wxMemoryDC *result = 0 ;
23848 void *argp1 = 0 ;
23849 int res1 = 0 ;
23850 PyObject * obj0 = 0 ;
23851 char * kwnames[] = {
23852 (char *) "oldDC", NULL
23853 };
23854
23855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23857 if (!SWIG_IsOK(res1)) {
23858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23859 }
23860 arg1 = reinterpret_cast< wxDC * >(argp1);
23861 {
23862 if (!wxPyCheckForApp()) SWIG_fail;
23863 PyThreadState* __tstate = wxPyBeginAllowThreads();
23864 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23865 wxPyEndAllowThreads(__tstate);
23866 if (PyErr_Occurred()) SWIG_fail;
23867 }
23868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23869 return resultobj;
23870 fail:
23871 return NULL;
23872 }
23873
23874
23875 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23876 PyObject *resultobj = 0;
23877 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23878 wxBitmap *arg2 = 0 ;
23879 void *argp1 = 0 ;
23880 int res1 = 0 ;
23881 void *argp2 = 0 ;
23882 int res2 = 0 ;
23883 PyObject * obj0 = 0 ;
23884 PyObject * obj1 = 0 ;
23885 char * kwnames[] = {
23886 (char *) "self",(char *) "bitmap", NULL
23887 };
23888
23889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23891 if (!SWIG_IsOK(res1)) {
23892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23893 }
23894 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23896 if (!SWIG_IsOK(res2)) {
23897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23898 }
23899 if (!argp2) {
23900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23901 }
23902 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23903 {
23904 PyThreadState* __tstate = wxPyBeginAllowThreads();
23905 (arg1)->SelectObject((wxBitmap const &)*arg2);
23906 wxPyEndAllowThreads(__tstate);
23907 if (PyErr_Occurred()) SWIG_fail;
23908 }
23909 resultobj = SWIG_Py_Void();
23910 return resultobj;
23911 fail:
23912 return NULL;
23913 }
23914
23915
23916 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23917 PyObject *obj;
23918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23919 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23920 return SWIG_Py_Void();
23921 }
23922
23923 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23924 return SWIG_Python_InitShadowInstance(args);
23925 }
23926
23927 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23928 PyObject *resultobj = 0;
23929 wxScreenDC *result = 0 ;
23930
23931 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23932 {
23933 if (!wxPyCheckForApp()) SWIG_fail;
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (wxScreenDC *)new wxScreenDC();
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23940 return resultobj;
23941 fail:
23942 return NULL;
23943 }
23944
23945
23946 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23947 PyObject *resultobj = 0;
23948 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23949 wxWindow *arg2 = (wxWindow *) 0 ;
23950 bool result;
23951 void *argp1 = 0 ;
23952 int res1 = 0 ;
23953 void *argp2 = 0 ;
23954 int res2 = 0 ;
23955 PyObject * obj0 = 0 ;
23956 PyObject * obj1 = 0 ;
23957 char * kwnames[] = {
23958 (char *) "self",(char *) "window", NULL
23959 };
23960
23961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23963 if (!SWIG_IsOK(res1)) {
23964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23965 }
23966 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23967 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23968 if (!SWIG_IsOK(res2)) {
23969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23970 }
23971 arg2 = reinterpret_cast< wxWindow * >(argp2);
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23975 wxPyEndAllowThreads(__tstate);
23976 if (PyErr_Occurred()) SWIG_fail;
23977 }
23978 {
23979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23980 }
23981 return resultobj;
23982 fail:
23983 return NULL;
23984 }
23985
23986
23987 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23988 PyObject *resultobj = 0;
23989 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23990 wxRect *arg2 = (wxRect *) NULL ;
23991 bool result;
23992 void *argp1 = 0 ;
23993 int res1 = 0 ;
23994 void *argp2 = 0 ;
23995 int res2 = 0 ;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998 char * kwnames[] = {
23999 (char *) "self",(char *) "rect", NULL
24000 };
24001
24002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24004 if (!SWIG_IsOK(res1)) {
24005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24006 }
24007 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24008 if (obj1) {
24009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24010 if (!SWIG_IsOK(res2)) {
24011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24012 }
24013 arg2 = reinterpret_cast< wxRect * >(argp2);
24014 }
24015 {
24016 PyThreadState* __tstate = wxPyBeginAllowThreads();
24017 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24018 wxPyEndAllowThreads(__tstate);
24019 if (PyErr_Occurred()) SWIG_fail;
24020 }
24021 {
24022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24023 }
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24031 PyObject *resultobj = 0;
24032 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24033 bool result;
24034 void *argp1 = 0 ;
24035 int res1 = 0 ;
24036 PyObject *swig_obj[1] ;
24037
24038 if (!args) SWIG_fail;
24039 swig_obj[0] = args;
24040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24041 if (!SWIG_IsOK(res1)) {
24042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24043 }
24044 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24045 {
24046 PyThreadState* __tstate = wxPyBeginAllowThreads();
24047 result = (bool)(arg1)->EndDrawingOnTop();
24048 wxPyEndAllowThreads(__tstate);
24049 if (PyErr_Occurred()) SWIG_fail;
24050 }
24051 {
24052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24053 }
24054 return resultobj;
24055 fail:
24056 return NULL;
24057 }
24058
24059
24060 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24061 PyObject *obj;
24062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24063 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24064 return SWIG_Py_Void();
24065 }
24066
24067 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24068 return SWIG_Python_InitShadowInstance(args);
24069 }
24070
24071 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24072 PyObject *resultobj = 0;
24073 wxWindow *arg1 = (wxWindow *) 0 ;
24074 wxWindowDC *result = 0 ;
24075 void *argp1 = 0 ;
24076 int res1 = 0 ;
24077 PyObject * obj0 = 0 ;
24078 char * kwnames[] = {
24079 (char *) "win", NULL
24080 };
24081
24082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24084 if (!SWIG_IsOK(res1)) {
24085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24086 }
24087 arg1 = reinterpret_cast< wxWindow * >(argp1);
24088 {
24089 if (!wxPyCheckForApp()) SWIG_fail;
24090 PyThreadState* __tstate = wxPyBeginAllowThreads();
24091 result = (wxWindowDC *)new wxWindowDC(arg1);
24092 wxPyEndAllowThreads(__tstate);
24093 if (PyErr_Occurred()) SWIG_fail;
24094 }
24095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24096 return resultobj;
24097 fail:
24098 return NULL;
24099 }
24100
24101
24102 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24103 PyObject *obj;
24104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24105 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24106 return SWIG_Py_Void();
24107 }
24108
24109 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24110 return SWIG_Python_InitShadowInstance(args);
24111 }
24112
24113 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24114 PyObject *resultobj = 0;
24115 wxWindow *arg1 = (wxWindow *) 0 ;
24116 wxClientDC *result = 0 ;
24117 void *argp1 = 0 ;
24118 int res1 = 0 ;
24119 PyObject * obj0 = 0 ;
24120 char * kwnames[] = {
24121 (char *) "win", NULL
24122 };
24123
24124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24126 if (!SWIG_IsOK(res1)) {
24127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24128 }
24129 arg1 = reinterpret_cast< wxWindow * >(argp1);
24130 {
24131 if (!wxPyCheckForApp()) SWIG_fail;
24132 PyThreadState* __tstate = wxPyBeginAllowThreads();
24133 result = (wxClientDC *)new wxClientDC(arg1);
24134 wxPyEndAllowThreads(__tstate);
24135 if (PyErr_Occurred()) SWIG_fail;
24136 }
24137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24145 PyObject *obj;
24146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24147 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24148 return SWIG_Py_Void();
24149 }
24150
24151 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24152 return SWIG_Python_InitShadowInstance(args);
24153 }
24154
24155 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24156 PyObject *resultobj = 0;
24157 wxWindow *arg1 = (wxWindow *) 0 ;
24158 wxPaintDC *result = 0 ;
24159 void *argp1 = 0 ;
24160 int res1 = 0 ;
24161 PyObject * obj0 = 0 ;
24162 char * kwnames[] = {
24163 (char *) "win", NULL
24164 };
24165
24166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24168 if (!SWIG_IsOK(res1)) {
24169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24170 }
24171 arg1 = reinterpret_cast< wxWindow * >(argp1);
24172 {
24173 if (!wxPyCheckForApp()) SWIG_fail;
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (wxPaintDC *)new wxPaintDC(arg1);
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24187 PyObject *obj;
24188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24189 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24190 return SWIG_Py_Void();
24191 }
24192
24193 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 return SWIG_Python_InitShadowInstance(args);
24195 }
24196
24197 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24198 PyObject *resultobj = 0;
24199 wxDC *arg1 = (wxDC *) 0 ;
24200 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24201 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24202 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24203 wxBufferedDC *result = 0 ;
24204 void *argp1 = 0 ;
24205 int res1 = 0 ;
24206 void *argp2 = 0 ;
24207 int res2 = 0 ;
24208 int val3 ;
24209 int ecode3 = 0 ;
24210
24211 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24213 if (!SWIG_IsOK(res1)) {
24214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24215 }
24216 arg1 = reinterpret_cast< wxDC * >(argp1);
24217 if (swig_obj[1]) {
24218 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24219 if (!SWIG_IsOK(res2)) {
24220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24221 }
24222 if (!argp2) {
24223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24224 }
24225 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24226 }
24227 if (swig_obj[2]) {
24228 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24229 if (!SWIG_IsOK(ecode3)) {
24230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24231 }
24232 arg3 = static_cast< int >(val3);
24233 }
24234 {
24235 if (!wxPyCheckForApp()) SWIG_fail;
24236 PyThreadState* __tstate = wxPyBeginAllowThreads();
24237 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24238 wxPyEndAllowThreads(__tstate);
24239 if (PyErr_Occurred()) SWIG_fail;
24240 }
24241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24242 return resultobj;
24243 fail:
24244 return NULL;
24245 }
24246
24247
24248 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24249 PyObject *resultobj = 0;
24250 wxDC *arg1 = (wxDC *) 0 ;
24251 wxSize *arg2 = 0 ;
24252 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24253 wxBufferedDC *result = 0 ;
24254 void *argp1 = 0 ;
24255 int res1 = 0 ;
24256 wxSize temp2 ;
24257 int val3 ;
24258 int ecode3 = 0 ;
24259
24260 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24264 }
24265 arg1 = reinterpret_cast< wxDC * >(argp1);
24266 {
24267 arg2 = &temp2;
24268 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24269 }
24270 if (swig_obj[2]) {
24271 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24272 if (!SWIG_IsOK(ecode3)) {
24273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24274 }
24275 arg3 = static_cast< int >(val3);
24276 }
24277 {
24278 if (!wxPyCheckForApp()) SWIG_fail;
24279 PyThreadState* __tstate = wxPyBeginAllowThreads();
24280 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24281 wxPyEndAllowThreads(__tstate);
24282 if (PyErr_Occurred()) SWIG_fail;
24283 }
24284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24285 return resultobj;
24286 fail:
24287 return NULL;
24288 }
24289
24290
24291 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24292 int argc;
24293 PyObject *argv[4];
24294
24295 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24296 --argc;
24297 if ((argc >= 1) && (argc <= 3)) {
24298 int _v = 0;
24299 if (argc > 1) {
24300 {
24301 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24302 _v = SWIG_CheckState(res);
24303 }
24304 if (!_v) goto check_1;
24305 }
24306 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24307 }
24308 check_1:
24309
24310 if ((argc >= 2) && (argc <= 3)) {
24311 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24312 }
24313
24314 fail:
24315 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24316 return NULL;
24317 }
24318
24319
24320 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24321 PyObject *resultobj = 0;
24322 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24323 void *argp1 = 0 ;
24324 int res1 = 0 ;
24325 PyObject *swig_obj[1] ;
24326
24327 if (!args) SWIG_fail;
24328 swig_obj[0] = args;
24329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24330 if (!SWIG_IsOK(res1)) {
24331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24332 }
24333 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24334 {
24335 PyThreadState* __tstate = wxPyBeginAllowThreads();
24336 delete arg1;
24337
24338 wxPyEndAllowThreads(__tstate);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 resultobj = SWIG_Py_Void();
24342 return resultobj;
24343 fail:
24344 return NULL;
24345 }
24346
24347
24348 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24349 PyObject *resultobj = 0;
24350 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24351 void *argp1 = 0 ;
24352 int res1 = 0 ;
24353 PyObject *swig_obj[1] ;
24354
24355 if (!args) SWIG_fail;
24356 swig_obj[0] = args;
24357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24358 if (!SWIG_IsOK(res1)) {
24359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24360 }
24361 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24362 {
24363 PyThreadState* __tstate = wxPyBeginAllowThreads();
24364 (arg1)->UnMask();
24365 wxPyEndAllowThreads(__tstate);
24366 if (PyErr_Occurred()) SWIG_fail;
24367 }
24368 resultobj = SWIG_Py_Void();
24369 return resultobj;
24370 fail:
24371 return NULL;
24372 }
24373
24374
24375 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24376 PyObject *obj;
24377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24378 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24379 return SWIG_Py_Void();
24380 }
24381
24382 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24383 return SWIG_Python_InitShadowInstance(args);
24384 }
24385
24386 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24387 PyObject *resultobj = 0;
24388 wxWindow *arg1 = (wxWindow *) 0 ;
24389 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24390 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24391 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24392 wxBufferedPaintDC *result = 0 ;
24393 void *argp1 = 0 ;
24394 int res1 = 0 ;
24395 void *argp2 = 0 ;
24396 int res2 = 0 ;
24397 int val3 ;
24398 int ecode3 = 0 ;
24399 PyObject * obj0 = 0 ;
24400 PyObject * obj1 = 0 ;
24401 PyObject * obj2 = 0 ;
24402 char * kwnames[] = {
24403 (char *) "window",(char *) "buffer",(char *) "style", NULL
24404 };
24405
24406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) 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_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24410 }
24411 arg1 = reinterpret_cast< wxWindow * >(argp1);
24412 if (obj1) {
24413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24414 if (!SWIG_IsOK(res2)) {
24415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24416 }
24417 if (!argp2) {
24418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24419 }
24420 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24421 }
24422 if (obj2) {
24423 ecode3 = SWIG_AsVal_int(obj2, &val3);
24424 if (!SWIG_IsOK(ecode3)) {
24425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24426 }
24427 arg3 = static_cast< int >(val3);
24428 }
24429 {
24430 if (!wxPyCheckForApp()) SWIG_fail;
24431 PyThreadState* __tstate = wxPyBeginAllowThreads();
24432 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24433 wxPyEndAllowThreads(__tstate);
24434 if (PyErr_Occurred()) SWIG_fail;
24435 }
24436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24437 return resultobj;
24438 fail:
24439 return NULL;
24440 }
24441
24442
24443 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24444 PyObject *obj;
24445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24446 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24447 return SWIG_Py_Void();
24448 }
24449
24450 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24451 return SWIG_Python_InitShadowInstance(args);
24452 }
24453
24454 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24455 PyObject *resultobj = 0;
24456 wxWindow *arg1 = (wxWindow *) 0 ;
24457 wxAutoBufferedPaintDC *result = 0 ;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 PyObject * obj0 = 0 ;
24461 char * kwnames[] = {
24462 (char *) "win", NULL
24463 };
24464
24465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24467 if (!SWIG_IsOK(res1)) {
24468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24469 }
24470 arg1 = reinterpret_cast< wxWindow * >(argp1);
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24478 return resultobj;
24479 fail:
24480 return NULL;
24481 }
24482
24483
24484 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24485 PyObject *obj;
24486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24487 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24488 return SWIG_Py_Void();
24489 }
24490
24491 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24492 return SWIG_Python_InitShadowInstance(args);
24493 }
24494
24495 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24496 PyObject *resultobj = 0;
24497 wxWindow *arg1 = (wxWindow *) 0 ;
24498 wxDC *result = 0 ;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 PyObject * obj0 = 0 ;
24502 char * kwnames[] = {
24503 (char *) "window", NULL
24504 };
24505
24506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24508 if (!SWIG_IsOK(res1)) {
24509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24510 }
24511 arg1 = reinterpret_cast< wxWindow * >(argp1);
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
24518 {
24519 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24520 }
24521 return resultobj;
24522 fail:
24523 return NULL;
24524 }
24525
24526
24527 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24528 PyObject *resultobj = 0;
24529 wxDC *arg1 = 0 ;
24530 bool arg2 ;
24531 wxMirrorDC *result = 0 ;
24532 void *argp1 = 0 ;
24533 int res1 = 0 ;
24534 bool val2 ;
24535 int ecode2 = 0 ;
24536 PyObject * obj0 = 0 ;
24537 PyObject * obj1 = 0 ;
24538 char * kwnames[] = {
24539 (char *) "dc",(char *) "mirror", NULL
24540 };
24541
24542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24543 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24544 if (!SWIG_IsOK(res1)) {
24545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24546 }
24547 if (!argp1) {
24548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24549 }
24550 arg1 = reinterpret_cast< wxDC * >(argp1);
24551 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24552 if (!SWIG_IsOK(ecode2)) {
24553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24554 }
24555 arg2 = static_cast< bool >(val2);
24556 {
24557 if (!wxPyCheckForApp()) SWIG_fail;
24558 PyThreadState* __tstate = wxPyBeginAllowThreads();
24559 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24560 wxPyEndAllowThreads(__tstate);
24561 if (PyErr_Occurred()) SWIG_fail;
24562 }
24563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24564 return resultobj;
24565 fail:
24566 return NULL;
24567 }
24568
24569
24570 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24571 PyObject *obj;
24572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24573 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24574 return SWIG_Py_Void();
24575 }
24576
24577 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24578 return SWIG_Python_InitShadowInstance(args);
24579 }
24580
24581 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24582 PyObject *resultobj = 0;
24583 wxPrintData *arg1 = 0 ;
24584 wxPostScriptDC *result = 0 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 PyObject * obj0 = 0 ;
24588 char * kwnames[] = {
24589 (char *) "printData", NULL
24590 };
24591
24592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24593 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24594 if (!SWIG_IsOK(res1)) {
24595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24596 }
24597 if (!argp1) {
24598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24599 }
24600 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24601 {
24602 if (!wxPyCheckForApp()) SWIG_fail;
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24616 PyObject *resultobj = 0;
24617 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24618 wxPrintData *result = 0 ;
24619 void *argp1 = 0 ;
24620 int res1 = 0 ;
24621 PyObject *swig_obj[1] ;
24622
24623 if (!args) SWIG_fail;
24624 swig_obj[0] = args;
24625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24626 if (!SWIG_IsOK(res1)) {
24627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24628 }
24629 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24630 {
24631 PyThreadState* __tstate = wxPyBeginAllowThreads();
24632 {
24633 wxPrintData &_result_ref = (arg1)->GetPrintData();
24634 result = (wxPrintData *) &_result_ref;
24635 }
24636 wxPyEndAllowThreads(__tstate);
24637 if (PyErr_Occurred()) SWIG_fail;
24638 }
24639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24640 return resultobj;
24641 fail:
24642 return NULL;
24643 }
24644
24645
24646 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24647 PyObject *resultobj = 0;
24648 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24649 wxPrintData *arg2 = 0 ;
24650 void *argp1 = 0 ;
24651 int res1 = 0 ;
24652 void *argp2 = 0 ;
24653 int res2 = 0 ;
24654 PyObject * obj0 = 0 ;
24655 PyObject * obj1 = 0 ;
24656 char * kwnames[] = {
24657 (char *) "self",(char *) "data", NULL
24658 };
24659
24660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24662 if (!SWIG_IsOK(res1)) {
24663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24664 }
24665 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24667 if (!SWIG_IsOK(res2)) {
24668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24669 }
24670 if (!argp2) {
24671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24672 }
24673 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24674 {
24675 PyThreadState* __tstate = wxPyBeginAllowThreads();
24676 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24677 wxPyEndAllowThreads(__tstate);
24678 if (PyErr_Occurred()) SWIG_fail;
24679 }
24680 resultobj = SWIG_Py_Void();
24681 return resultobj;
24682 fail:
24683 return NULL;
24684 }
24685
24686
24687 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24688 PyObject *resultobj = 0;
24689 int arg1 ;
24690 int val1 ;
24691 int ecode1 = 0 ;
24692 PyObject * obj0 = 0 ;
24693 char * kwnames[] = {
24694 (char *) "ppi", NULL
24695 };
24696
24697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24698 ecode1 = SWIG_AsVal_int(obj0, &val1);
24699 if (!SWIG_IsOK(ecode1)) {
24700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24701 }
24702 arg1 = static_cast< int >(val1);
24703 {
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 wxPostScriptDC::SetResolution(arg1);
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 resultobj = SWIG_Py_Void();
24710 return resultobj;
24711 fail:
24712 return NULL;
24713 }
24714
24715
24716 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24717 PyObject *resultobj = 0;
24718 int result;
24719
24720 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24721 {
24722 PyThreadState* __tstate = wxPyBeginAllowThreads();
24723 result = (int)wxPostScriptDC::GetResolution();
24724 wxPyEndAllowThreads(__tstate);
24725 if (PyErr_Occurred()) SWIG_fail;
24726 }
24727 resultobj = SWIG_From_int(static_cast< int >(result));
24728 return resultobj;
24729 fail:
24730 return NULL;
24731 }
24732
24733
24734 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24735 PyObject *obj;
24736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24737 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24738 return SWIG_Py_Void();
24739 }
24740
24741 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24742 return SWIG_Python_InitShadowInstance(args);
24743 }
24744
24745 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24746 PyObject *resultobj = 0;
24747 wxString const &arg1_defvalue = wxPyEmptyString ;
24748 wxString *arg1 = (wxString *) &arg1_defvalue ;
24749 wxMetaFile *result = 0 ;
24750 bool temp1 = false ;
24751 PyObject * obj0 = 0 ;
24752 char * kwnames[] = {
24753 (char *) "filename", NULL
24754 };
24755
24756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24757 if (obj0) {
24758 {
24759 arg1 = wxString_in_helper(obj0);
24760 if (arg1 == NULL) SWIG_fail;
24761 temp1 = true;
24762 }
24763 }
24764 {
24765 if (!wxPyCheckForApp()) SWIG_fail;
24766 PyThreadState* __tstate = wxPyBeginAllowThreads();
24767 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24768 wxPyEndAllowThreads(__tstate);
24769 if (PyErr_Occurred()) SWIG_fail;
24770 }
24771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24772 {
24773 if (temp1)
24774 delete arg1;
24775 }
24776 return resultobj;
24777 fail:
24778 {
24779 if (temp1)
24780 delete arg1;
24781 }
24782 return NULL;
24783 }
24784
24785
24786 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24787 PyObject *resultobj = 0;
24788 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 PyObject *swig_obj[1] ;
24792
24793 if (!args) SWIG_fail;
24794 swig_obj[0] = args;
24795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24796 if (!SWIG_IsOK(res1)) {
24797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24798 }
24799 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24800 {
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 delete arg1;
24803
24804 wxPyEndAllowThreads(__tstate);
24805 if (PyErr_Occurred()) SWIG_fail;
24806 }
24807 resultobj = SWIG_Py_Void();
24808 return resultobj;
24809 fail:
24810 return NULL;
24811 }
24812
24813
24814 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24815 PyObject *resultobj = 0;
24816 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24817 bool result;
24818 void *argp1 = 0 ;
24819 int res1 = 0 ;
24820 PyObject *swig_obj[1] ;
24821
24822 if (!args) SWIG_fail;
24823 swig_obj[0] = args;
24824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24825 if (!SWIG_IsOK(res1)) {
24826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24827 }
24828 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (bool)(arg1)->IsOk();
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 {
24836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24837 }
24838 return resultobj;
24839 fail:
24840 return NULL;
24841 }
24842
24843
24844 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24845 PyObject *resultobj = 0;
24846 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24847 int arg2 = (int) 0 ;
24848 int arg3 = (int) 0 ;
24849 bool result;
24850 void *argp1 = 0 ;
24851 int res1 = 0 ;
24852 int val2 ;
24853 int ecode2 = 0 ;
24854 int val3 ;
24855 int ecode3 = 0 ;
24856 PyObject * obj0 = 0 ;
24857 PyObject * obj1 = 0 ;
24858 PyObject * obj2 = 0 ;
24859 char * kwnames[] = {
24860 (char *) "self",(char *) "width",(char *) "height", NULL
24861 };
24862
24863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24865 if (!SWIG_IsOK(res1)) {
24866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24867 }
24868 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24869 if (obj1) {
24870 ecode2 = SWIG_AsVal_int(obj1, &val2);
24871 if (!SWIG_IsOK(ecode2)) {
24872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24873 }
24874 arg2 = static_cast< int >(val2);
24875 }
24876 if (obj2) {
24877 ecode3 = SWIG_AsVal_int(obj2, &val3);
24878 if (!SWIG_IsOK(ecode3)) {
24879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24880 }
24881 arg3 = static_cast< int >(val3);
24882 }
24883 {
24884 PyThreadState* __tstate = wxPyBeginAllowThreads();
24885 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 {
24890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24891 }
24892 return resultobj;
24893 fail:
24894 return NULL;
24895 }
24896
24897
24898 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24899 PyObject *resultobj = 0;
24900 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24901 wxSize result;
24902 void *argp1 = 0 ;
24903 int res1 = 0 ;
24904 PyObject *swig_obj[1] ;
24905
24906 if (!args) SWIG_fail;
24907 swig_obj[0] = args;
24908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24909 if (!SWIG_IsOK(res1)) {
24910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24911 }
24912 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 result = (arg1)->GetSize();
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24920 return resultobj;
24921 fail:
24922 return NULL;
24923 }
24924
24925
24926 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24927 PyObject *resultobj = 0;
24928 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24929 int result;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 PyObject *swig_obj[1] ;
24933
24934 if (!args) SWIG_fail;
24935 swig_obj[0] = args;
24936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24937 if (!SWIG_IsOK(res1)) {
24938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24939 }
24940 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24941 {
24942 PyThreadState* __tstate = wxPyBeginAllowThreads();
24943 result = (int)(arg1)->GetWidth();
24944 wxPyEndAllowThreads(__tstate);
24945 if (PyErr_Occurred()) SWIG_fail;
24946 }
24947 resultobj = SWIG_From_int(static_cast< int >(result));
24948 return resultobj;
24949 fail:
24950 return NULL;
24951 }
24952
24953
24954 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24955 PyObject *resultobj = 0;
24956 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24957 int result;
24958 void *argp1 = 0 ;
24959 int res1 = 0 ;
24960 PyObject *swig_obj[1] ;
24961
24962 if (!args) SWIG_fail;
24963 swig_obj[0] = args;
24964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24965 if (!SWIG_IsOK(res1)) {
24966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24967 }
24968 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24969 {
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 result = (int)(arg1)->GetHeight();
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 resultobj = SWIG_From_int(static_cast< int >(result));
24976 return resultobj;
24977 fail:
24978 return NULL;
24979 }
24980
24981
24982 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24983 PyObject *resultobj = 0;
24984 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24985 wxString *result = 0 ;
24986 void *argp1 = 0 ;
24987 int res1 = 0 ;
24988 PyObject *swig_obj[1] ;
24989
24990 if (!args) SWIG_fail;
24991 swig_obj[0] = args;
24992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24993 if (!SWIG_IsOK(res1)) {
24994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24995 }
24996 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24997 {
24998 PyThreadState* __tstate = wxPyBeginAllowThreads();
24999 {
25000 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25001 result = (wxString *) &_result_ref;
25002 }
25003 wxPyEndAllowThreads(__tstate);
25004 if (PyErr_Occurred()) SWIG_fail;
25005 }
25006 {
25007 #if wxUSE_UNICODE
25008 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25009 #else
25010 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25011 #endif
25012 }
25013 return resultobj;
25014 fail:
25015 return NULL;
25016 }
25017
25018
25019 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25020 PyObject *obj;
25021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25022 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25023 return SWIG_Py_Void();
25024 }
25025
25026 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25027 return SWIG_Python_InitShadowInstance(args);
25028 }
25029
25030 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25031 PyObject *resultobj = 0;
25032 wxString const &arg1_defvalue = wxPyEmptyString ;
25033 wxString *arg1 = (wxString *) &arg1_defvalue ;
25034 int arg2 = (int) 0 ;
25035 int arg3 = (int) 0 ;
25036 wxString const &arg4_defvalue = wxPyEmptyString ;
25037 wxString *arg4 = (wxString *) &arg4_defvalue ;
25038 wxMetaFileDC *result = 0 ;
25039 bool temp1 = false ;
25040 int val2 ;
25041 int ecode2 = 0 ;
25042 int val3 ;
25043 int ecode3 = 0 ;
25044 bool temp4 = false ;
25045 PyObject * obj0 = 0 ;
25046 PyObject * obj1 = 0 ;
25047 PyObject * obj2 = 0 ;
25048 PyObject * obj3 = 0 ;
25049 char * kwnames[] = {
25050 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25051 };
25052
25053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25054 if (obj0) {
25055 {
25056 arg1 = wxString_in_helper(obj0);
25057 if (arg1 == NULL) SWIG_fail;
25058 temp1 = true;
25059 }
25060 }
25061 if (obj1) {
25062 ecode2 = SWIG_AsVal_int(obj1, &val2);
25063 if (!SWIG_IsOK(ecode2)) {
25064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25065 }
25066 arg2 = static_cast< int >(val2);
25067 }
25068 if (obj2) {
25069 ecode3 = SWIG_AsVal_int(obj2, &val3);
25070 if (!SWIG_IsOK(ecode3)) {
25071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25072 }
25073 arg3 = static_cast< int >(val3);
25074 }
25075 if (obj3) {
25076 {
25077 arg4 = wxString_in_helper(obj3);
25078 if (arg4 == NULL) SWIG_fail;
25079 temp4 = true;
25080 }
25081 }
25082 {
25083 if (!wxPyCheckForApp()) SWIG_fail;
25084 PyThreadState* __tstate = wxPyBeginAllowThreads();
25085 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25086 wxPyEndAllowThreads(__tstate);
25087 if (PyErr_Occurred()) SWIG_fail;
25088 }
25089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25090 {
25091 if (temp1)
25092 delete arg1;
25093 }
25094 {
25095 if (temp4)
25096 delete arg4;
25097 }
25098 return resultobj;
25099 fail:
25100 {
25101 if (temp1)
25102 delete arg1;
25103 }
25104 {
25105 if (temp4)
25106 delete arg4;
25107 }
25108 return NULL;
25109 }
25110
25111
25112 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25113 PyObject *resultobj = 0;
25114 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25115 wxMetaFile *result = 0 ;
25116 void *argp1 = 0 ;
25117 int res1 = 0 ;
25118 PyObject *swig_obj[1] ;
25119
25120 if (!args) SWIG_fail;
25121 swig_obj[0] = args;
25122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25123 if (!SWIG_IsOK(res1)) {
25124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25125 }
25126 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25127 {
25128 PyThreadState* __tstate = wxPyBeginAllowThreads();
25129 result = (wxMetaFile *)(arg1)->Close();
25130 wxPyEndAllowThreads(__tstate);
25131 if (PyErr_Occurred()) SWIG_fail;
25132 }
25133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25134 return resultobj;
25135 fail:
25136 return NULL;
25137 }
25138
25139
25140 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25141 PyObject *obj;
25142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25143 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25144 return SWIG_Py_Void();
25145 }
25146
25147 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25148 return SWIG_Python_InitShadowInstance(args);
25149 }
25150
25151 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25152 PyObject *resultobj = 0;
25153 wxPrintData *arg1 = 0 ;
25154 wxPrinterDC *result = 0 ;
25155 void *argp1 = 0 ;
25156 int res1 = 0 ;
25157 PyObject * obj0 = 0 ;
25158 char * kwnames[] = {
25159 (char *) "printData", NULL
25160 };
25161
25162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25163 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25164 if (!SWIG_IsOK(res1)) {
25165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25166 }
25167 if (!argp1) {
25168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25169 }
25170 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25171 {
25172 if (!wxPyCheckForApp()) SWIG_fail;
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25186 PyObject *obj;
25187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25188 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25189 return SWIG_Py_Void();
25190 }
25191
25192 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25193 return SWIG_Python_InitShadowInstance(args);
25194 }
25195
25196 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25197 PyObject *resultobj = 0;
25198 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25199 void *argp1 = 0 ;
25200 int res1 = 0 ;
25201 PyObject *swig_obj[1] ;
25202
25203 if (!args) SWIG_fail;
25204 swig_obj[0] = args;
25205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25206 if (!SWIG_IsOK(res1)) {
25207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25208 }
25209 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25210 {
25211 delete arg1;
25212
25213 if (PyErr_Occurred()) SWIG_fail;
25214 }
25215 resultobj = SWIG_Py_Void();
25216 return resultobj;
25217 fail:
25218 return NULL;
25219 }
25220
25221
25222 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25223 PyObject *resultobj = 0;
25224 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25225 wxDouble arg2 ;
25226 wxDouble arg3 ;
25227 void *argp1 = 0 ;
25228 int res1 = 0 ;
25229 double val2 ;
25230 int ecode2 = 0 ;
25231 double val3 ;
25232 int ecode3 = 0 ;
25233 PyObject * obj0 = 0 ;
25234 PyObject * obj1 = 0 ;
25235 PyObject * obj2 = 0 ;
25236 char * kwnames[] = {
25237 (char *) "self",(char *) "x",(char *) "y", NULL
25238 };
25239
25240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25242 if (!SWIG_IsOK(res1)) {
25243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25244 }
25245 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25246 ecode2 = SWIG_AsVal_double(obj1, &val2);
25247 if (!SWIG_IsOK(ecode2)) {
25248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25249 }
25250 arg2 = static_cast< wxDouble >(val2);
25251 ecode3 = SWIG_AsVal_double(obj2, &val3);
25252 if (!SWIG_IsOK(ecode3)) {
25253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25254 }
25255 arg3 = static_cast< wxDouble >(val3);
25256 {
25257 (arg1)->MoveToPoint(arg2,arg3);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 resultobj = SWIG_Py_Void();
25261 return resultobj;
25262 fail:
25263 return NULL;
25264 }
25265
25266
25267 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25268 PyObject *resultobj = 0;
25269 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25270 wxDouble arg2 ;
25271 wxDouble arg3 ;
25272 void *argp1 = 0 ;
25273 int res1 = 0 ;
25274 double val2 ;
25275 int ecode2 = 0 ;
25276 double val3 ;
25277 int ecode3 = 0 ;
25278 PyObject * obj0 = 0 ;
25279 PyObject * obj1 = 0 ;
25280 PyObject * obj2 = 0 ;
25281 char * kwnames[] = {
25282 (char *) "self",(char *) "x",(char *) "y", NULL
25283 };
25284
25285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25287 if (!SWIG_IsOK(res1)) {
25288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25289 }
25290 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25291 ecode2 = SWIG_AsVal_double(obj1, &val2);
25292 if (!SWIG_IsOK(ecode2)) {
25293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25294 }
25295 arg2 = static_cast< wxDouble >(val2);
25296 ecode3 = SWIG_AsVal_double(obj2, &val3);
25297 if (!SWIG_IsOK(ecode3)) {
25298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25299 }
25300 arg3 = static_cast< wxDouble >(val3);
25301 {
25302 (arg1)->AddLineToPoint(arg2,arg3);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 resultobj = SWIG_Py_Void();
25306 return resultobj;
25307 fail:
25308 return NULL;
25309 }
25310
25311
25312 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25313 PyObject *resultobj = 0;
25314 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25315 wxDouble arg2 ;
25316 wxDouble arg3 ;
25317 wxDouble arg4 ;
25318 wxDouble arg5 ;
25319 wxDouble arg6 ;
25320 wxDouble arg7 ;
25321 void *argp1 = 0 ;
25322 int res1 = 0 ;
25323 double val2 ;
25324 int ecode2 = 0 ;
25325 double val3 ;
25326 int ecode3 = 0 ;
25327 double val4 ;
25328 int ecode4 = 0 ;
25329 double val5 ;
25330 int ecode5 = 0 ;
25331 double val6 ;
25332 int ecode6 = 0 ;
25333 double val7 ;
25334 int ecode7 = 0 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 PyObject * obj2 = 0 ;
25338 PyObject * obj3 = 0 ;
25339 PyObject * obj4 = 0 ;
25340 PyObject * obj5 = 0 ;
25341 PyObject * obj6 = 0 ;
25342 char * kwnames[] = {
25343 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25344 };
25345
25346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25348 if (!SWIG_IsOK(res1)) {
25349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25350 }
25351 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25352 ecode2 = SWIG_AsVal_double(obj1, &val2);
25353 if (!SWIG_IsOK(ecode2)) {
25354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25355 }
25356 arg2 = static_cast< wxDouble >(val2);
25357 ecode3 = SWIG_AsVal_double(obj2, &val3);
25358 if (!SWIG_IsOK(ecode3)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25360 }
25361 arg3 = static_cast< wxDouble >(val3);
25362 ecode4 = SWIG_AsVal_double(obj3, &val4);
25363 if (!SWIG_IsOK(ecode4)) {
25364 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25365 }
25366 arg4 = static_cast< wxDouble >(val4);
25367 ecode5 = SWIG_AsVal_double(obj4, &val5);
25368 if (!SWIG_IsOK(ecode5)) {
25369 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25370 }
25371 arg5 = static_cast< wxDouble >(val5);
25372 ecode6 = SWIG_AsVal_double(obj5, &val6);
25373 if (!SWIG_IsOK(ecode6)) {
25374 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25375 }
25376 arg6 = static_cast< wxDouble >(val6);
25377 ecode7 = SWIG_AsVal_double(obj6, &val7);
25378 if (!SWIG_IsOK(ecode7)) {
25379 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25380 }
25381 arg7 = static_cast< wxDouble >(val7);
25382 {
25383 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25384 if (PyErr_Occurred()) SWIG_fail;
25385 }
25386 resultobj = SWIG_Py_Void();
25387 return resultobj;
25388 fail:
25389 return NULL;
25390 }
25391
25392
25393 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25394 PyObject *resultobj = 0;
25395 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25396 void *argp1 = 0 ;
25397 int res1 = 0 ;
25398 PyObject *swig_obj[1] ;
25399
25400 if (!args) SWIG_fail;
25401 swig_obj[0] = args;
25402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25403 if (!SWIG_IsOK(res1)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25405 }
25406 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25407 {
25408 (arg1)->CloseSubpath();
25409 if (PyErr_Occurred()) SWIG_fail;
25410 }
25411 resultobj = SWIG_Py_Void();
25412 return resultobj;
25413 fail:
25414 return NULL;
25415 }
25416
25417
25418 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25419 PyObject *resultobj = 0;
25420 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25421 wxPoint2D result;
25422 void *argp1 = 0 ;
25423 int res1 = 0 ;
25424 PyObject *swig_obj[1] ;
25425
25426 if (!args) SWIG_fail;
25427 swig_obj[0] = args;
25428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25429 if (!SWIG_IsOK(res1)) {
25430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25431 }
25432 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25433 {
25434 result = (arg1)->GetCurrentPoint();
25435 if (PyErr_Occurred()) SWIG_fail;
25436 }
25437 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25438 return resultobj;
25439 fail:
25440 return NULL;
25441 }
25442
25443
25444 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25445 PyObject *resultobj = 0;
25446 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25447 wxDouble arg2 ;
25448 wxDouble arg3 ;
25449 wxDouble arg4 ;
25450 wxDouble arg5 ;
25451 wxDouble arg6 ;
25452 bool arg7 ;
25453 void *argp1 = 0 ;
25454 int res1 = 0 ;
25455 double val2 ;
25456 int ecode2 = 0 ;
25457 double val3 ;
25458 int ecode3 = 0 ;
25459 double val4 ;
25460 int ecode4 = 0 ;
25461 double val5 ;
25462 int ecode5 = 0 ;
25463 double val6 ;
25464 int ecode6 = 0 ;
25465 bool val7 ;
25466 int ecode7 = 0 ;
25467 PyObject * obj0 = 0 ;
25468 PyObject * obj1 = 0 ;
25469 PyObject * obj2 = 0 ;
25470 PyObject * obj3 = 0 ;
25471 PyObject * obj4 = 0 ;
25472 PyObject * obj5 = 0 ;
25473 PyObject * obj6 = 0 ;
25474 char * kwnames[] = {
25475 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25476 };
25477
25478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25480 if (!SWIG_IsOK(res1)) {
25481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25482 }
25483 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25484 ecode2 = SWIG_AsVal_double(obj1, &val2);
25485 if (!SWIG_IsOK(ecode2)) {
25486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25487 }
25488 arg2 = static_cast< wxDouble >(val2);
25489 ecode3 = SWIG_AsVal_double(obj2, &val3);
25490 if (!SWIG_IsOK(ecode3)) {
25491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25492 }
25493 arg3 = static_cast< wxDouble >(val3);
25494 ecode4 = SWIG_AsVal_double(obj3, &val4);
25495 if (!SWIG_IsOK(ecode4)) {
25496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25497 }
25498 arg4 = static_cast< wxDouble >(val4);
25499 ecode5 = SWIG_AsVal_double(obj4, &val5);
25500 if (!SWIG_IsOK(ecode5)) {
25501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25502 }
25503 arg5 = static_cast< wxDouble >(val5);
25504 ecode6 = SWIG_AsVal_double(obj5, &val6);
25505 if (!SWIG_IsOK(ecode6)) {
25506 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25507 }
25508 arg6 = static_cast< wxDouble >(val6);
25509 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25510 if (!SWIG_IsOK(ecode7)) {
25511 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25512 }
25513 arg7 = static_cast< bool >(val7);
25514 {
25515 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_Py_Void();
25519 return resultobj;
25520 fail:
25521 return NULL;
25522 }
25523
25524
25525 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj = 0;
25527 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25528 wxDouble arg2 ;
25529 wxDouble arg3 ;
25530 wxDouble arg4 ;
25531 wxDouble arg5 ;
25532 void *argp1 = 0 ;
25533 int res1 = 0 ;
25534 double val2 ;
25535 int ecode2 = 0 ;
25536 double val3 ;
25537 int ecode3 = 0 ;
25538 double val4 ;
25539 int ecode4 = 0 ;
25540 double val5 ;
25541 int ecode5 = 0 ;
25542 PyObject * obj0 = 0 ;
25543 PyObject * obj1 = 0 ;
25544 PyObject * obj2 = 0 ;
25545 PyObject * obj3 = 0 ;
25546 PyObject * obj4 = 0 ;
25547 char * kwnames[] = {
25548 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25549 };
25550
25551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25553 if (!SWIG_IsOK(res1)) {
25554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25555 }
25556 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25557 ecode2 = SWIG_AsVal_double(obj1, &val2);
25558 if (!SWIG_IsOK(ecode2)) {
25559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25560 }
25561 arg2 = static_cast< wxDouble >(val2);
25562 ecode3 = SWIG_AsVal_double(obj2, &val3);
25563 if (!SWIG_IsOK(ecode3)) {
25564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25565 }
25566 arg3 = static_cast< wxDouble >(val3);
25567 ecode4 = SWIG_AsVal_double(obj3, &val4);
25568 if (!SWIG_IsOK(ecode4)) {
25569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25570 }
25571 arg4 = static_cast< wxDouble >(val4);
25572 ecode5 = SWIG_AsVal_double(obj4, &val5);
25573 if (!SWIG_IsOK(ecode5)) {
25574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25575 }
25576 arg5 = static_cast< wxDouble >(val5);
25577 {
25578 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25579 if (PyErr_Occurred()) SWIG_fail;
25580 }
25581 resultobj = SWIG_Py_Void();
25582 return resultobj;
25583 fail:
25584 return NULL;
25585 }
25586
25587
25588 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25589 PyObject *resultobj = 0;
25590 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25591 wxDouble arg2 ;
25592 wxDouble arg3 ;
25593 wxDouble arg4 ;
25594 wxDouble arg5 ;
25595 void *argp1 = 0 ;
25596 int res1 = 0 ;
25597 double val2 ;
25598 int ecode2 = 0 ;
25599 double val3 ;
25600 int ecode3 = 0 ;
25601 double val4 ;
25602 int ecode4 = 0 ;
25603 double val5 ;
25604 int ecode5 = 0 ;
25605 PyObject * obj0 = 0 ;
25606 PyObject * obj1 = 0 ;
25607 PyObject * obj2 = 0 ;
25608 PyObject * obj3 = 0 ;
25609 PyObject * obj4 = 0 ;
25610 char * kwnames[] = {
25611 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25612 };
25613
25614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25616 if (!SWIG_IsOK(res1)) {
25617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25618 }
25619 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25620 ecode2 = SWIG_AsVal_double(obj1, &val2);
25621 if (!SWIG_IsOK(ecode2)) {
25622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25623 }
25624 arg2 = static_cast< wxDouble >(val2);
25625 ecode3 = SWIG_AsVal_double(obj2, &val3);
25626 if (!SWIG_IsOK(ecode3)) {
25627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25628 }
25629 arg3 = static_cast< wxDouble >(val3);
25630 ecode4 = SWIG_AsVal_double(obj3, &val4);
25631 if (!SWIG_IsOK(ecode4)) {
25632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25633 }
25634 arg4 = static_cast< wxDouble >(val4);
25635 ecode5 = SWIG_AsVal_double(obj4, &val5);
25636 if (!SWIG_IsOK(ecode5)) {
25637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25638 }
25639 arg5 = static_cast< wxDouble >(val5);
25640 {
25641 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25642 if (PyErr_Occurred()) SWIG_fail;
25643 }
25644 resultobj = SWIG_Py_Void();
25645 return resultobj;
25646 fail:
25647 return NULL;
25648 }
25649
25650
25651 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25652 PyObject *resultobj = 0;
25653 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25654 wxDouble arg2 ;
25655 wxDouble arg3 ;
25656 wxDouble arg4 ;
25657 void *argp1 = 0 ;
25658 int res1 = 0 ;
25659 double val2 ;
25660 int ecode2 = 0 ;
25661 double val3 ;
25662 int ecode3 = 0 ;
25663 double val4 ;
25664 int ecode4 = 0 ;
25665 PyObject * obj0 = 0 ;
25666 PyObject * obj1 = 0 ;
25667 PyObject * obj2 = 0 ;
25668 PyObject * obj3 = 0 ;
25669 char * kwnames[] = {
25670 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25671 };
25672
25673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25675 if (!SWIG_IsOK(res1)) {
25676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25677 }
25678 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25679 ecode2 = SWIG_AsVal_double(obj1, &val2);
25680 if (!SWIG_IsOK(ecode2)) {
25681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25682 }
25683 arg2 = static_cast< wxDouble >(val2);
25684 ecode3 = SWIG_AsVal_double(obj2, &val3);
25685 if (!SWIG_IsOK(ecode3)) {
25686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25687 }
25688 arg3 = static_cast< wxDouble >(val3);
25689 ecode4 = SWIG_AsVal_double(obj3, &val4);
25690 if (!SWIG_IsOK(ecode4)) {
25691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25692 }
25693 arg4 = static_cast< wxDouble >(val4);
25694 {
25695 (arg1)->AddCircle(arg2,arg3,arg4);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_Py_Void();
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25706 PyObject *resultobj = 0;
25707 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25708 wxDouble arg2 ;
25709 wxDouble arg3 ;
25710 wxDouble arg4 ;
25711 wxDouble arg5 ;
25712 wxDouble arg6 ;
25713 void *argp1 = 0 ;
25714 int res1 = 0 ;
25715 double val2 ;
25716 int ecode2 = 0 ;
25717 double val3 ;
25718 int ecode3 = 0 ;
25719 double val4 ;
25720 int ecode4 = 0 ;
25721 double val5 ;
25722 int ecode5 = 0 ;
25723 double val6 ;
25724 int ecode6 = 0 ;
25725 PyObject * obj0 = 0 ;
25726 PyObject * obj1 = 0 ;
25727 PyObject * obj2 = 0 ;
25728 PyObject * obj3 = 0 ;
25729 PyObject * obj4 = 0 ;
25730 PyObject * obj5 = 0 ;
25731 char * kwnames[] = {
25732 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25733 };
25734
25735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25737 if (!SWIG_IsOK(res1)) {
25738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25739 }
25740 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25741 ecode2 = SWIG_AsVal_double(obj1, &val2);
25742 if (!SWIG_IsOK(ecode2)) {
25743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25744 }
25745 arg2 = static_cast< wxDouble >(val2);
25746 ecode3 = SWIG_AsVal_double(obj2, &val3);
25747 if (!SWIG_IsOK(ecode3)) {
25748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25749 }
25750 arg3 = static_cast< wxDouble >(val3);
25751 ecode4 = SWIG_AsVal_double(obj3, &val4);
25752 if (!SWIG_IsOK(ecode4)) {
25753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25754 }
25755 arg4 = static_cast< wxDouble >(val4);
25756 ecode5 = SWIG_AsVal_double(obj4, &val5);
25757 if (!SWIG_IsOK(ecode5)) {
25758 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25759 }
25760 arg5 = static_cast< wxDouble >(val5);
25761 ecode6 = SWIG_AsVal_double(obj5, &val6);
25762 if (!SWIG_IsOK(ecode6)) {
25763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25764 }
25765 arg6 = static_cast< wxDouble >(val6);
25766 {
25767 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 resultobj = SWIG_Py_Void();
25771 return resultobj;
25772 fail:
25773 return NULL;
25774 }
25775
25776
25777 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25778 PyObject *obj;
25779 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25780 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25781 return SWIG_Py_Void();
25782 }
25783
25784 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25785 PyObject *resultobj = 0;
25786 wxGraphicsContext *arg1 = (wxGraphicsContext *) 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, SWIG_POINTER_DISOWN | 0 );
25794 if (!SWIG_IsOK(res1)) {
25795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25796 }
25797 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25798 {
25799 delete arg1;
25800
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 resultobj = SWIG_Py_Void();
25804 return resultobj;
25805 fail:
25806 return NULL;
25807 }
25808
25809
25810 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25811 PyObject *resultobj = 0;
25812 wxWindowDC *arg1 = 0 ;
25813 wxGraphicsContext *result = 0 ;
25814 void *argp1 = 0 ;
25815 int res1 = 0 ;
25816
25817 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25819 if (!SWIG_IsOK(res1)) {
25820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25821 }
25822 if (!argp1) {
25823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25824 }
25825 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25826 {
25827 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25831 return resultobj;
25832 fail:
25833 return NULL;
25834 }
25835
25836
25837 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25838 PyObject *resultobj = 0;
25839 wxWindow *arg1 = (wxWindow *) 0 ;
25840 wxGraphicsContext *result = 0 ;
25841 void *argp1 = 0 ;
25842 int res1 = 0 ;
25843
25844 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25846 if (!SWIG_IsOK(res1)) {
25847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25848 }
25849 arg1 = reinterpret_cast< wxWindow * >(argp1);
25850 {
25851 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25855 return resultobj;
25856 fail:
25857 return NULL;
25858 }
25859
25860
25861 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25862 int argc;
25863 PyObject *argv[2];
25864
25865 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25866 --argc;
25867 if (argc == 1) {
25868 int _v = 0;
25869 {
25870 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25871 _v = SWIG_CheckState(res);
25872 }
25873 if (!_v) goto check_1;
25874 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25875 }
25876 check_1:
25877
25878 if (argc == 1) {
25879 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25880 }
25881
25882 fail:
25883 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25884 return NULL;
25885 }
25886
25887
25888 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25889 PyObject *resultobj = 0;
25890 void *arg1 = (void *) 0 ;
25891 wxGraphicsContext *result = 0 ;
25892 int res1 ;
25893 PyObject * obj0 = 0 ;
25894 char * kwnames[] = {
25895 (char *) "context", NULL
25896 };
25897
25898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25899 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25900 if (!SWIG_IsOK(res1)) {
25901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25902 }
25903 {
25904 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25915 PyObject *resultobj = 0;
25916 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25917 wxGraphicsPath *result = 0 ;
25918 void *argp1 = 0 ;
25919 int res1 = 0 ;
25920 PyObject *swig_obj[1] ;
25921
25922 if (!args) SWIG_fail;
25923 swig_obj[0] = args;
25924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25925 if (!SWIG_IsOK(res1)) {
25926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25927 }
25928 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25929 {
25930 result = (wxGraphicsPath *)(arg1)->CreatePath();
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25934 return resultobj;
25935 fail:
25936 return NULL;
25937 }
25938
25939
25940 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25941 PyObject *resultobj = 0;
25942 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25943 void *argp1 = 0 ;
25944 int res1 = 0 ;
25945 PyObject *swig_obj[1] ;
25946
25947 if (!args) SWIG_fail;
25948 swig_obj[0] = args;
25949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25950 if (!SWIG_IsOK(res1)) {
25951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25952 }
25953 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25954 {
25955 (arg1)->PushState();
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_Py_Void();
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25966 PyObject *resultobj = 0;
25967 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25968 void *argp1 = 0 ;
25969 int res1 = 0 ;
25970 PyObject *swig_obj[1] ;
25971
25972 if (!args) SWIG_fail;
25973 swig_obj[0] = args;
25974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25975 if (!SWIG_IsOK(res1)) {
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25977 }
25978 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25979 {
25980 (arg1)->PopState();
25981 if (PyErr_Occurred()) SWIG_fail;
25982 }
25983 resultobj = SWIG_Py_Void();
25984 return resultobj;
25985 fail:
25986 return NULL;
25987 }
25988
25989
25990 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25991 PyObject *resultobj = 0;
25992 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25993 wxRegion *arg2 = 0 ;
25994 void *argp1 = 0 ;
25995 int res1 = 0 ;
25996 void *argp2 = 0 ;
25997 int res2 = 0 ;
25998 PyObject * obj0 = 0 ;
25999 PyObject * obj1 = 0 ;
26000 char * kwnames[] = {
26001 (char *) "self",(char *) "region", NULL
26002 };
26003
26004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
26005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26006 if (!SWIG_IsOK(res1)) {
26007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26008 }
26009 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26010 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
26011 if (!SWIG_IsOK(res2)) {
26012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
26013 }
26014 if (!argp2) {
26015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
26016 }
26017 arg2 = reinterpret_cast< wxRegion * >(argp2);
26018 {
26019 (arg1)->Clip((wxRegion const &)*arg2);
26020 if (PyErr_Occurred()) SWIG_fail;
26021 }
26022 resultobj = SWIG_Py_Void();
26023 return resultobj;
26024 fail:
26025 return NULL;
26026 }
26027
26028
26029 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26030 PyObject *resultobj = 0;
26031 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26032 wxDouble arg2 ;
26033 wxDouble arg3 ;
26034 wxDouble arg4 ;
26035 wxDouble arg5 ;
26036 void *argp1 = 0 ;
26037 int res1 = 0 ;
26038 double val2 ;
26039 int ecode2 = 0 ;
26040 double val3 ;
26041 int ecode3 = 0 ;
26042 double val4 ;
26043 int ecode4 = 0 ;
26044 double val5 ;
26045 int ecode5 = 0 ;
26046 PyObject * obj0 = 0 ;
26047 PyObject * obj1 = 0 ;
26048 PyObject * obj2 = 0 ;
26049 PyObject * obj3 = 0 ;
26050 PyObject * obj4 = 0 ;
26051 char * kwnames[] = {
26052 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26053 };
26054
26055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26057 if (!SWIG_IsOK(res1)) {
26058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26059 }
26060 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26061 ecode2 = SWIG_AsVal_double(obj1, &val2);
26062 if (!SWIG_IsOK(ecode2)) {
26063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
26064 }
26065 arg2 = static_cast< wxDouble >(val2);
26066 ecode3 = SWIG_AsVal_double(obj2, &val3);
26067 if (!SWIG_IsOK(ecode3)) {
26068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
26069 }
26070 arg3 = static_cast< wxDouble >(val3);
26071 ecode4 = SWIG_AsVal_double(obj3, &val4);
26072 if (!SWIG_IsOK(ecode4)) {
26073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
26074 }
26075 arg4 = static_cast< wxDouble >(val4);
26076 ecode5 = SWIG_AsVal_double(obj4, &val5);
26077 if (!SWIG_IsOK(ecode5)) {
26078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
26079 }
26080 arg5 = static_cast< wxDouble >(val5);
26081 {
26082 (arg1)->Clip(arg2,arg3,arg4,arg5);
26083 if (PyErr_Occurred()) SWIG_fail;
26084 }
26085 resultobj = SWIG_Py_Void();
26086 return resultobj;
26087 fail:
26088 return NULL;
26089 }
26090
26091
26092 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26093 PyObject *resultobj = 0;
26094 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26095 void *argp1 = 0 ;
26096 int res1 = 0 ;
26097 PyObject *swig_obj[1] ;
26098
26099 if (!args) SWIG_fail;
26100 swig_obj[0] = args;
26101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26102 if (!SWIG_IsOK(res1)) {
26103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26104 }
26105 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26106 {
26107 (arg1)->ResetClip();
26108 if (PyErr_Occurred()) SWIG_fail;
26109 }
26110 resultobj = SWIG_Py_Void();
26111 return resultobj;
26112 fail:
26113 return NULL;
26114 }
26115
26116
26117 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26118 PyObject *resultobj = 0;
26119 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26120 void *result = 0 ;
26121 void *argp1 = 0 ;
26122 int res1 = 0 ;
26123 PyObject *swig_obj[1] ;
26124
26125 if (!args) SWIG_fail;
26126 swig_obj[0] = args;
26127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26128 if (!SWIG_IsOK(res1)) {
26129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26130 }
26131 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26132 {
26133 result = (void *)(arg1)->GetNativeContext();
26134 if (PyErr_Occurred()) SWIG_fail;
26135 }
26136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26137 return resultobj;
26138 fail:
26139 return NULL;
26140 }
26141
26142
26143 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26146 wxDouble arg2 ;
26147 wxDouble arg3 ;
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 double val2 ;
26151 int ecode2 = 0 ;
26152 double val3 ;
26153 int ecode3 = 0 ;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 PyObject * obj2 = 0 ;
26157 char * kwnames[] = {
26158 (char *) "self",(char *) "dx",(char *) "dy", NULL
26159 };
26160
26161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26163 if (!SWIG_IsOK(res1)) {
26164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26165 }
26166 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26167 ecode2 = SWIG_AsVal_double(obj1, &val2);
26168 if (!SWIG_IsOK(ecode2)) {
26169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26170 }
26171 arg2 = static_cast< wxDouble >(val2);
26172 ecode3 = SWIG_AsVal_double(obj2, &val3);
26173 if (!SWIG_IsOK(ecode3)) {
26174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26175 }
26176 arg3 = static_cast< wxDouble >(val3);
26177 {
26178 (arg1)->Translate(arg2,arg3);
26179 if (PyErr_Occurred()) SWIG_fail;
26180 }
26181 resultobj = SWIG_Py_Void();
26182 return resultobj;
26183 fail:
26184 return NULL;
26185 }
26186
26187
26188 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26189 PyObject *resultobj = 0;
26190 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26191 wxDouble arg2 ;
26192 wxDouble arg3 ;
26193 void *argp1 = 0 ;
26194 int res1 = 0 ;
26195 double val2 ;
26196 int ecode2 = 0 ;
26197 double val3 ;
26198 int ecode3 = 0 ;
26199 PyObject * obj0 = 0 ;
26200 PyObject * obj1 = 0 ;
26201 PyObject * obj2 = 0 ;
26202 char * kwnames[] = {
26203 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26204 };
26205
26206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26210 }
26211 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26212 ecode2 = SWIG_AsVal_double(obj1, &val2);
26213 if (!SWIG_IsOK(ecode2)) {
26214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26215 }
26216 arg2 = static_cast< wxDouble >(val2);
26217 ecode3 = SWIG_AsVal_double(obj2, &val3);
26218 if (!SWIG_IsOK(ecode3)) {
26219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26220 }
26221 arg3 = static_cast< wxDouble >(val3);
26222 {
26223 (arg1)->Scale(arg2,arg3);
26224 if (PyErr_Occurred()) SWIG_fail;
26225 }
26226 resultobj = SWIG_Py_Void();
26227 return resultobj;
26228 fail:
26229 return NULL;
26230 }
26231
26232
26233 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26234 PyObject *resultobj = 0;
26235 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26236 wxDouble arg2 ;
26237 void *argp1 = 0 ;
26238 int res1 = 0 ;
26239 double val2 ;
26240 int ecode2 = 0 ;
26241 PyObject * obj0 = 0 ;
26242 PyObject * obj1 = 0 ;
26243 char * kwnames[] = {
26244 (char *) "self",(char *) "angle", NULL
26245 };
26246
26247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26249 if (!SWIG_IsOK(res1)) {
26250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26251 }
26252 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26253 ecode2 = SWIG_AsVal_double(obj1, &val2);
26254 if (!SWIG_IsOK(ecode2)) {
26255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26256 }
26257 arg2 = static_cast< wxDouble >(val2);
26258 {
26259 (arg1)->Rotate(arg2);
26260 if (PyErr_Occurred()) SWIG_fail;
26261 }
26262 resultobj = SWIG_Py_Void();
26263 return resultobj;
26264 fail:
26265 return NULL;
26266 }
26267
26268
26269 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26270 PyObject *resultobj = 0;
26271 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26272 wxPen *arg2 = 0 ;
26273 void *argp1 = 0 ;
26274 int res1 = 0 ;
26275 void *argp2 = 0 ;
26276 int res2 = 0 ;
26277 PyObject * obj0 = 0 ;
26278 PyObject * obj1 = 0 ;
26279 char * kwnames[] = {
26280 (char *) "self",(char *) "pen", NULL
26281 };
26282
26283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26285 if (!SWIG_IsOK(res1)) {
26286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26287 }
26288 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26290 if (!SWIG_IsOK(res2)) {
26291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26292 }
26293 if (!argp2) {
26294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26295 }
26296 arg2 = reinterpret_cast< wxPen * >(argp2);
26297 {
26298 (arg1)->SetPen((wxPen const &)*arg2);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj = 0;
26310 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26311 wxBrush *arg2 = 0 ;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 void *argp2 = 0 ;
26315 int res2 = 0 ;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 char * kwnames[] = {
26319 (char *) "self",(char *) "brush", NULL
26320 };
26321
26322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26324 if (!SWIG_IsOK(res1)) {
26325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26326 }
26327 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26329 if (!SWIG_IsOK(res2)) {
26330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26331 }
26332 if (!argp2) {
26333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26334 }
26335 arg2 = reinterpret_cast< wxBrush * >(argp2);
26336 {
26337 (arg1)->SetBrush((wxBrush const &)*arg2);
26338 if (PyErr_Occurred()) SWIG_fail;
26339 }
26340 resultobj = SWIG_Py_Void();
26341 return resultobj;
26342 fail:
26343 return NULL;
26344 }
26345
26346
26347 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26348 PyObject *resultobj = 0;
26349 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26350 wxDouble arg2 ;
26351 wxDouble arg3 ;
26352 wxDouble arg4 ;
26353 wxDouble arg5 ;
26354 wxColour *arg6 = 0 ;
26355 wxColour *arg7 = 0 ;
26356 void *argp1 = 0 ;
26357 int res1 = 0 ;
26358 double val2 ;
26359 int ecode2 = 0 ;
26360 double val3 ;
26361 int ecode3 = 0 ;
26362 double val4 ;
26363 int ecode4 = 0 ;
26364 double val5 ;
26365 int ecode5 = 0 ;
26366 wxColour temp6 ;
26367 wxColour temp7 ;
26368 PyObject * obj0 = 0 ;
26369 PyObject * obj1 = 0 ;
26370 PyObject * obj2 = 0 ;
26371 PyObject * obj3 = 0 ;
26372 PyObject * obj4 = 0 ;
26373 PyObject * obj5 = 0 ;
26374 PyObject * obj6 = 0 ;
26375 char * kwnames[] = {
26376 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26377 };
26378
26379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26381 if (!SWIG_IsOK(res1)) {
26382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26383 }
26384 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26385 ecode2 = SWIG_AsVal_double(obj1, &val2);
26386 if (!SWIG_IsOK(ecode2)) {
26387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26388 }
26389 arg2 = static_cast< wxDouble >(val2);
26390 ecode3 = SWIG_AsVal_double(obj2, &val3);
26391 if (!SWIG_IsOK(ecode3)) {
26392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26393 }
26394 arg3 = static_cast< wxDouble >(val3);
26395 ecode4 = SWIG_AsVal_double(obj3, &val4);
26396 if (!SWIG_IsOK(ecode4)) {
26397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26398 }
26399 arg4 = static_cast< wxDouble >(val4);
26400 ecode5 = SWIG_AsVal_double(obj4, &val5);
26401 if (!SWIG_IsOK(ecode5)) {
26402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26403 }
26404 arg5 = static_cast< wxDouble >(val5);
26405 {
26406 arg6 = &temp6;
26407 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26408 }
26409 {
26410 arg7 = &temp7;
26411 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26412 }
26413 {
26414 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_Py_Void();
26418 return resultobj;
26419 fail:
26420 return NULL;
26421 }
26422
26423
26424 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj = 0;
26426 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26427 wxDouble arg2 ;
26428 wxDouble arg3 ;
26429 wxDouble arg4 ;
26430 wxDouble arg5 ;
26431 wxDouble arg6 ;
26432 wxColour *arg7 = 0 ;
26433 wxColour *arg8 = 0 ;
26434 void *argp1 = 0 ;
26435 int res1 = 0 ;
26436 double val2 ;
26437 int ecode2 = 0 ;
26438 double val3 ;
26439 int ecode3 = 0 ;
26440 double val4 ;
26441 int ecode4 = 0 ;
26442 double val5 ;
26443 int ecode5 = 0 ;
26444 double val6 ;
26445 int ecode6 = 0 ;
26446 wxColour temp7 ;
26447 wxColour temp8 ;
26448 PyObject * obj0 = 0 ;
26449 PyObject * obj1 = 0 ;
26450 PyObject * obj2 = 0 ;
26451 PyObject * obj3 = 0 ;
26452 PyObject * obj4 = 0 ;
26453 PyObject * obj5 = 0 ;
26454 PyObject * obj6 = 0 ;
26455 PyObject * obj7 = 0 ;
26456 char * kwnames[] = {
26457 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26458 };
26459
26460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26464 }
26465 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26466 ecode2 = SWIG_AsVal_double(obj1, &val2);
26467 if (!SWIG_IsOK(ecode2)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26469 }
26470 arg2 = static_cast< wxDouble >(val2);
26471 ecode3 = SWIG_AsVal_double(obj2, &val3);
26472 if (!SWIG_IsOK(ecode3)) {
26473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26474 }
26475 arg3 = static_cast< wxDouble >(val3);
26476 ecode4 = SWIG_AsVal_double(obj3, &val4);
26477 if (!SWIG_IsOK(ecode4)) {
26478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26479 }
26480 arg4 = static_cast< wxDouble >(val4);
26481 ecode5 = SWIG_AsVal_double(obj4, &val5);
26482 if (!SWIG_IsOK(ecode5)) {
26483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26484 }
26485 arg5 = static_cast< wxDouble >(val5);
26486 ecode6 = SWIG_AsVal_double(obj5, &val6);
26487 if (!SWIG_IsOK(ecode6)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26489 }
26490 arg6 = static_cast< wxDouble >(val6);
26491 {
26492 arg7 = &temp7;
26493 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26494 }
26495 {
26496 arg8 = &temp8;
26497 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26498 }
26499 {
26500 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26501 if (PyErr_Occurred()) SWIG_fail;
26502 }
26503 resultobj = SWIG_Py_Void();
26504 return resultobj;
26505 fail:
26506 return NULL;
26507 }
26508
26509
26510 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26511 PyObject *resultobj = 0;
26512 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26513 wxFont *arg2 = 0 ;
26514 void *argp1 = 0 ;
26515 int res1 = 0 ;
26516 void *argp2 = 0 ;
26517 int res2 = 0 ;
26518 PyObject * obj0 = 0 ;
26519 PyObject * obj1 = 0 ;
26520 char * kwnames[] = {
26521 (char *) "self",(char *) "font", NULL
26522 };
26523
26524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26528 }
26529 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26531 if (!SWIG_IsOK(res2)) {
26532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26533 }
26534 if (!argp2) {
26535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26536 }
26537 arg2 = reinterpret_cast< wxFont * >(argp2);
26538 {
26539 (arg1)->SetFont((wxFont const &)*arg2);
26540 if (PyErr_Occurred()) SWIG_fail;
26541 }
26542 resultobj = SWIG_Py_Void();
26543 return resultobj;
26544 fail:
26545 return NULL;
26546 }
26547
26548
26549 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26550 PyObject *resultobj = 0;
26551 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26552 wxColour *arg2 = 0 ;
26553 void *argp1 = 0 ;
26554 int res1 = 0 ;
26555 wxColour temp2 ;
26556 PyObject * obj0 = 0 ;
26557 PyObject * obj1 = 0 ;
26558 char * kwnames[] = {
26559 (char *) "self",(char *) "col", NULL
26560 };
26561
26562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26564 if (!SWIG_IsOK(res1)) {
26565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26566 }
26567 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26568 {
26569 arg2 = &temp2;
26570 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26571 }
26572 {
26573 (arg1)->SetTextColor((wxColour const &)*arg2);
26574 if (PyErr_Occurred()) SWIG_fail;
26575 }
26576 resultobj = SWIG_Py_Void();
26577 return resultobj;
26578 fail:
26579 return NULL;
26580 }
26581
26582
26583 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26584 PyObject *resultobj = 0;
26585 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26586 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26587 void *argp1 = 0 ;
26588 int res1 = 0 ;
26589 void *argp2 = 0 ;
26590 int res2 = 0 ;
26591 PyObject * obj0 = 0 ;
26592 PyObject * obj1 = 0 ;
26593 char * kwnames[] = {
26594 (char *) "self",(char *) "path", NULL
26595 };
26596
26597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26599 if (!SWIG_IsOK(res1)) {
26600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26601 }
26602 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26604 if (!SWIG_IsOK(res2)) {
26605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26606 }
26607 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26608 {
26609 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26610 if (PyErr_Occurred()) SWIG_fail;
26611 }
26612 resultobj = SWIG_Py_Void();
26613 return resultobj;
26614 fail:
26615 return NULL;
26616 }
26617
26618
26619 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26620 PyObject *resultobj = 0;
26621 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26622 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26623 int arg3 = (int) wxWINDING_RULE ;
26624 void *argp1 = 0 ;
26625 int res1 = 0 ;
26626 void *argp2 = 0 ;
26627 int res2 = 0 ;
26628 int val3 ;
26629 int ecode3 = 0 ;
26630 PyObject * obj0 = 0 ;
26631 PyObject * obj1 = 0 ;
26632 PyObject * obj2 = 0 ;
26633 char * kwnames[] = {
26634 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26635 };
26636
26637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26639 if (!SWIG_IsOK(res1)) {
26640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26641 }
26642 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26644 if (!SWIG_IsOK(res2)) {
26645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26646 }
26647 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26648 if (obj2) {
26649 ecode3 = SWIG_AsVal_int(obj2, &val3);
26650 if (!SWIG_IsOK(ecode3)) {
26651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26652 }
26653 arg3 = static_cast< int >(val3);
26654 }
26655 {
26656 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26657 if (PyErr_Occurred()) SWIG_fail;
26658 }
26659 resultobj = SWIG_Py_Void();
26660 return resultobj;
26661 fail:
26662 return NULL;
26663 }
26664
26665
26666 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26667 PyObject *resultobj = 0;
26668 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26669 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26670 int arg3 = (int) wxWINDING_RULE ;
26671 void *argp1 = 0 ;
26672 int res1 = 0 ;
26673 void *argp2 = 0 ;
26674 int res2 = 0 ;
26675 int val3 ;
26676 int ecode3 = 0 ;
26677 PyObject * obj0 = 0 ;
26678 PyObject * obj1 = 0 ;
26679 PyObject * obj2 = 0 ;
26680 char * kwnames[] = {
26681 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26682 };
26683
26684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26686 if (!SWIG_IsOK(res1)) {
26687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26688 }
26689 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26691 if (!SWIG_IsOK(res2)) {
26692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26693 }
26694 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26695 if (obj2) {
26696 ecode3 = SWIG_AsVal_int(obj2, &val3);
26697 if (!SWIG_IsOK(ecode3)) {
26698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26699 }
26700 arg3 = static_cast< int >(val3);
26701 }
26702 {
26703 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_Py_Void();
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj = 0;
26715 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26716 wxString *arg2 = 0 ;
26717 wxDouble arg3 ;
26718 wxDouble arg4 ;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 bool temp2 = false ;
26722 double val3 ;
26723 int ecode3 = 0 ;
26724 double val4 ;
26725 int ecode4 = 0 ;
26726 PyObject * obj0 = 0 ;
26727 PyObject * obj1 = 0 ;
26728 PyObject * obj2 = 0 ;
26729 PyObject * obj3 = 0 ;
26730 char * kwnames[] = {
26731 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26732 };
26733
26734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26736 if (!SWIG_IsOK(res1)) {
26737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26738 }
26739 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26740 {
26741 arg2 = wxString_in_helper(obj1);
26742 if (arg2 == NULL) SWIG_fail;
26743 temp2 = true;
26744 }
26745 ecode3 = SWIG_AsVal_double(obj2, &val3);
26746 if (!SWIG_IsOK(ecode3)) {
26747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26748 }
26749 arg3 = static_cast< wxDouble >(val3);
26750 ecode4 = SWIG_AsVal_double(obj3, &val4);
26751 if (!SWIG_IsOK(ecode4)) {
26752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26753 }
26754 arg4 = static_cast< wxDouble >(val4);
26755 {
26756 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 resultobj = SWIG_Py_Void();
26760 {
26761 if (temp2)
26762 delete arg2;
26763 }
26764 return resultobj;
26765 fail:
26766 {
26767 if (temp2)
26768 delete arg2;
26769 }
26770 return NULL;
26771 }
26772
26773
26774 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26775 PyObject *resultobj = 0;
26776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26777 wxString *arg2 = 0 ;
26778 wxDouble arg3 ;
26779 wxDouble arg4 ;
26780 wxDouble arg5 ;
26781 void *argp1 = 0 ;
26782 int res1 = 0 ;
26783 bool temp2 = false ;
26784 double val3 ;
26785 int ecode3 = 0 ;
26786 double val4 ;
26787 int ecode4 = 0 ;
26788 double val5 ;
26789 int ecode5 = 0 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 PyObject * obj2 = 0 ;
26793 PyObject * obj3 = 0 ;
26794 PyObject * obj4 = 0 ;
26795 char * kwnames[] = {
26796 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26797 };
26798
26799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26801 if (!SWIG_IsOK(res1)) {
26802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26803 }
26804 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26805 {
26806 arg2 = wxString_in_helper(obj1);
26807 if (arg2 == NULL) SWIG_fail;
26808 temp2 = true;
26809 }
26810 ecode3 = SWIG_AsVal_double(obj2, &val3);
26811 if (!SWIG_IsOK(ecode3)) {
26812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26813 }
26814 arg3 = static_cast< wxDouble >(val3);
26815 ecode4 = SWIG_AsVal_double(obj3, &val4);
26816 if (!SWIG_IsOK(ecode4)) {
26817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26818 }
26819 arg4 = static_cast< wxDouble >(val4);
26820 ecode5 = SWIG_AsVal_double(obj4, &val5);
26821 if (!SWIG_IsOK(ecode5)) {
26822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26823 }
26824 arg5 = static_cast< wxDouble >(val5);
26825 {
26826 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26827 if (PyErr_Occurred()) SWIG_fail;
26828 }
26829 resultobj = SWIG_Py_Void();
26830 {
26831 if (temp2)
26832 delete arg2;
26833 }
26834 return resultobj;
26835 fail:
26836 {
26837 if (temp2)
26838 delete arg2;
26839 }
26840 return NULL;
26841 }
26842
26843
26844 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26845 PyObject *resultobj = 0;
26846 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26847 wxString *arg2 = 0 ;
26848 wxDouble *arg3 = (wxDouble *) 0 ;
26849 wxDouble *arg4 = (wxDouble *) 0 ;
26850 wxDouble *arg5 = (wxDouble *) 0 ;
26851 wxDouble *arg6 = (wxDouble *) 0 ;
26852 void *argp1 = 0 ;
26853 int res1 = 0 ;
26854 bool temp2 = false ;
26855 wxDouble temp3 ;
26856 int res3 = SWIG_TMPOBJ ;
26857 wxDouble temp4 ;
26858 int res4 = SWIG_TMPOBJ ;
26859 wxDouble temp5 ;
26860 int res5 = SWIG_TMPOBJ ;
26861 wxDouble temp6 ;
26862 int res6 = SWIG_TMPOBJ ;
26863 PyObject * obj0 = 0 ;
26864 PyObject * obj1 = 0 ;
26865 char * kwnames[] = {
26866 (char *) "self",(char *) "text", NULL
26867 };
26868
26869 arg3 = &temp3;
26870 arg4 = &temp4;
26871 arg5 = &temp5;
26872 arg6 = &temp6;
26873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26875 if (!SWIG_IsOK(res1)) {
26876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26877 }
26878 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26879 {
26880 arg2 = wxString_in_helper(obj1);
26881 if (arg2 == NULL) SWIG_fail;
26882 temp2 = true;
26883 }
26884 {
26885 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26886 if (PyErr_Occurred()) SWIG_fail;
26887 }
26888 resultobj = SWIG_Py_Void();
26889 if (SWIG_IsTmpObj(res3)) {
26890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26891 } else {
26892 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26894 }
26895 if (SWIG_IsTmpObj(res4)) {
26896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26897 } else {
26898 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26900 }
26901 if (SWIG_IsTmpObj(res5)) {
26902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26903 } else {
26904 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26906 }
26907 if (SWIG_IsTmpObj(res6)) {
26908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26909 } else {
26910 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26912 }
26913 {
26914 if (temp2)
26915 delete arg2;
26916 }
26917 return resultobj;
26918 fail:
26919 {
26920 if (temp2)
26921 delete arg2;
26922 }
26923 return NULL;
26924 }
26925
26926
26927 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26928 PyObject *resultobj = 0;
26929 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26930 wxString *arg2 = 0 ;
26931 wxArrayDouble result;
26932 void *argp1 = 0 ;
26933 int res1 = 0 ;
26934 bool temp2 = false ;
26935 PyObject * obj0 = 0 ;
26936 PyObject * obj1 = 0 ;
26937 char * kwnames[] = {
26938 (char *) "self",(char *) "text", NULL
26939 };
26940
26941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26943 if (!SWIG_IsOK(res1)) {
26944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26945 }
26946 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26947 {
26948 arg2 = wxString_in_helper(obj1);
26949 if (arg2 == NULL) SWIG_fail;
26950 temp2 = true;
26951 }
26952 {
26953 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26954 if (PyErr_Occurred()) SWIG_fail;
26955 }
26956 {
26957 resultobj = wxArrayDouble2PyList_helper(result);
26958 }
26959 {
26960 if (temp2)
26961 delete arg2;
26962 }
26963 return resultobj;
26964 fail:
26965 {
26966 if (temp2)
26967 delete arg2;
26968 }
26969 return NULL;
26970 }
26971
26972
26973 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26974 PyObject *resultobj = 0;
26975 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26976 wxBitmap *arg2 = 0 ;
26977 wxDouble arg3 ;
26978 wxDouble arg4 ;
26979 wxDouble arg5 ;
26980 wxDouble arg6 ;
26981 void *argp1 = 0 ;
26982 int res1 = 0 ;
26983 void *argp2 = 0 ;
26984 int res2 = 0 ;
26985 double val3 ;
26986 int ecode3 = 0 ;
26987 double val4 ;
26988 int ecode4 = 0 ;
26989 double val5 ;
26990 int ecode5 = 0 ;
26991 double val6 ;
26992 int ecode6 = 0 ;
26993 PyObject * obj0 = 0 ;
26994 PyObject * obj1 = 0 ;
26995 PyObject * obj2 = 0 ;
26996 PyObject * obj3 = 0 ;
26997 PyObject * obj4 = 0 ;
26998 PyObject * obj5 = 0 ;
26999 char * kwnames[] = {
27000 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27001 };
27002
27003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27005 if (!SWIG_IsOK(res1)) {
27006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27007 }
27008 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27010 if (!SWIG_IsOK(res2)) {
27011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27012 }
27013 if (!argp2) {
27014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27015 }
27016 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27017 ecode3 = SWIG_AsVal_double(obj2, &val3);
27018 if (!SWIG_IsOK(ecode3)) {
27019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
27020 }
27021 arg3 = static_cast< wxDouble >(val3);
27022 ecode4 = SWIG_AsVal_double(obj3, &val4);
27023 if (!SWIG_IsOK(ecode4)) {
27024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
27025 }
27026 arg4 = static_cast< wxDouble >(val4);
27027 ecode5 = SWIG_AsVal_double(obj4, &val5);
27028 if (!SWIG_IsOK(ecode5)) {
27029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
27030 }
27031 arg5 = static_cast< wxDouble >(val5);
27032 ecode6 = SWIG_AsVal_double(obj5, &val6);
27033 if (!SWIG_IsOK(ecode6)) {
27034 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
27035 }
27036 arg6 = static_cast< wxDouble >(val6);
27037 {
27038 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 resultobj = SWIG_Py_Void();
27042 return resultobj;
27043 fail:
27044 return NULL;
27045 }
27046
27047
27048 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27049 PyObject *resultobj = 0;
27050 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27051 wxIcon *arg2 = 0 ;
27052 wxDouble arg3 ;
27053 wxDouble arg4 ;
27054 wxDouble arg5 ;
27055 wxDouble arg6 ;
27056 void *argp1 = 0 ;
27057 int res1 = 0 ;
27058 void *argp2 = 0 ;
27059 int res2 = 0 ;
27060 double val3 ;
27061 int ecode3 = 0 ;
27062 double val4 ;
27063 int ecode4 = 0 ;
27064 double val5 ;
27065 int ecode5 = 0 ;
27066 double val6 ;
27067 int ecode6 = 0 ;
27068 PyObject * obj0 = 0 ;
27069 PyObject * obj1 = 0 ;
27070 PyObject * obj2 = 0 ;
27071 PyObject * obj3 = 0 ;
27072 PyObject * obj4 = 0 ;
27073 PyObject * obj5 = 0 ;
27074 char * kwnames[] = {
27075 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27076 };
27077
27078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27080 if (!SWIG_IsOK(res1)) {
27081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27082 }
27083 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27085 if (!SWIG_IsOK(res2)) {
27086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27087 }
27088 if (!argp2) {
27089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27090 }
27091 arg2 = reinterpret_cast< wxIcon * >(argp2);
27092 ecode3 = SWIG_AsVal_double(obj2, &val3);
27093 if (!SWIG_IsOK(ecode3)) {
27094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
27095 }
27096 arg3 = static_cast< wxDouble >(val3);
27097 ecode4 = SWIG_AsVal_double(obj3, &val4);
27098 if (!SWIG_IsOK(ecode4)) {
27099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
27100 }
27101 arg4 = static_cast< wxDouble >(val4);
27102 ecode5 = SWIG_AsVal_double(obj4, &val5);
27103 if (!SWIG_IsOK(ecode5)) {
27104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
27105 }
27106 arg5 = static_cast< wxDouble >(val5);
27107 ecode6 = SWIG_AsVal_double(obj5, &val6);
27108 if (!SWIG_IsOK(ecode6)) {
27109 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
27110 }
27111 arg6 = static_cast< wxDouble >(val6);
27112 {
27113 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 resultobj = SWIG_Py_Void();
27117 return resultobj;
27118 fail:
27119 return NULL;
27120 }
27121
27122
27123 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27124 PyObject *resultobj = 0;
27125 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27126 wxDouble arg2 ;
27127 wxDouble arg3 ;
27128 wxDouble arg4 ;
27129 wxDouble arg5 ;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 double val2 ;
27133 int ecode2 = 0 ;
27134 double val3 ;
27135 int ecode3 = 0 ;
27136 double val4 ;
27137 int ecode4 = 0 ;
27138 double val5 ;
27139 int ecode5 = 0 ;
27140 PyObject * obj0 = 0 ;
27141 PyObject * obj1 = 0 ;
27142 PyObject * obj2 = 0 ;
27143 PyObject * obj3 = 0 ;
27144 PyObject * obj4 = 0 ;
27145 char * kwnames[] = {
27146 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
27147 };
27148
27149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27151 if (!SWIG_IsOK(res1)) {
27152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27153 }
27154 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27155 ecode2 = SWIG_AsVal_double(obj1, &val2);
27156 if (!SWIG_IsOK(ecode2)) {
27157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
27158 }
27159 arg2 = static_cast< wxDouble >(val2);
27160 ecode3 = SWIG_AsVal_double(obj2, &val3);
27161 if (!SWIG_IsOK(ecode3)) {
27162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
27163 }
27164 arg3 = static_cast< wxDouble >(val3);
27165 ecode4 = SWIG_AsVal_double(obj3, &val4);
27166 if (!SWIG_IsOK(ecode4)) {
27167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
27168 }
27169 arg4 = static_cast< wxDouble >(val4);
27170 ecode5 = SWIG_AsVal_double(obj4, &val5);
27171 if (!SWIG_IsOK(ecode5)) {
27172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
27173 }
27174 arg5 = static_cast< wxDouble >(val5);
27175 {
27176 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 resultobj = SWIG_Py_Void();
27180 return resultobj;
27181 fail:
27182 return NULL;
27183 }
27184
27185
27186 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27187 PyObject *resultobj = 0;
27188 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27189 size_t arg2 ;
27190 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27191 void *argp1 = 0 ;
27192 int res1 = 0 ;
27193 PyObject * obj0 = 0 ;
27194 PyObject * obj1 = 0 ;
27195 char * kwnames[] = {
27196 (char *) "self",(char *) "points", NULL
27197 };
27198
27199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
27200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27201 if (!SWIG_IsOK(res1)) {
27202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27203 }
27204 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27205 {
27206 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27207 if (arg3 == NULL) SWIG_fail;
27208 }
27209 {
27210 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
27211 if (PyErr_Occurred()) SWIG_fail;
27212 }
27213 resultobj = SWIG_Py_Void();
27214 {
27215 if (arg3) delete [] arg3;
27216 }
27217 return resultobj;
27218 fail:
27219 {
27220 if (arg3) delete [] arg3;
27221 }
27222 return NULL;
27223 }
27224
27225
27226 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27227 PyObject *resultobj = 0;
27228 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27229 PyObject *arg2 = (PyObject *) 0 ;
27230 PyObject *arg3 = (PyObject *) 0 ;
27231 void *argp1 = 0 ;
27232 int res1 = 0 ;
27233 PyObject * obj0 = 0 ;
27234 PyObject * obj1 = 0 ;
27235 PyObject * obj2 = 0 ;
27236 char * kwnames[] = {
27237 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
27238 };
27239
27240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27242 if (!SWIG_IsOK(res1)) {
27243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27244 }
27245 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27246 arg2 = obj1;
27247 arg3 = obj2;
27248 {
27249 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
27250 if (PyErr_Occurred()) SWIG_fail;
27251 }
27252 resultobj = SWIG_Py_Void();
27253 return resultobj;
27254 fail:
27255 return NULL;
27256 }
27257
27258
27259 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27260 PyObject *resultobj = 0;
27261 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27262 size_t arg2 ;
27263 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27264 int arg4 = (int) wxWINDING_RULE ;
27265 void *argp1 = 0 ;
27266 int res1 = 0 ;
27267 int val4 ;
27268 int ecode4 = 0 ;
27269 PyObject * obj0 = 0 ;
27270 PyObject * obj1 = 0 ;
27271 PyObject * obj2 = 0 ;
27272 char * kwnames[] = {
27273 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
27274 };
27275
27276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27278 if (!SWIG_IsOK(res1)) {
27279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27280 }
27281 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27282 {
27283 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27284 if (arg3 == NULL) SWIG_fail;
27285 }
27286 if (obj2) {
27287 ecode4 = SWIG_AsVal_int(obj2, &val4);
27288 if (!SWIG_IsOK(ecode4)) {
27289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27290 }
27291 arg4 = static_cast< int >(val4);
27292 }
27293 {
27294 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27295 if (PyErr_Occurred()) SWIG_fail;
27296 }
27297 resultobj = SWIG_Py_Void();
27298 {
27299 if (arg3) delete [] arg3;
27300 }
27301 return resultobj;
27302 fail:
27303 {
27304 if (arg3) delete [] arg3;
27305 }
27306 return NULL;
27307 }
27308
27309
27310 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27311 PyObject *resultobj = 0;
27312 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27313 wxDouble arg2 ;
27314 wxDouble arg3 ;
27315 wxDouble arg4 ;
27316 wxDouble arg5 ;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 double val2 ;
27320 int ecode2 = 0 ;
27321 double val3 ;
27322 int ecode3 = 0 ;
27323 double val4 ;
27324 int ecode4 = 0 ;
27325 double val5 ;
27326 int ecode5 = 0 ;
27327 PyObject * obj0 = 0 ;
27328 PyObject * obj1 = 0 ;
27329 PyObject * obj2 = 0 ;
27330 PyObject * obj3 = 0 ;
27331 PyObject * obj4 = 0 ;
27332 char * kwnames[] = {
27333 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27334 };
27335
27336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27338 if (!SWIG_IsOK(res1)) {
27339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27340 }
27341 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27342 ecode2 = SWIG_AsVal_double(obj1, &val2);
27343 if (!SWIG_IsOK(ecode2)) {
27344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27345 }
27346 arg2 = static_cast< wxDouble >(val2);
27347 ecode3 = SWIG_AsVal_double(obj2, &val3);
27348 if (!SWIG_IsOK(ecode3)) {
27349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27350 }
27351 arg3 = static_cast< wxDouble >(val3);
27352 ecode4 = SWIG_AsVal_double(obj3, &val4);
27353 if (!SWIG_IsOK(ecode4)) {
27354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27355 }
27356 arg4 = static_cast< wxDouble >(val4);
27357 ecode5 = SWIG_AsVal_double(obj4, &val5);
27358 if (!SWIG_IsOK(ecode5)) {
27359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27360 }
27361 arg5 = static_cast< wxDouble >(val5);
27362 {
27363 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_Py_Void();
27367 return resultobj;
27368 fail:
27369 return NULL;
27370 }
27371
27372
27373 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27374 PyObject *resultobj = 0;
27375 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27376 wxDouble arg2 ;
27377 wxDouble arg3 ;
27378 wxDouble arg4 ;
27379 wxDouble arg5 ;
27380 void *argp1 = 0 ;
27381 int res1 = 0 ;
27382 double val2 ;
27383 int ecode2 = 0 ;
27384 double val3 ;
27385 int ecode3 = 0 ;
27386 double val4 ;
27387 int ecode4 = 0 ;
27388 double val5 ;
27389 int ecode5 = 0 ;
27390 PyObject * obj0 = 0 ;
27391 PyObject * obj1 = 0 ;
27392 PyObject * obj2 = 0 ;
27393 PyObject * obj3 = 0 ;
27394 PyObject * obj4 = 0 ;
27395 char * kwnames[] = {
27396 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27397 };
27398
27399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27401 if (!SWIG_IsOK(res1)) {
27402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27403 }
27404 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27405 ecode2 = SWIG_AsVal_double(obj1, &val2);
27406 if (!SWIG_IsOK(ecode2)) {
27407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27408 }
27409 arg2 = static_cast< wxDouble >(val2);
27410 ecode3 = SWIG_AsVal_double(obj2, &val3);
27411 if (!SWIG_IsOK(ecode3)) {
27412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27413 }
27414 arg3 = static_cast< wxDouble >(val3);
27415 ecode4 = SWIG_AsVal_double(obj3, &val4);
27416 if (!SWIG_IsOK(ecode4)) {
27417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27418 }
27419 arg4 = static_cast< wxDouble >(val4);
27420 ecode5 = SWIG_AsVal_double(obj4, &val5);
27421 if (!SWIG_IsOK(ecode5)) {
27422 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27423 }
27424 arg5 = static_cast< wxDouble >(val5);
27425 {
27426 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27427 if (PyErr_Occurred()) SWIG_fail;
27428 }
27429 resultobj = SWIG_Py_Void();
27430 return resultobj;
27431 fail:
27432 return NULL;
27433 }
27434
27435
27436 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27437 PyObject *resultobj = 0;
27438 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27439 wxDouble arg2 ;
27440 wxDouble arg3 ;
27441 wxDouble arg4 ;
27442 wxDouble arg5 ;
27443 wxDouble arg6 ;
27444 void *argp1 = 0 ;
27445 int res1 = 0 ;
27446 double val2 ;
27447 int ecode2 = 0 ;
27448 double val3 ;
27449 int ecode3 = 0 ;
27450 double val4 ;
27451 int ecode4 = 0 ;
27452 double val5 ;
27453 int ecode5 = 0 ;
27454 double val6 ;
27455 int ecode6 = 0 ;
27456 PyObject * obj0 = 0 ;
27457 PyObject * obj1 = 0 ;
27458 PyObject * obj2 = 0 ;
27459 PyObject * obj3 = 0 ;
27460 PyObject * obj4 = 0 ;
27461 PyObject * obj5 = 0 ;
27462 char * kwnames[] = {
27463 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27464 };
27465
27466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27470 }
27471 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27472 ecode2 = SWIG_AsVal_double(obj1, &val2);
27473 if (!SWIG_IsOK(ecode2)) {
27474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27475 }
27476 arg2 = static_cast< wxDouble >(val2);
27477 ecode3 = SWIG_AsVal_double(obj2, &val3);
27478 if (!SWIG_IsOK(ecode3)) {
27479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27480 }
27481 arg3 = static_cast< wxDouble >(val3);
27482 ecode4 = SWIG_AsVal_double(obj3, &val4);
27483 if (!SWIG_IsOK(ecode4)) {
27484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27485 }
27486 arg4 = static_cast< wxDouble >(val4);
27487 ecode5 = SWIG_AsVal_double(obj4, &val5);
27488 if (!SWIG_IsOK(ecode5)) {
27489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27490 }
27491 arg5 = static_cast< wxDouble >(val5);
27492 ecode6 = SWIG_AsVal_double(obj5, &val6);
27493 if (!SWIG_IsOK(ecode6)) {
27494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27495 }
27496 arg6 = static_cast< wxDouble >(val6);
27497 {
27498 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27499 if (PyErr_Occurred()) SWIG_fail;
27500 }
27501 resultobj = SWIG_Py_Void();
27502 return resultobj;
27503 fail:
27504 return NULL;
27505 }
27506
27507
27508 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27509 PyObject *obj;
27510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27511 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27512 return SWIG_Py_Void();
27513 }
27514
27515 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27516 PyObject *resultobj = 0;
27517 wxWindowDC *arg1 = 0 ;
27518 wxGCDC *result = 0 ;
27519 void *argp1 = 0 ;
27520 int res1 = 0 ;
27521 PyObject * obj0 = 0 ;
27522 char * kwnames[] = {
27523 (char *) "dc", NULL
27524 };
27525
27526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27527 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27528 if (!SWIG_IsOK(res1)) {
27529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27530 }
27531 if (!argp1) {
27532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27533 }
27534 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27535 {
27536 if (!wxPyCheckForApp()) SWIG_fail;
27537 PyThreadState* __tstate = wxPyBeginAllowThreads();
27538 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27539 wxPyEndAllowThreads(__tstate);
27540 if (PyErr_Occurred()) SWIG_fail;
27541 }
27542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27543 return resultobj;
27544 fail:
27545 return NULL;
27546 }
27547
27548
27549 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27550 PyObject *resultobj = 0;
27551 wxGCDC *arg1 = (wxGCDC *) 0 ;
27552 void *argp1 = 0 ;
27553 int res1 = 0 ;
27554 PyObject *swig_obj[1] ;
27555
27556 if (!args) SWIG_fail;
27557 swig_obj[0] = args;
27558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27559 if (!SWIG_IsOK(res1)) {
27560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27561 }
27562 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27563 {
27564 delete arg1;
27565
27566 if (PyErr_Occurred()) SWIG_fail;
27567 }
27568 resultobj = SWIG_Py_Void();
27569 return resultobj;
27570 fail:
27571 return NULL;
27572 }
27573
27574
27575 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27576 PyObject *resultobj = 0;
27577 wxGCDC *arg1 = (wxGCDC *) 0 ;
27578 wxGraphicsContext *result = 0 ;
27579 void *argp1 = 0 ;
27580 int res1 = 0 ;
27581 PyObject *swig_obj[1] ;
27582
27583 if (!args) SWIG_fail;
27584 swig_obj[0] = args;
27585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27586 if (!SWIG_IsOK(res1)) {
27587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27588 }
27589 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27590 {
27591 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
27592 if (PyErr_Occurred()) SWIG_fail;
27593 }
27594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27595 return resultobj;
27596 fail:
27597 return NULL;
27598 }
27599
27600
27601 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27602 PyObject *resultobj = 0;
27603 wxGCDC *arg1 = (wxGCDC *) 0 ;
27604 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
27605 void *argp1 = 0 ;
27606 int res1 = 0 ;
27607 void *argp2 = 0 ;
27608 int res2 = 0 ;
27609 PyObject * obj0 = 0 ;
27610 PyObject * obj1 = 0 ;
27611 char * kwnames[] = {
27612 (char *) "self",(char *) "ctx", NULL
27613 };
27614
27615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
27616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27617 if (!SWIG_IsOK(res1)) {
27618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27619 }
27620 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27622 if (!SWIG_IsOK(res2)) {
27623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
27624 }
27625 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
27626 {
27627 (arg1)->SetGraphicsContext(arg2);
27628 if (PyErr_Occurred()) SWIG_fail;
27629 }
27630 resultobj = SWIG_Py_Void();
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27638 PyObject *obj;
27639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27640 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27641 return SWIG_Py_Void();
27642 }
27643
27644 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27645 return SWIG_Python_InitShadowInstance(args);
27646 }
27647
27648 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27649 PyObject *resultobj = 0;
27650 wxOverlay *result = 0 ;
27651
27652 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27653 {
27654 PyThreadState* __tstate = wxPyBeginAllowThreads();
27655 result = (wxOverlay *)new wxOverlay();
27656 wxPyEndAllowThreads(__tstate);
27657 if (PyErr_Occurred()) SWIG_fail;
27658 }
27659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27660 return resultobj;
27661 fail:
27662 return NULL;
27663 }
27664
27665
27666 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27667 PyObject *resultobj = 0;
27668 wxOverlay *arg1 = (wxOverlay *) 0 ;
27669 void *argp1 = 0 ;
27670 int res1 = 0 ;
27671 PyObject *swig_obj[1] ;
27672
27673 if (!args) SWIG_fail;
27674 swig_obj[0] = args;
27675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27676 if (!SWIG_IsOK(res1)) {
27677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27678 }
27679 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27680 {
27681 PyThreadState* __tstate = wxPyBeginAllowThreads();
27682 delete arg1;
27683
27684 wxPyEndAllowThreads(__tstate);
27685 if (PyErr_Occurred()) SWIG_fail;
27686 }
27687 resultobj = SWIG_Py_Void();
27688 return resultobj;
27689 fail:
27690 return NULL;
27691 }
27692
27693
27694 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27695 PyObject *resultobj = 0;
27696 wxOverlay *arg1 = (wxOverlay *) 0 ;
27697 void *argp1 = 0 ;
27698 int res1 = 0 ;
27699 PyObject *swig_obj[1] ;
27700
27701 if (!args) SWIG_fail;
27702 swig_obj[0] = args;
27703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27704 if (!SWIG_IsOK(res1)) {
27705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27706 }
27707 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27708 {
27709 PyThreadState* __tstate = wxPyBeginAllowThreads();
27710 (arg1)->Reset();
27711 wxPyEndAllowThreads(__tstate);
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
27714 resultobj = SWIG_Py_Void();
27715 return resultobj;
27716 fail:
27717 return NULL;
27718 }
27719
27720
27721 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27722 PyObject *obj;
27723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27724 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27725 return SWIG_Py_Void();
27726 }
27727
27728 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27729 return SWIG_Python_InitShadowInstance(args);
27730 }
27731
27732 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27733 PyObject *resultobj = 0;
27734 wxOverlay *arg1 = 0 ;
27735 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27736 int arg3 ;
27737 int arg4 ;
27738 int arg5 ;
27739 int arg6 ;
27740 wxDCOverlay *result = 0 ;
27741 void *argp1 = 0 ;
27742 int res1 = 0 ;
27743 void *argp2 = 0 ;
27744 int res2 = 0 ;
27745 int val3 ;
27746 int ecode3 = 0 ;
27747 int val4 ;
27748 int ecode4 = 0 ;
27749 int val5 ;
27750 int ecode5 = 0 ;
27751 int val6 ;
27752 int ecode6 = 0 ;
27753
27754 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27756 if (!SWIG_IsOK(res1)) {
27757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27758 }
27759 if (!argp1) {
27760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27761 }
27762 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27763 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27764 if (!SWIG_IsOK(res2)) {
27765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27766 }
27767 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27768 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27769 if (!SWIG_IsOK(ecode3)) {
27770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27771 }
27772 arg3 = static_cast< int >(val3);
27773 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27774 if (!SWIG_IsOK(ecode4)) {
27775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27776 }
27777 arg4 = static_cast< int >(val4);
27778 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27779 if (!SWIG_IsOK(ecode5)) {
27780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27781 }
27782 arg5 = static_cast< int >(val5);
27783 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27784 if (!SWIG_IsOK(ecode6)) {
27785 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27786 }
27787 arg6 = static_cast< int >(val6);
27788 {
27789 PyThreadState* __tstate = wxPyBeginAllowThreads();
27790 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27791 wxPyEndAllowThreads(__tstate);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27795 return resultobj;
27796 fail:
27797 return NULL;
27798 }
27799
27800
27801 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27802 PyObject *resultobj = 0;
27803 wxOverlay *arg1 = 0 ;
27804 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27805 wxDCOverlay *result = 0 ;
27806 void *argp1 = 0 ;
27807 int res1 = 0 ;
27808 void *argp2 = 0 ;
27809 int res2 = 0 ;
27810
27811 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27813 if (!SWIG_IsOK(res1)) {
27814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27815 }
27816 if (!argp1) {
27817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27818 }
27819 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27820 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27821 if (!SWIG_IsOK(res2)) {
27822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27823 }
27824 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27825 {
27826 PyThreadState* __tstate = wxPyBeginAllowThreads();
27827 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27828 wxPyEndAllowThreads(__tstate);
27829 if (PyErr_Occurred()) SWIG_fail;
27830 }
27831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27832 return resultobj;
27833 fail:
27834 return NULL;
27835 }
27836
27837
27838 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27839 int argc;
27840 PyObject *argv[7];
27841
27842 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27843 --argc;
27844 if (argc == 2) {
27845 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27846 }
27847 if (argc == 6) {
27848 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27849 }
27850
27851 fail:
27852 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27853 return NULL;
27854 }
27855
27856
27857 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27858 PyObject *resultobj = 0;
27859 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
27862 PyObject *swig_obj[1] ;
27863
27864 if (!args) SWIG_fail;
27865 swig_obj[0] = args;
27866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27867 if (!SWIG_IsOK(res1)) {
27868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27869 }
27870 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27871 {
27872 PyThreadState* __tstate = wxPyBeginAllowThreads();
27873 delete arg1;
27874
27875 wxPyEndAllowThreads(__tstate);
27876 if (PyErr_Occurred()) SWIG_fail;
27877 }
27878 resultobj = SWIG_Py_Void();
27879 return resultobj;
27880 fail:
27881 return NULL;
27882 }
27883
27884
27885 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27886 PyObject *resultobj = 0;
27887 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 PyObject *swig_obj[1] ;
27891
27892 if (!args) SWIG_fail;
27893 swig_obj[0] = args;
27894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27895 if (!SWIG_IsOK(res1)) {
27896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27897 }
27898 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27899 {
27900 PyThreadState* __tstate = wxPyBeginAllowThreads();
27901 (arg1)->Clear();
27902 wxPyEndAllowThreads(__tstate);
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 resultobj = SWIG_Py_Void();
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27913 PyObject *obj;
27914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27915 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27916 return SWIG_Py_Void();
27917 }
27918
27919 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27920 return SWIG_Python_InitShadowInstance(args);
27921 }
27922
27923 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27924 PyObject *resultobj = 0;
27925 int arg1 ;
27926 int arg2 ;
27927 int arg3 = (int) true ;
27928 int arg4 = (int) 1 ;
27929 wxImageList *result = 0 ;
27930 int val1 ;
27931 int ecode1 = 0 ;
27932 int val2 ;
27933 int ecode2 = 0 ;
27934 int val3 ;
27935 int ecode3 = 0 ;
27936 int val4 ;
27937 int ecode4 = 0 ;
27938 PyObject * obj0 = 0 ;
27939 PyObject * obj1 = 0 ;
27940 PyObject * obj2 = 0 ;
27941 PyObject * obj3 = 0 ;
27942 char * kwnames[] = {
27943 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27944 };
27945
27946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27947 ecode1 = SWIG_AsVal_int(obj0, &val1);
27948 if (!SWIG_IsOK(ecode1)) {
27949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27950 }
27951 arg1 = static_cast< int >(val1);
27952 ecode2 = SWIG_AsVal_int(obj1, &val2);
27953 if (!SWIG_IsOK(ecode2)) {
27954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27955 }
27956 arg2 = static_cast< int >(val2);
27957 if (obj2) {
27958 ecode3 = SWIG_AsVal_int(obj2, &val3);
27959 if (!SWIG_IsOK(ecode3)) {
27960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27961 }
27962 arg3 = static_cast< int >(val3);
27963 }
27964 if (obj3) {
27965 ecode4 = SWIG_AsVal_int(obj3, &val4);
27966 if (!SWIG_IsOK(ecode4)) {
27967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27968 }
27969 arg4 = static_cast< int >(val4);
27970 }
27971 {
27972 if (!wxPyCheckForApp()) SWIG_fail;
27973 PyThreadState* __tstate = wxPyBeginAllowThreads();
27974 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27975 wxPyEndAllowThreads(__tstate);
27976 if (PyErr_Occurred()) SWIG_fail;
27977 }
27978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27979 return resultobj;
27980 fail:
27981 return NULL;
27982 }
27983
27984
27985 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27986 PyObject *resultobj = 0;
27987 wxImageList *arg1 = (wxImageList *) 0 ;
27988 void *argp1 = 0 ;
27989 int res1 = 0 ;
27990 PyObject *swig_obj[1] ;
27991
27992 if (!args) SWIG_fail;
27993 swig_obj[0] = args;
27994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27995 if (!SWIG_IsOK(res1)) {
27996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27997 }
27998 arg1 = reinterpret_cast< wxImageList * >(argp1);
27999 {
28000 PyThreadState* __tstate = wxPyBeginAllowThreads();
28001 delete arg1;
28002
28003 wxPyEndAllowThreads(__tstate);
28004 if (PyErr_Occurred()) SWIG_fail;
28005 }
28006 resultobj = SWIG_Py_Void();
28007 return resultobj;
28008 fail:
28009 return NULL;
28010 }
28011
28012
28013 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28014 PyObject *resultobj = 0;
28015 wxImageList *arg1 = (wxImageList *) 0 ;
28016 wxBitmap *arg2 = 0 ;
28017 wxBitmap const &arg3_defvalue = wxNullBitmap ;
28018 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
28019 int result;
28020 void *argp1 = 0 ;
28021 int res1 = 0 ;
28022 void *argp2 = 0 ;
28023 int res2 = 0 ;
28024 void *argp3 = 0 ;
28025 int res3 = 0 ;
28026 PyObject * obj0 = 0 ;
28027 PyObject * obj1 = 0 ;
28028 PyObject * obj2 = 0 ;
28029 char * kwnames[] = {
28030 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
28031 };
28032
28033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28035 if (!SWIG_IsOK(res1)) {
28036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
28037 }
28038 arg1 = reinterpret_cast< wxImageList * >(argp1);
28039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28040 if (!SWIG_IsOK(res2)) {
28041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28042 }
28043 if (!argp2) {
28044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28045 }
28046 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28047 if (obj2) {
28048 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28049 if (!SWIG_IsOK(res3)) {
28050 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28051 }
28052 if (!argp3) {
28053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28054 }
28055 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28056 }
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
28059 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
28060 wxPyEndAllowThreads(__tstate);
28061 if (PyErr_Occurred()) SWIG_fail;
28062 }
28063 resultobj = SWIG_From_int(static_cast< int >(result));
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28071 PyObject *resultobj = 0;
28072 wxImageList *arg1 = (wxImageList *) 0 ;
28073 wxBitmap *arg2 = 0 ;
28074 wxColour *arg3 = 0 ;
28075 int result;
28076 void *argp1 = 0 ;
28077 int res1 = 0 ;
28078 void *argp2 = 0 ;
28079 int res2 = 0 ;
28080 wxColour temp3 ;
28081 PyObject * obj0 = 0 ;
28082 PyObject * obj1 = 0 ;
28083 PyObject * obj2 = 0 ;
28084 char * kwnames[] = {
28085 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
28086 };
28087
28088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28090 if (!SWIG_IsOK(res1)) {
28091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
28092 }
28093 arg1 = reinterpret_cast< wxImageList * >(argp1);
28094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28095 if (!SWIG_IsOK(res2)) {
28096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28097 }
28098 if (!argp2) {
28099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28100 }
28101 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28102 {
28103 arg3 = &temp3;
28104 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28105 }
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
28109 wxPyEndAllowThreads(__tstate);
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 resultobj = SWIG_From_int(static_cast< int >(result));
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28120 PyObject *resultobj = 0;
28121 wxImageList *arg1 = (wxImageList *) 0 ;
28122 wxIcon *arg2 = 0 ;
28123 int result;
28124 void *argp1 = 0 ;
28125 int res1 = 0 ;
28126 void *argp2 = 0 ;
28127 int res2 = 0 ;
28128 PyObject * obj0 = 0 ;
28129 PyObject * obj1 = 0 ;
28130 char * kwnames[] = {
28131 (char *) "self",(char *) "icon", NULL
28132 };
28133
28134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28136 if (!SWIG_IsOK(res1)) {
28137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
28138 }
28139 arg1 = reinterpret_cast< wxImageList * >(argp1);
28140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
28141 if (!SWIG_IsOK(res2)) {
28142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28143 }
28144 if (!argp2) {
28145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28146 }
28147 arg2 = reinterpret_cast< wxIcon * >(argp2);
28148 {
28149 PyThreadState* __tstate = wxPyBeginAllowThreads();
28150 result = (int)(arg1)->Add((wxIcon const &)*arg2);
28151 wxPyEndAllowThreads(__tstate);
28152 if (PyErr_Occurred()) SWIG_fail;
28153 }
28154 resultobj = SWIG_From_int(static_cast< int >(result));
28155 return resultobj;
28156 fail:
28157 return NULL;
28158 }
28159
28160
28161 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28162 PyObject *resultobj = 0;
28163 wxImageList *arg1 = (wxImageList *) 0 ;
28164 int arg2 ;
28165 SwigValueWrapper<wxBitmap > result;
28166 void *argp1 = 0 ;
28167 int res1 = 0 ;
28168 int val2 ;
28169 int ecode2 = 0 ;
28170 PyObject * obj0 = 0 ;
28171 PyObject * obj1 = 0 ;
28172 char * kwnames[] = {
28173 (char *) "self",(char *) "index", NULL
28174 };
28175
28176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
28177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28178 if (!SWIG_IsOK(res1)) {
28179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
28180 }
28181 arg1 = reinterpret_cast< wxImageList * >(argp1);
28182 ecode2 = SWIG_AsVal_int(obj1, &val2);
28183 if (!SWIG_IsOK(ecode2)) {
28184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
28185 }
28186 arg2 = static_cast< int >(val2);
28187 {
28188 PyThreadState* __tstate = wxPyBeginAllowThreads();
28189 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
28190 wxPyEndAllowThreads(__tstate);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
28194 return resultobj;
28195 fail:
28196 return NULL;
28197 }
28198
28199
28200 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28201 PyObject *resultobj = 0;
28202 wxImageList *arg1 = (wxImageList *) 0 ;
28203 int arg2 ;
28204 wxIcon result;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 int val2 ;
28208 int ecode2 = 0 ;
28209 PyObject * obj0 = 0 ;
28210 PyObject * obj1 = 0 ;
28211 char * kwnames[] = {
28212 (char *) "self",(char *) "index", NULL
28213 };
28214
28215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28217 if (!SWIG_IsOK(res1)) {
28218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
28219 }
28220 arg1 = reinterpret_cast< wxImageList * >(argp1);
28221 ecode2 = SWIG_AsVal_int(obj1, &val2);
28222 if (!SWIG_IsOK(ecode2)) {
28223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
28224 }
28225 arg2 = static_cast< int >(val2);
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 result = ((wxImageList const *)arg1)->GetIcon(arg2);
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
28233 return resultobj;
28234 fail:
28235 return NULL;
28236 }
28237
28238
28239 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28240 PyObject *resultobj = 0;
28241 wxImageList *arg1 = (wxImageList *) 0 ;
28242 int arg2 ;
28243 wxBitmap *arg3 = 0 ;
28244 wxBitmap const &arg4_defvalue = wxNullBitmap ;
28245 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
28246 bool result;
28247 void *argp1 = 0 ;
28248 int res1 = 0 ;
28249 int val2 ;
28250 int ecode2 = 0 ;
28251 void *argp3 = 0 ;
28252 int res3 = 0 ;
28253 void *argp4 = 0 ;
28254 int res4 = 0 ;
28255 PyObject * obj0 = 0 ;
28256 PyObject * obj1 = 0 ;
28257 PyObject * obj2 = 0 ;
28258 PyObject * obj3 = 0 ;
28259 char * kwnames[] = {
28260 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
28261 };
28262
28263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28265 if (!SWIG_IsOK(res1)) {
28266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
28267 }
28268 arg1 = reinterpret_cast< wxImageList * >(argp1);
28269 ecode2 = SWIG_AsVal_int(obj1, &val2);
28270 if (!SWIG_IsOK(ecode2)) {
28271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
28272 }
28273 arg2 = static_cast< int >(val2);
28274 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28275 if (!SWIG_IsOK(res3)) {
28276 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28277 }
28278 if (!argp3) {
28279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28280 }
28281 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28282 if (obj3) {
28283 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28284 if (!SWIG_IsOK(res4)) {
28285 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28286 }
28287 if (!argp4) {
28288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28289 }
28290 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28291 }
28292 {
28293 PyThreadState* __tstate = wxPyBeginAllowThreads();
28294 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28295 wxPyEndAllowThreads(__tstate);
28296 if (PyErr_Occurred()) SWIG_fail;
28297 }
28298 {
28299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28300 }
28301 return resultobj;
28302 fail:
28303 return NULL;
28304 }
28305
28306
28307 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28308 PyObject *resultobj = 0;
28309 wxImageList *arg1 = (wxImageList *) 0 ;
28310 int arg2 ;
28311 wxDC *arg3 = 0 ;
28312 int arg4 ;
28313 int arg5 ;
28314 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28315 bool arg7 = (bool) (bool)false ;
28316 bool result;
28317 void *argp1 = 0 ;
28318 int res1 = 0 ;
28319 int val2 ;
28320 int ecode2 = 0 ;
28321 void *argp3 = 0 ;
28322 int res3 = 0 ;
28323 int val4 ;
28324 int ecode4 = 0 ;
28325 int val5 ;
28326 int ecode5 = 0 ;
28327 int val6 ;
28328 int ecode6 = 0 ;
28329 bool val7 ;
28330 int ecode7 = 0 ;
28331 PyObject * obj0 = 0 ;
28332 PyObject * obj1 = 0 ;
28333 PyObject * obj2 = 0 ;
28334 PyObject * obj3 = 0 ;
28335 PyObject * obj4 = 0 ;
28336 PyObject * obj5 = 0 ;
28337 PyObject * obj6 = 0 ;
28338 char * kwnames[] = {
28339 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28340 };
28341
28342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28344 if (!SWIG_IsOK(res1)) {
28345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28346 }
28347 arg1 = reinterpret_cast< wxImageList * >(argp1);
28348 ecode2 = SWIG_AsVal_int(obj1, &val2);
28349 if (!SWIG_IsOK(ecode2)) {
28350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28351 }
28352 arg2 = static_cast< int >(val2);
28353 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28354 if (!SWIG_IsOK(res3)) {
28355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28356 }
28357 if (!argp3) {
28358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28359 }
28360 arg3 = reinterpret_cast< wxDC * >(argp3);
28361 ecode4 = SWIG_AsVal_int(obj3, &val4);
28362 if (!SWIG_IsOK(ecode4)) {
28363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28364 }
28365 arg4 = static_cast< int >(val4);
28366 ecode5 = SWIG_AsVal_int(obj4, &val5);
28367 if (!SWIG_IsOK(ecode5)) {
28368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28369 }
28370 arg5 = static_cast< int >(val5);
28371 if (obj5) {
28372 ecode6 = SWIG_AsVal_int(obj5, &val6);
28373 if (!SWIG_IsOK(ecode6)) {
28374 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28375 }
28376 arg6 = static_cast< int >(val6);
28377 }
28378 if (obj6) {
28379 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28380 if (!SWIG_IsOK(ecode7)) {
28381 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28382 }
28383 arg7 = static_cast< bool >(val7);
28384 }
28385 {
28386 PyThreadState* __tstate = wxPyBeginAllowThreads();
28387 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 {
28392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28393 }
28394 return resultobj;
28395 fail:
28396 return NULL;
28397 }
28398
28399
28400 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28401 PyObject *resultobj = 0;
28402 wxImageList *arg1 = (wxImageList *) 0 ;
28403 int result;
28404 void *argp1 = 0 ;
28405 int res1 = 0 ;
28406 PyObject *swig_obj[1] ;
28407
28408 if (!args) SWIG_fail;
28409 swig_obj[0] = args;
28410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28411 if (!SWIG_IsOK(res1)) {
28412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28413 }
28414 arg1 = reinterpret_cast< wxImageList * >(argp1);
28415 {
28416 PyThreadState* __tstate = wxPyBeginAllowThreads();
28417 result = (int)(arg1)->GetImageCount();
28418 wxPyEndAllowThreads(__tstate);
28419 if (PyErr_Occurred()) SWIG_fail;
28420 }
28421 resultobj = SWIG_From_int(static_cast< int >(result));
28422 return resultobj;
28423 fail:
28424 return NULL;
28425 }
28426
28427
28428 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28429 PyObject *resultobj = 0;
28430 wxImageList *arg1 = (wxImageList *) 0 ;
28431 int arg2 ;
28432 bool result;
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
28435 int val2 ;
28436 int ecode2 = 0 ;
28437 PyObject * obj0 = 0 ;
28438 PyObject * obj1 = 0 ;
28439 char * kwnames[] = {
28440 (char *) "self",(char *) "index", NULL
28441 };
28442
28443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28445 if (!SWIG_IsOK(res1)) {
28446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28447 }
28448 arg1 = reinterpret_cast< wxImageList * >(argp1);
28449 ecode2 = SWIG_AsVal_int(obj1, &val2);
28450 if (!SWIG_IsOK(ecode2)) {
28451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28452 }
28453 arg2 = static_cast< int >(val2);
28454 {
28455 PyThreadState* __tstate = wxPyBeginAllowThreads();
28456 result = (bool)(arg1)->Remove(arg2);
28457 wxPyEndAllowThreads(__tstate);
28458 if (PyErr_Occurred()) SWIG_fail;
28459 }
28460 {
28461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28462 }
28463 return resultobj;
28464 fail:
28465 return NULL;
28466 }
28467
28468
28469 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28470 PyObject *resultobj = 0;
28471 wxImageList *arg1 = (wxImageList *) 0 ;
28472 bool result;
28473 void *argp1 = 0 ;
28474 int res1 = 0 ;
28475 PyObject *swig_obj[1] ;
28476
28477 if (!args) SWIG_fail;
28478 swig_obj[0] = args;
28479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28480 if (!SWIG_IsOK(res1)) {
28481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28482 }
28483 arg1 = reinterpret_cast< wxImageList * >(argp1);
28484 {
28485 PyThreadState* __tstate = wxPyBeginAllowThreads();
28486 result = (bool)(arg1)->RemoveAll();
28487 wxPyEndAllowThreads(__tstate);
28488 if (PyErr_Occurred()) SWIG_fail;
28489 }
28490 {
28491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28492 }
28493 return resultobj;
28494 fail:
28495 return NULL;
28496 }
28497
28498
28499 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28500 PyObject *resultobj = 0;
28501 wxImageList *arg1 = (wxImageList *) 0 ;
28502 int arg2 ;
28503 int *arg3 = 0 ;
28504 int *arg4 = 0 ;
28505 void *argp1 = 0 ;
28506 int res1 = 0 ;
28507 int val2 ;
28508 int ecode2 = 0 ;
28509 int temp3 ;
28510 int res3 = SWIG_TMPOBJ ;
28511 int temp4 ;
28512 int res4 = SWIG_TMPOBJ ;
28513 PyObject * obj0 = 0 ;
28514 PyObject * obj1 = 0 ;
28515 char * kwnames[] = {
28516 (char *) "self",(char *) "index", NULL
28517 };
28518
28519 arg3 = &temp3;
28520 arg4 = &temp4;
28521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28523 if (!SWIG_IsOK(res1)) {
28524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28525 }
28526 arg1 = reinterpret_cast< wxImageList * >(argp1);
28527 ecode2 = SWIG_AsVal_int(obj1, &val2);
28528 if (!SWIG_IsOK(ecode2)) {
28529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28530 }
28531 arg2 = static_cast< int >(val2);
28532 {
28533 PyThreadState* __tstate = wxPyBeginAllowThreads();
28534 (arg1)->GetSize(arg2,*arg3,*arg4);
28535 wxPyEndAllowThreads(__tstate);
28536 if (PyErr_Occurred()) SWIG_fail;
28537 }
28538 resultobj = SWIG_Py_Void();
28539 if (SWIG_IsTmpObj(res3)) {
28540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28541 } else {
28542 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28544 }
28545 if (SWIG_IsTmpObj(res4)) {
28546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28547 } else {
28548 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28550 }
28551 return resultobj;
28552 fail:
28553 return NULL;
28554 }
28555
28556
28557 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28558 PyObject *obj;
28559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28560 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28561 return SWIG_Py_Void();
28562 }
28563
28564 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28565 return SWIG_Python_InitShadowInstance(args);
28566 }
28567
28568 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28569 PyObject *resultobj = 0;
28570 wxStockGDI *result = 0 ;
28571
28572 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28573 {
28574 PyThreadState* __tstate = wxPyBeginAllowThreads();
28575 result = (wxStockGDI *)new wxStockGDI();
28576 wxPyEndAllowThreads(__tstate);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28580 return resultobj;
28581 fail:
28582 return NULL;
28583 }
28584
28585
28586 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28587 PyObject *resultobj = 0;
28588 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 PyObject *swig_obj[1] ;
28592
28593 if (!args) SWIG_fail;
28594 swig_obj[0] = args;
28595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28596 if (!SWIG_IsOK(res1)) {
28597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28598 }
28599 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28600 {
28601 PyThreadState* __tstate = wxPyBeginAllowThreads();
28602 delete arg1;
28603
28604 wxPyEndAllowThreads(__tstate);
28605 if (PyErr_Occurred()) SWIG_fail;
28606 }
28607 resultobj = SWIG_Py_Void();
28608 return resultobj;
28609 fail:
28610 return NULL;
28611 }
28612
28613
28614 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28615 PyObject *resultobj = 0;
28616
28617 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28618 {
28619 PyThreadState* __tstate = wxPyBeginAllowThreads();
28620 wxStockGDI::DeleteAll();
28621 wxPyEndAllowThreads(__tstate);
28622 if (PyErr_Occurred()) SWIG_fail;
28623 }
28624 resultobj = SWIG_Py_Void();
28625 return resultobj;
28626 fail:
28627 return NULL;
28628 }
28629
28630
28631 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28632 PyObject *resultobj = 0;
28633 wxStockGDI *result = 0 ;
28634
28635 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28636 {
28637 PyThreadState* __tstate = wxPyBeginAllowThreads();
28638 {
28639 wxStockGDI &_result_ref = wxStockGDI::instance();
28640 result = (wxStockGDI *) &_result_ref;
28641 }
28642 wxPyEndAllowThreads(__tstate);
28643 if (PyErr_Occurred()) SWIG_fail;
28644 }
28645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28646 return resultobj;
28647 fail:
28648 return NULL;
28649 }
28650
28651
28652 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28653 PyObject *resultobj = 0;
28654 wxStockGDI::Item arg1 ;
28655 wxBrush *result = 0 ;
28656 int val1 ;
28657 int ecode1 = 0 ;
28658 PyObject * obj0 = 0 ;
28659 char * kwnames[] = {
28660 (char *) "item", NULL
28661 };
28662
28663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28664 ecode1 = SWIG_AsVal_int(obj0, &val1);
28665 if (!SWIG_IsOK(ecode1)) {
28666 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28667 }
28668 arg1 = static_cast< wxStockGDI::Item >(val1);
28669 {
28670 PyThreadState* __tstate = wxPyBeginAllowThreads();
28671 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28676 return resultobj;
28677 fail:
28678 return NULL;
28679 }
28680
28681
28682 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28683 PyObject *resultobj = 0;
28684 wxStockGDI::Item arg1 ;
28685 wxColour *result = 0 ;
28686 int val1 ;
28687 int ecode1 = 0 ;
28688 PyObject * obj0 = 0 ;
28689 char * kwnames[] = {
28690 (char *) "item", NULL
28691 };
28692
28693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28694 ecode1 = SWIG_AsVal_int(obj0, &val1);
28695 if (!SWIG_IsOK(ecode1)) {
28696 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28697 }
28698 arg1 = static_cast< wxStockGDI::Item >(val1);
28699 {
28700 PyThreadState* __tstate = wxPyBeginAllowThreads();
28701 result = (wxColour *)wxStockGDI::GetColour(arg1);
28702 wxPyEndAllowThreads(__tstate);
28703 if (PyErr_Occurred()) SWIG_fail;
28704 }
28705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28706 return resultobj;
28707 fail:
28708 return NULL;
28709 }
28710
28711
28712 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28713 PyObject *resultobj = 0;
28714 wxStockGDI::Item arg1 ;
28715 wxCursor *result = 0 ;
28716 int val1 ;
28717 int ecode1 = 0 ;
28718 PyObject * obj0 = 0 ;
28719 char * kwnames[] = {
28720 (char *) "item", NULL
28721 };
28722
28723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28724 ecode1 = SWIG_AsVal_int(obj0, &val1);
28725 if (!SWIG_IsOK(ecode1)) {
28726 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28727 }
28728 arg1 = static_cast< wxStockGDI::Item >(val1);
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28736 return resultobj;
28737 fail:
28738 return NULL;
28739 }
28740
28741
28742 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28743 PyObject *resultobj = 0;
28744 wxStockGDI::Item arg1 ;
28745 wxPen *result = 0 ;
28746 int val1 ;
28747 int ecode1 = 0 ;
28748 PyObject * obj0 = 0 ;
28749 char * kwnames[] = {
28750 (char *) "item", NULL
28751 };
28752
28753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28754 ecode1 = SWIG_AsVal_int(obj0, &val1);
28755 if (!SWIG_IsOK(ecode1)) {
28756 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28757 }
28758 arg1 = static_cast< wxStockGDI::Item >(val1);
28759 {
28760 PyThreadState* __tstate = wxPyBeginAllowThreads();
28761 result = (wxPen *)wxStockGDI::GetPen(arg1);
28762 wxPyEndAllowThreads(__tstate);
28763 if (PyErr_Occurred()) SWIG_fail;
28764 }
28765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28766 return resultobj;
28767 fail:
28768 return NULL;
28769 }
28770
28771
28772 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28773 PyObject *resultobj = 0;
28774 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28775 wxStockGDI::Item arg2 ;
28776 wxFont *result = 0 ;
28777 void *argp1 = 0 ;
28778 int res1 = 0 ;
28779 int val2 ;
28780 int ecode2 = 0 ;
28781 PyObject * obj0 = 0 ;
28782 PyObject * obj1 = 0 ;
28783 char * kwnames[] = {
28784 (char *) "self",(char *) "item", NULL
28785 };
28786
28787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28789 if (!SWIG_IsOK(res1)) {
28790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28791 }
28792 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28793 ecode2 = SWIG_AsVal_int(obj1, &val2);
28794 if (!SWIG_IsOK(ecode2)) {
28795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28796 }
28797 arg2 = static_cast< wxStockGDI::Item >(val2);
28798 {
28799 PyThreadState* __tstate = wxPyBeginAllowThreads();
28800 result = (wxFont *)(arg1)->GetFont(arg2);
28801 wxPyEndAllowThreads(__tstate);
28802 if (PyErr_Occurred()) SWIG_fail;
28803 }
28804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28805 return resultobj;
28806 fail:
28807 return NULL;
28808 }
28809
28810
28811 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28812 PyObject *obj;
28813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28814 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28815 return SWIG_Py_Void();
28816 }
28817
28818 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28819 return SWIG_Python_InitShadowInstance(args);
28820 }
28821
28822 SWIGINTERN int NullBitmap_set(PyObject *) {
28823 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28824 return 1;
28825 }
28826
28827
28828 SWIGINTERN PyObject *NullBitmap_get(void) {
28829 PyObject *pyobj = 0;
28830
28831 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28832 return pyobj;
28833 }
28834
28835
28836 SWIGINTERN int NullIcon_set(PyObject *) {
28837 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28838 return 1;
28839 }
28840
28841
28842 SWIGINTERN PyObject *NullIcon_get(void) {
28843 PyObject *pyobj = 0;
28844
28845 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28846 return pyobj;
28847 }
28848
28849
28850 SWIGINTERN int NullCursor_set(PyObject *) {
28851 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28852 return 1;
28853 }
28854
28855
28856 SWIGINTERN PyObject *NullCursor_get(void) {
28857 PyObject *pyobj = 0;
28858
28859 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28860 return pyobj;
28861 }
28862
28863
28864 SWIGINTERN int NullPen_set(PyObject *) {
28865 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28866 return 1;
28867 }
28868
28869
28870 SWIGINTERN PyObject *NullPen_get(void) {
28871 PyObject *pyobj = 0;
28872
28873 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28874 return pyobj;
28875 }
28876
28877
28878 SWIGINTERN int NullBrush_set(PyObject *) {
28879 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28880 return 1;
28881 }
28882
28883
28884 SWIGINTERN PyObject *NullBrush_get(void) {
28885 PyObject *pyobj = 0;
28886
28887 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28888 return pyobj;
28889 }
28890
28891
28892 SWIGINTERN int NullPalette_set(PyObject *) {
28893 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28894 return 1;
28895 }
28896
28897
28898 SWIGINTERN PyObject *NullPalette_get(void) {
28899 PyObject *pyobj = 0;
28900
28901 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28902 return pyobj;
28903 }
28904
28905
28906 SWIGINTERN int NullFont_set(PyObject *) {
28907 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28908 return 1;
28909 }
28910
28911
28912 SWIGINTERN PyObject *NullFont_get(void) {
28913 PyObject *pyobj = 0;
28914
28915 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28916 return pyobj;
28917 }
28918
28919
28920 SWIGINTERN int NullColour_set(PyObject *) {
28921 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28922 return 1;
28923 }
28924
28925
28926 SWIGINTERN PyObject *NullColour_get(void) {
28927 PyObject *pyobj = 0;
28928
28929 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28930 return pyobj;
28931 }
28932
28933
28934 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28935 PyObject *resultobj = 0;
28936 wxGDIObjListBase *result = 0 ;
28937
28938 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28939 {
28940 PyThreadState* __tstate = wxPyBeginAllowThreads();
28941 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28942 wxPyEndAllowThreads(__tstate);
28943 if (PyErr_Occurred()) SWIG_fail;
28944 }
28945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28946 return resultobj;
28947 fail:
28948 return NULL;
28949 }
28950
28951
28952 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28953 PyObject *resultobj = 0;
28954 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28955 void *argp1 = 0 ;
28956 int res1 = 0 ;
28957 PyObject *swig_obj[1] ;
28958
28959 if (!args) SWIG_fail;
28960 swig_obj[0] = args;
28961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28962 if (!SWIG_IsOK(res1)) {
28963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28964 }
28965 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28966 {
28967 PyThreadState* __tstate = wxPyBeginAllowThreads();
28968 delete arg1;
28969
28970 wxPyEndAllowThreads(__tstate);
28971 if (PyErr_Occurred()) SWIG_fail;
28972 }
28973 resultobj = SWIG_Py_Void();
28974 return resultobj;
28975 fail:
28976 return NULL;
28977 }
28978
28979
28980 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28981 PyObject *obj;
28982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28983 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28984 return SWIG_Py_Void();
28985 }
28986
28987 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28988 return SWIG_Python_InitShadowInstance(args);
28989 }
28990
28991 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28992 PyObject *resultobj = 0;
28993 wxPenList *arg1 = (wxPenList *) 0 ;
28994 wxColour *arg2 = 0 ;
28995 int arg3 ;
28996 int arg4 ;
28997 wxPen *result = 0 ;
28998 void *argp1 = 0 ;
28999 int res1 = 0 ;
29000 wxColour temp2 ;
29001 int val3 ;
29002 int ecode3 = 0 ;
29003 int val4 ;
29004 int ecode4 = 0 ;
29005 PyObject * obj0 = 0 ;
29006 PyObject * obj1 = 0 ;
29007 PyObject * obj2 = 0 ;
29008 PyObject * obj3 = 0 ;
29009 char * kwnames[] = {
29010 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
29011 };
29012
29013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29015 if (!SWIG_IsOK(res1)) {
29016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29017 }
29018 arg1 = reinterpret_cast< wxPenList * >(argp1);
29019 {
29020 arg2 = &temp2;
29021 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29022 }
29023 ecode3 = SWIG_AsVal_int(obj2, &val3);
29024 if (!SWIG_IsOK(ecode3)) {
29025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
29026 }
29027 arg3 = static_cast< int >(val3);
29028 ecode4 = SWIG_AsVal_int(obj3, &val4);
29029 if (!SWIG_IsOK(ecode4)) {
29030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
29031 }
29032 arg4 = static_cast< int >(val4);
29033 {
29034 PyThreadState* __tstate = wxPyBeginAllowThreads();
29035 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
29036 wxPyEndAllowThreads(__tstate);
29037 if (PyErr_Occurred()) SWIG_fail;
29038 }
29039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
29040 return resultobj;
29041 fail:
29042 return NULL;
29043 }
29044
29045
29046 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29047 PyObject *resultobj = 0;
29048 wxPenList *arg1 = (wxPenList *) 0 ;
29049 wxPen *arg2 = (wxPen *) 0 ;
29050 void *argp1 = 0 ;
29051 int res1 = 0 ;
29052 void *argp2 = 0 ;
29053 int res2 = 0 ;
29054 PyObject * obj0 = 0 ;
29055 PyObject * obj1 = 0 ;
29056 char * kwnames[] = {
29057 (char *) "self",(char *) "pen", NULL
29058 };
29059
29060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
29061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29062 if (!SWIG_IsOK(res1)) {
29063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
29064 }
29065 arg1 = reinterpret_cast< wxPenList * >(argp1);
29066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29067 if (!SWIG_IsOK(res2)) {
29068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
29069 }
29070 arg2 = reinterpret_cast< wxPen * >(argp2);
29071 {
29072 PyThreadState* __tstate = wxPyBeginAllowThreads();
29073 (arg1)->AddPen(arg2);
29074 wxPyEndAllowThreads(__tstate);
29075 if (PyErr_Occurred()) SWIG_fail;
29076 }
29077 resultobj = SWIG_Py_Void();
29078 return resultobj;
29079 fail:
29080 return NULL;
29081 }
29082
29083
29084 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29085 PyObject *resultobj = 0;
29086 wxPenList *arg1 = (wxPenList *) 0 ;
29087 wxPen *arg2 = (wxPen *) 0 ;
29088 void *argp1 = 0 ;
29089 int res1 = 0 ;
29090 void *argp2 = 0 ;
29091 int res2 = 0 ;
29092 PyObject * obj0 = 0 ;
29093 PyObject * obj1 = 0 ;
29094 char * kwnames[] = {
29095 (char *) "self",(char *) "pen", NULL
29096 };
29097
29098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
29099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29100 if (!SWIG_IsOK(res1)) {
29101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29102 }
29103 arg1 = reinterpret_cast< wxPenList * >(argp1);
29104 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29105 if (!SWIG_IsOK(res2)) {
29106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
29107 }
29108 arg2 = reinterpret_cast< wxPen * >(argp2);
29109 {
29110 PyThreadState* __tstate = wxPyBeginAllowThreads();
29111 (arg1)->RemovePen(arg2);
29112 wxPyEndAllowThreads(__tstate);
29113 if (PyErr_Occurred()) SWIG_fail;
29114 }
29115 resultobj = SWIG_Py_Void();
29116 return resultobj;
29117 fail:
29118 return NULL;
29119 }
29120
29121
29122 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29123 PyObject *obj;
29124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29125 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
29126 return SWIG_Py_Void();
29127 }
29128
29129 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29130 PyObject *resultobj = 0;
29131 wxBrushList *arg1 = (wxBrushList *) 0 ;
29132 wxColour *arg2 = 0 ;
29133 int arg3 = (int) wxSOLID ;
29134 wxBrush *result = 0 ;
29135 void *argp1 = 0 ;
29136 int res1 = 0 ;
29137 wxColour temp2 ;
29138 int val3 ;
29139 int ecode3 = 0 ;
29140 PyObject * obj0 = 0 ;
29141 PyObject * obj1 = 0 ;
29142 PyObject * obj2 = 0 ;
29143 char * kwnames[] = {
29144 (char *) "self",(char *) "colour",(char *) "style", NULL
29145 };
29146
29147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29151 }
29152 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29153 {
29154 arg2 = &temp2;
29155 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29156 }
29157 if (obj2) {
29158 ecode3 = SWIG_AsVal_int(obj2, &val3);
29159 if (!SWIG_IsOK(ecode3)) {
29160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
29161 }
29162 arg3 = static_cast< int >(val3);
29163 }
29164 {
29165 PyThreadState* __tstate = wxPyBeginAllowThreads();
29166 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
29167 wxPyEndAllowThreads(__tstate);
29168 if (PyErr_Occurred()) SWIG_fail;
29169 }
29170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
29171 return resultobj;
29172 fail:
29173 return NULL;
29174 }
29175
29176
29177 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29178 PyObject *resultobj = 0;
29179 wxBrushList *arg1 = (wxBrushList *) 0 ;
29180 wxBrush *arg2 = (wxBrush *) 0 ;
29181 void *argp1 = 0 ;
29182 int res1 = 0 ;
29183 void *argp2 = 0 ;
29184 int res2 = 0 ;
29185 PyObject * obj0 = 0 ;
29186 PyObject * obj1 = 0 ;
29187 char * kwnames[] = {
29188 (char *) "self",(char *) "brush", NULL
29189 };
29190
29191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29193 if (!SWIG_IsOK(res1)) {
29194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29195 }
29196 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29198 if (!SWIG_IsOK(res2)) {
29199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29200 }
29201 arg2 = reinterpret_cast< wxBrush * >(argp2);
29202 {
29203 PyThreadState* __tstate = wxPyBeginAllowThreads();
29204 (arg1)->AddBrush(arg2);
29205 wxPyEndAllowThreads(__tstate);
29206 if (PyErr_Occurred()) SWIG_fail;
29207 }
29208 resultobj = SWIG_Py_Void();
29209 return resultobj;
29210 fail:
29211 return NULL;
29212 }
29213
29214
29215 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29216 PyObject *resultobj = 0;
29217 wxBrushList *arg1 = (wxBrushList *) 0 ;
29218 wxBrush *arg2 = (wxBrush *) 0 ;
29219 void *argp1 = 0 ;
29220 int res1 = 0 ;
29221 void *argp2 = 0 ;
29222 int res2 = 0 ;
29223 PyObject * obj0 = 0 ;
29224 PyObject * obj1 = 0 ;
29225 char * kwnames[] = {
29226 (char *) "self",(char *) "brush", NULL
29227 };
29228
29229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29231 if (!SWIG_IsOK(res1)) {
29232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29233 }
29234 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29236 if (!SWIG_IsOK(res2)) {
29237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29238 }
29239 arg2 = reinterpret_cast< wxBrush * >(argp2);
29240 {
29241 PyThreadState* __tstate = wxPyBeginAllowThreads();
29242 (arg1)->RemoveBrush(arg2);
29243 wxPyEndAllowThreads(__tstate);
29244 if (PyErr_Occurred()) SWIG_fail;
29245 }
29246 resultobj = SWIG_Py_Void();
29247 return resultobj;
29248 fail:
29249 return NULL;
29250 }
29251
29252
29253 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29254 PyObject *obj;
29255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29256 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
29257 return SWIG_Py_Void();
29258 }
29259
29260 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29261 PyObject *resultobj = 0;
29262 wxFontList *arg1 = (wxFontList *) 0 ;
29263 int arg2 ;
29264 int arg3 ;
29265 int arg4 ;
29266 int arg5 ;
29267 bool arg6 = (bool) false ;
29268 wxString const &arg7_defvalue = wxPyEmptyString ;
29269 wxString *arg7 = (wxString *) &arg7_defvalue ;
29270 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
29271 wxFont *result = 0 ;
29272 void *argp1 = 0 ;
29273 int res1 = 0 ;
29274 int val2 ;
29275 int ecode2 = 0 ;
29276 int val3 ;
29277 int ecode3 = 0 ;
29278 int val4 ;
29279 int ecode4 = 0 ;
29280 int val5 ;
29281 int ecode5 = 0 ;
29282 bool val6 ;
29283 int ecode6 = 0 ;
29284 bool temp7 = false ;
29285 int val8 ;
29286 int ecode8 = 0 ;
29287 PyObject * obj0 = 0 ;
29288 PyObject * obj1 = 0 ;
29289 PyObject * obj2 = 0 ;
29290 PyObject * obj3 = 0 ;
29291 PyObject * obj4 = 0 ;
29292 PyObject * obj5 = 0 ;
29293 PyObject * obj6 = 0 ;
29294 PyObject * obj7 = 0 ;
29295 char * kwnames[] = {
29296 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
29297 };
29298
29299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29301 if (!SWIG_IsOK(res1)) {
29302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29303 }
29304 arg1 = reinterpret_cast< wxFontList * >(argp1);
29305 ecode2 = SWIG_AsVal_int(obj1, &val2);
29306 if (!SWIG_IsOK(ecode2)) {
29307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29308 }
29309 arg2 = static_cast< int >(val2);
29310 ecode3 = SWIG_AsVal_int(obj2, &val3);
29311 if (!SWIG_IsOK(ecode3)) {
29312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29313 }
29314 arg3 = static_cast< int >(val3);
29315 ecode4 = SWIG_AsVal_int(obj3, &val4);
29316 if (!SWIG_IsOK(ecode4)) {
29317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29318 }
29319 arg4 = static_cast< int >(val4);
29320 ecode5 = SWIG_AsVal_int(obj4, &val5);
29321 if (!SWIG_IsOK(ecode5)) {
29322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29323 }
29324 arg5 = static_cast< int >(val5);
29325 if (obj5) {
29326 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29327 if (!SWIG_IsOK(ecode6)) {
29328 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29329 }
29330 arg6 = static_cast< bool >(val6);
29331 }
29332 if (obj6) {
29333 {
29334 arg7 = wxString_in_helper(obj6);
29335 if (arg7 == NULL) SWIG_fail;
29336 temp7 = true;
29337 }
29338 }
29339 if (obj7) {
29340 ecode8 = SWIG_AsVal_int(obj7, &val8);
29341 if (!SWIG_IsOK(ecode8)) {
29342 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
29343 }
29344 arg8 = static_cast< wxFontEncoding >(val8);
29345 }
29346 {
29347 PyThreadState* __tstate = wxPyBeginAllowThreads();
29348 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
29349 wxPyEndAllowThreads(__tstate);
29350 if (PyErr_Occurred()) SWIG_fail;
29351 }
29352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29353 {
29354 if (temp7)
29355 delete arg7;
29356 }
29357 return resultobj;
29358 fail:
29359 {
29360 if (temp7)
29361 delete arg7;
29362 }
29363 return NULL;
29364 }
29365
29366
29367 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29368 PyObject *resultobj = 0;
29369 wxFontList *arg1 = (wxFontList *) 0 ;
29370 wxFont *arg2 = (wxFont *) 0 ;
29371 void *argp1 = 0 ;
29372 int res1 = 0 ;
29373 void *argp2 = 0 ;
29374 int res2 = 0 ;
29375 PyObject * obj0 = 0 ;
29376 PyObject * obj1 = 0 ;
29377 char * kwnames[] = {
29378 (char *) "self",(char *) "font", NULL
29379 };
29380
29381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29383 if (!SWIG_IsOK(res1)) {
29384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29385 }
29386 arg1 = reinterpret_cast< wxFontList * >(argp1);
29387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29388 if (!SWIG_IsOK(res2)) {
29389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
29390 }
29391 arg2 = reinterpret_cast< wxFont * >(argp2);
29392 {
29393 PyThreadState* __tstate = wxPyBeginAllowThreads();
29394 (arg1)->AddFont(arg2);
29395 wxPyEndAllowThreads(__tstate);
29396 if (PyErr_Occurred()) SWIG_fail;
29397 }
29398 resultobj = SWIG_Py_Void();
29399 return resultobj;
29400 fail:
29401 return NULL;
29402 }
29403
29404
29405 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29406 PyObject *resultobj = 0;
29407 wxFontList *arg1 = (wxFontList *) 0 ;
29408 wxFont *arg2 = (wxFont *) 0 ;
29409 void *argp1 = 0 ;
29410 int res1 = 0 ;
29411 void *argp2 = 0 ;
29412 int res2 = 0 ;
29413 PyObject * obj0 = 0 ;
29414 PyObject * obj1 = 0 ;
29415 char * kwnames[] = {
29416 (char *) "self",(char *) "font", NULL
29417 };
29418
29419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29421 if (!SWIG_IsOK(res1)) {
29422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29423 }
29424 arg1 = reinterpret_cast< wxFontList * >(argp1);
29425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29426 if (!SWIG_IsOK(res2)) {
29427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29428 }
29429 arg2 = reinterpret_cast< wxFont * >(argp2);
29430 {
29431 PyThreadState* __tstate = wxPyBeginAllowThreads();
29432 (arg1)->RemoveFont(arg2);
29433 wxPyEndAllowThreads(__tstate);
29434 if (PyErr_Occurred()) SWIG_fail;
29435 }
29436 resultobj = SWIG_Py_Void();
29437 return resultobj;
29438 fail:
29439 return NULL;
29440 }
29441
29442
29443 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29444 PyObject *obj;
29445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29446 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
29447 return SWIG_Py_Void();
29448 }
29449
29450 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29451 PyObject *resultobj = 0;
29452 wxColourDatabase *result = 0 ;
29453
29454 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29455 {
29456 if (!wxPyCheckForApp()) SWIG_fail;
29457 PyThreadState* __tstate = wxPyBeginAllowThreads();
29458 result = (wxColourDatabase *)new wxColourDatabase();
29459 wxPyEndAllowThreads(__tstate);
29460 if (PyErr_Occurred()) SWIG_fail;
29461 }
29462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29463 return resultobj;
29464 fail:
29465 return NULL;
29466 }
29467
29468
29469 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29470 PyObject *resultobj = 0;
29471 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29472 void *argp1 = 0 ;
29473 int res1 = 0 ;
29474 PyObject *swig_obj[1] ;
29475
29476 if (!args) SWIG_fail;
29477 swig_obj[0] = args;
29478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29479 if (!SWIG_IsOK(res1)) {
29480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29481 }
29482 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29483 {
29484 PyThreadState* __tstate = wxPyBeginAllowThreads();
29485 delete arg1;
29486
29487 wxPyEndAllowThreads(__tstate);
29488 if (PyErr_Occurred()) SWIG_fail;
29489 }
29490 resultobj = SWIG_Py_Void();
29491 return resultobj;
29492 fail:
29493 return NULL;
29494 }
29495
29496
29497 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29498 PyObject *resultobj = 0;
29499 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29500 wxString *arg2 = 0 ;
29501 wxColour result;
29502 void *argp1 = 0 ;
29503 int res1 = 0 ;
29504 bool temp2 = false ;
29505 PyObject * obj0 = 0 ;
29506 PyObject * obj1 = 0 ;
29507 char * kwnames[] = {
29508 (char *) "self",(char *) "name", NULL
29509 };
29510
29511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29513 if (!SWIG_IsOK(res1)) {
29514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29515 }
29516 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29517 {
29518 arg2 = wxString_in_helper(obj1);
29519 if (arg2 == NULL) SWIG_fail;
29520 temp2 = true;
29521 }
29522 {
29523 PyThreadState* __tstate = wxPyBeginAllowThreads();
29524 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29525 wxPyEndAllowThreads(__tstate);
29526 if (PyErr_Occurred()) SWIG_fail;
29527 }
29528 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29529 {
29530 if (temp2)
29531 delete arg2;
29532 }
29533 return resultobj;
29534 fail:
29535 {
29536 if (temp2)
29537 delete arg2;
29538 }
29539 return NULL;
29540 }
29541
29542
29543 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29544 PyObject *resultobj = 0;
29545 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29546 wxColour *arg2 = 0 ;
29547 wxString result;
29548 void *argp1 = 0 ;
29549 int res1 = 0 ;
29550 wxColour temp2 ;
29551 PyObject * obj0 = 0 ;
29552 PyObject * obj1 = 0 ;
29553 char * kwnames[] = {
29554 (char *) "self",(char *) "colour", NULL
29555 };
29556
29557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29559 if (!SWIG_IsOK(res1)) {
29560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29561 }
29562 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29563 {
29564 arg2 = &temp2;
29565 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29566 }
29567 {
29568 PyThreadState* __tstate = wxPyBeginAllowThreads();
29569 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29570 wxPyEndAllowThreads(__tstate);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
29573 {
29574 #if wxUSE_UNICODE
29575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29576 #else
29577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29578 #endif
29579 }
29580 return resultobj;
29581 fail:
29582 return NULL;
29583 }
29584
29585
29586 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj = 0;
29588 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29589 wxString *arg2 = 0 ;
29590 wxColour *arg3 = 0 ;
29591 void *argp1 = 0 ;
29592 int res1 = 0 ;
29593 bool temp2 = false ;
29594 wxColour temp3 ;
29595 PyObject * obj0 = 0 ;
29596 PyObject * obj1 = 0 ;
29597 PyObject * obj2 = 0 ;
29598 char * kwnames[] = {
29599 (char *) "self",(char *) "name",(char *) "colour", NULL
29600 };
29601
29602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29604 if (!SWIG_IsOK(res1)) {
29605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29606 }
29607 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29608 {
29609 arg2 = wxString_in_helper(obj1);
29610 if (arg2 == NULL) SWIG_fail;
29611 temp2 = true;
29612 }
29613 {
29614 arg3 = &temp3;
29615 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29616 }
29617 {
29618 PyThreadState* __tstate = wxPyBeginAllowThreads();
29619 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29620 wxPyEndAllowThreads(__tstate);
29621 if (PyErr_Occurred()) SWIG_fail;
29622 }
29623 resultobj = SWIG_Py_Void();
29624 {
29625 if (temp2)
29626 delete arg2;
29627 }
29628 return resultobj;
29629 fail:
29630 {
29631 if (temp2)
29632 delete arg2;
29633 }
29634 return NULL;
29635 }
29636
29637
29638 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29639 PyObject *resultobj = 0;
29640 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29641 wxString *arg2 = 0 ;
29642 int arg3 ;
29643 int arg4 ;
29644 int arg5 ;
29645 void *argp1 = 0 ;
29646 int res1 = 0 ;
29647 bool temp2 = false ;
29648 int val3 ;
29649 int ecode3 = 0 ;
29650 int val4 ;
29651 int ecode4 = 0 ;
29652 int val5 ;
29653 int ecode5 = 0 ;
29654 PyObject * obj0 = 0 ;
29655 PyObject * obj1 = 0 ;
29656 PyObject * obj2 = 0 ;
29657 PyObject * obj3 = 0 ;
29658 PyObject * obj4 = 0 ;
29659 char * kwnames[] = {
29660 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29661 };
29662
29663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29665 if (!SWIG_IsOK(res1)) {
29666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29667 }
29668 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29669 {
29670 arg2 = wxString_in_helper(obj1);
29671 if (arg2 == NULL) SWIG_fail;
29672 temp2 = true;
29673 }
29674 ecode3 = SWIG_AsVal_int(obj2, &val3);
29675 if (!SWIG_IsOK(ecode3)) {
29676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29677 }
29678 arg3 = static_cast< int >(val3);
29679 ecode4 = SWIG_AsVal_int(obj3, &val4);
29680 if (!SWIG_IsOK(ecode4)) {
29681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29682 }
29683 arg4 = static_cast< int >(val4);
29684 ecode5 = SWIG_AsVal_int(obj4, &val5);
29685 if (!SWIG_IsOK(ecode5)) {
29686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29687 }
29688 arg5 = static_cast< int >(val5);
29689 {
29690 PyThreadState* __tstate = wxPyBeginAllowThreads();
29691 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29692 wxPyEndAllowThreads(__tstate);
29693 if (PyErr_Occurred()) SWIG_fail;
29694 }
29695 resultobj = SWIG_Py_Void();
29696 {
29697 if (temp2)
29698 delete arg2;
29699 }
29700 return resultobj;
29701 fail:
29702 {
29703 if (temp2)
29704 delete arg2;
29705 }
29706 return NULL;
29707 }
29708
29709
29710 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29711 PyObject *obj;
29712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29713 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29714 return SWIG_Py_Void();
29715 }
29716
29717 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29718 return SWIG_Python_InitShadowInstance(args);
29719 }
29720
29721 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29722 PyObject *resultobj = 0;
29723 wxFontList *result = 0 ;
29724
29725 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29726 {
29727 PyThreadState* __tstate = wxPyBeginAllowThreads();
29728 result = (wxFontList *)_wxPyInitTheFontList();
29729 wxPyEndAllowThreads(__tstate);
29730 if (PyErr_Occurred()) SWIG_fail;
29731 }
29732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29733 return resultobj;
29734 fail:
29735 return NULL;
29736 }
29737
29738
29739 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29740 PyObject *resultobj = 0;
29741 wxPenList *result = 0 ;
29742
29743 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29744 {
29745 PyThreadState* __tstate = wxPyBeginAllowThreads();
29746 result = (wxPenList *)_wxPyInitThePenList();
29747 wxPyEndAllowThreads(__tstate);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29751 return resultobj;
29752 fail:
29753 return NULL;
29754 }
29755
29756
29757 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29758 PyObject *resultobj = 0;
29759 wxBrushList *result = 0 ;
29760
29761 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29762 {
29763 PyThreadState* __tstate = wxPyBeginAllowThreads();
29764 result = (wxBrushList *)_wxPyInitTheBrushList();
29765 wxPyEndAllowThreads(__tstate);
29766 if (PyErr_Occurred()) SWIG_fail;
29767 }
29768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29769 return resultobj;
29770 fail:
29771 return NULL;
29772 }
29773
29774
29775 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29776 PyObject *resultobj = 0;
29777 wxColourDatabase *result = 0 ;
29778
29779 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29780 {
29781 PyThreadState* __tstate = wxPyBeginAllowThreads();
29782 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29783 wxPyEndAllowThreads(__tstate);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29787 return resultobj;
29788 fail:
29789 return NULL;
29790 }
29791
29792
29793 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29794 PyObject *resultobj = 0;
29795 wxEffects *result = 0 ;
29796
29797 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29798 {
29799 PyThreadState* __tstate = wxPyBeginAllowThreads();
29800 result = (wxEffects *)new wxEffects();
29801 wxPyEndAllowThreads(__tstate);
29802 if (PyErr_Occurred()) SWIG_fail;
29803 }
29804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29805 return resultobj;
29806 fail:
29807 return NULL;
29808 }
29809
29810
29811 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29812 PyObject *resultobj = 0;
29813 wxEffects *arg1 = (wxEffects *) 0 ;
29814 wxColour result;
29815 void *argp1 = 0 ;
29816 int res1 = 0 ;
29817 PyObject *swig_obj[1] ;
29818
29819 if (!args) SWIG_fail;
29820 swig_obj[0] = args;
29821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29822 if (!SWIG_IsOK(res1)) {
29823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29824 }
29825 arg1 = reinterpret_cast< wxEffects * >(argp1);
29826 {
29827 PyThreadState* __tstate = wxPyBeginAllowThreads();
29828 result = ((wxEffects const *)arg1)->GetHighlightColour();
29829 wxPyEndAllowThreads(__tstate);
29830 if (PyErr_Occurred()) SWIG_fail;
29831 }
29832 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29833 return resultobj;
29834 fail:
29835 return NULL;
29836 }
29837
29838
29839 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29840 PyObject *resultobj = 0;
29841 wxEffects *arg1 = (wxEffects *) 0 ;
29842 wxColour result;
29843 void *argp1 = 0 ;
29844 int res1 = 0 ;
29845 PyObject *swig_obj[1] ;
29846
29847 if (!args) SWIG_fail;
29848 swig_obj[0] = args;
29849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29850 if (!SWIG_IsOK(res1)) {
29851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29852 }
29853 arg1 = reinterpret_cast< wxEffects * >(argp1);
29854 {
29855 PyThreadState* __tstate = wxPyBeginAllowThreads();
29856 result = ((wxEffects const *)arg1)->GetLightShadow();
29857 wxPyEndAllowThreads(__tstate);
29858 if (PyErr_Occurred()) SWIG_fail;
29859 }
29860 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29861 return resultobj;
29862 fail:
29863 return NULL;
29864 }
29865
29866
29867 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29868 PyObject *resultobj = 0;
29869 wxEffects *arg1 = (wxEffects *) 0 ;
29870 wxColour result;
29871 void *argp1 = 0 ;
29872 int res1 = 0 ;
29873 PyObject *swig_obj[1] ;
29874
29875 if (!args) SWIG_fail;
29876 swig_obj[0] = args;
29877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29878 if (!SWIG_IsOK(res1)) {
29879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29880 }
29881 arg1 = reinterpret_cast< wxEffects * >(argp1);
29882 {
29883 PyThreadState* __tstate = wxPyBeginAllowThreads();
29884 result = ((wxEffects const *)arg1)->GetFaceColour();
29885 wxPyEndAllowThreads(__tstate);
29886 if (PyErr_Occurred()) SWIG_fail;
29887 }
29888 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29889 return resultobj;
29890 fail:
29891 return NULL;
29892 }
29893
29894
29895 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29896 PyObject *resultobj = 0;
29897 wxEffects *arg1 = (wxEffects *) 0 ;
29898 wxColour result;
29899 void *argp1 = 0 ;
29900 int res1 = 0 ;
29901 PyObject *swig_obj[1] ;
29902
29903 if (!args) SWIG_fail;
29904 swig_obj[0] = args;
29905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29906 if (!SWIG_IsOK(res1)) {
29907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29908 }
29909 arg1 = reinterpret_cast< wxEffects * >(argp1);
29910 {
29911 PyThreadState* __tstate = wxPyBeginAllowThreads();
29912 result = ((wxEffects const *)arg1)->GetMediumShadow();
29913 wxPyEndAllowThreads(__tstate);
29914 if (PyErr_Occurred()) SWIG_fail;
29915 }
29916 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29917 return resultobj;
29918 fail:
29919 return NULL;
29920 }
29921
29922
29923 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29924 PyObject *resultobj = 0;
29925 wxEffects *arg1 = (wxEffects *) 0 ;
29926 wxColour result;
29927 void *argp1 = 0 ;
29928 int res1 = 0 ;
29929 PyObject *swig_obj[1] ;
29930
29931 if (!args) SWIG_fail;
29932 swig_obj[0] = args;
29933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29934 if (!SWIG_IsOK(res1)) {
29935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29936 }
29937 arg1 = reinterpret_cast< wxEffects * >(argp1);
29938 {
29939 PyThreadState* __tstate = wxPyBeginAllowThreads();
29940 result = ((wxEffects const *)arg1)->GetDarkShadow();
29941 wxPyEndAllowThreads(__tstate);
29942 if (PyErr_Occurred()) SWIG_fail;
29943 }
29944 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29945 return resultobj;
29946 fail:
29947 return NULL;
29948 }
29949
29950
29951 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29952 PyObject *resultobj = 0;
29953 wxEffects *arg1 = (wxEffects *) 0 ;
29954 wxColour *arg2 = 0 ;
29955 void *argp1 = 0 ;
29956 int res1 = 0 ;
29957 wxColour temp2 ;
29958 PyObject * obj0 = 0 ;
29959 PyObject * obj1 = 0 ;
29960 char * kwnames[] = {
29961 (char *) "self",(char *) "c", NULL
29962 };
29963
29964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29966 if (!SWIG_IsOK(res1)) {
29967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29968 }
29969 arg1 = reinterpret_cast< wxEffects * >(argp1);
29970 {
29971 arg2 = &temp2;
29972 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29973 }
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 resultobj = SWIG_Py_Void();
29981 return resultobj;
29982 fail:
29983 return NULL;
29984 }
29985
29986
29987 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29988 PyObject *resultobj = 0;
29989 wxEffects *arg1 = (wxEffects *) 0 ;
29990 wxColour *arg2 = 0 ;
29991 void *argp1 = 0 ;
29992 int res1 = 0 ;
29993 wxColour temp2 ;
29994 PyObject * obj0 = 0 ;
29995 PyObject * obj1 = 0 ;
29996 char * kwnames[] = {
29997 (char *) "self",(char *) "c", NULL
29998 };
29999
30000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30002 if (!SWIG_IsOK(res1)) {
30003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30004 }
30005 arg1 = reinterpret_cast< wxEffects * >(argp1);
30006 {
30007 arg2 = &temp2;
30008 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30009 }
30010 {
30011 PyThreadState* __tstate = wxPyBeginAllowThreads();
30012 (arg1)->SetLightShadow((wxColour const &)*arg2);
30013 wxPyEndAllowThreads(__tstate);
30014 if (PyErr_Occurred()) SWIG_fail;
30015 }
30016 resultobj = SWIG_Py_Void();
30017 return resultobj;
30018 fail:
30019 return NULL;
30020 }
30021
30022
30023 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30024 PyObject *resultobj = 0;
30025 wxEffects *arg1 = (wxEffects *) 0 ;
30026 wxColour *arg2 = 0 ;
30027 void *argp1 = 0 ;
30028 int res1 = 0 ;
30029 wxColour temp2 ;
30030 PyObject * obj0 = 0 ;
30031 PyObject * obj1 = 0 ;
30032 char * kwnames[] = {
30033 (char *) "self",(char *) "c", NULL
30034 };
30035
30036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
30037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30038 if (!SWIG_IsOK(res1)) {
30039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
30040 }
30041 arg1 = reinterpret_cast< wxEffects * >(argp1);
30042 {
30043 arg2 = &temp2;
30044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30045 }
30046 {
30047 PyThreadState* __tstate = wxPyBeginAllowThreads();
30048 (arg1)->SetFaceColour((wxColour const &)*arg2);
30049 wxPyEndAllowThreads(__tstate);
30050 if (PyErr_Occurred()) SWIG_fail;
30051 }
30052 resultobj = SWIG_Py_Void();
30053 return resultobj;
30054 fail:
30055 return NULL;
30056 }
30057
30058
30059 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30060 PyObject *resultobj = 0;
30061 wxEffects *arg1 = (wxEffects *) 0 ;
30062 wxColour *arg2 = 0 ;
30063 void *argp1 = 0 ;
30064 int res1 = 0 ;
30065 wxColour temp2 ;
30066 PyObject * obj0 = 0 ;
30067 PyObject * obj1 = 0 ;
30068 char * kwnames[] = {
30069 (char *) "self",(char *) "c", NULL
30070 };
30071
30072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30074 if (!SWIG_IsOK(res1)) {
30075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30076 }
30077 arg1 = reinterpret_cast< wxEffects * >(argp1);
30078 {
30079 arg2 = &temp2;
30080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30081 }
30082 {
30083 PyThreadState* __tstate = wxPyBeginAllowThreads();
30084 (arg1)->SetMediumShadow((wxColour const &)*arg2);
30085 wxPyEndAllowThreads(__tstate);
30086 if (PyErr_Occurred()) SWIG_fail;
30087 }
30088 resultobj = SWIG_Py_Void();
30089 return resultobj;
30090 fail:
30091 return NULL;
30092 }
30093
30094
30095 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30096 PyObject *resultobj = 0;
30097 wxEffects *arg1 = (wxEffects *) 0 ;
30098 wxColour *arg2 = 0 ;
30099 void *argp1 = 0 ;
30100 int res1 = 0 ;
30101 wxColour temp2 ;
30102 PyObject * obj0 = 0 ;
30103 PyObject * obj1 = 0 ;
30104 char * kwnames[] = {
30105 (char *) "self",(char *) "c", NULL
30106 };
30107
30108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30110 if (!SWIG_IsOK(res1)) {
30111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30112 }
30113 arg1 = reinterpret_cast< wxEffects * >(argp1);
30114 {
30115 arg2 = &temp2;
30116 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30117 }
30118 {
30119 PyThreadState* __tstate = wxPyBeginAllowThreads();
30120 (arg1)->SetDarkShadow((wxColour const &)*arg2);
30121 wxPyEndAllowThreads(__tstate);
30122 if (PyErr_Occurred()) SWIG_fail;
30123 }
30124 resultobj = SWIG_Py_Void();
30125 return resultobj;
30126 fail:
30127 return NULL;
30128 }
30129
30130
30131 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30132 PyObject *resultobj = 0;
30133 wxEffects *arg1 = (wxEffects *) 0 ;
30134 wxColour *arg2 = 0 ;
30135 wxColour *arg3 = 0 ;
30136 wxColour *arg4 = 0 ;
30137 wxColour *arg5 = 0 ;
30138 wxColour *arg6 = 0 ;
30139 void *argp1 = 0 ;
30140 int res1 = 0 ;
30141 wxColour temp2 ;
30142 wxColour temp3 ;
30143 wxColour temp4 ;
30144 wxColour temp5 ;
30145 wxColour temp6 ;
30146 PyObject * obj0 = 0 ;
30147 PyObject * obj1 = 0 ;
30148 PyObject * obj2 = 0 ;
30149 PyObject * obj3 = 0 ;
30150 PyObject * obj4 = 0 ;
30151 PyObject * obj5 = 0 ;
30152 char * kwnames[] = {
30153 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
30154 };
30155
30156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30158 if (!SWIG_IsOK(res1)) {
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
30160 }
30161 arg1 = reinterpret_cast< wxEffects * >(argp1);
30162 {
30163 arg2 = &temp2;
30164 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30165 }
30166 {
30167 arg3 = &temp3;
30168 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30169 }
30170 {
30171 arg4 = &temp4;
30172 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
30173 }
30174 {
30175 arg5 = &temp5;
30176 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
30177 }
30178 {
30179 arg6 = &temp6;
30180 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30181 }
30182 {
30183 PyThreadState* __tstate = wxPyBeginAllowThreads();
30184 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
30185 wxPyEndAllowThreads(__tstate);
30186 if (PyErr_Occurred()) SWIG_fail;
30187 }
30188 resultobj = SWIG_Py_Void();
30189 return resultobj;
30190 fail:
30191 return NULL;
30192 }
30193
30194
30195 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30196 PyObject *resultobj = 0;
30197 wxEffects *arg1 = (wxEffects *) 0 ;
30198 wxDC *arg2 = 0 ;
30199 wxRect *arg3 = 0 ;
30200 int arg4 = (int) 1 ;
30201 void *argp1 = 0 ;
30202 int res1 = 0 ;
30203 void *argp2 = 0 ;
30204 int res2 = 0 ;
30205 wxRect temp3 ;
30206 int val4 ;
30207 int ecode4 = 0 ;
30208 PyObject * obj0 = 0 ;
30209 PyObject * obj1 = 0 ;
30210 PyObject * obj2 = 0 ;
30211 PyObject * obj3 = 0 ;
30212 char * kwnames[] = {
30213 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
30214 };
30215
30216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30218 if (!SWIG_IsOK(res1)) {
30219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
30220 }
30221 arg1 = reinterpret_cast< wxEffects * >(argp1);
30222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
30223 if (!SWIG_IsOK(res2)) {
30224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30225 }
30226 if (!argp2) {
30227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30228 }
30229 arg2 = reinterpret_cast< wxDC * >(argp2);
30230 {
30231 arg3 = &temp3;
30232 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30233 }
30234 if (obj3) {
30235 ecode4 = SWIG_AsVal_int(obj3, &val4);
30236 if (!SWIG_IsOK(ecode4)) {
30237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
30238 }
30239 arg4 = static_cast< int >(val4);
30240 }
30241 {
30242 PyThreadState* __tstate = wxPyBeginAllowThreads();
30243 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
30244 wxPyEndAllowThreads(__tstate);
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 resultobj = SWIG_Py_Void();
30248 return resultobj;
30249 fail:
30250 return NULL;
30251 }
30252
30253
30254 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30255 PyObject *resultobj = 0;
30256 wxEffects *arg1 = (wxEffects *) 0 ;
30257 wxRect *arg2 = 0 ;
30258 wxDC *arg3 = 0 ;
30259 wxBitmap *arg4 = 0 ;
30260 bool result;
30261 void *argp1 = 0 ;
30262 int res1 = 0 ;
30263 wxRect temp2 ;
30264 void *argp3 = 0 ;
30265 int res3 = 0 ;
30266 void *argp4 = 0 ;
30267 int res4 = 0 ;
30268 PyObject * obj0 = 0 ;
30269 PyObject * obj1 = 0 ;
30270 PyObject * obj2 = 0 ;
30271 PyObject * obj3 = 0 ;
30272 char * kwnames[] = {
30273 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
30274 };
30275
30276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30278 if (!SWIG_IsOK(res1)) {
30279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30280 }
30281 arg1 = reinterpret_cast< wxEffects * >(argp1);
30282 {
30283 arg2 = &temp2;
30284 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30285 }
30286 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30287 if (!SWIG_IsOK(res3)) {
30288 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30289 }
30290 if (!argp3) {
30291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30292 }
30293 arg3 = reinterpret_cast< wxDC * >(argp3);
30294 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30295 if (!SWIG_IsOK(res4)) {
30296 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30297 }
30298 if (!argp4) {
30299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30300 }
30301 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30302 {
30303 PyThreadState* __tstate = wxPyBeginAllowThreads();
30304 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30305 wxPyEndAllowThreads(__tstate);
30306 if (PyErr_Occurred()) SWIG_fail;
30307 }
30308 {
30309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30310 }
30311 return resultobj;
30312 fail:
30313 return NULL;
30314 }
30315
30316
30317 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30318 PyObject *obj;
30319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30320 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30321 return SWIG_Py_Void();
30322 }
30323
30324 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30325 return SWIG_Python_InitShadowInstance(args);
30326 }
30327
30328 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30329 PyObject *resultobj = 0;
30330 int arg1 ;
30331 int arg2 ;
30332 bool arg3 ;
30333 wxSplitterRenderParams *result = 0 ;
30334 int val1 ;
30335 int ecode1 = 0 ;
30336 int val2 ;
30337 int ecode2 = 0 ;
30338 bool val3 ;
30339 int ecode3 = 0 ;
30340 PyObject * obj0 = 0 ;
30341 PyObject * obj1 = 0 ;
30342 PyObject * obj2 = 0 ;
30343 char * kwnames[] = {
30344 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30345 };
30346
30347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30348 ecode1 = SWIG_AsVal_int(obj0, &val1);
30349 if (!SWIG_IsOK(ecode1)) {
30350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30351 }
30352 arg1 = static_cast< int >(val1);
30353 ecode2 = SWIG_AsVal_int(obj1, &val2);
30354 if (!SWIG_IsOK(ecode2)) {
30355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30356 }
30357 arg2 = static_cast< int >(val2);
30358 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30359 if (!SWIG_IsOK(ecode3)) {
30360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30361 }
30362 arg3 = static_cast< bool >(val3);
30363 {
30364 PyThreadState* __tstate = wxPyBeginAllowThreads();
30365 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30366 wxPyEndAllowThreads(__tstate);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30370 return resultobj;
30371 fail:
30372 return NULL;
30373 }
30374
30375
30376 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30377 PyObject *resultobj = 0;
30378 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30379 void *argp1 = 0 ;
30380 int res1 = 0 ;
30381 PyObject *swig_obj[1] ;
30382
30383 if (!args) SWIG_fail;
30384 swig_obj[0] = args;
30385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30386 if (!SWIG_IsOK(res1)) {
30387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30388 }
30389 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30390 {
30391 PyThreadState* __tstate = wxPyBeginAllowThreads();
30392 delete arg1;
30393
30394 wxPyEndAllowThreads(__tstate);
30395 if (PyErr_Occurred()) SWIG_fail;
30396 }
30397 resultobj = SWIG_Py_Void();
30398 return resultobj;
30399 fail:
30400 return NULL;
30401 }
30402
30403
30404 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30405 PyObject *resultobj = 0;
30406 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30407 int result;
30408 void *argp1 = 0 ;
30409 int res1 = 0 ;
30410 PyObject *swig_obj[1] ;
30411
30412 if (!args) SWIG_fail;
30413 swig_obj[0] = args;
30414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30415 if (!SWIG_IsOK(res1)) {
30416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30417 }
30418 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30419 result = (int)(int) ((arg1)->widthSash);
30420 resultobj = SWIG_From_int(static_cast< int >(result));
30421 return resultobj;
30422 fail:
30423 return NULL;
30424 }
30425
30426
30427 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30428 PyObject *resultobj = 0;
30429 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30430 int result;
30431 void *argp1 = 0 ;
30432 int res1 = 0 ;
30433 PyObject *swig_obj[1] ;
30434
30435 if (!args) SWIG_fail;
30436 swig_obj[0] = args;
30437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30438 if (!SWIG_IsOK(res1)) {
30439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30440 }
30441 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30442 result = (int)(int) ((arg1)->border);
30443 resultobj = SWIG_From_int(static_cast< int >(result));
30444 return resultobj;
30445 fail:
30446 return NULL;
30447 }
30448
30449
30450 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30451 PyObject *resultobj = 0;
30452 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30453 bool result;
30454 void *argp1 = 0 ;
30455 int res1 = 0 ;
30456 PyObject *swig_obj[1] ;
30457
30458 if (!args) SWIG_fail;
30459 swig_obj[0] = args;
30460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30461 if (!SWIG_IsOK(res1)) {
30462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30463 }
30464 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30465 result = (bool)(bool) ((arg1)->isHotSensitive);
30466 resultobj = SWIG_From_bool(static_cast< bool >(result));
30467 return resultobj;
30468 fail:
30469 return NULL;
30470 }
30471
30472
30473 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30474 PyObject *obj;
30475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30476 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30477 return SWIG_Py_Void();
30478 }
30479
30480 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30481 return SWIG_Python_InitShadowInstance(args);
30482 }
30483
30484 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30485 PyObject *resultobj = 0;
30486 wxHeaderButtonParams *result = 0 ;
30487
30488 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30489 {
30490 PyThreadState* __tstate = wxPyBeginAllowThreads();
30491 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30492 wxPyEndAllowThreads(__tstate);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30496 return resultobj;
30497 fail:
30498 return NULL;
30499 }
30500
30501
30502 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30503 PyObject *resultobj = 0;
30504 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 PyObject *swig_obj[1] ;
30508
30509 if (!args) SWIG_fail;
30510 swig_obj[0] = args;
30511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30512 if (!SWIG_IsOK(res1)) {
30513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30514 }
30515 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30516 {
30517 PyThreadState* __tstate = wxPyBeginAllowThreads();
30518 delete arg1;
30519
30520 wxPyEndAllowThreads(__tstate);
30521 if (PyErr_Occurred()) SWIG_fail;
30522 }
30523 resultobj = SWIG_Py_Void();
30524 return resultobj;
30525 fail:
30526 return NULL;
30527 }
30528
30529
30530 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30531 PyObject *resultobj = 0;
30532 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30533 wxColour *arg2 = (wxColour *) 0 ;
30534 void *argp1 = 0 ;
30535 int res1 = 0 ;
30536 wxColour temp2 ;
30537 PyObject *swig_obj[2] ;
30538
30539 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30541 if (!SWIG_IsOK(res1)) {
30542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30543 }
30544 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30545 {
30546 arg2 = &temp2;
30547 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30548 }
30549 if (arg1) (arg1)->m_arrowColour = *arg2;
30550
30551 resultobj = SWIG_Py_Void();
30552 return resultobj;
30553 fail:
30554 return NULL;
30555 }
30556
30557
30558 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30559 PyObject *resultobj = 0;
30560 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30561 wxColour *result = 0 ;
30562 void *argp1 = 0 ;
30563 int res1 = 0 ;
30564 PyObject *swig_obj[1] ;
30565
30566 if (!args) SWIG_fail;
30567 swig_obj[0] = args;
30568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30569 if (!SWIG_IsOK(res1)) {
30570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30571 }
30572 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30573 result = (wxColour *)& ((arg1)->m_arrowColour);
30574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30575 return resultobj;
30576 fail:
30577 return NULL;
30578 }
30579
30580
30581 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30582 PyObject *resultobj = 0;
30583 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30584 wxColour *arg2 = (wxColour *) 0 ;
30585 void *argp1 = 0 ;
30586 int res1 = 0 ;
30587 wxColour temp2 ;
30588 PyObject *swig_obj[2] ;
30589
30590 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30592 if (!SWIG_IsOK(res1)) {
30593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30594 }
30595 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30596 {
30597 arg2 = &temp2;
30598 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30599 }
30600 if (arg1) (arg1)->m_selectionColour = *arg2;
30601
30602 resultobj = SWIG_Py_Void();
30603 return resultobj;
30604 fail:
30605 return NULL;
30606 }
30607
30608
30609 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30610 PyObject *resultobj = 0;
30611 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30612 wxColour *result = 0 ;
30613 void *argp1 = 0 ;
30614 int res1 = 0 ;
30615 PyObject *swig_obj[1] ;
30616
30617 if (!args) SWIG_fail;
30618 swig_obj[0] = args;
30619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30620 if (!SWIG_IsOK(res1)) {
30621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30622 }
30623 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30624 result = (wxColour *)& ((arg1)->m_selectionColour);
30625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30626 return resultobj;
30627 fail:
30628 return NULL;
30629 }
30630
30631
30632 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30633 PyObject *resultobj = 0;
30634 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30635 wxString *arg2 = (wxString *) 0 ;
30636 void *argp1 = 0 ;
30637 int res1 = 0 ;
30638 bool temp2 = false ;
30639 PyObject *swig_obj[2] ;
30640
30641 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30643 if (!SWIG_IsOK(res1)) {
30644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30645 }
30646 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30647 {
30648 arg2 = wxString_in_helper(swig_obj[1]);
30649 if (arg2 == NULL) SWIG_fail;
30650 temp2 = true;
30651 }
30652 if (arg1) (arg1)->m_labelText = *arg2;
30653
30654 resultobj = SWIG_Py_Void();
30655 {
30656 if (temp2)
30657 delete arg2;
30658 }
30659 return resultobj;
30660 fail:
30661 {
30662 if (temp2)
30663 delete arg2;
30664 }
30665 return NULL;
30666 }
30667
30668
30669 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30670 PyObject *resultobj = 0;
30671 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30672 wxString *result = 0 ;
30673 void *argp1 = 0 ;
30674 int res1 = 0 ;
30675 PyObject *swig_obj[1] ;
30676
30677 if (!args) SWIG_fail;
30678 swig_obj[0] = args;
30679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30680 if (!SWIG_IsOK(res1)) {
30681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30682 }
30683 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30684 result = (wxString *)& ((arg1)->m_labelText);
30685 {
30686 #if wxUSE_UNICODE
30687 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30688 #else
30689 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30690 #endif
30691 }
30692 return resultobj;
30693 fail:
30694 return NULL;
30695 }
30696
30697
30698 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30699 PyObject *resultobj = 0;
30700 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30701 wxFont *arg2 = (wxFont *) 0 ;
30702 void *argp1 = 0 ;
30703 int res1 = 0 ;
30704 void *argp2 = 0 ;
30705 int res2 = 0 ;
30706 PyObject *swig_obj[2] ;
30707
30708 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30710 if (!SWIG_IsOK(res1)) {
30711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30712 }
30713 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30714 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30715 if (!SWIG_IsOK(res2)) {
30716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30717 }
30718 arg2 = reinterpret_cast< wxFont * >(argp2);
30719 if (arg1) (arg1)->m_labelFont = *arg2;
30720
30721 resultobj = SWIG_Py_Void();
30722 return resultobj;
30723 fail:
30724 return NULL;
30725 }
30726
30727
30728 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30729 PyObject *resultobj = 0;
30730 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30731 wxFont *result = 0 ;
30732 void *argp1 = 0 ;
30733 int res1 = 0 ;
30734 PyObject *swig_obj[1] ;
30735
30736 if (!args) SWIG_fail;
30737 swig_obj[0] = args;
30738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30739 if (!SWIG_IsOK(res1)) {
30740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30741 }
30742 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30743 result = (wxFont *)& ((arg1)->m_labelFont);
30744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30745 return resultobj;
30746 fail:
30747 return NULL;
30748 }
30749
30750
30751 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30752 PyObject *resultobj = 0;
30753 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30754 wxColour *arg2 = (wxColour *) 0 ;
30755 void *argp1 = 0 ;
30756 int res1 = 0 ;
30757 wxColour temp2 ;
30758 PyObject *swig_obj[2] ;
30759
30760 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30762 if (!SWIG_IsOK(res1)) {
30763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30764 }
30765 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30766 {
30767 arg2 = &temp2;
30768 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30769 }
30770 if (arg1) (arg1)->m_labelColour = *arg2;
30771
30772 resultobj = SWIG_Py_Void();
30773 return resultobj;
30774 fail:
30775 return NULL;
30776 }
30777
30778
30779 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30780 PyObject *resultobj = 0;
30781 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30782 wxColour *result = 0 ;
30783 void *argp1 = 0 ;
30784 int res1 = 0 ;
30785 PyObject *swig_obj[1] ;
30786
30787 if (!args) SWIG_fail;
30788 swig_obj[0] = args;
30789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30790 if (!SWIG_IsOK(res1)) {
30791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30792 }
30793 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30794 result = (wxColour *)& ((arg1)->m_labelColour);
30795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30796 return resultobj;
30797 fail:
30798 return NULL;
30799 }
30800
30801
30802 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30803 PyObject *resultobj = 0;
30804 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30805 wxBitmap *arg2 = (wxBitmap *) 0 ;
30806 void *argp1 = 0 ;
30807 int res1 = 0 ;
30808 void *argp2 = 0 ;
30809 int res2 = 0 ;
30810 PyObject *swig_obj[2] ;
30811
30812 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30814 if (!SWIG_IsOK(res1)) {
30815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30816 }
30817 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30818 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30819 if (!SWIG_IsOK(res2)) {
30820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30821 }
30822 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30823 if (arg1) (arg1)->m_labelBitmap = *arg2;
30824
30825 resultobj = SWIG_Py_Void();
30826 return resultobj;
30827 fail:
30828 return NULL;
30829 }
30830
30831
30832 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30833 PyObject *resultobj = 0;
30834 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30835 wxBitmap *result = 0 ;
30836 void *argp1 = 0 ;
30837 int res1 = 0 ;
30838 PyObject *swig_obj[1] ;
30839
30840 if (!args) SWIG_fail;
30841 swig_obj[0] = args;
30842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30843 if (!SWIG_IsOK(res1)) {
30844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30845 }
30846 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30847 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30849 return resultobj;
30850 fail:
30851 return NULL;
30852 }
30853
30854
30855 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30856 PyObject *resultobj = 0;
30857 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30858 int arg2 ;
30859 void *argp1 = 0 ;
30860 int res1 = 0 ;
30861 int val2 ;
30862 int ecode2 = 0 ;
30863 PyObject *swig_obj[2] ;
30864
30865 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30867 if (!SWIG_IsOK(res1)) {
30868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30869 }
30870 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30871 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30872 if (!SWIG_IsOK(ecode2)) {
30873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30874 }
30875 arg2 = static_cast< int >(val2);
30876 if (arg1) (arg1)->m_labelAlignment = arg2;
30877
30878 resultobj = SWIG_Py_Void();
30879 return resultobj;
30880 fail:
30881 return NULL;
30882 }
30883
30884
30885 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30886 PyObject *resultobj = 0;
30887 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30888 int result;
30889 void *argp1 = 0 ;
30890 int res1 = 0 ;
30891 PyObject *swig_obj[1] ;
30892
30893 if (!args) SWIG_fail;
30894 swig_obj[0] = args;
30895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30896 if (!SWIG_IsOK(res1)) {
30897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30898 }
30899 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30900 result = (int) ((arg1)->m_labelAlignment);
30901 resultobj = SWIG_From_int(static_cast< int >(result));
30902 return resultobj;
30903 fail:
30904 return NULL;
30905 }
30906
30907
30908 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30909 PyObject *obj;
30910 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30911 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30912 return SWIG_Py_Void();
30913 }
30914
30915 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30916 return SWIG_Python_InitShadowInstance(args);
30917 }
30918
30919 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30920 PyObject *resultobj = 0;
30921 int arg1 ;
30922 int arg2 ;
30923 wxRendererVersion *result = 0 ;
30924 int val1 ;
30925 int ecode1 = 0 ;
30926 int val2 ;
30927 int ecode2 = 0 ;
30928 PyObject * obj0 = 0 ;
30929 PyObject * obj1 = 0 ;
30930 char * kwnames[] = {
30931 (char *) "version_",(char *) "age_", NULL
30932 };
30933
30934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30935 ecode1 = SWIG_AsVal_int(obj0, &val1);
30936 if (!SWIG_IsOK(ecode1)) {
30937 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30938 }
30939 arg1 = static_cast< int >(val1);
30940 ecode2 = SWIG_AsVal_int(obj1, &val2);
30941 if (!SWIG_IsOK(ecode2)) {
30942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30943 }
30944 arg2 = static_cast< int >(val2);
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30948 wxPyEndAllowThreads(__tstate);
30949 if (PyErr_Occurred()) SWIG_fail;
30950 }
30951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30952 return resultobj;
30953 fail:
30954 return NULL;
30955 }
30956
30957
30958 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30959 PyObject *resultobj = 0;
30960 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30961 void *argp1 = 0 ;
30962 int res1 = 0 ;
30963 PyObject *swig_obj[1] ;
30964
30965 if (!args) SWIG_fail;
30966 swig_obj[0] = args;
30967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30968 if (!SWIG_IsOK(res1)) {
30969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30970 }
30971 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30972 {
30973 PyThreadState* __tstate = wxPyBeginAllowThreads();
30974 delete arg1;
30975
30976 wxPyEndAllowThreads(__tstate);
30977 if (PyErr_Occurred()) SWIG_fail;
30978 }
30979 resultobj = SWIG_Py_Void();
30980 return resultobj;
30981 fail:
30982 return NULL;
30983 }
30984
30985
30986 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30987 PyObject *resultobj = 0;
30988 wxRendererVersion *arg1 = 0 ;
30989 bool result;
30990 void *argp1 = 0 ;
30991 int res1 = 0 ;
30992 PyObject * obj0 = 0 ;
30993 char * kwnames[] = {
30994 (char *) "ver", NULL
30995 };
30996
30997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30998 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30999 if (!SWIG_IsOK(res1)) {
31000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
31001 }
31002 if (!argp1) {
31003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
31004 }
31005 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31006 {
31007 PyThreadState* __tstate = wxPyBeginAllowThreads();
31008 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
31009 wxPyEndAllowThreads(__tstate);
31010 if (PyErr_Occurred()) SWIG_fail;
31011 }
31012 {
31013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31014 }
31015 return resultobj;
31016 fail:
31017 return NULL;
31018 }
31019
31020
31021 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31022 PyObject *resultobj = 0;
31023 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31024 int result;
31025 void *argp1 = 0 ;
31026 int res1 = 0 ;
31027 PyObject *swig_obj[1] ;
31028
31029 if (!args) SWIG_fail;
31030 swig_obj[0] = args;
31031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31032 if (!SWIG_IsOK(res1)) {
31033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31034 }
31035 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31036 result = (int)(int) ((arg1)->version);
31037 resultobj = SWIG_From_int(static_cast< int >(result));
31038 return resultobj;
31039 fail:
31040 return NULL;
31041 }
31042
31043
31044 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31045 PyObject *resultobj = 0;
31046 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31047 int result;
31048 void *argp1 = 0 ;
31049 int res1 = 0 ;
31050 PyObject *swig_obj[1] ;
31051
31052 if (!args) SWIG_fail;
31053 swig_obj[0] = args;
31054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31055 if (!SWIG_IsOK(res1)) {
31056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31057 }
31058 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31059 result = (int)(int) ((arg1)->age);
31060 resultobj = SWIG_From_int(static_cast< int >(result));
31061 return resultobj;
31062 fail:
31063 return NULL;
31064 }
31065
31066
31067 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31068 PyObject *obj;
31069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31070 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
31071 return SWIG_Py_Void();
31072 }
31073
31074 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31075 return SWIG_Python_InitShadowInstance(args);
31076 }
31077
31078 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31079 PyObject *resultobj = 0;
31080 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31081 wxWindow *arg2 = (wxWindow *) 0 ;
31082 wxDC *arg3 = 0 ;
31083 wxRect *arg4 = 0 ;
31084 int arg5 = (int) 0 ;
31085 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31086 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31087 void *argp1 = 0 ;
31088 int res1 = 0 ;
31089 void *argp2 = 0 ;
31090 int res2 = 0 ;
31091 void *argp3 = 0 ;
31092 int res3 = 0 ;
31093 wxRect temp4 ;
31094 int val5 ;
31095 int ecode5 = 0 ;
31096 int val6 ;
31097 int ecode6 = 0 ;
31098 void *argp7 = 0 ;
31099 int res7 = 0 ;
31100 PyObject * obj0 = 0 ;
31101 PyObject * obj1 = 0 ;
31102 PyObject * obj2 = 0 ;
31103 PyObject * obj3 = 0 ;
31104 PyObject * obj4 = 0 ;
31105 PyObject * obj5 = 0 ;
31106 PyObject * obj6 = 0 ;
31107 char * kwnames[] = {
31108 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31109 };
31110
31111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_DrawHeaderButton" "', 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_DrawHeaderButton" "', 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_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31125 }
31126 if (!argp3) {
31127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', 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_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
31138 }
31139 arg5 = static_cast< int >(val5);
31140 }
31141 if (obj5) {
31142 ecode6 = SWIG_AsVal_int(obj5, &val6);
31143 if (!SWIG_IsOK(ecode6)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31145 }
31146 arg6 = static_cast< wxHeaderSortIconType >(val6);
31147 }
31148 if (obj6) {
31149 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31150 if (!SWIG_IsOK(res7)) {
31151 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31152 }
31153 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31154 }
31155 {
31156 PyThreadState* __tstate = wxPyBeginAllowThreads();
31157 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31158 wxPyEndAllowThreads(__tstate);
31159 if (PyErr_Occurred()) SWIG_fail;
31160 }
31161 resultobj = SWIG_Py_Void();
31162 return resultobj;
31163 fail:
31164 return NULL;
31165 }
31166
31167
31168 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31169 PyObject *resultobj = 0;
31170 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31171 wxWindow *arg2 = (wxWindow *) 0 ;
31172 wxDC *arg3 = 0 ;
31173 wxRect *arg4 = 0 ;
31174 int arg5 = (int) 0 ;
31175 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31176 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31177 void *argp1 = 0 ;
31178 int res1 = 0 ;
31179 void *argp2 = 0 ;
31180 int res2 = 0 ;
31181 void *argp3 = 0 ;
31182 int res3 = 0 ;
31183 wxRect temp4 ;
31184 int val5 ;
31185 int ecode5 = 0 ;
31186 int val6 ;
31187 int ecode6 = 0 ;
31188 void *argp7 = 0 ;
31189 int res7 = 0 ;
31190 PyObject * obj0 = 0 ;
31191 PyObject * obj1 = 0 ;
31192 PyObject * obj2 = 0 ;
31193 PyObject * obj3 = 0 ;
31194 PyObject * obj4 = 0 ;
31195 PyObject * obj5 = 0 ;
31196 PyObject * obj6 = 0 ;
31197 char * kwnames[] = {
31198 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31199 };
31200
31201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31205 }
31206 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31208 if (!SWIG_IsOK(res2)) {
31209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
31210 }
31211 arg2 = reinterpret_cast< wxWindow * >(argp2);
31212 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31213 if (!SWIG_IsOK(res3)) {
31214 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31215 }
31216 if (!argp3) {
31217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31218 }
31219 arg3 = reinterpret_cast< wxDC * >(argp3);
31220 {
31221 arg4 = &temp4;
31222 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31223 }
31224 if (obj4) {
31225 ecode5 = SWIG_AsVal_int(obj4, &val5);
31226 if (!SWIG_IsOK(ecode5)) {
31227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
31228 }
31229 arg5 = static_cast< int >(val5);
31230 }
31231 if (obj5) {
31232 ecode6 = SWIG_AsVal_int(obj5, &val6);
31233 if (!SWIG_IsOK(ecode6)) {
31234 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31235 }
31236 arg6 = static_cast< wxHeaderSortIconType >(val6);
31237 }
31238 if (obj6) {
31239 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31240 if (!SWIG_IsOK(res7)) {
31241 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31242 }
31243 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31244 }
31245 {
31246 PyThreadState* __tstate = wxPyBeginAllowThreads();
31247 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31248 wxPyEndAllowThreads(__tstate);
31249 if (PyErr_Occurred()) SWIG_fail;
31250 }
31251 resultobj = SWIG_Py_Void();
31252 return resultobj;
31253 fail:
31254 return NULL;
31255 }
31256
31257
31258 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31259 PyObject *resultobj = 0;
31260 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31261 wxWindow *arg2 = (wxWindow *) 0 ;
31262 int result;
31263 void *argp1 = 0 ;
31264 int res1 = 0 ;
31265 void *argp2 = 0 ;
31266 int res2 = 0 ;
31267 PyObject * obj0 = 0 ;
31268 PyObject * obj1 = 0 ;
31269 char * kwnames[] = {
31270 (char *) "self",(char *) "win", NULL
31271 };
31272
31273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
31274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31275 if (!SWIG_IsOK(res1)) {
31276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31277 }
31278 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31280 if (!SWIG_IsOK(res2)) {
31281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31282 }
31283 arg2 = reinterpret_cast< wxWindow * >(argp2);
31284 {
31285 PyThreadState* __tstate = wxPyBeginAllowThreads();
31286 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31287 wxPyEndAllowThreads(__tstate);
31288 if (PyErr_Occurred()) SWIG_fail;
31289 }
31290 resultobj = SWIG_From_int(static_cast< int >(result));
31291 return resultobj;
31292 fail:
31293 return NULL;
31294 }
31295
31296
31297 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31298 PyObject *resultobj = 0;
31299 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31300 wxWindow *arg2 = (wxWindow *) 0 ;
31301 wxDC *arg3 = 0 ;
31302 wxRect *arg4 = 0 ;
31303 int arg5 = (int) 0 ;
31304 void *argp1 = 0 ;
31305 int res1 = 0 ;
31306 void *argp2 = 0 ;
31307 int res2 = 0 ;
31308 void *argp3 = 0 ;
31309 int res3 = 0 ;
31310 wxRect temp4 ;
31311 int val5 ;
31312 int ecode5 = 0 ;
31313 PyObject * obj0 = 0 ;
31314 PyObject * obj1 = 0 ;
31315 PyObject * obj2 = 0 ;
31316 PyObject * obj3 = 0 ;
31317 PyObject * obj4 = 0 ;
31318 char * kwnames[] = {
31319 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31320 };
31321
31322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31324 if (!SWIG_IsOK(res1)) {
31325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31326 }
31327 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31329 if (!SWIG_IsOK(res2)) {
31330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31331 }
31332 arg2 = reinterpret_cast< wxWindow * >(argp2);
31333 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31334 if (!SWIG_IsOK(res3)) {
31335 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31336 }
31337 if (!argp3) {
31338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31339 }
31340 arg3 = reinterpret_cast< wxDC * >(argp3);
31341 {
31342 arg4 = &temp4;
31343 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31344 }
31345 if (obj4) {
31346 ecode5 = SWIG_AsVal_int(obj4, &val5);
31347 if (!SWIG_IsOK(ecode5)) {
31348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31349 }
31350 arg5 = static_cast< int >(val5);
31351 }
31352 {
31353 PyThreadState* __tstate = wxPyBeginAllowThreads();
31354 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31355 wxPyEndAllowThreads(__tstate);
31356 if (PyErr_Occurred()) SWIG_fail;
31357 }
31358 resultobj = SWIG_Py_Void();
31359 return resultobj;
31360 fail:
31361 return NULL;
31362 }
31363
31364
31365 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31366 PyObject *resultobj = 0;
31367 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31368 wxWindow *arg2 = (wxWindow *) 0 ;
31369 wxDC *arg3 = 0 ;
31370 wxRect *arg4 = 0 ;
31371 int arg5 = (int) 0 ;
31372 void *argp1 = 0 ;
31373 int res1 = 0 ;
31374 void *argp2 = 0 ;
31375 int res2 = 0 ;
31376 void *argp3 = 0 ;
31377 int res3 = 0 ;
31378 wxRect temp4 ;
31379 int val5 ;
31380 int ecode5 = 0 ;
31381 PyObject * obj0 = 0 ;
31382 PyObject * obj1 = 0 ;
31383 PyObject * obj2 = 0 ;
31384 PyObject * obj3 = 0 ;
31385 PyObject * obj4 = 0 ;
31386 char * kwnames[] = {
31387 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31388 };
31389
31390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31392 if (!SWIG_IsOK(res1)) {
31393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31394 }
31395 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31396 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31397 if (!SWIG_IsOK(res2)) {
31398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31399 }
31400 arg2 = reinterpret_cast< wxWindow * >(argp2);
31401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31402 if (!SWIG_IsOK(res3)) {
31403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31404 }
31405 if (!argp3) {
31406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31407 }
31408 arg3 = reinterpret_cast< wxDC * >(argp3);
31409 {
31410 arg4 = &temp4;
31411 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31412 }
31413 if (obj4) {
31414 ecode5 = SWIG_AsVal_int(obj4, &val5);
31415 if (!SWIG_IsOK(ecode5)) {
31416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31417 }
31418 arg5 = static_cast< int >(val5);
31419 }
31420 {
31421 PyThreadState* __tstate = wxPyBeginAllowThreads();
31422 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31423 wxPyEndAllowThreads(__tstate);
31424 if (PyErr_Occurred()) SWIG_fail;
31425 }
31426 resultobj = SWIG_Py_Void();
31427 return resultobj;
31428 fail:
31429 return NULL;
31430 }
31431
31432
31433 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31434 PyObject *resultobj = 0;
31435 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31436 wxWindow *arg2 = (wxWindow *) 0 ;
31437 wxDC *arg3 = 0 ;
31438 wxSize *arg4 = 0 ;
31439 int arg5 ;
31440 wxOrientation arg6 ;
31441 int arg7 = (int) 0 ;
31442 void *argp1 = 0 ;
31443 int res1 = 0 ;
31444 void *argp2 = 0 ;
31445 int res2 = 0 ;
31446 void *argp3 = 0 ;
31447 int res3 = 0 ;
31448 wxSize temp4 ;
31449 int val5 ;
31450 int ecode5 = 0 ;
31451 int val6 ;
31452 int ecode6 = 0 ;
31453 int val7 ;
31454 int ecode7 = 0 ;
31455 PyObject * obj0 = 0 ;
31456 PyObject * obj1 = 0 ;
31457 PyObject * obj2 = 0 ;
31458 PyObject * obj3 = 0 ;
31459 PyObject * obj4 = 0 ;
31460 PyObject * obj5 = 0 ;
31461 PyObject * obj6 = 0 ;
31462 char * kwnames[] = {
31463 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31464 };
31465
31466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31468 if (!SWIG_IsOK(res1)) {
31469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31470 }
31471 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31473 if (!SWIG_IsOK(res2)) {
31474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31475 }
31476 arg2 = reinterpret_cast< wxWindow * >(argp2);
31477 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31478 if (!SWIG_IsOK(res3)) {
31479 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31480 }
31481 if (!argp3) {
31482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31483 }
31484 arg3 = reinterpret_cast< wxDC * >(argp3);
31485 {
31486 arg4 = &temp4;
31487 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31488 }
31489 ecode5 = SWIG_AsVal_int(obj4, &val5);
31490 if (!SWIG_IsOK(ecode5)) {
31491 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31492 }
31493 arg5 = static_cast< int >(val5);
31494 ecode6 = SWIG_AsVal_int(obj5, &val6);
31495 if (!SWIG_IsOK(ecode6)) {
31496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31497 }
31498 arg6 = static_cast< wxOrientation >(val6);
31499 if (obj6) {
31500 ecode7 = SWIG_AsVal_int(obj6, &val7);
31501 if (!SWIG_IsOK(ecode7)) {
31502 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31503 }
31504 arg7 = static_cast< int >(val7);
31505 }
31506 {
31507 PyThreadState* __tstate = wxPyBeginAllowThreads();
31508 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31509 wxPyEndAllowThreads(__tstate);
31510 if (PyErr_Occurred()) SWIG_fail;
31511 }
31512 resultobj = SWIG_Py_Void();
31513 return resultobj;
31514 fail:
31515 return NULL;
31516 }
31517
31518
31519 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31520 PyObject *resultobj = 0;
31521 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31522 wxWindow *arg2 = (wxWindow *) 0 ;
31523 wxDC *arg3 = 0 ;
31524 wxRect *arg4 = 0 ;
31525 int arg5 = (int) 0 ;
31526 void *argp1 = 0 ;
31527 int res1 = 0 ;
31528 void *argp2 = 0 ;
31529 int res2 = 0 ;
31530 void *argp3 = 0 ;
31531 int res3 = 0 ;
31532 wxRect temp4 ;
31533 int val5 ;
31534 int ecode5 = 0 ;
31535 PyObject * obj0 = 0 ;
31536 PyObject * obj1 = 0 ;
31537 PyObject * obj2 = 0 ;
31538 PyObject * obj3 = 0 ;
31539 PyObject * obj4 = 0 ;
31540 char * kwnames[] = {
31541 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31542 };
31543
31544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31546 if (!SWIG_IsOK(res1)) {
31547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31548 }
31549 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31551 if (!SWIG_IsOK(res2)) {
31552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31553 }
31554 arg2 = reinterpret_cast< wxWindow * >(argp2);
31555 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31556 if (!SWIG_IsOK(res3)) {
31557 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31558 }
31559 if (!argp3) {
31560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31561 }
31562 arg3 = reinterpret_cast< wxDC * >(argp3);
31563 {
31564 arg4 = &temp4;
31565 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31566 }
31567 if (obj4) {
31568 ecode5 = SWIG_AsVal_int(obj4, &val5);
31569 if (!SWIG_IsOK(ecode5)) {
31570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31571 }
31572 arg5 = static_cast< int >(val5);
31573 }
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
31576 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31577 wxPyEndAllowThreads(__tstate);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 resultobj = SWIG_Py_Void();
31581 return resultobj;
31582 fail:
31583 return NULL;
31584 }
31585
31586
31587 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31588 PyObject *resultobj = 0;
31589 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31590 wxWindow *arg2 = (wxWindow *) 0 ;
31591 wxDC *arg3 = 0 ;
31592 wxRect *arg4 = 0 ;
31593 int arg5 = (int) 0 ;
31594 void *argp1 = 0 ;
31595 int res1 = 0 ;
31596 void *argp2 = 0 ;
31597 int res2 = 0 ;
31598 void *argp3 = 0 ;
31599 int res3 = 0 ;
31600 wxRect temp4 ;
31601 int val5 ;
31602 int ecode5 = 0 ;
31603 PyObject * obj0 = 0 ;
31604 PyObject * obj1 = 0 ;
31605 PyObject * obj2 = 0 ;
31606 PyObject * obj3 = 0 ;
31607 PyObject * obj4 = 0 ;
31608 char * kwnames[] = {
31609 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31610 };
31611
31612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31614 if (!SWIG_IsOK(res1)) {
31615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31616 }
31617 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31619 if (!SWIG_IsOK(res2)) {
31620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31621 }
31622 arg2 = reinterpret_cast< wxWindow * >(argp2);
31623 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31624 if (!SWIG_IsOK(res3)) {
31625 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31626 }
31627 if (!argp3) {
31628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31629 }
31630 arg3 = reinterpret_cast< wxDC * >(argp3);
31631 {
31632 arg4 = &temp4;
31633 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31634 }
31635 if (obj4) {
31636 ecode5 = SWIG_AsVal_int(obj4, &val5);
31637 if (!SWIG_IsOK(ecode5)) {
31638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31639 }
31640 arg5 = static_cast< int >(val5);
31641 }
31642 {
31643 PyThreadState* __tstate = wxPyBeginAllowThreads();
31644 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31645 wxPyEndAllowThreads(__tstate);
31646 if (PyErr_Occurred()) SWIG_fail;
31647 }
31648 resultobj = SWIG_Py_Void();
31649 return resultobj;
31650 fail:
31651 return NULL;
31652 }
31653
31654
31655 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31656 PyObject *resultobj = 0;
31657 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31658 wxWindow *arg2 = (wxWindow *) 0 ;
31659 wxDC *arg3 = 0 ;
31660 wxRect *arg4 = 0 ;
31661 int arg5 = (int) 0 ;
31662 void *argp1 = 0 ;
31663 int res1 = 0 ;
31664 void *argp2 = 0 ;
31665 int res2 = 0 ;
31666 void *argp3 = 0 ;
31667 int res3 = 0 ;
31668 wxRect temp4 ;
31669 int val5 ;
31670 int ecode5 = 0 ;
31671 PyObject * obj0 = 0 ;
31672 PyObject * obj1 = 0 ;
31673 PyObject * obj2 = 0 ;
31674 PyObject * obj3 = 0 ;
31675 PyObject * obj4 = 0 ;
31676 char * kwnames[] = {
31677 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31678 };
31679
31680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31682 if (!SWIG_IsOK(res1)) {
31683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31684 }
31685 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31686 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31687 if (!SWIG_IsOK(res2)) {
31688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31689 }
31690 arg2 = reinterpret_cast< wxWindow * >(argp2);
31691 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31692 if (!SWIG_IsOK(res3)) {
31693 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31694 }
31695 if (!argp3) {
31696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31697 }
31698 arg3 = reinterpret_cast< wxDC * >(argp3);
31699 {
31700 arg4 = &temp4;
31701 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31702 }
31703 if (obj4) {
31704 ecode5 = SWIG_AsVal_int(obj4, &val5);
31705 if (!SWIG_IsOK(ecode5)) {
31706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31707 }
31708 arg5 = static_cast< int >(val5);
31709 }
31710 {
31711 PyThreadState* __tstate = wxPyBeginAllowThreads();
31712 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31713 wxPyEndAllowThreads(__tstate);
31714 if (PyErr_Occurred()) SWIG_fail;
31715 }
31716 resultobj = SWIG_Py_Void();
31717 return resultobj;
31718 fail:
31719 return NULL;
31720 }
31721
31722
31723 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31724 PyObject *resultobj = 0;
31725 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31726 wxWindow *arg2 = (wxWindow *) 0 ;
31727 wxDC *arg3 = 0 ;
31728 wxRect *arg4 = 0 ;
31729 int arg5 = (int) 0 ;
31730 void *argp1 = 0 ;
31731 int res1 = 0 ;
31732 void *argp2 = 0 ;
31733 int res2 = 0 ;
31734 void *argp3 = 0 ;
31735 int res3 = 0 ;
31736 wxRect temp4 ;
31737 int val5 ;
31738 int ecode5 = 0 ;
31739 PyObject * obj0 = 0 ;
31740 PyObject * obj1 = 0 ;
31741 PyObject * obj2 = 0 ;
31742 PyObject * obj3 = 0 ;
31743 PyObject * obj4 = 0 ;
31744 char * kwnames[] = {
31745 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31746 };
31747
31748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31750 if (!SWIG_IsOK(res1)) {
31751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31752 }
31753 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31754 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31755 if (!SWIG_IsOK(res2)) {
31756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31757 }
31758 arg2 = reinterpret_cast< wxWindow * >(argp2);
31759 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31760 if (!SWIG_IsOK(res3)) {
31761 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31762 }
31763 if (!argp3) {
31764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31765 }
31766 arg3 = reinterpret_cast< wxDC * >(argp3);
31767 {
31768 arg4 = &temp4;
31769 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31770 }
31771 if (obj4) {
31772 ecode5 = SWIG_AsVal_int(obj4, &val5);
31773 if (!SWIG_IsOK(ecode5)) {
31774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31775 }
31776 arg5 = static_cast< int >(val5);
31777 }
31778 {
31779 PyThreadState* __tstate = wxPyBeginAllowThreads();
31780 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31781 wxPyEndAllowThreads(__tstate);
31782 if (PyErr_Occurred()) SWIG_fail;
31783 }
31784 resultobj = SWIG_Py_Void();
31785 return resultobj;
31786 fail:
31787 return NULL;
31788 }
31789
31790
31791 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31792 PyObject *resultobj = 0;
31793 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31794 wxWindow *arg2 = (wxWindow *) 0 ;
31795 wxDC *arg3 = 0 ;
31796 wxRect *arg4 = 0 ;
31797 int arg5 = (int) 0 ;
31798 void *argp1 = 0 ;
31799 int res1 = 0 ;
31800 void *argp2 = 0 ;
31801 int res2 = 0 ;
31802 void *argp3 = 0 ;
31803 int res3 = 0 ;
31804 wxRect temp4 ;
31805 int val5 ;
31806 int ecode5 = 0 ;
31807 PyObject * obj0 = 0 ;
31808 PyObject * obj1 = 0 ;
31809 PyObject * obj2 = 0 ;
31810 PyObject * obj3 = 0 ;
31811 PyObject * obj4 = 0 ;
31812 char * kwnames[] = {
31813 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31814 };
31815
31816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31818 if (!SWIG_IsOK(res1)) {
31819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31820 }
31821 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31822 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31823 if (!SWIG_IsOK(res2)) {
31824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31825 }
31826 arg2 = reinterpret_cast< wxWindow * >(argp2);
31827 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31828 if (!SWIG_IsOK(res3)) {
31829 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31830 }
31831 if (!argp3) {
31832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31833 }
31834 arg3 = reinterpret_cast< wxDC * >(argp3);
31835 {
31836 arg4 = &temp4;
31837 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31838 }
31839 if (obj4) {
31840 ecode5 = SWIG_AsVal_int(obj4, &val5);
31841 if (!SWIG_IsOK(ecode5)) {
31842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31843 }
31844 arg5 = static_cast< int >(val5);
31845 }
31846 {
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
31848 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31849 wxPyEndAllowThreads(__tstate);
31850 if (PyErr_Occurred()) SWIG_fail;
31851 }
31852 resultobj = SWIG_Py_Void();
31853 return resultobj;
31854 fail:
31855 return NULL;
31856 }
31857
31858
31859 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31860 PyObject *resultobj = 0;
31861 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31862 wxWindow *arg2 = (wxWindow *) 0 ;
31863 SwigValueWrapper<wxSplitterRenderParams > result;
31864 void *argp1 = 0 ;
31865 int res1 = 0 ;
31866 void *argp2 = 0 ;
31867 int res2 = 0 ;
31868 PyObject * obj0 = 0 ;
31869 PyObject * obj1 = 0 ;
31870 char * kwnames[] = {
31871 (char *) "self",(char *) "win", NULL
31872 };
31873
31874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31876 if (!SWIG_IsOK(res1)) {
31877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31878 }
31879 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31881 if (!SWIG_IsOK(res2)) {
31882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31883 }
31884 arg2 = reinterpret_cast< wxWindow * >(argp2);
31885 {
31886 PyThreadState* __tstate = wxPyBeginAllowThreads();
31887 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31888 wxPyEndAllowThreads(__tstate);
31889 if (PyErr_Occurred()) SWIG_fail;
31890 }
31891 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31892 return resultobj;
31893 fail:
31894 return NULL;
31895 }
31896
31897
31898 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31899 PyObject *resultobj = 0;
31900 wxRendererNative *result = 0 ;
31901
31902 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31903 {
31904 if (!wxPyCheckForApp()) SWIG_fail;
31905 PyThreadState* __tstate = wxPyBeginAllowThreads();
31906 {
31907 wxRendererNative &_result_ref = wxRendererNative::Get();
31908 result = (wxRendererNative *) &_result_ref;
31909 }
31910 wxPyEndAllowThreads(__tstate);
31911 if (PyErr_Occurred()) SWIG_fail;
31912 }
31913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31914 return resultobj;
31915 fail:
31916 return NULL;
31917 }
31918
31919
31920 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31921 PyObject *resultobj = 0;
31922 wxRendererNative *result = 0 ;
31923
31924 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31925 {
31926 if (!wxPyCheckForApp()) SWIG_fail;
31927 PyThreadState* __tstate = wxPyBeginAllowThreads();
31928 {
31929 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31930 result = (wxRendererNative *) &_result_ref;
31931 }
31932 wxPyEndAllowThreads(__tstate);
31933 if (PyErr_Occurred()) SWIG_fail;
31934 }
31935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31936 return resultobj;
31937 fail:
31938 return NULL;
31939 }
31940
31941
31942 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31943 PyObject *resultobj = 0;
31944 wxRendererNative *result = 0 ;
31945
31946 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31947 {
31948 if (!wxPyCheckForApp()) SWIG_fail;
31949 PyThreadState* __tstate = wxPyBeginAllowThreads();
31950 {
31951 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31952 result = (wxRendererNative *) &_result_ref;
31953 }
31954 wxPyEndAllowThreads(__tstate);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 }
31957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31958 return resultobj;
31959 fail:
31960 return NULL;
31961 }
31962
31963
31964 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31965 PyObject *resultobj = 0;
31966 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31967 wxRendererNative *result = 0 ;
31968 void *argp1 = 0 ;
31969 int res1 = 0 ;
31970 PyObject * obj0 = 0 ;
31971 char * kwnames[] = {
31972 (char *) "renderer", NULL
31973 };
31974
31975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31977 if (!SWIG_IsOK(res1)) {
31978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31979 }
31980 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31981 {
31982 if (!wxPyCheckForApp()) SWIG_fail;
31983 PyThreadState* __tstate = wxPyBeginAllowThreads();
31984 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31985 wxPyEndAllowThreads(__tstate);
31986 if (PyErr_Occurred()) SWIG_fail;
31987 }
31988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31989 return resultobj;
31990 fail:
31991 return NULL;
31992 }
31993
31994
31995 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31996 PyObject *resultobj = 0;
31997 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31998 SwigValueWrapper<wxRendererVersion > result;
31999 void *argp1 = 0 ;
32000 int res1 = 0 ;
32001 PyObject *swig_obj[1] ;
32002
32003 if (!args) SWIG_fail;
32004 swig_obj[0] = args;
32005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
32006 if (!SWIG_IsOK(res1)) {
32007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
32008 }
32009 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
32010 {
32011 PyThreadState* __tstate = wxPyBeginAllowThreads();
32012 result = ((wxRendererNative const *)arg1)->GetVersion();
32013 wxPyEndAllowThreads(__tstate);
32014 if (PyErr_Occurred()) SWIG_fail;
32015 }
32016 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
32017 return resultobj;
32018 fail:
32019 return NULL;
32020 }
32021
32022
32023 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32024 PyObject *obj;
32025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32026 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
32027 return SWIG_Py_Void();
32028 }
32029
32030 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32031 PyObject *resultobj = 0;
32032 wxPseudoDC *result = 0 ;
32033
32034 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
32035 {
32036 PyThreadState* __tstate = wxPyBeginAllowThreads();
32037 result = (wxPseudoDC *)new wxPseudoDC();
32038 wxPyEndAllowThreads(__tstate);
32039 if (PyErr_Occurred()) SWIG_fail;
32040 }
32041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
32042 return resultobj;
32043 fail:
32044 return NULL;
32045 }
32046
32047
32048 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32049 PyObject *resultobj = 0;
32050 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32051 void *argp1 = 0 ;
32052 int res1 = 0 ;
32053 PyObject *swig_obj[1] ;
32054
32055 if (!args) SWIG_fail;
32056 swig_obj[0] = args;
32057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32058 if (!SWIG_IsOK(res1)) {
32059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32060 }
32061 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32062 {
32063 PyThreadState* __tstate = wxPyBeginAllowThreads();
32064 (arg1)->BeginDrawing();
32065 wxPyEndAllowThreads(__tstate);
32066 if (PyErr_Occurred()) SWIG_fail;
32067 }
32068 resultobj = SWIG_Py_Void();
32069 return resultobj;
32070 fail:
32071 return NULL;
32072 }
32073
32074
32075 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32076 PyObject *resultobj = 0;
32077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32078 void *argp1 = 0 ;
32079 int res1 = 0 ;
32080 PyObject *swig_obj[1] ;
32081
32082 if (!args) SWIG_fail;
32083 swig_obj[0] = args;
32084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32085 if (!SWIG_IsOK(res1)) {
32086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32087 }
32088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32089 {
32090 PyThreadState* __tstate = wxPyBeginAllowThreads();
32091 (arg1)->EndDrawing();
32092 wxPyEndAllowThreads(__tstate);
32093 if (PyErr_Occurred()) SWIG_fail;
32094 }
32095 resultobj = SWIG_Py_Void();
32096 return resultobj;
32097 fail:
32098 return NULL;
32099 }
32100
32101
32102 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32103 PyObject *resultobj = 0;
32104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32105 void *argp1 = 0 ;
32106 int res1 = 0 ;
32107 PyObject *swig_obj[1] ;
32108
32109 if (!args) SWIG_fail;
32110 swig_obj[0] = args;
32111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
32112 if (!SWIG_IsOK(res1)) {
32113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32114 }
32115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32116 {
32117 PyThreadState* __tstate = wxPyBeginAllowThreads();
32118 delete arg1;
32119
32120 wxPyEndAllowThreads(__tstate);
32121 if (PyErr_Occurred()) SWIG_fail;
32122 }
32123 resultobj = SWIG_Py_Void();
32124 return resultobj;
32125 fail:
32126 return NULL;
32127 }
32128
32129
32130 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32131 PyObject *resultobj = 0;
32132 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32133 void *argp1 = 0 ;
32134 int res1 = 0 ;
32135 PyObject *swig_obj[1] ;
32136
32137 if (!args) SWIG_fail;
32138 swig_obj[0] = args;
32139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32140 if (!SWIG_IsOK(res1)) {
32141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32142 }
32143 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32144 {
32145 PyThreadState* __tstate = wxPyBeginAllowThreads();
32146 (arg1)->RemoveAll();
32147 wxPyEndAllowThreads(__tstate);
32148 if (PyErr_Occurred()) SWIG_fail;
32149 }
32150 resultobj = SWIG_Py_Void();
32151 return resultobj;
32152 fail:
32153 return NULL;
32154 }
32155
32156
32157 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32158 PyObject *resultobj = 0;
32159 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32160 int result;
32161 void *argp1 = 0 ;
32162 int res1 = 0 ;
32163 PyObject *swig_obj[1] ;
32164
32165 if (!args) SWIG_fail;
32166 swig_obj[0] = args;
32167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32168 if (!SWIG_IsOK(res1)) {
32169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32170 }
32171 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 result = (int)(arg1)->GetLen();
32175 wxPyEndAllowThreads(__tstate);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 resultobj = SWIG_From_int(static_cast< int >(result));
32179 return resultobj;
32180 fail:
32181 return NULL;
32182 }
32183
32184
32185 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32186 PyObject *resultobj = 0;
32187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32188 int arg2 ;
32189 void *argp1 = 0 ;
32190 int res1 = 0 ;
32191 int val2 ;
32192 int ecode2 = 0 ;
32193 PyObject * obj0 = 0 ;
32194 PyObject * obj1 = 0 ;
32195 char * kwnames[] = {
32196 (char *) "self",(char *) "id", NULL
32197 };
32198
32199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32201 if (!SWIG_IsOK(res1)) {
32202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32203 }
32204 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32205 ecode2 = SWIG_AsVal_int(obj1, &val2);
32206 if (!SWIG_IsOK(ecode2)) {
32207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
32208 }
32209 arg2 = static_cast< int >(val2);
32210 {
32211 PyThreadState* __tstate = wxPyBeginAllowThreads();
32212 (arg1)->SetId(arg2);
32213 wxPyEndAllowThreads(__tstate);
32214 if (PyErr_Occurred()) SWIG_fail;
32215 }
32216 resultobj = SWIG_Py_Void();
32217 return resultobj;
32218 fail:
32219 return NULL;
32220 }
32221
32222
32223 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32224 PyObject *resultobj = 0;
32225 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32226 int arg2 ;
32227 void *argp1 = 0 ;
32228 int res1 = 0 ;
32229 int val2 ;
32230 int ecode2 = 0 ;
32231 PyObject * obj0 = 0 ;
32232 PyObject * obj1 = 0 ;
32233 char * kwnames[] = {
32234 (char *) "self",(char *) "id", NULL
32235 };
32236
32237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
32238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32239 if (!SWIG_IsOK(res1)) {
32240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32241 }
32242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32243 ecode2 = SWIG_AsVal_int(obj1, &val2);
32244 if (!SWIG_IsOK(ecode2)) {
32245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
32246 }
32247 arg2 = static_cast< int >(val2);
32248 {
32249 PyThreadState* __tstate = wxPyBeginAllowThreads();
32250 (arg1)->ClearId(arg2);
32251 wxPyEndAllowThreads(__tstate);
32252 if (PyErr_Occurred()) SWIG_fail;
32253 }
32254 resultobj = SWIG_Py_Void();
32255 return resultobj;
32256 fail:
32257 return NULL;
32258 }
32259
32260
32261 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32262 PyObject *resultobj = 0;
32263 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32264 int arg2 ;
32265 void *argp1 = 0 ;
32266 int res1 = 0 ;
32267 int val2 ;
32268 int ecode2 = 0 ;
32269 PyObject * obj0 = 0 ;
32270 PyObject * obj1 = 0 ;
32271 char * kwnames[] = {
32272 (char *) "self",(char *) "id", NULL
32273 };
32274
32275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
32276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32277 if (!SWIG_IsOK(res1)) {
32278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32279 }
32280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32281 ecode2 = SWIG_AsVal_int(obj1, &val2);
32282 if (!SWIG_IsOK(ecode2)) {
32283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32284 }
32285 arg2 = static_cast< int >(val2);
32286 {
32287 PyThreadState* __tstate = wxPyBeginAllowThreads();
32288 (arg1)->RemoveId(arg2);
32289 wxPyEndAllowThreads(__tstate);
32290 if (PyErr_Occurred()) SWIG_fail;
32291 }
32292 resultobj = SWIG_Py_Void();
32293 return resultobj;
32294 fail:
32295 return NULL;
32296 }
32297
32298
32299 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32300 PyObject *resultobj = 0;
32301 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32302 int arg2 ;
32303 int arg3 ;
32304 int arg4 ;
32305 void *argp1 = 0 ;
32306 int res1 = 0 ;
32307 int val2 ;
32308 int ecode2 = 0 ;
32309 int val3 ;
32310 int ecode3 = 0 ;
32311 int val4 ;
32312 int ecode4 = 0 ;
32313 PyObject * obj0 = 0 ;
32314 PyObject * obj1 = 0 ;
32315 PyObject * obj2 = 0 ;
32316 PyObject * obj3 = 0 ;
32317 char * kwnames[] = {
32318 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32319 };
32320
32321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32323 if (!SWIG_IsOK(res1)) {
32324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32325 }
32326 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32327 ecode2 = SWIG_AsVal_int(obj1, &val2);
32328 if (!SWIG_IsOK(ecode2)) {
32329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32330 }
32331 arg2 = static_cast< int >(val2);
32332 ecode3 = SWIG_AsVal_int(obj2, &val3);
32333 if (!SWIG_IsOK(ecode3)) {
32334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32335 }
32336 arg3 = static_cast< int >(val3);
32337 ecode4 = SWIG_AsVal_int(obj3, &val4);
32338 if (!SWIG_IsOK(ecode4)) {
32339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32340 }
32341 arg4 = static_cast< int >(val4);
32342 {
32343 PyThreadState* __tstate = wxPyBeginAllowThreads();
32344 (arg1)->TranslateId(arg2,arg3,arg4);
32345 wxPyEndAllowThreads(__tstate);
32346 if (PyErr_Occurred()) SWIG_fail;
32347 }
32348 resultobj = SWIG_Py_Void();
32349 return resultobj;
32350 fail:
32351 return NULL;
32352 }
32353
32354
32355 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32356 PyObject *resultobj = 0;
32357 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32358 int arg2 ;
32359 bool arg3 = (bool) true ;
32360 void *argp1 = 0 ;
32361 int res1 = 0 ;
32362 int val2 ;
32363 int ecode2 = 0 ;
32364 bool val3 ;
32365 int ecode3 = 0 ;
32366 PyObject * obj0 = 0 ;
32367 PyObject * obj1 = 0 ;
32368 PyObject * obj2 = 0 ;
32369 char * kwnames[] = {
32370 (char *) "self",(char *) "id",(char *) "greyout", NULL
32371 };
32372
32373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32375 if (!SWIG_IsOK(res1)) {
32376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32377 }
32378 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32379 ecode2 = SWIG_AsVal_int(obj1, &val2);
32380 if (!SWIG_IsOK(ecode2)) {
32381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32382 }
32383 arg2 = static_cast< int >(val2);
32384 if (obj2) {
32385 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32386 if (!SWIG_IsOK(ecode3)) {
32387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32388 }
32389 arg3 = static_cast< bool >(val3);
32390 }
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
32393 (arg1)->SetIdGreyedOut(arg2,arg3);
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 resultobj = SWIG_Py_Void();
32398 return resultobj;
32399 fail:
32400 return NULL;
32401 }
32402
32403
32404 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32405 PyObject *resultobj = 0;
32406 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32407 int arg2 ;
32408 bool result;
32409 void *argp1 = 0 ;
32410 int res1 = 0 ;
32411 int val2 ;
32412 int ecode2 = 0 ;
32413 PyObject * obj0 = 0 ;
32414 PyObject * obj1 = 0 ;
32415 char * kwnames[] = {
32416 (char *) "self",(char *) "id", NULL
32417 };
32418
32419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32421 if (!SWIG_IsOK(res1)) {
32422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32423 }
32424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32425 ecode2 = SWIG_AsVal_int(obj1, &val2);
32426 if (!SWIG_IsOK(ecode2)) {
32427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32428 }
32429 arg2 = static_cast< int >(val2);
32430 {
32431 PyThreadState* __tstate = wxPyBeginAllowThreads();
32432 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 {
32437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32438 }
32439 return resultobj;
32440 fail:
32441 return NULL;
32442 }
32443
32444
32445 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32446 PyObject *resultobj = 0;
32447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32448 int arg2 ;
32449 int arg3 ;
32450 int arg4 = (int) 1 ;
32451 wxColor const &arg5_defvalue = *wxWHITE ;
32452 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32453 PyObject *result = 0 ;
32454 void *argp1 = 0 ;
32455 int res1 = 0 ;
32456 int val2 ;
32457 int ecode2 = 0 ;
32458 int val3 ;
32459 int ecode3 = 0 ;
32460 int val4 ;
32461 int ecode4 = 0 ;
32462 void *argp5 = 0 ;
32463 int res5 = 0 ;
32464 PyObject * obj0 = 0 ;
32465 PyObject * obj1 = 0 ;
32466 PyObject * obj2 = 0 ;
32467 PyObject * obj3 = 0 ;
32468 PyObject * obj4 = 0 ;
32469 char * kwnames[] = {
32470 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32471 };
32472
32473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32475 if (!SWIG_IsOK(res1)) {
32476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32477 }
32478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32479 ecode2 = SWIG_AsVal_int(obj1, &val2);
32480 if (!SWIG_IsOK(ecode2)) {
32481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32482 }
32483 arg2 = static_cast< int >(val2);
32484 ecode3 = SWIG_AsVal_int(obj2, &val3);
32485 if (!SWIG_IsOK(ecode3)) {
32486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32487 }
32488 arg3 = static_cast< int >(val3);
32489 if (obj3) {
32490 ecode4 = SWIG_AsVal_int(obj3, &val4);
32491 if (!SWIG_IsOK(ecode4)) {
32492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32493 }
32494 arg4 = static_cast< int >(val4);
32495 }
32496 if (obj4) {
32497 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32498 if (!SWIG_IsOK(res5)) {
32499 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32500 }
32501 if (!argp5) {
32502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32503 }
32504 arg5 = reinterpret_cast< wxColor * >(argp5);
32505 }
32506 {
32507 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32508 if (PyErr_Occurred()) SWIG_fail;
32509 }
32510 resultobj = result;
32511 return resultobj;
32512 fail:
32513 return NULL;
32514 }
32515
32516
32517 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32518 PyObject *resultobj = 0;
32519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32520 int arg2 ;
32521 int arg3 ;
32522 PyObject *result = 0 ;
32523 void *argp1 = 0 ;
32524 int res1 = 0 ;
32525 int val2 ;
32526 int ecode2 = 0 ;
32527 int val3 ;
32528 int ecode3 = 0 ;
32529 PyObject * obj0 = 0 ;
32530 PyObject * obj1 = 0 ;
32531 PyObject * obj2 = 0 ;
32532 char * kwnames[] = {
32533 (char *) "self",(char *) "x",(char *) "y", NULL
32534 };
32535
32536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32538 if (!SWIG_IsOK(res1)) {
32539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32540 }
32541 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32542 ecode2 = SWIG_AsVal_int(obj1, &val2);
32543 if (!SWIG_IsOK(ecode2)) {
32544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32545 }
32546 arg2 = static_cast< int >(val2);
32547 ecode3 = SWIG_AsVal_int(obj2, &val3);
32548 if (!SWIG_IsOK(ecode3)) {
32549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32550 }
32551 arg3 = static_cast< int >(val3);
32552 {
32553 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32554 if (PyErr_Occurred()) SWIG_fail;
32555 }
32556 resultobj = result;
32557 return resultobj;
32558 fail:
32559 return NULL;
32560 }
32561
32562
32563 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32564 PyObject *resultobj = 0;
32565 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32566 int arg2 ;
32567 wxDC *arg3 = (wxDC *) 0 ;
32568 void *argp1 = 0 ;
32569 int res1 = 0 ;
32570 int val2 ;
32571 int ecode2 = 0 ;
32572 void *argp3 = 0 ;
32573 int res3 = 0 ;
32574 PyObject * obj0 = 0 ;
32575 PyObject * obj1 = 0 ;
32576 PyObject * obj2 = 0 ;
32577 char * kwnames[] = {
32578 (char *) "self",(char *) "id",(char *) "dc", NULL
32579 };
32580
32581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32583 if (!SWIG_IsOK(res1)) {
32584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32585 }
32586 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32587 ecode2 = SWIG_AsVal_int(obj1, &val2);
32588 if (!SWIG_IsOK(ecode2)) {
32589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32590 }
32591 arg2 = static_cast< int >(val2);
32592 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32593 if (!SWIG_IsOK(res3)) {
32594 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32595 }
32596 arg3 = reinterpret_cast< wxDC * >(argp3);
32597 {
32598 PyThreadState* __tstate = wxPyBeginAllowThreads();
32599 (arg1)->DrawIdToDC(arg2,arg3);
32600 wxPyEndAllowThreads(__tstate);
32601 if (PyErr_Occurred()) SWIG_fail;
32602 }
32603 resultobj = SWIG_Py_Void();
32604 return resultobj;
32605 fail:
32606 return NULL;
32607 }
32608
32609
32610 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32611 PyObject *resultobj = 0;
32612 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32613 int arg2 ;
32614 wxRect *arg3 = 0 ;
32615 void *argp1 = 0 ;
32616 int res1 = 0 ;
32617 int val2 ;
32618 int ecode2 = 0 ;
32619 wxRect temp3 ;
32620 PyObject * obj0 = 0 ;
32621 PyObject * obj1 = 0 ;
32622 PyObject * obj2 = 0 ;
32623 char * kwnames[] = {
32624 (char *) "self",(char *) "id",(char *) "rect", NULL
32625 };
32626
32627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32629 if (!SWIG_IsOK(res1)) {
32630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32631 }
32632 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32633 ecode2 = SWIG_AsVal_int(obj1, &val2);
32634 if (!SWIG_IsOK(ecode2)) {
32635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32636 }
32637 arg2 = static_cast< int >(val2);
32638 {
32639 arg3 = &temp3;
32640 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32641 }
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 (arg1)->SetIdBounds(arg2,*arg3);
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 resultobj = SWIG_Py_Void();
32649 return resultobj;
32650 fail:
32651 return NULL;
32652 }
32653
32654
32655 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32656 PyObject *resultobj = 0;
32657 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32658 int arg2 ;
32659 wxRect result;
32660 void *argp1 = 0 ;
32661 int res1 = 0 ;
32662 int val2 ;
32663 int ecode2 = 0 ;
32664 PyObject * obj0 = 0 ;
32665 PyObject * obj1 = 0 ;
32666 char * kwnames[] = {
32667 (char *) "self",(char *) "id", NULL
32668 };
32669
32670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32672 if (!SWIG_IsOK(res1)) {
32673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32674 }
32675 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32676 ecode2 = SWIG_AsVal_int(obj1, &val2);
32677 if (!SWIG_IsOK(ecode2)) {
32678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32679 }
32680 arg2 = static_cast< int >(val2);
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32684 wxPyEndAllowThreads(__tstate);
32685 if (PyErr_Occurred()) SWIG_fail;
32686 }
32687 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32688 return resultobj;
32689 fail:
32690 return NULL;
32691 }
32692
32693
32694 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32695 PyObject *resultobj = 0;
32696 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32697 wxDC *arg2 = (wxDC *) 0 ;
32698 wxRect *arg3 = 0 ;
32699 void *argp1 = 0 ;
32700 int res1 = 0 ;
32701 void *argp2 = 0 ;
32702 int res2 = 0 ;
32703 wxRect temp3 ;
32704 PyObject * obj0 = 0 ;
32705 PyObject * obj1 = 0 ;
32706 PyObject * obj2 = 0 ;
32707 char * kwnames[] = {
32708 (char *) "self",(char *) "dc",(char *) "rect", NULL
32709 };
32710
32711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32713 if (!SWIG_IsOK(res1)) {
32714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32715 }
32716 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32718 if (!SWIG_IsOK(res2)) {
32719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32720 }
32721 arg2 = reinterpret_cast< wxDC * >(argp2);
32722 {
32723 arg3 = &temp3;
32724 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32725 }
32726 {
32727 PyThreadState* __tstate = wxPyBeginAllowThreads();
32728 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32729 wxPyEndAllowThreads(__tstate);
32730 if (PyErr_Occurred()) SWIG_fail;
32731 }
32732 resultobj = SWIG_Py_Void();
32733 return resultobj;
32734 fail:
32735 return NULL;
32736 }
32737
32738
32739 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32740 PyObject *resultobj = 0;
32741 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32742 wxDC *arg2 = (wxDC *) 0 ;
32743 wxRegion *arg3 = 0 ;
32744 void *argp1 = 0 ;
32745 int res1 = 0 ;
32746 void *argp2 = 0 ;
32747 int res2 = 0 ;
32748 void *argp3 = 0 ;
32749 int res3 = 0 ;
32750 PyObject * obj0 = 0 ;
32751 PyObject * obj1 = 0 ;
32752 PyObject * obj2 = 0 ;
32753 char * kwnames[] = {
32754 (char *) "self",(char *) "dc",(char *) "region", NULL
32755 };
32756
32757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32759 if (!SWIG_IsOK(res1)) {
32760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32761 }
32762 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32764 if (!SWIG_IsOK(res2)) {
32765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32766 }
32767 arg2 = reinterpret_cast< wxDC * >(argp2);
32768 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32769 if (!SWIG_IsOK(res3)) {
32770 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32771 }
32772 if (!argp3) {
32773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32774 }
32775 arg3 = reinterpret_cast< wxRegion * >(argp3);
32776 {
32777 PyThreadState* __tstate = wxPyBeginAllowThreads();
32778 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32779 wxPyEndAllowThreads(__tstate);
32780 if (PyErr_Occurred()) SWIG_fail;
32781 }
32782 resultobj = SWIG_Py_Void();
32783 return resultobj;
32784 fail:
32785 return NULL;
32786 }
32787
32788
32789 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32790 PyObject *resultobj = 0;
32791 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32792 wxDC *arg2 = (wxDC *) 0 ;
32793 void *argp1 = 0 ;
32794 int res1 = 0 ;
32795 void *argp2 = 0 ;
32796 int res2 = 0 ;
32797 PyObject * obj0 = 0 ;
32798 PyObject * obj1 = 0 ;
32799 char * kwnames[] = {
32800 (char *) "self",(char *) "dc", NULL
32801 };
32802
32803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32805 if (!SWIG_IsOK(res1)) {
32806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32807 }
32808 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32809 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32810 if (!SWIG_IsOK(res2)) {
32811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32812 }
32813 arg2 = reinterpret_cast< wxDC * >(argp2);
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
32816 (arg1)->DrawToDC(arg2);
32817 wxPyEndAllowThreads(__tstate);
32818 if (PyErr_Occurred()) SWIG_fail;
32819 }
32820 resultobj = SWIG_Py_Void();
32821 return resultobj;
32822 fail:
32823 return NULL;
32824 }
32825
32826
32827 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32828 PyObject *resultobj = 0;
32829 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32830 int arg2 ;
32831 int arg3 ;
32832 wxColour *arg4 = 0 ;
32833 int arg5 = (int) wxFLOOD_SURFACE ;
32834 void *argp1 = 0 ;
32835 int res1 = 0 ;
32836 int val2 ;
32837 int ecode2 = 0 ;
32838 int val3 ;
32839 int ecode3 = 0 ;
32840 wxColour temp4 ;
32841 int val5 ;
32842 int ecode5 = 0 ;
32843 PyObject * obj0 = 0 ;
32844 PyObject * obj1 = 0 ;
32845 PyObject * obj2 = 0 ;
32846 PyObject * obj3 = 0 ;
32847 PyObject * obj4 = 0 ;
32848 char * kwnames[] = {
32849 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32850 };
32851
32852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32854 if (!SWIG_IsOK(res1)) {
32855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32856 }
32857 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32858 ecode2 = SWIG_AsVal_int(obj1, &val2);
32859 if (!SWIG_IsOK(ecode2)) {
32860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32861 }
32862 arg2 = static_cast< int >(val2);
32863 ecode3 = SWIG_AsVal_int(obj2, &val3);
32864 if (!SWIG_IsOK(ecode3)) {
32865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32866 }
32867 arg3 = static_cast< int >(val3);
32868 {
32869 arg4 = &temp4;
32870 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32871 }
32872 if (obj4) {
32873 ecode5 = SWIG_AsVal_int(obj4, &val5);
32874 if (!SWIG_IsOK(ecode5)) {
32875 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32876 }
32877 arg5 = static_cast< int >(val5);
32878 }
32879 {
32880 PyThreadState* __tstate = wxPyBeginAllowThreads();
32881 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32882 wxPyEndAllowThreads(__tstate);
32883 if (PyErr_Occurred()) SWIG_fail;
32884 }
32885 resultobj = SWIG_Py_Void();
32886 return resultobj;
32887 fail:
32888 return NULL;
32889 }
32890
32891
32892 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32893 PyObject *resultobj = 0;
32894 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32895 wxPoint *arg2 = 0 ;
32896 wxColour *arg3 = 0 ;
32897 int arg4 = (int) wxFLOOD_SURFACE ;
32898 void *argp1 = 0 ;
32899 int res1 = 0 ;
32900 wxPoint temp2 ;
32901 wxColour temp3 ;
32902 int val4 ;
32903 int ecode4 = 0 ;
32904 PyObject * obj0 = 0 ;
32905 PyObject * obj1 = 0 ;
32906 PyObject * obj2 = 0 ;
32907 PyObject * obj3 = 0 ;
32908 char * kwnames[] = {
32909 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32910 };
32911
32912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32914 if (!SWIG_IsOK(res1)) {
32915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32916 }
32917 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32918 {
32919 arg2 = &temp2;
32920 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32921 }
32922 {
32923 arg3 = &temp3;
32924 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32925 }
32926 if (obj3) {
32927 ecode4 = SWIG_AsVal_int(obj3, &val4);
32928 if (!SWIG_IsOK(ecode4)) {
32929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32930 }
32931 arg4 = static_cast< int >(val4);
32932 }
32933 {
32934 PyThreadState* __tstate = wxPyBeginAllowThreads();
32935 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32936 wxPyEndAllowThreads(__tstate);
32937 if (PyErr_Occurred()) SWIG_fail;
32938 }
32939 resultobj = SWIG_Py_Void();
32940 return resultobj;
32941 fail:
32942 return NULL;
32943 }
32944
32945
32946 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32947 PyObject *resultobj = 0;
32948 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32949 int arg2 ;
32950 int arg3 ;
32951 int arg4 ;
32952 int arg5 ;
32953 void *argp1 = 0 ;
32954 int res1 = 0 ;
32955 int val2 ;
32956 int ecode2 = 0 ;
32957 int val3 ;
32958 int ecode3 = 0 ;
32959 int val4 ;
32960 int ecode4 = 0 ;
32961 int val5 ;
32962 int ecode5 = 0 ;
32963 PyObject * obj0 = 0 ;
32964 PyObject * obj1 = 0 ;
32965 PyObject * obj2 = 0 ;
32966 PyObject * obj3 = 0 ;
32967 PyObject * obj4 = 0 ;
32968 char * kwnames[] = {
32969 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32970 };
32971
32972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32974 if (!SWIG_IsOK(res1)) {
32975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32976 }
32977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32978 ecode2 = SWIG_AsVal_int(obj1, &val2);
32979 if (!SWIG_IsOK(ecode2)) {
32980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32981 }
32982 arg2 = static_cast< int >(val2);
32983 ecode3 = SWIG_AsVal_int(obj2, &val3);
32984 if (!SWIG_IsOK(ecode3)) {
32985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32986 }
32987 arg3 = static_cast< int >(val3);
32988 ecode4 = SWIG_AsVal_int(obj3, &val4);
32989 if (!SWIG_IsOK(ecode4)) {
32990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32991 }
32992 arg4 = static_cast< int >(val4);
32993 ecode5 = SWIG_AsVal_int(obj4, &val5);
32994 if (!SWIG_IsOK(ecode5)) {
32995 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32996 }
32997 arg5 = static_cast< int >(val5);
32998 {
32999 PyThreadState* __tstate = wxPyBeginAllowThreads();
33000 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
33001 wxPyEndAllowThreads(__tstate);
33002 if (PyErr_Occurred()) SWIG_fail;
33003 }
33004 resultobj = SWIG_Py_Void();
33005 return resultobj;
33006 fail:
33007 return NULL;
33008 }
33009
33010
33011 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33012 PyObject *resultobj = 0;
33013 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33014 wxPoint *arg2 = 0 ;
33015 wxPoint *arg3 = 0 ;
33016 void *argp1 = 0 ;
33017 int res1 = 0 ;
33018 wxPoint temp2 ;
33019 wxPoint temp3 ;
33020 PyObject * obj0 = 0 ;
33021 PyObject * obj1 = 0 ;
33022 PyObject * obj2 = 0 ;
33023 char * kwnames[] = {
33024 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
33025 };
33026
33027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33029 if (!SWIG_IsOK(res1)) {
33030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33031 }
33032 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33033 {
33034 arg2 = &temp2;
33035 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33036 }
33037 {
33038 arg3 = &temp3;
33039 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33040 }
33041 {
33042 PyThreadState* __tstate = wxPyBeginAllowThreads();
33043 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
33044 wxPyEndAllowThreads(__tstate);
33045 if (PyErr_Occurred()) SWIG_fail;
33046 }
33047 resultobj = SWIG_Py_Void();
33048 return resultobj;
33049 fail:
33050 return NULL;
33051 }
33052
33053
33054 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33055 PyObject *resultobj = 0;
33056 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33057 int arg2 ;
33058 int arg3 ;
33059 void *argp1 = 0 ;
33060 int res1 = 0 ;
33061 int val2 ;
33062 int ecode2 = 0 ;
33063 int val3 ;
33064 int ecode3 = 0 ;
33065 PyObject * obj0 = 0 ;
33066 PyObject * obj1 = 0 ;
33067 PyObject * obj2 = 0 ;
33068 char * kwnames[] = {
33069 (char *) "self",(char *) "x",(char *) "y", NULL
33070 };
33071
33072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33074 if (!SWIG_IsOK(res1)) {
33075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33076 }
33077 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33078 ecode2 = SWIG_AsVal_int(obj1, &val2);
33079 if (!SWIG_IsOK(ecode2)) {
33080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
33081 }
33082 arg2 = static_cast< int >(val2);
33083 ecode3 = SWIG_AsVal_int(obj2, &val3);
33084 if (!SWIG_IsOK(ecode3)) {
33085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
33086 }
33087 arg3 = static_cast< int >(val3);
33088 {
33089 PyThreadState* __tstate = wxPyBeginAllowThreads();
33090 (arg1)->CrossHair(arg2,arg3);
33091 wxPyEndAllowThreads(__tstate);
33092 if (PyErr_Occurred()) SWIG_fail;
33093 }
33094 resultobj = SWIG_Py_Void();
33095 return resultobj;
33096 fail:
33097 return NULL;
33098 }
33099
33100
33101 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33102 PyObject *resultobj = 0;
33103 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33104 wxPoint *arg2 = 0 ;
33105 void *argp1 = 0 ;
33106 int res1 = 0 ;
33107 wxPoint temp2 ;
33108 PyObject * obj0 = 0 ;
33109 PyObject * obj1 = 0 ;
33110 char * kwnames[] = {
33111 (char *) "self",(char *) "pt", NULL
33112 };
33113
33114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33116 if (!SWIG_IsOK(res1)) {
33117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33118 }
33119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33120 {
33121 arg2 = &temp2;
33122 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33123 }
33124 {
33125 PyThreadState* __tstate = wxPyBeginAllowThreads();
33126 (arg1)->CrossHair((wxPoint const &)*arg2);
33127 wxPyEndAllowThreads(__tstate);
33128 if (PyErr_Occurred()) SWIG_fail;
33129 }
33130 resultobj = SWIG_Py_Void();
33131 return resultobj;
33132 fail:
33133 return NULL;
33134 }
33135
33136
33137 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33138 PyObject *resultobj = 0;
33139 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33140 int arg2 ;
33141 int arg3 ;
33142 int arg4 ;
33143 int arg5 ;
33144 int arg6 ;
33145 int arg7 ;
33146 void *argp1 = 0 ;
33147 int res1 = 0 ;
33148 int val2 ;
33149 int ecode2 = 0 ;
33150 int val3 ;
33151 int ecode3 = 0 ;
33152 int val4 ;
33153 int ecode4 = 0 ;
33154 int val5 ;
33155 int ecode5 = 0 ;
33156 int val6 ;
33157 int ecode6 = 0 ;
33158 int val7 ;
33159 int ecode7 = 0 ;
33160 PyObject * obj0 = 0 ;
33161 PyObject * obj1 = 0 ;
33162 PyObject * obj2 = 0 ;
33163 PyObject * obj3 = 0 ;
33164 PyObject * obj4 = 0 ;
33165 PyObject * obj5 = 0 ;
33166 PyObject * obj6 = 0 ;
33167 char * kwnames[] = {
33168 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
33169 };
33170
33171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33173 if (!SWIG_IsOK(res1)) {
33174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33175 }
33176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33177 ecode2 = SWIG_AsVal_int(obj1, &val2);
33178 if (!SWIG_IsOK(ecode2)) {
33179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
33180 }
33181 arg2 = static_cast< int >(val2);
33182 ecode3 = SWIG_AsVal_int(obj2, &val3);
33183 if (!SWIG_IsOK(ecode3)) {
33184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
33185 }
33186 arg3 = static_cast< int >(val3);
33187 ecode4 = SWIG_AsVal_int(obj3, &val4);
33188 if (!SWIG_IsOK(ecode4)) {
33189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
33190 }
33191 arg4 = static_cast< int >(val4);
33192 ecode5 = SWIG_AsVal_int(obj4, &val5);
33193 if (!SWIG_IsOK(ecode5)) {
33194 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
33195 }
33196 arg5 = static_cast< int >(val5);
33197 ecode6 = SWIG_AsVal_int(obj5, &val6);
33198 if (!SWIG_IsOK(ecode6)) {
33199 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
33200 }
33201 arg6 = static_cast< int >(val6);
33202 ecode7 = SWIG_AsVal_int(obj6, &val7);
33203 if (!SWIG_IsOK(ecode7)) {
33204 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
33205 }
33206 arg7 = static_cast< int >(val7);
33207 {
33208 PyThreadState* __tstate = wxPyBeginAllowThreads();
33209 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
33210 wxPyEndAllowThreads(__tstate);
33211 if (PyErr_Occurred()) SWIG_fail;
33212 }
33213 resultobj = SWIG_Py_Void();
33214 return resultobj;
33215 fail:
33216 return NULL;
33217 }
33218
33219
33220 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33221 PyObject *resultobj = 0;
33222 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33223 wxPoint *arg2 = 0 ;
33224 wxPoint *arg3 = 0 ;
33225 wxPoint *arg4 = 0 ;
33226 void *argp1 = 0 ;
33227 int res1 = 0 ;
33228 wxPoint temp2 ;
33229 wxPoint temp3 ;
33230 wxPoint temp4 ;
33231 PyObject * obj0 = 0 ;
33232 PyObject * obj1 = 0 ;
33233 PyObject * obj2 = 0 ;
33234 PyObject * obj3 = 0 ;
33235 char * kwnames[] = {
33236 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
33237 };
33238
33239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33241 if (!SWIG_IsOK(res1)) {
33242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33243 }
33244 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33245 {
33246 arg2 = &temp2;
33247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33248 }
33249 {
33250 arg3 = &temp3;
33251 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33252 }
33253 {
33254 arg4 = &temp4;
33255 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33256 }
33257 {
33258 PyThreadState* __tstate = wxPyBeginAllowThreads();
33259 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
33260 wxPyEndAllowThreads(__tstate);
33261 if (PyErr_Occurred()) SWIG_fail;
33262 }
33263 resultobj = SWIG_Py_Void();
33264 return resultobj;
33265 fail:
33266 return NULL;
33267 }
33268
33269
33270 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33271 PyObject *resultobj = 0;
33272 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33273 int arg2 ;
33274 int arg3 ;
33275 int arg4 ;
33276 int arg5 ;
33277 void *argp1 = 0 ;
33278 int res1 = 0 ;
33279 int val2 ;
33280 int ecode2 = 0 ;
33281 int val3 ;
33282 int ecode3 = 0 ;
33283 int val4 ;
33284 int ecode4 = 0 ;
33285 int val5 ;
33286 int ecode5 = 0 ;
33287 PyObject * obj0 = 0 ;
33288 PyObject * obj1 = 0 ;
33289 PyObject * obj2 = 0 ;
33290 PyObject * obj3 = 0 ;
33291 PyObject * obj4 = 0 ;
33292 char * kwnames[] = {
33293 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33294 };
33295
33296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33300 }
33301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33302 ecode2 = SWIG_AsVal_int(obj1, &val2);
33303 if (!SWIG_IsOK(ecode2)) {
33304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33305 }
33306 arg2 = static_cast< int >(val2);
33307 ecode3 = SWIG_AsVal_int(obj2, &val3);
33308 if (!SWIG_IsOK(ecode3)) {
33309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33310 }
33311 arg3 = static_cast< int >(val3);
33312 ecode4 = SWIG_AsVal_int(obj3, &val4);
33313 if (!SWIG_IsOK(ecode4)) {
33314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33315 }
33316 arg4 = static_cast< int >(val4);
33317 ecode5 = SWIG_AsVal_int(obj4, &val5);
33318 if (!SWIG_IsOK(ecode5)) {
33319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33320 }
33321 arg5 = static_cast< int >(val5);
33322 {
33323 PyThreadState* __tstate = wxPyBeginAllowThreads();
33324 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33325 wxPyEndAllowThreads(__tstate);
33326 if (PyErr_Occurred()) SWIG_fail;
33327 }
33328 resultobj = SWIG_Py_Void();
33329 return resultobj;
33330 fail:
33331 return NULL;
33332 }
33333
33334
33335 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33336 PyObject *resultobj = 0;
33337 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33338 wxRect *arg2 = 0 ;
33339 void *argp1 = 0 ;
33340 int res1 = 0 ;
33341 wxRect temp2 ;
33342 PyObject * obj0 = 0 ;
33343 PyObject * obj1 = 0 ;
33344 char * kwnames[] = {
33345 (char *) "self",(char *) "rect", NULL
33346 };
33347
33348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33350 if (!SWIG_IsOK(res1)) {
33351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33352 }
33353 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33354 {
33355 arg2 = &temp2;
33356 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33357 }
33358 {
33359 PyThreadState* __tstate = wxPyBeginAllowThreads();
33360 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33361 wxPyEndAllowThreads(__tstate);
33362 if (PyErr_Occurred()) SWIG_fail;
33363 }
33364 resultobj = SWIG_Py_Void();
33365 return resultobj;
33366 fail:
33367 return NULL;
33368 }
33369
33370
33371 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33372 PyObject *resultobj = 0;
33373 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33374 int arg2 ;
33375 int arg3 ;
33376 int arg4 ;
33377 int arg5 ;
33378 double arg6 ;
33379 double arg7 ;
33380 void *argp1 = 0 ;
33381 int res1 = 0 ;
33382 int val2 ;
33383 int ecode2 = 0 ;
33384 int val3 ;
33385 int ecode3 = 0 ;
33386 int val4 ;
33387 int ecode4 = 0 ;
33388 int val5 ;
33389 int ecode5 = 0 ;
33390 double val6 ;
33391 int ecode6 = 0 ;
33392 double val7 ;
33393 int ecode7 = 0 ;
33394 PyObject * obj0 = 0 ;
33395 PyObject * obj1 = 0 ;
33396 PyObject * obj2 = 0 ;
33397 PyObject * obj3 = 0 ;
33398 PyObject * obj4 = 0 ;
33399 PyObject * obj5 = 0 ;
33400 PyObject * obj6 = 0 ;
33401 char * kwnames[] = {
33402 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33403 };
33404
33405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33407 if (!SWIG_IsOK(res1)) {
33408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33409 }
33410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33411 ecode2 = SWIG_AsVal_int(obj1, &val2);
33412 if (!SWIG_IsOK(ecode2)) {
33413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33414 }
33415 arg2 = static_cast< int >(val2);
33416 ecode3 = SWIG_AsVal_int(obj2, &val3);
33417 if (!SWIG_IsOK(ecode3)) {
33418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33419 }
33420 arg3 = static_cast< int >(val3);
33421 ecode4 = SWIG_AsVal_int(obj3, &val4);
33422 if (!SWIG_IsOK(ecode4)) {
33423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33424 }
33425 arg4 = static_cast< int >(val4);
33426 ecode5 = SWIG_AsVal_int(obj4, &val5);
33427 if (!SWIG_IsOK(ecode5)) {
33428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33429 }
33430 arg5 = static_cast< int >(val5);
33431 ecode6 = SWIG_AsVal_double(obj5, &val6);
33432 if (!SWIG_IsOK(ecode6)) {
33433 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33434 }
33435 arg6 = static_cast< double >(val6);
33436 ecode7 = SWIG_AsVal_double(obj6, &val7);
33437 if (!SWIG_IsOK(ecode7)) {
33438 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33439 }
33440 arg7 = static_cast< double >(val7);
33441 {
33442 PyThreadState* __tstate = wxPyBeginAllowThreads();
33443 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33444 wxPyEndAllowThreads(__tstate);
33445 if (PyErr_Occurred()) SWIG_fail;
33446 }
33447 resultobj = SWIG_Py_Void();
33448 return resultobj;
33449 fail:
33450 return NULL;
33451 }
33452
33453
33454 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33455 PyObject *resultobj = 0;
33456 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33457 wxPoint *arg2 = 0 ;
33458 wxSize *arg3 = 0 ;
33459 double arg4 ;
33460 double arg5 ;
33461 void *argp1 = 0 ;
33462 int res1 = 0 ;
33463 wxPoint temp2 ;
33464 wxSize temp3 ;
33465 double val4 ;
33466 int ecode4 = 0 ;
33467 double val5 ;
33468 int ecode5 = 0 ;
33469 PyObject * obj0 = 0 ;
33470 PyObject * obj1 = 0 ;
33471 PyObject * obj2 = 0 ;
33472 PyObject * obj3 = 0 ;
33473 PyObject * obj4 = 0 ;
33474 char * kwnames[] = {
33475 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33476 };
33477
33478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33480 if (!SWIG_IsOK(res1)) {
33481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33482 }
33483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33484 {
33485 arg2 = &temp2;
33486 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33487 }
33488 {
33489 arg3 = &temp3;
33490 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33491 }
33492 ecode4 = SWIG_AsVal_double(obj3, &val4);
33493 if (!SWIG_IsOK(ecode4)) {
33494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33495 }
33496 arg4 = static_cast< double >(val4);
33497 ecode5 = SWIG_AsVal_double(obj4, &val5);
33498 if (!SWIG_IsOK(ecode5)) {
33499 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33500 }
33501 arg5 = static_cast< double >(val5);
33502 {
33503 PyThreadState* __tstate = wxPyBeginAllowThreads();
33504 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33505 wxPyEndAllowThreads(__tstate);
33506 if (PyErr_Occurred()) SWIG_fail;
33507 }
33508 resultobj = SWIG_Py_Void();
33509 return resultobj;
33510 fail:
33511 return NULL;
33512 }
33513
33514
33515 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33516 PyObject *resultobj = 0;
33517 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33518 int arg2 ;
33519 int arg3 ;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 int val2 ;
33523 int ecode2 = 0 ;
33524 int val3 ;
33525 int ecode3 = 0 ;
33526 PyObject * obj0 = 0 ;
33527 PyObject * obj1 = 0 ;
33528 PyObject * obj2 = 0 ;
33529 char * kwnames[] = {
33530 (char *) "self",(char *) "x",(char *) "y", NULL
33531 };
33532
33533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33535 if (!SWIG_IsOK(res1)) {
33536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33537 }
33538 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33539 ecode2 = SWIG_AsVal_int(obj1, &val2);
33540 if (!SWIG_IsOK(ecode2)) {
33541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33542 }
33543 arg2 = static_cast< int >(val2);
33544 ecode3 = SWIG_AsVal_int(obj2, &val3);
33545 if (!SWIG_IsOK(ecode3)) {
33546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33547 }
33548 arg3 = static_cast< int >(val3);
33549 {
33550 PyThreadState* __tstate = wxPyBeginAllowThreads();
33551 (arg1)->DrawPoint(arg2,arg3);
33552 wxPyEndAllowThreads(__tstate);
33553 if (PyErr_Occurred()) SWIG_fail;
33554 }
33555 resultobj = SWIG_Py_Void();
33556 return resultobj;
33557 fail:
33558 return NULL;
33559 }
33560
33561
33562 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33563 PyObject *resultobj = 0;
33564 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33565 wxPoint *arg2 = 0 ;
33566 void *argp1 = 0 ;
33567 int res1 = 0 ;
33568 wxPoint temp2 ;
33569 PyObject * obj0 = 0 ;
33570 PyObject * obj1 = 0 ;
33571 char * kwnames[] = {
33572 (char *) "self",(char *) "pt", NULL
33573 };
33574
33575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33577 if (!SWIG_IsOK(res1)) {
33578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33579 }
33580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33581 {
33582 arg2 = &temp2;
33583 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33584 }
33585 {
33586 PyThreadState* __tstate = wxPyBeginAllowThreads();
33587 (arg1)->DrawPoint((wxPoint const &)*arg2);
33588 wxPyEndAllowThreads(__tstate);
33589 if (PyErr_Occurred()) SWIG_fail;
33590 }
33591 resultobj = SWIG_Py_Void();
33592 return resultobj;
33593 fail:
33594 return NULL;
33595 }
33596
33597
33598 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33599 PyObject *resultobj = 0;
33600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33601 int arg2 ;
33602 int arg3 ;
33603 int arg4 ;
33604 int arg5 ;
33605 void *argp1 = 0 ;
33606 int res1 = 0 ;
33607 int val2 ;
33608 int ecode2 = 0 ;
33609 int val3 ;
33610 int ecode3 = 0 ;
33611 int val4 ;
33612 int ecode4 = 0 ;
33613 int val5 ;
33614 int ecode5 = 0 ;
33615 PyObject * obj0 = 0 ;
33616 PyObject * obj1 = 0 ;
33617 PyObject * obj2 = 0 ;
33618 PyObject * obj3 = 0 ;
33619 PyObject * obj4 = 0 ;
33620 char * kwnames[] = {
33621 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33622 };
33623
33624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33626 if (!SWIG_IsOK(res1)) {
33627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33628 }
33629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33630 ecode2 = SWIG_AsVal_int(obj1, &val2);
33631 if (!SWIG_IsOK(ecode2)) {
33632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33633 }
33634 arg2 = static_cast< int >(val2);
33635 ecode3 = SWIG_AsVal_int(obj2, &val3);
33636 if (!SWIG_IsOK(ecode3)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33638 }
33639 arg3 = static_cast< int >(val3);
33640 ecode4 = SWIG_AsVal_int(obj3, &val4);
33641 if (!SWIG_IsOK(ecode4)) {
33642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33643 }
33644 arg4 = static_cast< int >(val4);
33645 ecode5 = SWIG_AsVal_int(obj4, &val5);
33646 if (!SWIG_IsOK(ecode5)) {
33647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33648 }
33649 arg5 = static_cast< int >(val5);
33650 {
33651 PyThreadState* __tstate = wxPyBeginAllowThreads();
33652 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33653 wxPyEndAllowThreads(__tstate);
33654 if (PyErr_Occurred()) SWIG_fail;
33655 }
33656 resultobj = SWIG_Py_Void();
33657 return resultobj;
33658 fail:
33659 return NULL;
33660 }
33661
33662
33663 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33664 PyObject *resultobj = 0;
33665 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33666 wxRect *arg2 = 0 ;
33667 void *argp1 = 0 ;
33668 int res1 = 0 ;
33669 wxRect temp2 ;
33670 PyObject * obj0 = 0 ;
33671 PyObject * obj1 = 0 ;
33672 char * kwnames[] = {
33673 (char *) "self",(char *) "rect", NULL
33674 };
33675
33676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33680 }
33681 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33682 {
33683 arg2 = &temp2;
33684 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33685 }
33686 {
33687 PyThreadState* __tstate = wxPyBeginAllowThreads();
33688 (arg1)->DrawRectangle((wxRect const &)*arg2);
33689 wxPyEndAllowThreads(__tstate);
33690 if (PyErr_Occurred()) SWIG_fail;
33691 }
33692 resultobj = SWIG_Py_Void();
33693 return resultobj;
33694 fail:
33695 return NULL;
33696 }
33697
33698
33699 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33700 PyObject *resultobj = 0;
33701 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33702 wxPoint *arg2 = 0 ;
33703 wxSize *arg3 = 0 ;
33704 void *argp1 = 0 ;
33705 int res1 = 0 ;
33706 wxPoint temp2 ;
33707 wxSize temp3 ;
33708 PyObject * obj0 = 0 ;
33709 PyObject * obj1 = 0 ;
33710 PyObject * obj2 = 0 ;
33711 char * kwnames[] = {
33712 (char *) "self",(char *) "pt",(char *) "sz", NULL
33713 };
33714
33715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33717 if (!SWIG_IsOK(res1)) {
33718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33719 }
33720 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33721 {
33722 arg2 = &temp2;
33723 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33724 }
33725 {
33726 arg3 = &temp3;
33727 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33728 }
33729 {
33730 PyThreadState* __tstate = wxPyBeginAllowThreads();
33731 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33732 wxPyEndAllowThreads(__tstate);
33733 if (PyErr_Occurred()) SWIG_fail;
33734 }
33735 resultobj = SWIG_Py_Void();
33736 return resultobj;
33737 fail:
33738 return NULL;
33739 }
33740
33741
33742 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33743 PyObject *resultobj = 0;
33744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33745 int arg2 ;
33746 int arg3 ;
33747 int arg4 ;
33748 int arg5 ;
33749 double arg6 ;
33750 void *argp1 = 0 ;
33751 int res1 = 0 ;
33752 int val2 ;
33753 int ecode2 = 0 ;
33754 int val3 ;
33755 int ecode3 = 0 ;
33756 int val4 ;
33757 int ecode4 = 0 ;
33758 int val5 ;
33759 int ecode5 = 0 ;
33760 double val6 ;
33761 int ecode6 = 0 ;
33762 PyObject * obj0 = 0 ;
33763 PyObject * obj1 = 0 ;
33764 PyObject * obj2 = 0 ;
33765 PyObject * obj3 = 0 ;
33766 PyObject * obj4 = 0 ;
33767 PyObject * obj5 = 0 ;
33768 char * kwnames[] = {
33769 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33770 };
33771
33772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33774 if (!SWIG_IsOK(res1)) {
33775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33776 }
33777 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33778 ecode2 = SWIG_AsVal_int(obj1, &val2);
33779 if (!SWIG_IsOK(ecode2)) {
33780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33781 }
33782 arg2 = static_cast< int >(val2);
33783 ecode3 = SWIG_AsVal_int(obj2, &val3);
33784 if (!SWIG_IsOK(ecode3)) {
33785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33786 }
33787 arg3 = static_cast< int >(val3);
33788 ecode4 = SWIG_AsVal_int(obj3, &val4);
33789 if (!SWIG_IsOK(ecode4)) {
33790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33791 }
33792 arg4 = static_cast< int >(val4);
33793 ecode5 = SWIG_AsVal_int(obj4, &val5);
33794 if (!SWIG_IsOK(ecode5)) {
33795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33796 }
33797 arg5 = static_cast< int >(val5);
33798 ecode6 = SWIG_AsVal_double(obj5, &val6);
33799 if (!SWIG_IsOK(ecode6)) {
33800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33801 }
33802 arg6 = static_cast< double >(val6);
33803 {
33804 PyThreadState* __tstate = wxPyBeginAllowThreads();
33805 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33806 wxPyEndAllowThreads(__tstate);
33807 if (PyErr_Occurred()) SWIG_fail;
33808 }
33809 resultobj = SWIG_Py_Void();
33810 return resultobj;
33811 fail:
33812 return NULL;
33813 }
33814
33815
33816 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33817 PyObject *resultobj = 0;
33818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33819 wxRect *arg2 = 0 ;
33820 double arg3 ;
33821 void *argp1 = 0 ;
33822 int res1 = 0 ;
33823 wxRect temp2 ;
33824 double val3 ;
33825 int ecode3 = 0 ;
33826 PyObject * obj0 = 0 ;
33827 PyObject * obj1 = 0 ;
33828 PyObject * obj2 = 0 ;
33829 char * kwnames[] = {
33830 (char *) "self",(char *) "r",(char *) "radius", NULL
33831 };
33832
33833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33835 if (!SWIG_IsOK(res1)) {
33836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33837 }
33838 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33839 {
33840 arg2 = &temp2;
33841 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33842 }
33843 ecode3 = SWIG_AsVal_double(obj2, &val3);
33844 if (!SWIG_IsOK(ecode3)) {
33845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33846 }
33847 arg3 = static_cast< double >(val3);
33848 {
33849 PyThreadState* __tstate = wxPyBeginAllowThreads();
33850 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 resultobj = SWIG_Py_Void();
33855 return resultobj;
33856 fail:
33857 return NULL;
33858 }
33859
33860
33861 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33862 PyObject *resultobj = 0;
33863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33864 wxPoint *arg2 = 0 ;
33865 wxSize *arg3 = 0 ;
33866 double arg4 ;
33867 void *argp1 = 0 ;
33868 int res1 = 0 ;
33869 wxPoint temp2 ;
33870 wxSize temp3 ;
33871 double val4 ;
33872 int ecode4 = 0 ;
33873 PyObject * obj0 = 0 ;
33874 PyObject * obj1 = 0 ;
33875 PyObject * obj2 = 0 ;
33876 PyObject * obj3 = 0 ;
33877 char * kwnames[] = {
33878 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33879 };
33880
33881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33883 if (!SWIG_IsOK(res1)) {
33884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33885 }
33886 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33887 {
33888 arg2 = &temp2;
33889 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33890 }
33891 {
33892 arg3 = &temp3;
33893 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33894 }
33895 ecode4 = SWIG_AsVal_double(obj3, &val4);
33896 if (!SWIG_IsOK(ecode4)) {
33897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33898 }
33899 arg4 = static_cast< double >(val4);
33900 {
33901 PyThreadState* __tstate = wxPyBeginAllowThreads();
33902 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33903 wxPyEndAllowThreads(__tstate);
33904 if (PyErr_Occurred()) SWIG_fail;
33905 }
33906 resultobj = SWIG_Py_Void();
33907 return resultobj;
33908 fail:
33909 return NULL;
33910 }
33911
33912
33913 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33914 PyObject *resultobj = 0;
33915 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33916 int arg2 ;
33917 int arg3 ;
33918 int arg4 ;
33919 void *argp1 = 0 ;
33920 int res1 = 0 ;
33921 int val2 ;
33922 int ecode2 = 0 ;
33923 int val3 ;
33924 int ecode3 = 0 ;
33925 int val4 ;
33926 int ecode4 = 0 ;
33927 PyObject * obj0 = 0 ;
33928 PyObject * obj1 = 0 ;
33929 PyObject * obj2 = 0 ;
33930 PyObject * obj3 = 0 ;
33931 char * kwnames[] = {
33932 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33933 };
33934
33935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33937 if (!SWIG_IsOK(res1)) {
33938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33939 }
33940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33941 ecode2 = SWIG_AsVal_int(obj1, &val2);
33942 if (!SWIG_IsOK(ecode2)) {
33943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33944 }
33945 arg2 = static_cast< int >(val2);
33946 ecode3 = SWIG_AsVal_int(obj2, &val3);
33947 if (!SWIG_IsOK(ecode3)) {
33948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33949 }
33950 arg3 = static_cast< int >(val3);
33951 ecode4 = SWIG_AsVal_int(obj3, &val4);
33952 if (!SWIG_IsOK(ecode4)) {
33953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33954 }
33955 arg4 = static_cast< int >(val4);
33956 {
33957 PyThreadState* __tstate = wxPyBeginAllowThreads();
33958 (arg1)->DrawCircle(arg2,arg3,arg4);
33959 wxPyEndAllowThreads(__tstate);
33960 if (PyErr_Occurred()) SWIG_fail;
33961 }
33962 resultobj = SWIG_Py_Void();
33963 return resultobj;
33964 fail:
33965 return NULL;
33966 }
33967
33968
33969 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33970 PyObject *resultobj = 0;
33971 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33972 wxPoint *arg2 = 0 ;
33973 int arg3 ;
33974 void *argp1 = 0 ;
33975 int res1 = 0 ;
33976 wxPoint temp2 ;
33977 int val3 ;
33978 int ecode3 = 0 ;
33979 PyObject * obj0 = 0 ;
33980 PyObject * obj1 = 0 ;
33981 PyObject * obj2 = 0 ;
33982 char * kwnames[] = {
33983 (char *) "self",(char *) "pt",(char *) "radius", NULL
33984 };
33985
33986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33988 if (!SWIG_IsOK(res1)) {
33989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33990 }
33991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33992 {
33993 arg2 = &temp2;
33994 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33995 }
33996 ecode3 = SWIG_AsVal_int(obj2, &val3);
33997 if (!SWIG_IsOK(ecode3)) {
33998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33999 }
34000 arg3 = static_cast< int >(val3);
34001 {
34002 PyThreadState* __tstate = wxPyBeginAllowThreads();
34003 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
34004 wxPyEndAllowThreads(__tstate);
34005 if (PyErr_Occurred()) SWIG_fail;
34006 }
34007 resultobj = SWIG_Py_Void();
34008 return resultobj;
34009 fail:
34010 return NULL;
34011 }
34012
34013
34014 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34015 PyObject *resultobj = 0;
34016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34017 int arg2 ;
34018 int arg3 ;
34019 int arg4 ;
34020 int arg5 ;
34021 void *argp1 = 0 ;
34022 int res1 = 0 ;
34023 int val2 ;
34024 int ecode2 = 0 ;
34025 int val3 ;
34026 int ecode3 = 0 ;
34027 int val4 ;
34028 int ecode4 = 0 ;
34029 int val5 ;
34030 int ecode5 = 0 ;
34031 PyObject * obj0 = 0 ;
34032 PyObject * obj1 = 0 ;
34033 PyObject * obj2 = 0 ;
34034 PyObject * obj3 = 0 ;
34035 PyObject * obj4 = 0 ;
34036 char * kwnames[] = {
34037 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
34038 };
34039
34040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34042 if (!SWIG_IsOK(res1)) {
34043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34044 }
34045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34046 ecode2 = SWIG_AsVal_int(obj1, &val2);
34047 if (!SWIG_IsOK(ecode2)) {
34048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
34049 }
34050 arg2 = static_cast< int >(val2);
34051 ecode3 = SWIG_AsVal_int(obj2, &val3);
34052 if (!SWIG_IsOK(ecode3)) {
34053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
34054 }
34055 arg3 = static_cast< int >(val3);
34056 ecode4 = SWIG_AsVal_int(obj3, &val4);
34057 if (!SWIG_IsOK(ecode4)) {
34058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
34059 }
34060 arg4 = static_cast< int >(val4);
34061 ecode5 = SWIG_AsVal_int(obj4, &val5);
34062 if (!SWIG_IsOK(ecode5)) {
34063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
34064 }
34065 arg5 = static_cast< int >(val5);
34066 {
34067 PyThreadState* __tstate = wxPyBeginAllowThreads();
34068 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
34069 wxPyEndAllowThreads(__tstate);
34070 if (PyErr_Occurred()) SWIG_fail;
34071 }
34072 resultobj = SWIG_Py_Void();
34073 return resultobj;
34074 fail:
34075 return NULL;
34076 }
34077
34078
34079 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34080 PyObject *resultobj = 0;
34081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34082 wxRect *arg2 = 0 ;
34083 void *argp1 = 0 ;
34084 int res1 = 0 ;
34085 wxRect temp2 ;
34086 PyObject * obj0 = 0 ;
34087 PyObject * obj1 = 0 ;
34088 char * kwnames[] = {
34089 (char *) "self",(char *) "rect", NULL
34090 };
34091
34092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
34093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34094 if (!SWIG_IsOK(res1)) {
34095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34096 }
34097 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34098 {
34099 arg2 = &temp2;
34100 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34101 }
34102 {
34103 PyThreadState* __tstate = wxPyBeginAllowThreads();
34104 (arg1)->DrawEllipse((wxRect const &)*arg2);
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_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34116 PyObject *resultobj = 0;
34117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34118 wxPoint *arg2 = 0 ;
34119 wxSize *arg3 = 0 ;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 wxPoint temp2 ;
34123 wxSize temp3 ;
34124 PyObject * obj0 = 0 ;
34125 PyObject * obj1 = 0 ;
34126 PyObject * obj2 = 0 ;
34127 char * kwnames[] = {
34128 (char *) "self",(char *) "pt",(char *) "sz", NULL
34129 };
34130
34131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34135 }
34136 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34137 {
34138 arg2 = &temp2;
34139 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
34140 }
34141 {
34142 arg3 = &temp3;
34143 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
34144 }
34145 {
34146 PyThreadState* __tstate = wxPyBeginAllowThreads();
34147 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
34148 wxPyEndAllowThreads(__tstate);
34149 if (PyErr_Occurred()) SWIG_fail;
34150 }
34151 resultobj = SWIG_Py_Void();
34152 return resultobj;
34153 fail:
34154 return NULL;
34155 }
34156
34157
34158 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34159 PyObject *resultobj = 0;
34160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34161 wxIcon *arg2 = 0 ;
34162 int arg3 ;
34163 int arg4 ;
34164 void *argp1 = 0 ;
34165 int res1 = 0 ;
34166 void *argp2 = 0 ;
34167 int res2 = 0 ;
34168 int val3 ;
34169 int ecode3 = 0 ;
34170 int val4 ;
34171 int ecode4 = 0 ;
34172 PyObject * obj0 = 0 ;
34173 PyObject * obj1 = 0 ;
34174 PyObject * obj2 = 0 ;
34175 PyObject * obj3 = 0 ;
34176 char * kwnames[] = {
34177 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
34178 };
34179
34180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34182 if (!SWIG_IsOK(res1)) {
34183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34184 }
34185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34187 if (!SWIG_IsOK(res2)) {
34188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34189 }
34190 if (!argp2) {
34191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34192 }
34193 arg2 = reinterpret_cast< wxIcon * >(argp2);
34194 ecode3 = SWIG_AsVal_int(obj2, &val3);
34195 if (!SWIG_IsOK(ecode3)) {
34196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
34197 }
34198 arg3 = static_cast< int >(val3);
34199 ecode4 = SWIG_AsVal_int(obj3, &val4);
34200 if (!SWIG_IsOK(ecode4)) {
34201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
34202 }
34203 arg4 = static_cast< int >(val4);
34204 {
34205 PyThreadState* __tstate = wxPyBeginAllowThreads();
34206 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
34207 wxPyEndAllowThreads(__tstate);
34208 if (PyErr_Occurred()) SWIG_fail;
34209 }
34210 resultobj = SWIG_Py_Void();
34211 return resultobj;
34212 fail:
34213 return NULL;
34214 }
34215
34216
34217 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34218 PyObject *resultobj = 0;
34219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34220 wxIcon *arg2 = 0 ;
34221 wxPoint *arg3 = 0 ;
34222 void *argp1 = 0 ;
34223 int res1 = 0 ;
34224 void *argp2 = 0 ;
34225 int res2 = 0 ;
34226 wxPoint temp3 ;
34227 PyObject * obj0 = 0 ;
34228 PyObject * obj1 = 0 ;
34229 PyObject * obj2 = 0 ;
34230 char * kwnames[] = {
34231 (char *) "self",(char *) "icon",(char *) "pt", NULL
34232 };
34233
34234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34236 if (!SWIG_IsOK(res1)) {
34237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34238 }
34239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34241 if (!SWIG_IsOK(res2)) {
34242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34243 }
34244 if (!argp2) {
34245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34246 }
34247 arg2 = reinterpret_cast< wxIcon * >(argp2);
34248 {
34249 arg3 = &temp3;
34250 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34251 }
34252 {
34253 PyThreadState* __tstate = wxPyBeginAllowThreads();
34254 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
34255 wxPyEndAllowThreads(__tstate);
34256 if (PyErr_Occurred()) SWIG_fail;
34257 }
34258 resultobj = SWIG_Py_Void();
34259 return resultobj;
34260 fail:
34261 return NULL;
34262 }
34263
34264
34265 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34266 PyObject *resultobj = 0;
34267 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34268 wxBitmap *arg2 = 0 ;
34269 int arg3 ;
34270 int arg4 ;
34271 bool arg5 = (bool) false ;
34272 void *argp1 = 0 ;
34273 int res1 = 0 ;
34274 void *argp2 = 0 ;
34275 int res2 = 0 ;
34276 int val3 ;
34277 int ecode3 = 0 ;
34278 int val4 ;
34279 int ecode4 = 0 ;
34280 bool val5 ;
34281 int ecode5 = 0 ;
34282 PyObject * obj0 = 0 ;
34283 PyObject * obj1 = 0 ;
34284 PyObject * obj2 = 0 ;
34285 PyObject * obj3 = 0 ;
34286 PyObject * obj4 = 0 ;
34287 char * kwnames[] = {
34288 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34289 };
34290
34291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34293 if (!SWIG_IsOK(res1)) {
34294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34295 }
34296 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34298 if (!SWIG_IsOK(res2)) {
34299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34300 }
34301 if (!argp2) {
34302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34303 }
34304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34305 ecode3 = SWIG_AsVal_int(obj2, &val3);
34306 if (!SWIG_IsOK(ecode3)) {
34307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34308 }
34309 arg3 = static_cast< int >(val3);
34310 ecode4 = SWIG_AsVal_int(obj3, &val4);
34311 if (!SWIG_IsOK(ecode4)) {
34312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34313 }
34314 arg4 = static_cast< int >(val4);
34315 if (obj4) {
34316 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34317 if (!SWIG_IsOK(ecode5)) {
34318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34319 }
34320 arg5 = static_cast< bool >(val5);
34321 }
34322 {
34323 PyThreadState* __tstate = wxPyBeginAllowThreads();
34324 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34325 wxPyEndAllowThreads(__tstate);
34326 if (PyErr_Occurred()) SWIG_fail;
34327 }
34328 resultobj = SWIG_Py_Void();
34329 return resultobj;
34330 fail:
34331 return NULL;
34332 }
34333
34334
34335 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34336 PyObject *resultobj = 0;
34337 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34338 wxBitmap *arg2 = 0 ;
34339 wxPoint *arg3 = 0 ;
34340 bool arg4 = (bool) false ;
34341 void *argp1 = 0 ;
34342 int res1 = 0 ;
34343 void *argp2 = 0 ;
34344 int res2 = 0 ;
34345 wxPoint temp3 ;
34346 bool val4 ;
34347 int ecode4 = 0 ;
34348 PyObject * obj0 = 0 ;
34349 PyObject * obj1 = 0 ;
34350 PyObject * obj2 = 0 ;
34351 PyObject * obj3 = 0 ;
34352 char * kwnames[] = {
34353 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34354 };
34355
34356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34358 if (!SWIG_IsOK(res1)) {
34359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34360 }
34361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34362 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34363 if (!SWIG_IsOK(res2)) {
34364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34365 }
34366 if (!argp2) {
34367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34368 }
34369 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34370 {
34371 arg3 = &temp3;
34372 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34373 }
34374 if (obj3) {
34375 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34376 if (!SWIG_IsOK(ecode4)) {
34377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34378 }
34379 arg4 = static_cast< bool >(val4);
34380 }
34381 {
34382 PyThreadState* __tstate = wxPyBeginAllowThreads();
34383 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_Py_Void();
34388 return resultobj;
34389 fail:
34390 return NULL;
34391 }
34392
34393
34394 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34397 wxString *arg2 = 0 ;
34398 int arg3 ;
34399 int arg4 ;
34400 void *argp1 = 0 ;
34401 int res1 = 0 ;
34402 bool temp2 = false ;
34403 int val3 ;
34404 int ecode3 = 0 ;
34405 int val4 ;
34406 int ecode4 = 0 ;
34407 PyObject * obj0 = 0 ;
34408 PyObject * obj1 = 0 ;
34409 PyObject * obj2 = 0 ;
34410 PyObject * obj3 = 0 ;
34411 char * kwnames[] = {
34412 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34413 };
34414
34415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34417 if (!SWIG_IsOK(res1)) {
34418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34419 }
34420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34421 {
34422 arg2 = wxString_in_helper(obj1);
34423 if (arg2 == NULL) SWIG_fail;
34424 temp2 = true;
34425 }
34426 ecode3 = SWIG_AsVal_int(obj2, &val3);
34427 if (!SWIG_IsOK(ecode3)) {
34428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34429 }
34430 arg3 = static_cast< int >(val3);
34431 ecode4 = SWIG_AsVal_int(obj3, &val4);
34432 if (!SWIG_IsOK(ecode4)) {
34433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34434 }
34435 arg4 = static_cast< int >(val4);
34436 {
34437 PyThreadState* __tstate = wxPyBeginAllowThreads();
34438 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34439 wxPyEndAllowThreads(__tstate);
34440 if (PyErr_Occurred()) SWIG_fail;
34441 }
34442 resultobj = SWIG_Py_Void();
34443 {
34444 if (temp2)
34445 delete arg2;
34446 }
34447 return resultobj;
34448 fail:
34449 {
34450 if (temp2)
34451 delete arg2;
34452 }
34453 return NULL;
34454 }
34455
34456
34457 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34458 PyObject *resultobj = 0;
34459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34460 wxString *arg2 = 0 ;
34461 wxPoint *arg3 = 0 ;
34462 void *argp1 = 0 ;
34463 int res1 = 0 ;
34464 bool temp2 = false ;
34465 wxPoint temp3 ;
34466 PyObject * obj0 = 0 ;
34467 PyObject * obj1 = 0 ;
34468 PyObject * obj2 = 0 ;
34469 char * kwnames[] = {
34470 (char *) "self",(char *) "text",(char *) "pt", NULL
34471 };
34472
34473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34475 if (!SWIG_IsOK(res1)) {
34476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34477 }
34478 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34479 {
34480 arg2 = wxString_in_helper(obj1);
34481 if (arg2 == NULL) SWIG_fail;
34482 temp2 = true;
34483 }
34484 {
34485 arg3 = &temp3;
34486 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34487 }
34488 {
34489 PyThreadState* __tstate = wxPyBeginAllowThreads();
34490 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34491 wxPyEndAllowThreads(__tstate);
34492 if (PyErr_Occurred()) SWIG_fail;
34493 }
34494 resultobj = SWIG_Py_Void();
34495 {
34496 if (temp2)
34497 delete arg2;
34498 }
34499 return resultobj;
34500 fail:
34501 {
34502 if (temp2)
34503 delete arg2;
34504 }
34505 return NULL;
34506 }
34507
34508
34509 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34510 PyObject *resultobj = 0;
34511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34512 wxString *arg2 = 0 ;
34513 int arg3 ;
34514 int arg4 ;
34515 double arg5 ;
34516 void *argp1 = 0 ;
34517 int res1 = 0 ;
34518 bool temp2 = false ;
34519 int val3 ;
34520 int ecode3 = 0 ;
34521 int val4 ;
34522 int ecode4 = 0 ;
34523 double val5 ;
34524 int ecode5 = 0 ;
34525 PyObject * obj0 = 0 ;
34526 PyObject * obj1 = 0 ;
34527 PyObject * obj2 = 0 ;
34528 PyObject * obj3 = 0 ;
34529 PyObject * obj4 = 0 ;
34530 char * kwnames[] = {
34531 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34532 };
34533
34534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34536 if (!SWIG_IsOK(res1)) {
34537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34538 }
34539 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34540 {
34541 arg2 = wxString_in_helper(obj1);
34542 if (arg2 == NULL) SWIG_fail;
34543 temp2 = true;
34544 }
34545 ecode3 = SWIG_AsVal_int(obj2, &val3);
34546 if (!SWIG_IsOK(ecode3)) {
34547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34548 }
34549 arg3 = static_cast< int >(val3);
34550 ecode4 = SWIG_AsVal_int(obj3, &val4);
34551 if (!SWIG_IsOK(ecode4)) {
34552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34553 }
34554 arg4 = static_cast< int >(val4);
34555 ecode5 = SWIG_AsVal_double(obj4, &val5);
34556 if (!SWIG_IsOK(ecode5)) {
34557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34558 }
34559 arg5 = static_cast< double >(val5);
34560 {
34561 PyThreadState* __tstate = wxPyBeginAllowThreads();
34562 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34563 wxPyEndAllowThreads(__tstate);
34564 if (PyErr_Occurred()) SWIG_fail;
34565 }
34566 resultobj = SWIG_Py_Void();
34567 {
34568 if (temp2)
34569 delete arg2;
34570 }
34571 return resultobj;
34572 fail:
34573 {
34574 if (temp2)
34575 delete arg2;
34576 }
34577 return NULL;
34578 }
34579
34580
34581 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34582 PyObject *resultobj = 0;
34583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34584 wxString *arg2 = 0 ;
34585 wxPoint *arg3 = 0 ;
34586 double arg4 ;
34587 void *argp1 = 0 ;
34588 int res1 = 0 ;
34589 bool temp2 = false ;
34590 wxPoint temp3 ;
34591 double val4 ;
34592 int ecode4 = 0 ;
34593 PyObject * obj0 = 0 ;
34594 PyObject * obj1 = 0 ;
34595 PyObject * obj2 = 0 ;
34596 PyObject * obj3 = 0 ;
34597 char * kwnames[] = {
34598 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34599 };
34600
34601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34603 if (!SWIG_IsOK(res1)) {
34604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34605 }
34606 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34607 {
34608 arg2 = wxString_in_helper(obj1);
34609 if (arg2 == NULL) SWIG_fail;
34610 temp2 = true;
34611 }
34612 {
34613 arg3 = &temp3;
34614 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34615 }
34616 ecode4 = SWIG_AsVal_double(obj3, &val4);
34617 if (!SWIG_IsOK(ecode4)) {
34618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34619 }
34620 arg4 = static_cast< double >(val4);
34621 {
34622 PyThreadState* __tstate = wxPyBeginAllowThreads();
34623 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34624 wxPyEndAllowThreads(__tstate);
34625 if (PyErr_Occurred()) SWIG_fail;
34626 }
34627 resultobj = SWIG_Py_Void();
34628 {
34629 if (temp2)
34630 delete arg2;
34631 }
34632 return resultobj;
34633 fail:
34634 {
34635 if (temp2)
34636 delete arg2;
34637 }
34638 return NULL;
34639 }
34640
34641
34642 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34643 PyObject *resultobj = 0;
34644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34645 int arg2 ;
34646 wxPoint *arg3 = (wxPoint *) 0 ;
34647 int arg4 = (int) 0 ;
34648 int arg5 = (int) 0 ;
34649 void *argp1 = 0 ;
34650 int res1 = 0 ;
34651 int val4 ;
34652 int ecode4 = 0 ;
34653 int val5 ;
34654 int ecode5 = 0 ;
34655 PyObject * obj0 = 0 ;
34656 PyObject * obj1 = 0 ;
34657 PyObject * obj2 = 0 ;
34658 PyObject * obj3 = 0 ;
34659 char * kwnames[] = {
34660 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34661 };
34662
34663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34665 if (!SWIG_IsOK(res1)) {
34666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34667 }
34668 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34669 {
34670 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34671 if (arg3 == NULL) SWIG_fail;
34672 }
34673 if (obj2) {
34674 ecode4 = SWIG_AsVal_int(obj2, &val4);
34675 if (!SWIG_IsOK(ecode4)) {
34676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34677 }
34678 arg4 = static_cast< int >(val4);
34679 }
34680 if (obj3) {
34681 ecode5 = SWIG_AsVal_int(obj3, &val5);
34682 if (!SWIG_IsOK(ecode5)) {
34683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34684 }
34685 arg5 = static_cast< int >(val5);
34686 }
34687 {
34688 PyThreadState* __tstate = wxPyBeginAllowThreads();
34689 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34690 wxPyEndAllowThreads(__tstate);
34691 if (PyErr_Occurred()) SWIG_fail;
34692 }
34693 resultobj = SWIG_Py_Void();
34694 {
34695 if (arg3) delete [] arg3;
34696 }
34697 return resultobj;
34698 fail:
34699 {
34700 if (arg3) delete [] arg3;
34701 }
34702 return NULL;
34703 }
34704
34705
34706 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34707 PyObject *resultobj = 0;
34708 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34709 int arg2 ;
34710 wxPoint *arg3 = (wxPoint *) 0 ;
34711 int arg4 = (int) 0 ;
34712 int arg5 = (int) 0 ;
34713 int arg6 = (int) wxODDEVEN_RULE ;
34714 void *argp1 = 0 ;
34715 int res1 = 0 ;
34716 int val4 ;
34717 int ecode4 = 0 ;
34718 int val5 ;
34719 int ecode5 = 0 ;
34720 int val6 ;
34721 int ecode6 = 0 ;
34722 PyObject * obj0 = 0 ;
34723 PyObject * obj1 = 0 ;
34724 PyObject * obj2 = 0 ;
34725 PyObject * obj3 = 0 ;
34726 PyObject * obj4 = 0 ;
34727 char * kwnames[] = {
34728 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34729 };
34730
34731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34733 if (!SWIG_IsOK(res1)) {
34734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34735 }
34736 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34737 {
34738 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34739 if (arg3 == NULL) SWIG_fail;
34740 }
34741 if (obj2) {
34742 ecode4 = SWIG_AsVal_int(obj2, &val4);
34743 if (!SWIG_IsOK(ecode4)) {
34744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34745 }
34746 arg4 = static_cast< int >(val4);
34747 }
34748 if (obj3) {
34749 ecode5 = SWIG_AsVal_int(obj3, &val5);
34750 if (!SWIG_IsOK(ecode5)) {
34751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34752 }
34753 arg5 = static_cast< int >(val5);
34754 }
34755 if (obj4) {
34756 ecode6 = SWIG_AsVal_int(obj4, &val6);
34757 if (!SWIG_IsOK(ecode6)) {
34758 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34759 }
34760 arg6 = static_cast< int >(val6);
34761 }
34762 {
34763 PyThreadState* __tstate = wxPyBeginAllowThreads();
34764 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34765 wxPyEndAllowThreads(__tstate);
34766 if (PyErr_Occurred()) SWIG_fail;
34767 }
34768 resultobj = SWIG_Py_Void();
34769 {
34770 if (arg3) delete [] arg3;
34771 }
34772 return resultobj;
34773 fail:
34774 {
34775 if (arg3) delete [] arg3;
34776 }
34777 return NULL;
34778 }
34779
34780
34781 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34782 PyObject *resultobj = 0;
34783 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34784 wxString *arg2 = 0 ;
34785 wxRect *arg3 = 0 ;
34786 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34787 int arg5 = (int) -1 ;
34788 void *argp1 = 0 ;
34789 int res1 = 0 ;
34790 bool temp2 = false ;
34791 wxRect temp3 ;
34792 int val4 ;
34793 int ecode4 = 0 ;
34794 int val5 ;
34795 int ecode5 = 0 ;
34796 PyObject * obj0 = 0 ;
34797 PyObject * obj1 = 0 ;
34798 PyObject * obj2 = 0 ;
34799 PyObject * obj3 = 0 ;
34800 PyObject * obj4 = 0 ;
34801 char * kwnames[] = {
34802 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34803 };
34804
34805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34807 if (!SWIG_IsOK(res1)) {
34808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34809 }
34810 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34811 {
34812 arg2 = wxString_in_helper(obj1);
34813 if (arg2 == NULL) SWIG_fail;
34814 temp2 = true;
34815 }
34816 {
34817 arg3 = &temp3;
34818 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34819 }
34820 if (obj3) {
34821 ecode4 = SWIG_AsVal_int(obj3, &val4);
34822 if (!SWIG_IsOK(ecode4)) {
34823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34824 }
34825 arg4 = static_cast< int >(val4);
34826 }
34827 if (obj4) {
34828 ecode5 = SWIG_AsVal_int(obj4, &val5);
34829 if (!SWIG_IsOK(ecode5)) {
34830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34831 }
34832 arg5 = static_cast< int >(val5);
34833 }
34834 {
34835 PyThreadState* __tstate = wxPyBeginAllowThreads();
34836 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34837 wxPyEndAllowThreads(__tstate);
34838 if (PyErr_Occurred()) SWIG_fail;
34839 }
34840 resultobj = SWIG_Py_Void();
34841 {
34842 if (temp2)
34843 delete arg2;
34844 }
34845 return resultobj;
34846 fail:
34847 {
34848 if (temp2)
34849 delete arg2;
34850 }
34851 return NULL;
34852 }
34853
34854
34855 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34856 PyObject *resultobj = 0;
34857 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34858 wxString *arg2 = 0 ;
34859 wxBitmap *arg3 = 0 ;
34860 wxRect *arg4 = 0 ;
34861 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34862 int arg6 = (int) -1 ;
34863 void *argp1 = 0 ;
34864 int res1 = 0 ;
34865 bool temp2 = false ;
34866 void *argp3 = 0 ;
34867 int res3 = 0 ;
34868 wxRect temp4 ;
34869 int val5 ;
34870 int ecode5 = 0 ;
34871 int val6 ;
34872 int ecode6 = 0 ;
34873 PyObject * obj0 = 0 ;
34874 PyObject * obj1 = 0 ;
34875 PyObject * obj2 = 0 ;
34876 PyObject * obj3 = 0 ;
34877 PyObject * obj4 = 0 ;
34878 PyObject * obj5 = 0 ;
34879 char * kwnames[] = {
34880 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34881 };
34882
34883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34885 if (!SWIG_IsOK(res1)) {
34886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34887 }
34888 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34889 {
34890 arg2 = wxString_in_helper(obj1);
34891 if (arg2 == NULL) SWIG_fail;
34892 temp2 = true;
34893 }
34894 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34895 if (!SWIG_IsOK(res3)) {
34896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34897 }
34898 if (!argp3) {
34899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34900 }
34901 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34902 {
34903 arg4 = &temp4;
34904 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34905 }
34906 if (obj4) {
34907 ecode5 = SWIG_AsVal_int(obj4, &val5);
34908 if (!SWIG_IsOK(ecode5)) {
34909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34910 }
34911 arg5 = static_cast< int >(val5);
34912 }
34913 if (obj5) {
34914 ecode6 = SWIG_AsVal_int(obj5, &val6);
34915 if (!SWIG_IsOK(ecode6)) {
34916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34917 }
34918 arg6 = static_cast< int >(val6);
34919 }
34920 {
34921 PyThreadState* __tstate = wxPyBeginAllowThreads();
34922 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34923 wxPyEndAllowThreads(__tstate);
34924 if (PyErr_Occurred()) SWIG_fail;
34925 }
34926 resultobj = SWIG_Py_Void();
34927 {
34928 if (temp2)
34929 delete arg2;
34930 }
34931 return resultobj;
34932 fail:
34933 {
34934 if (temp2)
34935 delete arg2;
34936 }
34937 return NULL;
34938 }
34939
34940
34941 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34942 PyObject *resultobj = 0;
34943 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34944 int arg2 ;
34945 wxPoint *arg3 = (wxPoint *) 0 ;
34946 void *argp1 = 0 ;
34947 int res1 = 0 ;
34948 PyObject * obj0 = 0 ;
34949 PyObject * obj1 = 0 ;
34950 char * kwnames[] = {
34951 (char *) "self",(char *) "points", NULL
34952 };
34953
34954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34956 if (!SWIG_IsOK(res1)) {
34957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34958 }
34959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34960 {
34961 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34962 if (arg3 == NULL) SWIG_fail;
34963 }
34964 {
34965 PyThreadState* __tstate = wxPyBeginAllowThreads();
34966 (arg1)->DrawSpline(arg2,arg3);
34967 wxPyEndAllowThreads(__tstate);
34968 if (PyErr_Occurred()) SWIG_fail;
34969 }
34970 resultobj = SWIG_Py_Void();
34971 {
34972 if (arg3) delete [] arg3;
34973 }
34974 return resultobj;
34975 fail:
34976 {
34977 if (arg3) delete [] arg3;
34978 }
34979 return NULL;
34980 }
34981
34982
34983 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34984 PyObject *resultobj = 0;
34985 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34986 void *argp1 = 0 ;
34987 int res1 = 0 ;
34988 PyObject *swig_obj[1] ;
34989
34990 if (!args) SWIG_fail;
34991 swig_obj[0] = args;
34992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34993 if (!SWIG_IsOK(res1)) {
34994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34995 }
34996 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34997 {
34998 PyThreadState* __tstate = wxPyBeginAllowThreads();
34999 (arg1)->Clear();
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_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35011 PyObject *resultobj = 0;
35012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35013 wxFont *arg2 = 0 ;
35014 void *argp1 = 0 ;
35015 int res1 = 0 ;
35016 void *argp2 = 0 ;
35017 int res2 = 0 ;
35018 PyObject * obj0 = 0 ;
35019 PyObject * obj1 = 0 ;
35020 char * kwnames[] = {
35021 (char *) "self",(char *) "font", NULL
35022 };
35023
35024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
35025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35026 if (!SWIG_IsOK(res1)) {
35027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35028 }
35029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35030 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
35031 if (!SWIG_IsOK(res2)) {
35032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35033 }
35034 if (!argp2) {
35035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35036 }
35037 arg2 = reinterpret_cast< wxFont * >(argp2);
35038 {
35039 PyThreadState* __tstate = wxPyBeginAllowThreads();
35040 (arg1)->SetFont((wxFont const &)*arg2);
35041 wxPyEndAllowThreads(__tstate);
35042 if (PyErr_Occurred()) SWIG_fail;
35043 }
35044 resultobj = SWIG_Py_Void();
35045 return resultobj;
35046 fail:
35047 return NULL;
35048 }
35049
35050
35051 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35052 PyObject *resultobj = 0;
35053 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35054 wxPen *arg2 = 0 ;
35055 void *argp1 = 0 ;
35056 int res1 = 0 ;
35057 void *argp2 = 0 ;
35058 int res2 = 0 ;
35059 PyObject * obj0 = 0 ;
35060 PyObject * obj1 = 0 ;
35061 char * kwnames[] = {
35062 (char *) "self",(char *) "pen", NULL
35063 };
35064
35065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
35066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35067 if (!SWIG_IsOK(res1)) {
35068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35069 }
35070 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
35072 if (!SWIG_IsOK(res2)) {
35073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35074 }
35075 if (!argp2) {
35076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35077 }
35078 arg2 = reinterpret_cast< wxPen * >(argp2);
35079 {
35080 PyThreadState* __tstate = wxPyBeginAllowThreads();
35081 (arg1)->SetPen((wxPen const &)*arg2);
35082 wxPyEndAllowThreads(__tstate);
35083 if (PyErr_Occurred()) SWIG_fail;
35084 }
35085 resultobj = SWIG_Py_Void();
35086 return resultobj;
35087 fail:
35088 return NULL;
35089 }
35090
35091
35092 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35093 PyObject *resultobj = 0;
35094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35095 wxBrush *arg2 = 0 ;
35096 void *argp1 = 0 ;
35097 int res1 = 0 ;
35098 void *argp2 = 0 ;
35099 int res2 = 0 ;
35100 PyObject * obj0 = 0 ;
35101 PyObject * obj1 = 0 ;
35102 char * kwnames[] = {
35103 (char *) "self",(char *) "brush", NULL
35104 };
35105
35106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
35107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35108 if (!SWIG_IsOK(res1)) {
35109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35110 }
35111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35113 if (!SWIG_IsOK(res2)) {
35114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35115 }
35116 if (!argp2) {
35117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35118 }
35119 arg2 = reinterpret_cast< wxBrush * >(argp2);
35120 {
35121 PyThreadState* __tstate = wxPyBeginAllowThreads();
35122 (arg1)->SetBrush((wxBrush const &)*arg2);
35123 wxPyEndAllowThreads(__tstate);
35124 if (PyErr_Occurred()) SWIG_fail;
35125 }
35126 resultobj = SWIG_Py_Void();
35127 return resultobj;
35128 fail:
35129 return NULL;
35130 }
35131
35132
35133 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35134 PyObject *resultobj = 0;
35135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35136 wxBrush *arg2 = 0 ;
35137 void *argp1 = 0 ;
35138 int res1 = 0 ;
35139 void *argp2 = 0 ;
35140 int res2 = 0 ;
35141 PyObject * obj0 = 0 ;
35142 PyObject * obj1 = 0 ;
35143 char * kwnames[] = {
35144 (char *) "self",(char *) "brush", NULL
35145 };
35146
35147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35149 if (!SWIG_IsOK(res1)) {
35150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35151 }
35152 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35153 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35154 if (!SWIG_IsOK(res2)) {
35155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35156 }
35157 if (!argp2) {
35158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35159 }
35160 arg2 = reinterpret_cast< wxBrush * >(argp2);
35161 {
35162 PyThreadState* __tstate = wxPyBeginAllowThreads();
35163 (arg1)->SetBackground((wxBrush const &)*arg2);
35164 wxPyEndAllowThreads(__tstate);
35165 if (PyErr_Occurred()) SWIG_fail;
35166 }
35167 resultobj = SWIG_Py_Void();
35168 return resultobj;
35169 fail:
35170 return NULL;
35171 }
35172
35173
35174 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35175 PyObject *resultobj = 0;
35176 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35177 int arg2 ;
35178 void *argp1 = 0 ;
35179 int res1 = 0 ;
35180 int val2 ;
35181 int ecode2 = 0 ;
35182 PyObject * obj0 = 0 ;
35183 PyObject * obj1 = 0 ;
35184 char * kwnames[] = {
35185 (char *) "self",(char *) "mode", NULL
35186 };
35187
35188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
35189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35190 if (!SWIG_IsOK(res1)) {
35191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35192 }
35193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35194 ecode2 = SWIG_AsVal_int(obj1, &val2);
35195 if (!SWIG_IsOK(ecode2)) {
35196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
35197 }
35198 arg2 = static_cast< int >(val2);
35199 {
35200 PyThreadState* __tstate = wxPyBeginAllowThreads();
35201 (arg1)->SetBackgroundMode(arg2);
35202 wxPyEndAllowThreads(__tstate);
35203 if (PyErr_Occurred()) SWIG_fail;
35204 }
35205 resultobj = SWIG_Py_Void();
35206 return resultobj;
35207 fail:
35208 return NULL;
35209 }
35210
35211
35212 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35213 PyObject *resultobj = 0;
35214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35215 wxPalette *arg2 = 0 ;
35216 void *argp1 = 0 ;
35217 int res1 = 0 ;
35218 void *argp2 = 0 ;
35219 int res2 = 0 ;
35220 PyObject * obj0 = 0 ;
35221 PyObject * obj1 = 0 ;
35222 char * kwnames[] = {
35223 (char *) "self",(char *) "palette", NULL
35224 };
35225
35226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
35227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35228 if (!SWIG_IsOK(res1)) {
35229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35230 }
35231 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
35233 if (!SWIG_IsOK(res2)) {
35234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35235 }
35236 if (!argp2) {
35237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35238 }
35239 arg2 = reinterpret_cast< wxPalette * >(argp2);
35240 {
35241 PyThreadState* __tstate = wxPyBeginAllowThreads();
35242 (arg1)->SetPalette((wxPalette const &)*arg2);
35243 wxPyEndAllowThreads(__tstate);
35244 if (PyErr_Occurred()) SWIG_fail;
35245 }
35246 resultobj = SWIG_Py_Void();
35247 return resultobj;
35248 fail:
35249 return NULL;
35250 }
35251
35252
35253 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35254 PyObject *resultobj = 0;
35255 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35256 wxColour *arg2 = 0 ;
35257 void *argp1 = 0 ;
35258 int res1 = 0 ;
35259 wxColour temp2 ;
35260 PyObject * obj0 = 0 ;
35261 PyObject * obj1 = 0 ;
35262 char * kwnames[] = {
35263 (char *) "self",(char *) "colour", NULL
35264 };
35265
35266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
35267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35268 if (!SWIG_IsOK(res1)) {
35269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35270 }
35271 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35272 {
35273 arg2 = &temp2;
35274 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35275 }
35276 {
35277 PyThreadState* __tstate = wxPyBeginAllowThreads();
35278 (arg1)->SetTextForeground((wxColour const &)*arg2);
35279 wxPyEndAllowThreads(__tstate);
35280 if (PyErr_Occurred()) SWIG_fail;
35281 }
35282 resultobj = SWIG_Py_Void();
35283 return resultobj;
35284 fail:
35285 return NULL;
35286 }
35287
35288
35289 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35290 PyObject *resultobj = 0;
35291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35292 wxColour *arg2 = 0 ;
35293 void *argp1 = 0 ;
35294 int res1 = 0 ;
35295 wxColour temp2 ;
35296 PyObject * obj0 = 0 ;
35297 PyObject * obj1 = 0 ;
35298 char * kwnames[] = {
35299 (char *) "self",(char *) "colour", NULL
35300 };
35301
35302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35304 if (!SWIG_IsOK(res1)) {
35305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35306 }
35307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35308 {
35309 arg2 = &temp2;
35310 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35311 }
35312 {
35313 PyThreadState* __tstate = wxPyBeginAllowThreads();
35314 (arg1)->SetTextBackground((wxColour const &)*arg2);
35315 wxPyEndAllowThreads(__tstate);
35316 if (PyErr_Occurred()) SWIG_fail;
35317 }
35318 resultobj = SWIG_Py_Void();
35319 return resultobj;
35320 fail:
35321 return NULL;
35322 }
35323
35324
35325 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35326 PyObject *resultobj = 0;
35327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35328 int arg2 ;
35329 void *argp1 = 0 ;
35330 int res1 = 0 ;
35331 int val2 ;
35332 int ecode2 = 0 ;
35333 PyObject * obj0 = 0 ;
35334 PyObject * obj1 = 0 ;
35335 char * kwnames[] = {
35336 (char *) "self",(char *) "function", NULL
35337 };
35338
35339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35341 if (!SWIG_IsOK(res1)) {
35342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35343 }
35344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35345 ecode2 = SWIG_AsVal_int(obj1, &val2);
35346 if (!SWIG_IsOK(ecode2)) {
35347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35348 }
35349 arg2 = static_cast< int >(val2);
35350 {
35351 PyThreadState* __tstate = wxPyBeginAllowThreads();
35352 (arg1)->SetLogicalFunction(arg2);
35353 wxPyEndAllowThreads(__tstate);
35354 if (PyErr_Occurred()) SWIG_fail;
35355 }
35356 resultobj = SWIG_Py_Void();
35357 return resultobj;
35358 fail:
35359 return NULL;
35360 }
35361
35362
35363 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35364 PyObject *obj;
35365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35366 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35367 return SWIG_Py_Void();
35368 }
35369
35370 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35371 return SWIG_Python_InitShadowInstance(args);
35372 }
35373
35374 static PyMethodDef SwigMethods[] = {
35375 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35376 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35377 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35378 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35379 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35380 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35381 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35382 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35383 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35384 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35385 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35386 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
35387 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
35388 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
35389 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35390 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35391 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35392 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35393 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35394 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35395 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35396 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
35397 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35398 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35399 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35400 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35401 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35402 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35403 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35404 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
35405 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
35406 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35407 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35408 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35410 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35411 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35412 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35413 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35414 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
35415 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
35416 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35418 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35419 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35420 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35421 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35422 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35423 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35424 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35425 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35426 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35427 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35428 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35429 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35430 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35431 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35433 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35434 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35438 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35439 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35440 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
35441 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
35442 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35443 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35444 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35445 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35446 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35452 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
35454 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35455 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35456 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35457 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35458 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35459 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35460 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35461 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35462 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35463 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35464 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35465 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35466 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35467 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35469 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35470 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35471 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35472 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35473 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35474 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35475 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35476 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
35477 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35478 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35479 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35480 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35481 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35482 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35483 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35484 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35485 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35486 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35487 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35488 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35489 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35490 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35491 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35492 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35493 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35494 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35495 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35496 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35497 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35498 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35499 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35500 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35501 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35502 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35503 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35504 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35505 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35506 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35507 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35508 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35509 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35510 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35511 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35512 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35513 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35514 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35515 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35516 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35517 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35518 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35519 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35520 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35521 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35522 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35524 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35525 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
35526 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35528 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35529 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35530 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35531 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35532 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35533 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35534 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35535 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35536 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35537 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35538 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
35540 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35541 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35542 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35543 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35544 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35545 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35546 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35547 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35548 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35549 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35550 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35551 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35552 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35553 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35554 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35555 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35556 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35557 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35558 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35559 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35560 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35561 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35562 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35563 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35564 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35565 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35566 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35567 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35568 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35570 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35571 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35572 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35573 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35574 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
35575 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35576 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35577 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35578 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35579 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35580 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35581 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35583 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35584 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35586 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35589 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35590 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35591 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35592 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35593 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35594 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35595 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35596 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35597 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35598 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35599 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35600 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35601 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35602 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35603 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35604 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35605 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35606 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35607 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35608 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35609 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35610 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35611 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35612 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35613 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35614 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35615 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35616 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35617 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35618 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35619 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35620 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35621 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35622 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35623 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35624 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35625 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35626 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35627 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35628 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35629 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35630 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35631 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35632 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35633 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35634 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35635 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35636 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35637 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35638 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35639 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35640 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35641 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35642 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35643 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35644 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35645 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35646 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35647 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35648 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35649 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35650 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35651 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35652 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35653 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35654 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35655 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35656 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35657 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35658 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35659 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35660 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35661 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35662 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35663 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35664 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35665 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35666 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35667 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35668 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35669 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35670 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35671 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35672 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35673 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35674 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35675 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35676 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35677 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35678 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35679 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35680 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35681 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35682 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35683 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35684 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35685 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35686 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35687 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35688 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35689 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35690 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35691 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35692 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35693 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35694 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
35695 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35696 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35697 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35698 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35699 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35700 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35701 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35702 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35703 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35704 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35705 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35706 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35707 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35708 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35709 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35710 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35711 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35712 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35713 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35714 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35715 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35716 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35717 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35718 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35719 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35720 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35721 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35722 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35723 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35724 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35725 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35726 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35727 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35728 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35729 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35730 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35731 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35732 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35733 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35734 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35735 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35736 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35737 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35738 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35739 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35740 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35741 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35742 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35743 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35744 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35745 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35746 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35747 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35748 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35749 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35750 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35751 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35752 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35753 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35754 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35755 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35756 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35757 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35758 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35759 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35760 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35761 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35762 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35763 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35765 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35766 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35767 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35768 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35769 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35770 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35771 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35772 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35773 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35774 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35775 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35776 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35777 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35778 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35779 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35780 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35781 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35782 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35783 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35784 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35785 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35786 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35787 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35788 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35789 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35790 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35791 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35792 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35793 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35794 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35795 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35796 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35797 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35798 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35799 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35800 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35801 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35803 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35805 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35806 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35807 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35808 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35809 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35810 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35811 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35812 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35813 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35814 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35815 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35816 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35817 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35818 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35819 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35820 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35823 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35824 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35825 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35826 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35827 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35828 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35829 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35830 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35831 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35832 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35833 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35834 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35835 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35836 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35837 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35838 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35839 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35840 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35841 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35842 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35843 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35844 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35845 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35846 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35847 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35848 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35849 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35850 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35851 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35852 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35853 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35854 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35855 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35856 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35857 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35858 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35859 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35860 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35861 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35862 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35863 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35864 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35865 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35866 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35867 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35868 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35869 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35870 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35871 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35872 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35873 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35874 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35875 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35876 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35877 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35878 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35879 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35880 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35881 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35882 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35883 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35884 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35885 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35886 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35887 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35888 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35889 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35890 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35891 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35892 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35893 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35894 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35895 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35896 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35897 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35898 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35899 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35900 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35901 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35902 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35903 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35905 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35906 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35907 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35908 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35909 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35910 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35911 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35912 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35913 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35914 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35915 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35916 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35917 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35918 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35919 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35920 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35921 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35922 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35923 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35924 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35925 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35926 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35927 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35928 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35929 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35930 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35931 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35932 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35933 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35934 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35935 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35936 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35937 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35938 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35939 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35940 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35941 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35942 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35943 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35944 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35945 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35946 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35947 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35948 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35949 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35950 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
35951 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35952 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35953 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35954 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35955 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35956 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35957 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35958 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35959 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35960 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35961 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35962 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35963 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35964 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35965 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35966 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35967 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35968 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35969 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35970 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35971 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35972 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35973 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35974 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35975 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35976 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35977 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35978 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35979 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35980 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35981 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35982 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35983 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35984 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35985 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35986 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35987 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35988 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35989 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35990 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35991 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35992 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35993 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35994 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35995 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35996 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35997 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35998 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35999 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
36000 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
36001 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
36002 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
36003 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
36004 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36005 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36006 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36007 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36008 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36009 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
36010 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
36011 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
36012 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
36013 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36014 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36015 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
36016 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
36017 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36018 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36019 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
36020 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
36021 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
36022 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36023 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36024 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36025 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36026 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
36027 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
36028 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
36029 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
36030 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
36031 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
36032 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
36033 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
36034 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
36035 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
36036 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
36037 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
36038 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
36039 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
36040 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
36041 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
36042 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
36043 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
36044 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
36045 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
36046 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
36047 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36048 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36049 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36050 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
36051 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
36052 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
36053 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
36054 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
36055 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
36056 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
36057 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
36058 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
36059 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
36060 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
36061 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
36062 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36063 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
36064 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
36065 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36066 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36067 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
36068 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
36069 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
36070 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
36071 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
36072 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
36073 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
36074 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
36075 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
36076 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
36077 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36078 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36079 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36080 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
36081 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
36082 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
36083 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
36084 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
36085 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
36086 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
36087 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
36088 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
36089 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
36090 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
36091 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
36092 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
36093 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
36094 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
36095 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
36096 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
36097 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
36098 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
36099 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
36100 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
36101 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
36102 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
36103 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
36104 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36105 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
36106 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36107 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36108 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36109 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
36110 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36111 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
36112 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
36113 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
36114 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
36115 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
36116 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
36117 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
36118 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
36119 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
36120 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
36121 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
36122 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
36123 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
36124 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
36125 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
36126 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
36127 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
36128 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
36129 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
36130 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
36131 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
36132 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
36133 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
36134 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
36135 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
36136 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
36137 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
36138 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
36139 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
36140 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
36141 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
36142 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
36143 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
36144 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
36145 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
36146 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
36147 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
36148 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
36149 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
36150 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
36151 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
36152 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
36153 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
36154 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
36155 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
36156 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
36157 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
36158 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
36159 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
36160 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36161 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
36162 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
36163 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
36164 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
36165 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
36166 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
36167 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
36168 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
36169 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
36170 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
36171 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
36172 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
36173 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36174 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36175 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
36176 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
36177 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36178 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36179 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36180 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
36181 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
36182 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36183 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
36184 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36185 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
36186 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36187 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
36188 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36189 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
36190 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36191 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
36192 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
36193 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
36194 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36195 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36196 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36197 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36198 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36199 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36200 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36201 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36202 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36203 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
36204 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36205 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36206 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
36207 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36208 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36209 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36210 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36211 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36212 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36213 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36214 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36215 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36216 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36217 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
36218 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36219 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36220 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
36221 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
36222 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36223 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36224 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36225 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36226 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
36227 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
36228 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
36229 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36230 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
36231 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
36232 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
36233 { NULL, NULL, 0, NULL }
36234 };
36235
36236
36237 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
36238
36239 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
36240 return (void *)((wxClientDC *) ((wxPaintDC *) x));
36241 }
36242 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
36243 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
36244 }
36245 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
36246 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
36247 }
36248 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
36249 return (void *)((wxWindowDC *) ((wxClientDC *) x));
36250 }
36251 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
36252 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
36253 }
36254 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
36255 return (void *)((wxLocale *) ((wxPyLocale *) x));
36256 }
36257 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
36258 return (void *)((wxGDIObject *) ((wxIcon *) x));
36259 }
36260 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
36261 return (void *)((wxGDIObject *) ((wxPalette *) x));
36262 }
36263 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
36264 return (void *)((wxGDIObject *) ((wxPen *) x));
36265 }
36266 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
36267 return (void *)((wxGDIObject *) ((wxFont *) x));
36268 }
36269 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
36270 return (void *)((wxGDIObject *) ((wxCursor *) x));
36271 }
36272 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
36273 return (void *)((wxGDIObject *) ((wxBitmap *) x));
36274 }
36275 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
36276 return (void *)((wxGDIObject *) ((wxRegion *) x));
36277 }
36278 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
36279 return (void *)((wxGDIObject *) ((wxBrush *) x));
36280 }
36281 static void *_p_wxGCDCTo_p_wxDC(void *x) {
36282 return (void *)((wxDC *) ((wxGCDC *) x));
36283 }
36284 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36285 return (void *)((wxDC *) ((wxScreenDC *) x));
36286 }
36287 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
36288 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
36289 }
36290 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36291 return (void *)((wxDC *) ((wxMirrorDC *) x));
36292 }
36293 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36294 return (void *)((wxDC *) ((wxMemoryDC *) x));
36295 }
36296 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36297 return (void *)((wxDC *) ((wxWindowDC *) x));
36298 }
36299 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36300 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36301 }
36302 static void *_p_wxClientDCTo_p_wxDC(void *x) {
36303 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
36304 }
36305 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
36306 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36307 }
36308 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36309 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36310 }
36311 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
36312 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
36313 }
36314 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36315 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36316 }
36317 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36318 return (void *)((wxDC *) ((wxPrinterDC *) x));
36319 }
36320 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36321 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36322 }
36323 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36324 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36325 }
36326 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36327 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36328 }
36329 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36330 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36331 }
36332 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36333 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36334 }
36335 static void *_p_wxPenTo_p_wxObject(void *x) {
36336 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36337 }
36338 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36339 return (void *)((wxObject *) ((wxRegionIterator *) x));
36340 }
36341 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36342 return (void *)((wxObject *) ((wxSizerItem *) x));
36343 }
36344 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36345 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36346 }
36347 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36348 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36349 }
36350 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36351 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36352 }
36353 static void *_p_wxIconTo_p_wxObject(void *x) {
36354 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36355 }
36356 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36357 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36358 }
36359 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36360 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36361 }
36362 static void *_p_wxSizerTo_p_wxObject(void *x) {
36363 return (void *)((wxObject *) ((wxSizer *) x));
36364 }
36365 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36366 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36367 }
36368 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36369 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36370 }
36371 static void *_p_wxEventTo_p_wxObject(void *x) {
36372 return (void *)((wxObject *) ((wxEvent *) x));
36373 }
36374 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36375 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36376 }
36377 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36378 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36379 }
36380 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36381 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36382 }
36383 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36384 return (void *)((wxObject *) ((wxPseudoDC *) x));
36385 }
36386 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36387 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36388 }
36389 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36390 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36391 }
36392 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36393 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36394 }
36395 static void *_p_wxDCTo_p_wxObject(void *x) {
36396 return (void *)((wxObject *) ((wxDC *) x));
36397 }
36398 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36399 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36400 }
36401 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36402 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36403 }
36404 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36405 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36406 }
36407 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36408 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36409 }
36410 static void *_p_wxControlTo_p_wxObject(void *x) {
36411 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36412 }
36413 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36414 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36415 }
36416 static void *_p_wxClientDCTo_p_wxObject(void *x) {
36417 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
36418 }
36419 static void *_p_wxFSFileTo_p_wxObject(void *x) {
36420 return (void *)((wxObject *) ((wxFSFile *) x));
36421 }
36422 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36423 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36424 }
36425 static void *_p_wxRegionTo_p_wxObject(void *x) {
36426 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36427 }
36428 static void *_p_wxPySizerTo_p_wxObject(void *x) {
36429 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36430 }
36431 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36432 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36433 }
36434 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36435 return (void *)((wxObject *) ((wxGDIObject *) x));
36436 }
36437 static void *_p_wxEffectsTo_p_wxObject(void *x) {
36438 return (void *)((wxObject *) ((wxEffects *) x));
36439 }
36440 static void *_p_wxPyEventTo_p_wxObject(void *x) {
36441 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36442 }
36443 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36444 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36445 }
36446 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36447 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36448 }
36449 static void *_p_wxShowEventTo_p_wxObject(void *x) {
36450 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36451 }
36452 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36453 return (void *)((wxObject *) ((wxMenuItem *) x));
36454 }
36455 static void *_p_wxDateEventTo_p_wxObject(void *x) {
36456 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36457 }
36458 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36459 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36460 }
36461 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36462 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36463 }
36464 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36465 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36466 }
36467 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36468 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36469 }
36470 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36471 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36472 }
36473 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36474 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36475 }
36476 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36477 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36478 }
36479 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36480 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36481 }
36482 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36483 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36484 }
36485 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36486 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36487 }
36488 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36489 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36490 }
36491 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36492 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36493 }
36494 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36495 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36496 }
36497 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36498 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36499 }
36500 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36501 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36502 }
36503 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36504 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36505 }
36506 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36507 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36508 }
36509 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36510 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36511 }
36512 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36513 return (void *)((wxObject *) ((wxImageHandler *) x));
36514 }
36515 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36516 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36517 }
36518 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36519 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36520 }
36521 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36522 return (void *)((wxObject *) ((wxEvtHandler *) x));
36523 }
36524 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36525 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36526 }
36527 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36528 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36529 }
36530 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
36531 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36532 }
36533 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
36534 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
36535 }
36536 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36537 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36538 }
36539 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36540 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36541 }
36542 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36543 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36544 }
36545 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36546 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36547 }
36548 static void *_p_wxImageTo_p_wxObject(void *x) {
36549 return (void *)((wxObject *) ((wxImage *) x));
36550 }
36551 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36552 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36553 }
36554 static void *_p_wxPaletteTo_p_wxObject(void *x) {
36555 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36556 }
36557 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
36558 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
36559 }
36560 static void *_p_wxImageListTo_p_wxObject(void *x) {
36561 return (void *)((wxObject *) ((wxImageList *) x));
36562 }
36563 static void *_p_wxGCDCTo_p_wxObject(void *x) {
36564 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36565 }
36566 static void *_p_wxCursorTo_p_wxObject(void *x) {
36567 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36568 }
36569 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36570 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36571 }
36572 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36573 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36574 }
36575 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36577 }
36578 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36579 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36580 }
36581 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36582 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36583 }
36584 static void *_p_wxWindowTo_p_wxObject(void *x) {
36585 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36586 }
36587 static void *_p_wxMenuTo_p_wxObject(void *x) {
36588 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36589 }
36590 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36591 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36592 }
36593 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36594 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36595 }
36596 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36597 return (void *)((wxObject *) ((wxFileSystem *) x));
36598 }
36599 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36600 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36601 }
36602 static void *_p_wxMaskTo_p_wxObject(void *x) {
36603 return (void *)((wxObject *) ((wxMask *) x));
36604 }
36605 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36606 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36607 }
36608 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36609 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36610 }
36611 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36612 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36613 }
36614 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36615 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36616 }
36617 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36618 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36619 }
36620 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36621 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36622 }
36623 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36625 }
36626 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36627 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36628 }
36629 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36630 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36631 }
36632 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36633 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36634 }
36635 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36637 }
36638 static void *_p_wxFontTo_p_wxObject(void *x) {
36639 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36640 }
36641 static void *_p_wxBrushTo_p_wxObject(void *x) {
36642 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36643 }
36644 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36645 return (void *)((wxObject *) ((wxMetaFile *) x));
36646 }
36647 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36648 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36649 }
36650 static void *_p_wxColourTo_p_wxObject(void *x) {
36651 return (void *)((wxObject *) ((wxColour *) x));
36652 }
36653 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36654 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36655 }
36656 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36657 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36658 }
36659 static void *_p_wxControlTo_p_wxWindow(void *x) {
36660 return (void *)((wxWindow *) ((wxControl *) x));
36661 }
36662 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36663 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36664 }
36665 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36666 return (void *)((wxWindow *) ((wxMenuBar *) x));
36667 }
36668 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36669 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36670 }
36671 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36672 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36673 }
36674 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36675 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36676 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36677 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};
36678 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36679 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36680 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36681 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36682 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
36683 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36684 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36685 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
36686 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36687 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36688 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36689 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36690 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36691 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36692 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36693 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36694 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36695 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36696 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36697 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36698 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
36699 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36700 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36701 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36702 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36703 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36704 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36705 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36706 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36707 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36708 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36709 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36710 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36711 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36712 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36713 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36714 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36715 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36716 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36717 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36718 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36719 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36720 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36721 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36722 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36723 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36724 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36725 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36726 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36727 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36728 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36729 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36730 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36731 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36732 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36733 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36734 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36735 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36736 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36737 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36738 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36739 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36740 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36741 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36742 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36743 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36744 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36745 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36746 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36747 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36748 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36749 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36750 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36751 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36752 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36753 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36754 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36755 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36756 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36757 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36758 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36759 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36760 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36761 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36762 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36763 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36764 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36765 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36766 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36767 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36768 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36769 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36770 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36771 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36772 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36773 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36774 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36775 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36776 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36777 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36778 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36779 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36780 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36781 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36782 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36783 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36784 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36785 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36786 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36787 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36788 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36789 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36790 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36791 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36792 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36793 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36794 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36795 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36796 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36797 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36798 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36799 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36800 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36801 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36802 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36803 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36804 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36805 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36806 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36807 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36808 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36809 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36810 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36811 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36812 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36813 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36814 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36815 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36816 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36817 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36818 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36819 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36820 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36821 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36822 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36823 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36824 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36825 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36826 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36827 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36828 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36829 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36830 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36831 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36832
36833 static swig_type_info *swig_type_initial[] = {
36834 &_swigt__p_buffer,
36835 &_swigt__p_char,
36836 &_swigt__p_double,
36837 &_swigt__p_form_ops_t,
36838 &_swigt__p_int,
36839 &_swigt__p_unsigned_char,
36840 &_swigt__p_unsigned_int,
36841 &_swigt__p_unsigned_long,
36842 &_swigt__p_void,
36843 &_swigt__p_wxANIHandler,
36844 &_swigt__p_wxAcceleratorTable,
36845 &_swigt__p_wxActivateEvent,
36846 &_swigt__p_wxAlphaPixelData,
36847 &_swigt__p_wxAlphaPixelData_Accessor,
36848 &_swigt__p_wxAutoBufferedPaintDC,
36849 &_swigt__p_wxBMPHandler,
36850 &_swigt__p_wxBitmap,
36851 &_swigt__p_wxBoxSizer,
36852 &_swigt__p_wxBrush,
36853 &_swigt__p_wxBrushList,
36854 &_swigt__p_wxBufferedDC,
36855 &_swigt__p_wxBufferedPaintDC,
36856 &_swigt__p_wxCURHandler,
36857 &_swigt__p_wxChar,
36858 &_swigt__p_wxChildFocusEvent,
36859 &_swigt__p_wxClientDC,
36860 &_swigt__p_wxClipboardTextEvent,
36861 &_swigt__p_wxCloseEvent,
36862 &_swigt__p_wxColor,
36863 &_swigt__p_wxColour,
36864 &_swigt__p_wxColourDatabase,
36865 &_swigt__p_wxCommandEvent,
36866 &_swigt__p_wxContextMenuEvent,
36867 &_swigt__p_wxControl,
36868 &_swigt__p_wxControlWithItems,
36869 &_swigt__p_wxCursor,
36870 &_swigt__p_wxDC,
36871 &_swigt__p_wxDCOverlay,
36872 &_swigt__p_wxDash,
36873 &_swigt__p_wxDateEvent,
36874 &_swigt__p_wxDisplayChangedEvent,
36875 &_swigt__p_wxDropFilesEvent,
36876 &_swigt__p_wxDuplexMode,
36877 &_swigt__p_wxEffects,
36878 &_swigt__p_wxEncodingConverter,
36879 &_swigt__p_wxEraseEvent,
36880 &_swigt__p_wxEvent,
36881 &_swigt__p_wxEvtHandler,
36882 &_swigt__p_wxFSFile,
36883 &_swigt__p_wxFileSystem,
36884 &_swigt__p_wxFlexGridSizer,
36885 &_swigt__p_wxFocusEvent,
36886 &_swigt__p_wxFont,
36887 &_swigt__p_wxFontList,
36888 &_swigt__p_wxFontMapper,
36889 &_swigt__p_wxGBSizerItem,
36890 &_swigt__p_wxGCDC,
36891 &_swigt__p_wxGDIObjListBase,
36892 &_swigt__p_wxGDIObject,
36893 &_swigt__p_wxGIFHandler,
36894 &_swigt__p_wxGraphicsContext,
36895 &_swigt__p_wxGraphicsPath,
36896 &_swigt__p_wxGridBagSizer,
36897 &_swigt__p_wxGridSizer,
36898 &_swigt__p_wxHeaderButtonParams,
36899 &_swigt__p_wxICOHandler,
36900 &_swigt__p_wxIcon,
36901 &_swigt__p_wxIconBundle,
36902 &_swigt__p_wxIconLocation,
36903 &_swigt__p_wxIconizeEvent,
36904 &_swigt__p_wxIdleEvent,
36905 &_swigt__p_wxImage,
36906 &_swigt__p_wxImageHandler,
36907 &_swigt__p_wxImageList,
36908 &_swigt__p_wxIndividualLayoutConstraint,
36909 &_swigt__p_wxInitDialogEvent,
36910 &_swigt__p_wxJPEGHandler,
36911 &_swigt__p_wxKeyEvent,
36912 &_swigt__p_wxLanguageInfo,
36913 &_swigt__p_wxLayoutConstraints,
36914 &_swigt__p_wxLocale,
36915 &_swigt__p_wxMask,
36916 &_swigt__p_wxMaximizeEvent,
36917 &_swigt__p_wxMemoryDC,
36918 &_swigt__p_wxMenu,
36919 &_swigt__p_wxMenuBar,
36920 &_swigt__p_wxMenuEvent,
36921 &_swigt__p_wxMenuItem,
36922 &_swigt__p_wxMetaFile,
36923 &_swigt__p_wxMetaFileDC,
36924 &_swigt__p_wxMirrorDC,
36925 &_swigt__p_wxMouseCaptureChangedEvent,
36926 &_swigt__p_wxMouseCaptureLostEvent,
36927 &_swigt__p_wxMouseEvent,
36928 &_swigt__p_wxMoveEvent,
36929 &_swigt__p_wxNativeEncodingInfo,
36930 &_swigt__p_wxNativeFontInfo,
36931 &_swigt__p_wxNativePixelData,
36932 &_swigt__p_wxNativePixelData_Accessor,
36933 &_swigt__p_wxNavigationKeyEvent,
36934 &_swigt__p_wxNcPaintEvent,
36935 &_swigt__p_wxNotifyEvent,
36936 &_swigt__p_wxObject,
36937 &_swigt__p_wxOverlay,
36938 &_swigt__p_wxPCXHandler,
36939 &_swigt__p_wxPNGHandler,
36940 &_swigt__p_wxPNMHandler,
36941 &_swigt__p_wxPaintDC,
36942 &_swigt__p_wxPaintEvent,
36943 &_swigt__p_wxPalette,
36944 &_swigt__p_wxPaletteChangedEvent,
36945 &_swigt__p_wxPaperSize,
36946 &_swigt__p_wxPen,
36947 &_swigt__p_wxPenList,
36948 &_swigt__p_wxPixelDataBase,
36949 &_swigt__p_wxPoint,
36950 &_swigt__p_wxPoint2D,
36951 &_swigt__p_wxPostScriptDC,
36952 &_swigt__p_wxPrintData,
36953 &_swigt__p_wxPrinterDC,
36954 &_swigt__p_wxPseudoDC,
36955 &_swigt__p_wxPyApp,
36956 &_swigt__p_wxPyCommandEvent,
36957 &_swigt__p_wxPyEvent,
36958 &_swigt__p_wxPyFontEnumerator,
36959 &_swigt__p_wxPyImageHandler,
36960 &_swigt__p_wxPyLocale,
36961 &_swigt__p_wxPySizer,
36962 &_swigt__p_wxPyValidator,
36963 &_swigt__p_wxQueryNewPaletteEvent,
36964 &_swigt__p_wxRect,
36965 &_swigt__p_wxRegion,
36966 &_swigt__p_wxRegionIterator,
36967 &_swigt__p_wxRendererNative,
36968 &_swigt__p_wxRendererVersion,
36969 &_swigt__p_wxScreenDC,
36970 &_swigt__p_wxScrollEvent,
36971 &_swigt__p_wxScrollWinEvent,
36972 &_swigt__p_wxSetCursorEvent,
36973 &_swigt__p_wxShowEvent,
36974 &_swigt__p_wxSize,
36975 &_swigt__p_wxSizeEvent,
36976 &_swigt__p_wxSizer,
36977 &_swigt__p_wxSizerItem,
36978 &_swigt__p_wxSplitterRenderParams,
36979 &_swigt__p_wxStaticBoxSizer,
36980 &_swigt__p_wxStdDialogButtonSizer,
36981 &_swigt__p_wxStockGDI,
36982 &_swigt__p_wxString,
36983 &_swigt__p_wxSysColourChangedEvent,
36984 &_swigt__p_wxTIFFHandler,
36985 &_swigt__p_wxUpdateUIEvent,
36986 &_swigt__p_wxValidator,
36987 &_swigt__p_wxWindow,
36988 &_swigt__p_wxWindowCreateEvent,
36989 &_swigt__p_wxWindowDC,
36990 &_swigt__p_wxWindowDestroyEvent,
36991 &_swigt__p_wxXPMHandler,
36992 };
36993
36994 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36995 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36996 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36997 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36998 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36999 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
37000 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
37001 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
37002 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
37003 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
37004 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
37005 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37006 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
37007 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
37008 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
37009 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}};
37010 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37011 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
37012 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}};
37013 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
37014 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
37015 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
37016 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
37017 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
37018 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
37019 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
37020 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
37021 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
37022 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
37023 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
37024 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
37025 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
37026 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
37027 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}};
37028 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}};
37029 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
37030 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
37031 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
37032 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
37033 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
37034 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
37035 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
37036 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
37037 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
37038 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}};
37039 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
37040 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}};
37041 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
37042 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
37043 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
37044 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
37045 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
37046 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
37047 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
37048 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
37049 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
37050 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
37051 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
37052 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
37053 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37054 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37055 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
37056 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
37057 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
37058 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
37059 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
37060 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37061 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37062 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
37063 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
37064 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37065 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37066 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37067 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37068 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37069 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37070 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
37071 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
37072 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
37073 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
37074 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
37075 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
37076 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
37077 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
37078 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
37079 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
37080 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
37081 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
37082 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37083 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37084 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37085 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
37086 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
37087 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
37088 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
37089 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37090 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37091 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
37092 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
37093 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
37094 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
37095 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
37096 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
37097 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
37098 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
37099 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
37100 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
37101 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
37102 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
37103 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
37104 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
37105 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
37106 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37107 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37108 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
37109 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
37110 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37111 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37112 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
37113 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
37114 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
37115 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
37116 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37117 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37118 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
37119 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37120 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37121 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
37122 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
37123 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
37124 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_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_wxCURHandler, _p_wxCURHandlerTo_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_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_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}};
37125 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
37126 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37127 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
37128 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
37129 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
37130 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
37131 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}};
37132 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
37133 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
37134 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
37135 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
37136 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
37137 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
37138 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
37139 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
37140 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
37141 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
37142 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
37143 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
37144 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
37145 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
37146 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
37147 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
37148 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
37149 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
37150 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}};
37151 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}};
37152
37153 static swig_cast_info *swig_cast_initial[] = {
37154 _swigc__p_buffer,
37155 _swigc__p_char,
37156 _swigc__p_double,
37157 _swigc__p_form_ops_t,
37158 _swigc__p_int,
37159 _swigc__p_unsigned_char,
37160 _swigc__p_unsigned_int,
37161 _swigc__p_unsigned_long,
37162 _swigc__p_void,
37163 _swigc__p_wxANIHandler,
37164 _swigc__p_wxAcceleratorTable,
37165 _swigc__p_wxActivateEvent,
37166 _swigc__p_wxAlphaPixelData,
37167 _swigc__p_wxAlphaPixelData_Accessor,
37168 _swigc__p_wxAutoBufferedPaintDC,
37169 _swigc__p_wxBMPHandler,
37170 _swigc__p_wxBitmap,
37171 _swigc__p_wxBoxSizer,
37172 _swigc__p_wxBrush,
37173 _swigc__p_wxBrushList,
37174 _swigc__p_wxBufferedDC,
37175 _swigc__p_wxBufferedPaintDC,
37176 _swigc__p_wxCURHandler,
37177 _swigc__p_wxChar,
37178 _swigc__p_wxChildFocusEvent,
37179 _swigc__p_wxClientDC,
37180 _swigc__p_wxClipboardTextEvent,
37181 _swigc__p_wxCloseEvent,
37182 _swigc__p_wxColor,
37183 _swigc__p_wxColour,
37184 _swigc__p_wxColourDatabase,
37185 _swigc__p_wxCommandEvent,
37186 _swigc__p_wxContextMenuEvent,
37187 _swigc__p_wxControl,
37188 _swigc__p_wxControlWithItems,
37189 _swigc__p_wxCursor,
37190 _swigc__p_wxDC,
37191 _swigc__p_wxDCOverlay,
37192 _swigc__p_wxDash,
37193 _swigc__p_wxDateEvent,
37194 _swigc__p_wxDisplayChangedEvent,
37195 _swigc__p_wxDropFilesEvent,
37196 _swigc__p_wxDuplexMode,
37197 _swigc__p_wxEffects,
37198 _swigc__p_wxEncodingConverter,
37199 _swigc__p_wxEraseEvent,
37200 _swigc__p_wxEvent,
37201 _swigc__p_wxEvtHandler,
37202 _swigc__p_wxFSFile,
37203 _swigc__p_wxFileSystem,
37204 _swigc__p_wxFlexGridSizer,
37205 _swigc__p_wxFocusEvent,
37206 _swigc__p_wxFont,
37207 _swigc__p_wxFontList,
37208 _swigc__p_wxFontMapper,
37209 _swigc__p_wxGBSizerItem,
37210 _swigc__p_wxGCDC,
37211 _swigc__p_wxGDIObjListBase,
37212 _swigc__p_wxGDIObject,
37213 _swigc__p_wxGIFHandler,
37214 _swigc__p_wxGraphicsContext,
37215 _swigc__p_wxGraphicsPath,
37216 _swigc__p_wxGridBagSizer,
37217 _swigc__p_wxGridSizer,
37218 _swigc__p_wxHeaderButtonParams,
37219 _swigc__p_wxICOHandler,
37220 _swigc__p_wxIcon,
37221 _swigc__p_wxIconBundle,
37222 _swigc__p_wxIconLocation,
37223 _swigc__p_wxIconizeEvent,
37224 _swigc__p_wxIdleEvent,
37225 _swigc__p_wxImage,
37226 _swigc__p_wxImageHandler,
37227 _swigc__p_wxImageList,
37228 _swigc__p_wxIndividualLayoutConstraint,
37229 _swigc__p_wxInitDialogEvent,
37230 _swigc__p_wxJPEGHandler,
37231 _swigc__p_wxKeyEvent,
37232 _swigc__p_wxLanguageInfo,
37233 _swigc__p_wxLayoutConstraints,
37234 _swigc__p_wxLocale,
37235 _swigc__p_wxMask,
37236 _swigc__p_wxMaximizeEvent,
37237 _swigc__p_wxMemoryDC,
37238 _swigc__p_wxMenu,
37239 _swigc__p_wxMenuBar,
37240 _swigc__p_wxMenuEvent,
37241 _swigc__p_wxMenuItem,
37242 _swigc__p_wxMetaFile,
37243 _swigc__p_wxMetaFileDC,
37244 _swigc__p_wxMirrorDC,
37245 _swigc__p_wxMouseCaptureChangedEvent,
37246 _swigc__p_wxMouseCaptureLostEvent,
37247 _swigc__p_wxMouseEvent,
37248 _swigc__p_wxMoveEvent,
37249 _swigc__p_wxNativeEncodingInfo,
37250 _swigc__p_wxNativeFontInfo,
37251 _swigc__p_wxNativePixelData,
37252 _swigc__p_wxNativePixelData_Accessor,
37253 _swigc__p_wxNavigationKeyEvent,
37254 _swigc__p_wxNcPaintEvent,
37255 _swigc__p_wxNotifyEvent,
37256 _swigc__p_wxObject,
37257 _swigc__p_wxOverlay,
37258 _swigc__p_wxPCXHandler,
37259 _swigc__p_wxPNGHandler,
37260 _swigc__p_wxPNMHandler,
37261 _swigc__p_wxPaintDC,
37262 _swigc__p_wxPaintEvent,
37263 _swigc__p_wxPalette,
37264 _swigc__p_wxPaletteChangedEvent,
37265 _swigc__p_wxPaperSize,
37266 _swigc__p_wxPen,
37267 _swigc__p_wxPenList,
37268 _swigc__p_wxPixelDataBase,
37269 _swigc__p_wxPoint,
37270 _swigc__p_wxPoint2D,
37271 _swigc__p_wxPostScriptDC,
37272 _swigc__p_wxPrintData,
37273 _swigc__p_wxPrinterDC,
37274 _swigc__p_wxPseudoDC,
37275 _swigc__p_wxPyApp,
37276 _swigc__p_wxPyCommandEvent,
37277 _swigc__p_wxPyEvent,
37278 _swigc__p_wxPyFontEnumerator,
37279 _swigc__p_wxPyImageHandler,
37280 _swigc__p_wxPyLocale,
37281 _swigc__p_wxPySizer,
37282 _swigc__p_wxPyValidator,
37283 _swigc__p_wxQueryNewPaletteEvent,
37284 _swigc__p_wxRect,
37285 _swigc__p_wxRegion,
37286 _swigc__p_wxRegionIterator,
37287 _swigc__p_wxRendererNative,
37288 _swigc__p_wxRendererVersion,
37289 _swigc__p_wxScreenDC,
37290 _swigc__p_wxScrollEvent,
37291 _swigc__p_wxScrollWinEvent,
37292 _swigc__p_wxSetCursorEvent,
37293 _swigc__p_wxShowEvent,
37294 _swigc__p_wxSize,
37295 _swigc__p_wxSizeEvent,
37296 _swigc__p_wxSizer,
37297 _swigc__p_wxSizerItem,
37298 _swigc__p_wxSplitterRenderParams,
37299 _swigc__p_wxStaticBoxSizer,
37300 _swigc__p_wxStdDialogButtonSizer,
37301 _swigc__p_wxStockGDI,
37302 _swigc__p_wxString,
37303 _swigc__p_wxSysColourChangedEvent,
37304 _swigc__p_wxTIFFHandler,
37305 _swigc__p_wxUpdateUIEvent,
37306 _swigc__p_wxValidator,
37307 _swigc__p_wxWindow,
37308 _swigc__p_wxWindowCreateEvent,
37309 _swigc__p_wxWindowDC,
37310 _swigc__p_wxWindowDestroyEvent,
37311 _swigc__p_wxXPMHandler,
37312 };
37313
37314
37315 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37316
37317 static swig_const_info swig_const_table[] = {
37318 {0, 0, 0, 0.0, 0, 0}};
37319
37320 #ifdef __cplusplus
37321 }
37322 #endif
37323 /* -----------------------------------------------------------------------------
37324 * Type initialization:
37325 * This problem is tough by the requirement that no dynamic
37326 * memory is used. Also, since swig_type_info structures store pointers to
37327 * swig_cast_info structures and swig_cast_info structures store pointers back
37328 * to swig_type_info structures, we need some lookup code at initialization.
37329 * The idea is that swig generates all the structures that are needed.
37330 * The runtime then collects these partially filled structures.
37331 * The SWIG_InitializeModule function takes these initial arrays out of
37332 * swig_module, and does all the lookup, filling in the swig_module.types
37333 * array with the correct data and linking the correct swig_cast_info
37334 * structures together.
37335 *
37336 * The generated swig_type_info structures are assigned staticly to an initial
37337 * array. We just loop though that array, and handle each type individually.
37338 * First we lookup if this type has been already loaded, and if so, use the
37339 * loaded structure instead of the generated one. Then we have to fill in the
37340 * cast linked list. The cast data is initially stored in something like a
37341 * two-dimensional array. Each row corresponds to a type (there are the same
37342 * number of rows as there are in the swig_type_initial array). Each entry in
37343 * a column is one of the swig_cast_info structures for that type.
37344 * The cast_initial array is actually an array of arrays, because each row has
37345 * a variable number of columns. So to actually build the cast linked list,
37346 * we find the array of casts associated with the type, and loop through it
37347 * adding the casts to the list. The one last trick we need to do is making
37348 * sure the type pointer in the swig_cast_info struct is correct.
37349 *
37350 * First off, we lookup the cast->type name to see if it is already loaded.
37351 * There are three cases to handle:
37352 * 1) If the cast->type has already been loaded AND the type we are adding
37353 * casting info to has not been loaded (it is in this module), THEN we
37354 * replace the cast->type pointer with the type pointer that has already
37355 * been loaded.
37356 * 2) If BOTH types (the one we are adding casting info to, and the
37357 * cast->type) are loaded, THEN the cast info has already been loaded by
37358 * the previous module so we just ignore it.
37359 * 3) Finally, if cast->type has not already been loaded, then we add that
37360 * swig_cast_info to the linked list (because the cast->type) pointer will
37361 * be correct.
37362 * ----------------------------------------------------------------------------- */
37363
37364 #ifdef __cplusplus
37365 extern "C" {
37366 #if 0
37367 } /* c-mode */
37368 #endif
37369 #endif
37370
37371 #if 0
37372 #define SWIGRUNTIME_DEBUG
37373 #endif
37374
37375 SWIGRUNTIME void
37376 SWIG_InitializeModule(void *clientdata) {
37377 size_t i;
37378 swig_module_info *module_head;
37379 static int init_run = 0;
37380
37381 clientdata = clientdata;
37382
37383 if (init_run) return;
37384 init_run = 1;
37385
37386 /* Initialize the swig_module */
37387 swig_module.type_initial = swig_type_initial;
37388 swig_module.cast_initial = swig_cast_initial;
37389
37390 /* Try and load any already created modules */
37391 module_head = SWIG_GetModule(clientdata);
37392 if (module_head) {
37393 swig_module.next = module_head->next;
37394 module_head->next = &swig_module;
37395 } else {
37396 /* This is the first module loaded */
37397 swig_module.next = &swig_module;
37398 SWIG_SetModule(clientdata, &swig_module);
37399 }
37400
37401 /* Now work on filling in swig_module.types */
37402 #ifdef SWIGRUNTIME_DEBUG
37403 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37404 #endif
37405 for (i = 0; i < swig_module.size; ++i) {
37406 swig_type_info *type = 0;
37407 swig_type_info *ret;
37408 swig_cast_info *cast;
37409
37410 #ifdef SWIGRUNTIME_DEBUG
37411 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37412 #endif
37413
37414 /* if there is another module already loaded */
37415 if (swig_module.next != &swig_module) {
37416 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37417 }
37418 if (type) {
37419 /* Overwrite clientdata field */
37420 #ifdef SWIGRUNTIME_DEBUG
37421 printf("SWIG_InitializeModule: found type %s\n", type->name);
37422 #endif
37423 if (swig_module.type_initial[i]->clientdata) {
37424 type->clientdata = swig_module.type_initial[i]->clientdata;
37425 #ifdef SWIGRUNTIME_DEBUG
37426 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37427 #endif
37428 }
37429 } else {
37430 type = swig_module.type_initial[i];
37431 }
37432
37433 /* Insert casting types */
37434 cast = swig_module.cast_initial[i];
37435 while (cast->type) {
37436 /* Don't need to add information already in the list */
37437 ret = 0;
37438 #ifdef SWIGRUNTIME_DEBUG
37439 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37440 #endif
37441 if (swig_module.next != &swig_module) {
37442 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37443 #ifdef SWIGRUNTIME_DEBUG
37444 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37445 #endif
37446 }
37447 if (ret) {
37448 if (type == swig_module.type_initial[i]) {
37449 #ifdef SWIGRUNTIME_DEBUG
37450 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37451 #endif
37452 cast->type = ret;
37453 ret = 0;
37454 } else {
37455 /* Check for casting already in the list */
37456 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37457 #ifdef SWIGRUNTIME_DEBUG
37458 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37459 #endif
37460 if (!ocast) ret = 0;
37461 }
37462 }
37463
37464 if (!ret) {
37465 #ifdef SWIGRUNTIME_DEBUG
37466 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37467 #endif
37468 if (type->cast) {
37469 type->cast->prev = cast;
37470 cast->next = type->cast;
37471 }
37472 type->cast = cast;
37473 }
37474 cast++;
37475 }
37476 /* Set entry in modules->types array equal to the type */
37477 swig_module.types[i] = type;
37478 }
37479 swig_module.types[i] = 0;
37480
37481 #ifdef SWIGRUNTIME_DEBUG
37482 printf("**** SWIG_InitializeModule: Cast List ******\n");
37483 for (i = 0; i < swig_module.size; ++i) {
37484 int j = 0;
37485 swig_cast_info *cast = swig_module.cast_initial[i];
37486 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37487 while (cast->type) {
37488 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37489 cast++;
37490 ++j;
37491 }
37492 printf("---- Total casts: %d\n",j);
37493 }
37494 printf("**** SWIG_InitializeModule: Cast List ******\n");
37495 #endif
37496 }
37497
37498 /* This function will propagate the clientdata field of type to
37499 * any new swig_type_info structures that have been added into the list
37500 * of equivalent types. It is like calling
37501 * SWIG_TypeClientData(type, clientdata) a second time.
37502 */
37503 SWIGRUNTIME void
37504 SWIG_PropagateClientData(void) {
37505 size_t i;
37506 swig_cast_info *equiv;
37507 static int init_run = 0;
37508
37509 if (init_run) return;
37510 init_run = 1;
37511
37512 for (i = 0; i < swig_module.size; i++) {
37513 if (swig_module.types[i]->clientdata) {
37514 equiv = swig_module.types[i]->cast;
37515 while (equiv) {
37516 if (!equiv->converter) {
37517 if (equiv->type && !equiv->type->clientdata)
37518 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37519 }
37520 equiv = equiv->next;
37521 }
37522 }
37523 }
37524 }
37525
37526 #ifdef __cplusplus
37527 #if 0
37528 {
37529 /* c-mode */
37530 #endif
37531 }
37532 #endif
37533
37534
37535
37536 #ifdef __cplusplus
37537 extern "C" {
37538 #endif
37539
37540 /* Python-specific SWIG API */
37541 #define SWIG_newvarlink() SWIG_Python_newvarlink()
37542 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37543 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37544
37545 /* -----------------------------------------------------------------------------
37546 * global variable support code.
37547 * ----------------------------------------------------------------------------- */
37548
37549 typedef struct swig_globalvar {
37550 char *name; /* Name of global variable */
37551 PyObject *(*get_attr)(void); /* Return the current value */
37552 int (*set_attr)(PyObject *); /* Set the value */
37553 struct swig_globalvar *next;
37554 } swig_globalvar;
37555
37556 typedef struct swig_varlinkobject {
37557 PyObject_HEAD
37558 swig_globalvar *vars;
37559 } swig_varlinkobject;
37560
37561 SWIGINTERN PyObject *
37562 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37563 return PyString_FromString("<Swig global variables>");
37564 }
37565
37566 SWIGINTERN PyObject *
37567 swig_varlink_str(swig_varlinkobject *v) {
37568 PyObject *str = PyString_FromString("(");
37569 swig_globalvar *var;
37570 for (var = v->vars; var; var=var->next) {
37571 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37572 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37573 }
37574 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37575 return str;
37576 }
37577
37578 SWIGINTERN int
37579 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37580 PyObject *str = swig_varlink_str(v);
37581 fprintf(fp,"Swig global variables ");
37582 fprintf(fp,"%s\n", PyString_AsString(str));
37583 Py_DECREF(str);
37584 return 0;
37585 }
37586
37587 SWIGINTERN void
37588 swig_varlink_dealloc(swig_varlinkobject *v) {
37589 swig_globalvar *var = v->vars;
37590 while (var) {
37591 swig_globalvar *n = var->next;
37592 free(var->name);
37593 free(var);
37594 var = n;
37595 }
37596 }
37597
37598 SWIGINTERN PyObject *
37599 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37600 PyObject *res = NULL;
37601 swig_globalvar *var = v->vars;
37602 while (var) {
37603 if (strcmp(var->name,n) == 0) {
37604 res = (*var->get_attr)();
37605 break;
37606 }
37607 var = var->next;
37608 }
37609 if (res == NULL && !PyErr_Occurred()) {
37610 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37611 }
37612 return res;
37613 }
37614
37615 SWIGINTERN int
37616 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37617 int res = 1;
37618 swig_globalvar *var = v->vars;
37619 while (var) {
37620 if (strcmp(var->name,n) == 0) {
37621 res = (*var->set_attr)(p);
37622 break;
37623 }
37624 var = var->next;
37625 }
37626 if (res == 1 && !PyErr_Occurred()) {
37627 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37628 }
37629 return res;
37630 }
37631
37632 SWIGINTERN PyTypeObject*
37633 swig_varlink_type(void) {
37634 static char varlink__doc__[] = "Swig var link object";
37635 static PyTypeObject varlink_type;
37636 static int type_init = 0;
37637 if (!type_init) {
37638 const PyTypeObject tmp
37639 = {
37640 PyObject_HEAD_INIT(NULL)
37641 0, /* Number of items in variable part (ob_size) */
37642 (char *)"swigvarlink", /* Type name (tp_name) */
37643 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37644 0, /* Itemsize (tp_itemsize) */
37645 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37646 (printfunc) swig_varlink_print, /* Print (tp_print) */
37647 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37648 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37649 0, /* tp_compare */
37650 (reprfunc) swig_varlink_repr, /* tp_repr */
37651 0, /* tp_as_number */
37652 0, /* tp_as_sequence */
37653 0, /* tp_as_mapping */
37654 0, /* tp_hash */
37655 0, /* tp_call */
37656 (reprfunc)swig_varlink_str, /* tp_str */
37657 0, /* tp_getattro */
37658 0, /* tp_setattro */
37659 0, /* tp_as_buffer */
37660 0, /* tp_flags */
37661 varlink__doc__, /* tp_doc */
37662 0, /* tp_traverse */
37663 0, /* tp_clear */
37664 0, /* tp_richcompare */
37665 0, /* tp_weaklistoffset */
37666 #if PY_VERSION_HEX >= 0x02020000
37667 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37668 #endif
37669 #if PY_VERSION_HEX >= 0x02030000
37670 0, /* tp_del */
37671 #endif
37672 #ifdef COUNT_ALLOCS
37673 0,0,0,0 /* tp_alloc -> tp_next */
37674 #endif
37675 };
37676 varlink_type = tmp;
37677 varlink_type.ob_type = &PyType_Type;
37678 type_init = 1;
37679 }
37680 return &varlink_type;
37681 }
37682
37683 /* Create a variable linking object for use later */
37684 SWIGINTERN PyObject *
37685 SWIG_Python_newvarlink(void) {
37686 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37687 if (result) {
37688 result->vars = 0;
37689 }
37690 return ((PyObject*) result);
37691 }
37692
37693 SWIGINTERN void
37694 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37695 swig_varlinkobject *v = (swig_varlinkobject *) p;
37696 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37697 if (gv) {
37698 size_t size = strlen(name)+1;
37699 gv->name = (char *)malloc(size);
37700 if (gv->name) {
37701 strncpy(gv->name,name,size);
37702 gv->get_attr = get_attr;
37703 gv->set_attr = set_attr;
37704 gv->next = v->vars;
37705 }
37706 }
37707 v->vars = gv;
37708 }
37709
37710 SWIGINTERN PyObject *
37711 SWIG_globals() {
37712 static PyObject *_SWIG_globals = 0;
37713 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37714 return _SWIG_globals;
37715 }
37716
37717 /* -----------------------------------------------------------------------------
37718 * constants/methods manipulation
37719 * ----------------------------------------------------------------------------- */
37720
37721 /* Install Constants */
37722 SWIGINTERN void
37723 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37724 PyObject *obj = 0;
37725 size_t i;
37726 for (i = 0; constants[i].type; ++i) {
37727 switch(constants[i].type) {
37728 case SWIG_PY_POINTER:
37729 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37730 break;
37731 case SWIG_PY_BINARY:
37732 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37733 break;
37734 default:
37735 obj = 0;
37736 break;
37737 }
37738 if (obj) {
37739 PyDict_SetItemString(d, constants[i].name, obj);
37740 Py_DECREF(obj);
37741 }
37742 }
37743 }
37744
37745 /* -----------------------------------------------------------------------------*/
37746 /* Fix SwigMethods to carry the callback ptrs when needed */
37747 /* -----------------------------------------------------------------------------*/
37748
37749 SWIGINTERN void
37750 SWIG_Python_FixMethods(PyMethodDef *methods,
37751 swig_const_info *const_table,
37752 swig_type_info **types,
37753 swig_type_info **types_initial) {
37754 size_t i;
37755 for (i = 0; methods[i].ml_name; ++i) {
37756 const char *c = methods[i].ml_doc;
37757 if (c && (c = strstr(c, "swig_ptr: "))) {
37758 int j;
37759 swig_const_info *ci = 0;
37760 const char *name = c + 10;
37761 for (j = 0; const_table[j].type; ++j) {
37762 if (strncmp(const_table[j].name, name,
37763 strlen(const_table[j].name)) == 0) {
37764 ci = &(const_table[j]);
37765 break;
37766 }
37767 }
37768 if (ci) {
37769 size_t shift = (ci->ptype) - types;
37770 swig_type_info *ty = types_initial[shift];
37771 size_t ldoc = (c - methods[i].ml_doc);
37772 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37773 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37774 if (ndoc) {
37775 char *buff = ndoc;
37776 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37777 if (ptr) {
37778 strncpy(buff, methods[i].ml_doc, ldoc);
37779 buff += ldoc;
37780 strncpy(buff, "swig_ptr: ", 10);
37781 buff += 10;
37782 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37783 methods[i].ml_doc = ndoc;
37784 }
37785 }
37786 }
37787 }
37788 }
37789 }
37790
37791 #ifdef __cplusplus
37792 }
37793 #endif
37794
37795 /* -----------------------------------------------------------------------------*
37796 * Partial Init method
37797 * -----------------------------------------------------------------------------*/
37798
37799 #ifdef __cplusplus
37800 extern "C"
37801 #endif
37802 SWIGEXPORT void SWIG_init(void) {
37803 PyObject *m, *d;
37804
37805 /* Fix SwigMethods to carry the callback ptrs when needed */
37806 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37807
37808 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37809 d = PyModule_GetDict(m);
37810
37811 SWIG_InitializeModule(0);
37812 SWIG_InstallConstants(d,swig_const_table);
37813
37814
37815 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37816 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37817 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37818 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37819 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37820 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37821 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37822 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37823 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37824 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37825 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37826 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37827 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37828 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37829 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37830 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37831 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37832 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37833 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37834 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37835 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37836 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37837 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37838 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37839 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37840 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37841 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37842 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37843 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37844 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37845 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37846 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37847 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37848 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37849 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37850 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37851 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37852 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37853 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37854 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37855 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37856 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37857 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37858 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37859 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37860 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37861 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37862 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37863 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37864 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37865 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37866 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37867 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37868 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37869 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37870 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37871 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37872 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37873 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37874 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37875 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37876 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37877 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37878 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37879 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37880 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37881 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37882 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37883 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37884 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37885 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37886 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37887 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37888 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37889 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37890 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37891 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37892 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37893 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37894 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37895 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37896 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37897 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37898 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37899 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37900 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37901 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37902 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37903 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37904 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37905 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37906 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37907 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37908 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37909 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37910 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37911 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37912 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37913 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37914 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37915 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37916 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37917 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37918 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37919 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37920 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37921 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37922 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37923 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37924 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37925 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37926 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37927 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37928 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37929 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37930 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37931 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37932 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37933 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37934 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37935 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37936 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37937 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37938 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37939 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37940 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37941 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37942 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37943 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37944 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37945 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37946 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37947
37948 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37949
37950 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37951 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37952 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37953 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37954 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37955 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37956 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37957 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37958 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37959 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37960 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37961 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37962 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37963 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37964 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37965 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37966 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37967 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37968 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37969 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37970 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37971 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37972 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37973 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37974 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37975 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37976 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37977 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37978 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37979 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37980 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37981 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37982 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37983 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37984 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37985 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37986 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37987 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37988 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37989 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37990 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37991 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37992 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37993 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37994 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37995 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37996 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37997 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37998 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37999 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
38000 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
38001 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
38002 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
38003 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
38004 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
38005 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
38006 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
38007 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
38008 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
38009 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
38010 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
38011 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
38012 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
38013 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
38014 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
38015 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
38016 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
38017 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
38018 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
38019 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
38020 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
38021 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
38022 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
38023 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
38024 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
38025 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
38026 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
38027 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
38028 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
38029 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
38030 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
38031 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
38032 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
38033 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
38034 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
38035 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
38036 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
38037 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
38038 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
38039 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
38040 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
38041 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
38042 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
38043 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
38044 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
38045 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
38046 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
38047 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
38048 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
38049 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
38050 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
38051 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
38052 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
38053 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
38054 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
38055 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
38056 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
38057 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
38058 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
38059 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
38060 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
38061 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
38062 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
38063 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
38064 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
38065 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
38066 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
38067 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
38068 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
38069 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
38070 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
38071 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
38072 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
38073 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
38074 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
38075 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
38076 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
38077 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
38078 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
38079 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
38080 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
38081 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
38082 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
38083 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
38084 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
38085 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
38086 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
38087 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
38088 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
38089 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
38090 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
38091 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
38092 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
38093 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
38094 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
38095 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
38096 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
38097 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
38098 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
38099 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
38100 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
38101 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
38102 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
38103 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
38104 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
38105 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
38106 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
38107 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
38108 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
38109 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
38110 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
38111 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
38112 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
38113 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
38114 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
38115 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
38116 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
38117 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
38118 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
38119 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
38120 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
38121 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
38122 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
38123 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
38124 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
38125 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
38126 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
38127 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
38128 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
38129 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
38130 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
38131 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
38132 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
38133 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
38134 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
38135 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
38136 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
38137 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
38138 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
38139 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
38140 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
38141 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
38142 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
38143 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
38144 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
38145 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
38146 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
38147 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
38148 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
38149 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
38150 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
38151 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
38152 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
38153 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
38154 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
38155 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
38156 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
38157 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
38158 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
38159 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
38160 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
38161 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
38162 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
38163 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
38164 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
38165 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
38166 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
38167 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
38168 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
38169 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
38170 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
38171 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
38172 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
38173 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
38174 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
38175 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
38176 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
38177 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
38178 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
38179 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
38180 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
38181 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
38182 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
38183 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
38184 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
38185 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
38186 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
38187 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
38188 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
38189 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
38190 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
38191 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
38192 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
38193 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
38194 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
38195 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
38196 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
38197 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
38198 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
38199 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
38200 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
38201 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
38202 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
38203 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
38204 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
38205 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
38206 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
38207 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
38208 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
38209 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
38210 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
38211 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
38212 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
38213 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
38214 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
38215 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
38216 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
38217 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
38218 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
38219 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
38220 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
38221 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
38222 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
38223 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
38224 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
38225 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
38226 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
38227 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
38228 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
38229 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
38230 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
38231 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
38232 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
38233 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
38234 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
38235 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
38236 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
38237 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
38238 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
38239 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
38240 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
38241 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
38242 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
38243 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
38244 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
38245 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
38246 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
38247 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
38248 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
38249 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
38250 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
38251 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
38252 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
38253 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
38254 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
38255 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
38256 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
38257 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
38258 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
38259 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
38260 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
38261 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
38262 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
38263 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
38264 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
38265 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
38266 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
38267 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
38268 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
38269
38270 // Work around a chicken/egg problem in drawlist.cpp
38271 wxPyDrawList_SetAPIPtr();
38272
38273 }
38274