]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
removed spaces; added WXDLLEXPORTs; make overlay classes non copiable
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxArrayDouble swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBoxSizer swig_types[16]
2483 #define SWIGTYPE_p_wxBrush swig_types[17]
2484 #define SWIGTYPE_p_wxBrushList swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedDC swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxChar swig_types[22]
2489 #define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColor swig_types[27]
2494 #define SWIGTYPE_p_wxColour swig_types[28]
2495 #define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498 #define SWIGTYPE_p_wxControl swig_types[32]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500 #define SWIGTYPE_p_wxCursor swig_types[34]
2501 #define SWIGTYPE_p_wxDC swig_types[35]
2502 #define SWIGTYPE_p_wxDash swig_types[36]
2503 #define SWIGTYPE_p_wxDateEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507 #define SWIGTYPE_p_wxEffects swig_types[41]
2508 #define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510 #define SWIGTYPE_p_wxEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512 #define SWIGTYPE_p_wxFSFile swig_types[46]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[47]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516 #define SWIGTYPE_p_wxFont swig_types[50]
2517 #define SWIGTYPE_p_wxFontList swig_types[51]
2518 #define SWIGTYPE_p_wxFontMapper swig_types[52]
2519 #define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520 #define SWIGTYPE_p_wxGCDC swig_types[54]
2521 #define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObject swig_types[56]
2523 #define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524 #define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2528 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2530 #define SWIGTYPE_p_wxIcon swig_types[64]
2531 #define SWIGTYPE_p_wxIconBundle swig_types[65]
2532 #define SWIGTYPE_p_wxIconLocation swig_types[66]
2533 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535 #define SWIGTYPE_p_wxImage swig_types[69]
2536 #define SWIGTYPE_p_wxImageHandler swig_types[70]
2537 #define SWIGTYPE_p_wxImageList swig_types[71]
2538 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539 #define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542 #define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543 #define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544 #define SWIGTYPE_p_wxLocale swig_types[78]
2545 #define SWIGTYPE_p_wxMask swig_types[79]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548 #define SWIGTYPE_p_wxMenu swig_types[82]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[83]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[85]
2552 #define SWIGTYPE_p_wxMetaFile swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554 #define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560 #define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564 #define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxObject swig_types[100]
2567 #define SWIGTYPE_p_wxPCXHandler swig_types[101]
2568 #define SWIGTYPE_p_wxPNGHandler swig_types[102]
2569 #define SWIGTYPE_p_wxPNMHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPaintDC swig_types[104]
2571 #define SWIGTYPE_p_wxPaintEvent swig_types[105]
2572 #define SWIGTYPE_p_wxPalette swig_types[106]
2573 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[107]
2574 #define SWIGTYPE_p_wxPaperSize swig_types[108]
2575 #define SWIGTYPE_p_wxPen swig_types[109]
2576 #define SWIGTYPE_p_wxPenList swig_types[110]
2577 #define SWIGTYPE_p_wxPixelDataBase swig_types[111]
2578 #define SWIGTYPE_p_wxPoint swig_types[112]
2579 #define SWIGTYPE_p_wxPoint2D swig_types[113]
2580 #define SWIGTYPE_p_wxPostScriptDC swig_types[114]
2581 #define SWIGTYPE_p_wxPrintData swig_types[115]
2582 #define SWIGTYPE_p_wxPrinterDC swig_types[116]
2583 #define SWIGTYPE_p_wxPseudoDC swig_types[117]
2584 #define SWIGTYPE_p_wxPyApp swig_types[118]
2585 #define SWIGTYPE_p_wxPyCommandEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[121]
2588 #define SWIGTYPE_p_wxPyImageHandler swig_types[122]
2589 #define SWIGTYPE_p_wxPyLocale swig_types[123]
2590 #define SWIGTYPE_p_wxPySizer swig_types[124]
2591 #define SWIGTYPE_p_wxPyValidator swig_types[125]
2592 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593 #define SWIGTYPE_p_wxRect swig_types[127]
2594 #define SWIGTYPE_p_wxRegion swig_types[128]
2595 #define SWIGTYPE_p_wxRegionIterator swig_types[129]
2596 #define SWIGTYPE_p_wxRendererNative swig_types[130]
2597 #define SWIGTYPE_p_wxRendererVersion swig_types[131]
2598 #define SWIGTYPE_p_wxScreenDC swig_types[132]
2599 #define SWIGTYPE_p_wxScrollEvent swig_types[133]
2600 #define SWIGTYPE_p_wxScrollWinEvent swig_types[134]
2601 #define SWIGTYPE_p_wxSetCursorEvent swig_types[135]
2602 #define SWIGTYPE_p_wxShowEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSize swig_types[137]
2604 #define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSizer swig_types[139]
2606 #define SWIGTYPE_p_wxSizerItem swig_types[140]
2607 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[141]
2608 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[143]
2610 #define SWIGTYPE_p_wxStockGDI swig_types[144]
2611 #define SWIGTYPE_p_wxString swig_types[145]
2612 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[146]
2613 #define SWIGTYPE_p_wxTIFFHandler swig_types[147]
2614 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[148]
2615 #define SWIGTYPE_p_wxValidator swig_types[149]
2616 #define SWIGTYPE_p_wxWindow swig_types[150]
2617 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[151]
2618 #define SWIGTYPE_p_wxWindowDC swig_types[152]
2619 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[153]
2620 #define SWIGTYPE_p_wxXPMHandler swig_types[154]
2621 static swig_type_info *swig_types[156];
2622 static swig_module_info swig_module = {swig_types, 155, 0, 0, 0, 0};
2623 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2624 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2625
2626 /* -------- TYPES TABLE (END) -------- */
2627
2628 #if (PY_VERSION_HEX <= 0x02000000)
2629 # if !defined(SWIG_PYTHON_CLASSIC)
2630 # error "This python version requires to use swig with the '-classic' option"
2631 # endif
2632 #endif
2633 #if (PY_VERSION_HEX <= 0x02020000)
2634 # error "This python version requires to use swig with the '-nomodern' option"
2635 #endif
2636 #if (PY_VERSION_HEX <= 0x02020000)
2637 # error "This python version requires to use swig with the '-nomodernargs' option"
2638 #endif
2639 #ifndef METH_O
2640 # error "This python version requires to use swig with the '-nofastunpack' option"
2641 #endif
2642
2643 /*-----------------------------------------------
2644 @(target):= _gdi_.so
2645 ------------------------------------------------*/
2646 #define SWIG_init init_gdi_
2647
2648 #define SWIG_name "_gdi_"
2649
2650 #define SWIGVERSION 0x010329
2651
2652
2653 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2654 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2655
2656
2657 #include <stdexcept>
2658
2659
2660 namespace swig {
2661 class PyObject_ptr {
2662 protected:
2663 PyObject *_obj;
2664
2665 public:
2666 PyObject_ptr() :_obj(0)
2667 {
2668 }
2669
2670 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2671 {
2672 Py_XINCREF(_obj);
2673 }
2674
2675 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2676 {
2677 if (initial_ref) Py_XINCREF(_obj);
2678 }
2679
2680 PyObject_ptr & operator=(const PyObject_ptr& item)
2681 {
2682 Py_XINCREF(item._obj);
2683 Py_XDECREF(_obj);
2684 _obj = item._obj;
2685 return *this;
2686 }
2687
2688 ~PyObject_ptr()
2689 {
2690 Py_XDECREF(_obj);
2691 }
2692
2693 operator PyObject *() const
2694 {
2695 return _obj;
2696 }
2697
2698 PyObject *operator->() const
2699 {
2700 return _obj;
2701 }
2702 };
2703 }
2704
2705
2706 namespace swig {
2707 struct PyObject_var : PyObject_ptr {
2708 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2709
2710 PyObject_var & operator = (PyObject* obj)
2711 {
2712 Py_XDECREF(_obj);
2713 _obj = obj;
2714 return *this;
2715 }
2716 };
2717 }
2718
2719
2720 #include "wx/wxPython/wxPython.h"
2721 #include "wx/wxPython/pyclasses.h"
2722
2723
2724 static const wxString wxPyEmptyString(wxEmptyString);
2725
2726 #define SWIG_From_long PyInt_FromLong
2727
2728
2729 SWIGINTERNINLINE PyObject *
2730 SWIG_From_int (int value)
2731 {
2732 return SWIG_From_long (value);
2733 }
2734
2735
2736 #include <limits.h>
2737 #ifndef LLONG_MIN
2738 # define LLONG_MIN LONG_LONG_MIN
2739 #endif
2740 #ifndef LLONG_MAX
2741 # define LLONG_MAX LONG_LONG_MAX
2742 #endif
2743 #ifndef ULLONG_MAX
2744 # define ULLONG_MAX ULONG_LONG_MAX
2745 #endif
2746
2747
2748 SWIGINTERN int
2749 SWIG_AsVal_long (PyObject* obj, long* val)
2750 {
2751 if (PyNumber_Check(obj)) {
2752 if (val) *val = PyInt_AsLong(obj);
2753 return SWIG_OK;
2754 }
2755 return SWIG_TypeError;
2756 }
2757
2758
2759 SWIGINTERN int
2760 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2761 {
2762 long v = 0;
2763 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2764 return SWIG_TypeError;
2765 }
2766 else if (val)
2767 *val = (unsigned long)v;
2768 return SWIG_OK;
2769 }
2770
2771
2772 SWIGINTERN int
2773 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2774 {
2775 unsigned long v;
2776 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2777 if (SWIG_IsOK(res)) {
2778 if ((v > UCHAR_MAX)) {
2779 return SWIG_OverflowError;
2780 } else {
2781 if (val) *val = static_cast< unsigned char >(v);
2782 }
2783 }
2784 return res;
2785 }
2786
2787
2788 SWIGINTERNINLINE PyObject*
2789 SWIG_From_unsigned_SS_long (unsigned long value)
2790 {
2791 return (value > LONG_MAX) ?
2792 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2793 }
2794
2795
2796 SWIGINTERNINLINE PyObject *
2797 SWIG_From_unsigned_SS_char (unsigned char value)
2798 {
2799 return SWIG_From_unsigned_SS_long (value);
2800 }
2801
2802 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2803 wxColour temp, *obj = &temp;
2804 if ( other == Py_None ) return false;
2805 if ( ! wxColour_helper(other, &obj) ) {
2806 PyErr_Clear();
2807 return false;
2808 }
2809 return self->operator==(*obj);
2810 }
2811 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2812 wxColour temp, *obj = &temp;
2813 if ( other == Py_None ) return true;
2814 if ( ! wxColour_helper(other, &obj)) {
2815 PyErr_Clear();
2816 return true;
2817 }
2818 return self->operator!=(*obj);
2819 }
2820
2821 SWIGINTERN int
2822 SWIG_AsVal_bool (PyObject *obj, bool *val)
2823 {
2824 if (obj == Py_True) {
2825 if (val) *val = true;
2826 return SWIG_OK;
2827 } else if (obj == Py_False) {
2828 if (val) *val = false;
2829 return SWIG_OK;
2830 } else {
2831 long v = 0;
2832 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2833 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2834 return res;
2835 }
2836 }
2837
2838 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2839 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2840 int red = -1;
2841 int green = -1;
2842 int blue = -1;
2843 int alpha = wxALPHA_OPAQUE;
2844 if (self->Ok()) {
2845 red = self->Red();
2846 green = self->Green();
2847 blue = self->Blue();
2848 alpha = self->Alpha();
2849 }
2850 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2851 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2852 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2853 if (includeAlpha)
2854 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2855 return rv;
2856 }
2857 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2858 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2859 }
2860
2861 SWIGINTERN int
2862 SWIG_AsVal_int (PyObject * obj, int *val)
2863 {
2864 long v;
2865 int res = SWIG_AsVal_long (obj, &v);
2866 if (SWIG_IsOK(res)) {
2867 if ((v < INT_MIN || v > INT_MAX)) {
2868 return SWIG_OverflowError;
2869 } else {
2870 if (val) *val = static_cast< int >(v);
2871 }
2872 }
2873 return res;
2874 }
2875
2876 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2877 wxDash* dashes;
2878 int count = self->GetDashes(&dashes);
2879 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2880 PyObject* retval = PyList_New(0);
2881 for (int x=0; x<count; x++) {
2882 PyObject* pyint = PyInt_FromLong(dashes[x]);
2883 PyList_Append(retval, pyint);
2884 Py_DECREF(pyint);
2885 }
2886 wxPyEndBlockThreads(blocked);
2887 return retval;
2888 }
2889 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2891 int size = PyList_Size(pyDashes);
2892 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2893
2894 // black magic warning! The array of wxDashes needs to exist as
2895 // long as the pen does because wxPen does not copy the array. So
2896 // stick a copy in a Python string object and attach it to _self,
2897 // and then call SetDashes with a pointer to that array. Then
2898 // when the Python pen object is destroyed the array will be
2899 // cleaned up too.
2900 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2901 PyObject_SetAttrString(_self, "_dashes", strDashes);
2902
2903 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2904 delete [] dashes;
2905 Py_DECREF(strDashes);
2906 wxPyEndBlockThreads(blocked);
2907 }
2908 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2909 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2910
2911 SWIGINTERNINLINE PyObject *
2912 SWIG_From_short (short value)
2913 {
2914 return SWIG_From_long (value);
2915 }
2916
2917
2918 SWIGINTERN int
2919 SWIG_AsVal_short (PyObject * obj, short *val)
2920 {
2921 long v;
2922 int res = SWIG_AsVal_long (obj, &v);
2923 if (SWIG_IsOK(res)) {
2924 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2925 return SWIG_OverflowError;
2926 } else {
2927 if (val) *val = static_cast< short >(v);
2928 }
2929 }
2930 return res;
2931 }
2932
2933
2934 #include <wx/rawbmp.h>
2935
2936
2937 #include <wx/image.h>
2938
2939 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2940 char** cArray = NULL;
2941 int count;
2942
2943 if (!PyList_Check(listOfStrings)) {
2944 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2945 return NULL;
2946 }
2947 count = PyList_Size(listOfStrings);
2948 cArray = new char*[count];
2949
2950 for(int x=0; x<count; x++) {
2951 // TODO: Need some validation and error checking here
2952 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2953 }
2954 return cArray;
2955 }
2956
2957
2958 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2959 char** cArray = NULL;
2960 wxBitmap* bmp;
2961
2962 cArray = ConvertListOfStrings(listOfStrings);
2963 if (! cArray)
2964 return NULL;
2965 bmp = new wxBitmap(cArray);
2966 delete [] cArray;
2967 return bmp;
2968 }
2969 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2970 char* buf;
2971 Py_ssize_t length;
2972 PyString_AsStringAndSize(bits, &buf, &length);
2973 return new wxBitmap(buf, width, height, depth);
2974 }
2975 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2976 wxSize size(self->GetWidth(), self->GetHeight());
2977 return size;
2978 }
2979 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2980 wxMask *mask = new wxMask(*self, colour);
2981 self->SetMask(mask);
2982 }
2983 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2984 self->SetWidth(size.x);
2985 self->SetHeight(size.y);
2986 }
2987 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2988 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2989
2990 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2991 // appears to me that the other platforms are already doing it, so I'll just
2992 // automatically do it for wxMSW here.
2993 #ifdef __WXMSW__
2994 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2995 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2996 #else
2997 #define wxPy_premultiply(p, a) (p)
2998 #define wxPy_unpremultiply(p, a) (p)
2999 #endif
3000
3001
3002 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3003 buffer data, int DATASIZE,
3004 buffer alpha, int ALPHASIZE)
3005 {
3006 if (DATASIZE != width*height*3) {
3007 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3008 return NULL;
3009 }
3010
3011 if (ALPHASIZE != width*height) {
3012 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3013 return NULL;
3014 }
3015
3016 wxBitmap* bmp = new wxBitmap(width, height, 32);
3017 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3018 if (! pixData) {
3019 // raise an exception...
3020 wxPyErr_SetString(PyExc_RuntimeError,
3021 "Failed to gain raw access to bitmap data.");
3022 return NULL;
3023 }
3024
3025 pixData.UseAlpha();
3026 wxAlphaPixelData::Iterator p(pixData);
3027 for (int y=0; y<height; y++) {
3028 wxAlphaPixelData::Iterator rowStart = p;
3029 for (int x=0; x<width; x++) {
3030 byte a = *(alpha++);
3031 p.Red() = wxPy_premultiply(*(data++), a);
3032 p.Green() = wxPy_premultiply(*(data++), a);
3033 p.Blue() = wxPy_premultiply(*(data++), a);
3034 p.Alpha() = a;
3035 ++p;
3036 }
3037 p = rowStart;
3038 p.OffsetY(pixData, 1);
3039 }
3040 return bmp;
3041 }
3042
3043 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3044 {
3045 if (DATASIZE != width*height*3) {
3046 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3047 return NULL;
3048 }
3049
3050 wxBitmap* bmp = new wxBitmap(width, height, 24);
3051 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3052 if (! pixData) {
3053 // raise an exception...
3054 wxPyErr_SetString(PyExc_RuntimeError,
3055 "Failed to gain raw access to bitmap data.");
3056 return NULL;
3057 }
3058
3059 wxNativePixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxNativePixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 p.Red() = *(data++);
3064 p.Green() = *(data++);
3065 p.Blue() = *(data++);
3066 ++p;
3067 }
3068 p = rowStart;
3069 p.OffsetY(pixData, 1);
3070 }
3071 return bmp;
3072 }
3073
3074
3075 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3076 {
3077 if (DATASIZE != width*height*4) {
3078 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3079 return NULL;
3080 }
3081
3082 wxBitmap* bmp = new wxBitmap(width, height, 32);
3083 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3084 if (! pixData) {
3085 // raise an exception...
3086 wxPyErr_SetString(PyExc_RuntimeError,
3087 "Failed to gain raw access to bitmap data.");
3088 return NULL;
3089 }
3090
3091 pixData.UseAlpha();
3092 wxAlphaPixelData::Iterator p(pixData);
3093 for (int y=0; y<height; y++) {
3094 wxAlphaPixelData::Iterator rowStart = p;
3095 for (int x=0; x<width; x++) {
3096 byte a = data[3];
3097 p.Red() = wxPy_premultiply(*(data++), a);
3098 p.Green() = wxPy_premultiply(*(data++), a);
3099 p.Blue() = wxPy_premultiply(*(data++), a);
3100 p.Alpha() = a; data++;
3101 ++p;
3102 }
3103 p = rowStart;
3104 p.OffsetY(pixData, 1);
3105 }
3106 return bmp;
3107 }
3108
3109
3110 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3111
3112 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3113 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3114 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3115 self->Red() = red;
3116 self->Green() = green;
3117 self->Blue() = blue;
3118 }
3119 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3120 PyObject* rv = PyTuple_New(3);
3121 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3122 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3123 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3124 return rv;
3125 }
3126
3127 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3128
3129 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3130 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3131 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3132 self->Red() = wxPy_premultiply(red, alpha);
3133 self->Green() = wxPy_premultiply(green, alpha);
3134 self->Blue() = wxPy_premultiply(blue, alpha);
3135 self->Alpha() = alpha;
3136 }
3137 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3138 PyObject* rv = PyTuple_New(4);
3139 int red = self->Red();
3140 int green = self->Green();
3141 int blue = self->Blue();
3142 int alpha = self->Alpha();
3143
3144 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3145 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3146 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3147 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3148 return rv;
3149 }
3150 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3151 if ( !colour.Ok() )
3152 return new wxMask(bitmap, *wxBLACK);
3153 else
3154 return new wxMask(bitmap, colour);
3155 }
3156
3157 #include <wx/iconbndl.h>
3158
3159 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3160 wxIcon* icon = new wxIcon();
3161 icon->CopyFromBitmap(bmp);
3162 return icon;
3163 }
3164 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3165 char** cArray = NULL;
3166 wxIcon* icon;
3167
3168 cArray = ConvertListOfStrings(listOfStrings);
3169 if (! cArray)
3170 return NULL;
3171 icon = new wxIcon(cArray);
3172 delete [] cArray;
3173 return icon;
3174 }
3175 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3176
3177
3178
3179 return new wxIconLocation(*filename);
3180
3181 }
3182 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3183
3184
3185
3186 // do nothing
3187
3188 }
3189 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3190
3191
3192
3193 return -1;
3194
3195 }
3196 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3197 #ifdef __WXGTK__
3198 wxImage img(cursorName, type);
3199 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3200 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3201 return new wxCursor(img);
3202 #else
3203 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3204 #endif
3205 }
3206
3207
3208 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3209 (*self) ++;
3210 }
3211 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3212 return self->operator bool();
3213 }
3214
3215 #include <wx/fontutil.h>
3216 #include <wx/fontmap.h>
3217 #include <wx/fontenum.h>
3218
3219 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3220 return self->ToString();
3221 }
3222
3223 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3224 static wxNativeEncodingInfo info;
3225 if ( wxGetNativeFontEncoding(encoding, &info) )
3226 return &info;
3227 else
3228 return NULL;
3229 }
3230
3231
3232 SWIGINTERNINLINE PyObject *
3233 SWIG_From_size_t (size_t value)
3234 {
3235 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3236 }
3237
3238
3239 SWIGINTERNINLINE int
3240 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3241 {
3242 unsigned long v;
3243 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3244 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3245 return res;
3246 }
3247
3248 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3249 wxFontEncoding alt_enc;
3250 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3251 return PyInt_FromLong(alt_enc);
3252 else {
3253 Py_INCREF(Py_None);
3254 return Py_None;
3255 }
3256 }
3257 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3258 wxNativeFontInfo nfi;
3259 nfi.FromString(info);
3260 return new wxFont(nfi);
3261 }
3262 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3263 return wxFont::New(pointSize, family, flags, face, encoding);
3264 }
3265 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3266 return wxFontBase::New(pixelSize, family,
3267 style, weight, underlined,
3268 face, encoding);
3269 }
3270 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3271 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3272 }
3273 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3274 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3275
3276 class wxPyFontEnumerator : public wxFontEnumerator {
3277 public:
3278 wxPyFontEnumerator() {}
3279 ~wxPyFontEnumerator() {}
3280
3281 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3282 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3283
3284 PYPRIVATE;
3285 };
3286
3287 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3288 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3289
3290
3291 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3292 PyObject* ret;
3293 wxArrayString arr = wxFontEnumerator::GetEncodings();
3294 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3295 ret = wxArrayString2PyList_helper(arr);
3296 wxPyEndBlockThreads(blocked);
3297 return ret;
3298 }
3299 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3300 PyObject* ret;
3301 wxArrayString arr = wxFontEnumerator::GetFacenames();
3302 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3303 ret = wxArrayString2PyList_helper(arr);
3304 wxPyEndBlockThreads(blocked);
3305 return ret;
3306 }
3307
3308 #include <locale.h>
3309
3310 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3311 wxLocale* loc;
3312 if (language == -1)
3313 loc = new wxLocale();
3314 else
3315 loc = new wxLocale(language, flags);
3316 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3317 // for the floating point conversions and such to work right.
3318 #if PY_VERSION_HEX < 0x02040000
3319 setlocale(LC_NUMERIC, "C");
3320 #endif
3321 return loc;
3322 }
3323 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3324 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3325 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3326 // for the floating point conversions and such to work right.
3327 #if PY_VERSION_HEX < 0x02040000
3328 setlocale(LC_NUMERIC, "C");
3329 #endif
3330 return rc;
3331 }
3332 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3333 bool rc = self->Init(language, flags);
3334 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3335 // for the floating point conversions and such to work right.
3336 #if PY_VERSION_HEX < 0x02040000
3337 setlocale(LC_NUMERIC, "C");
3338 #endif
3339 return rc;
3340 }
3341
3342 class wxPyLocale : public wxLocale
3343 {
3344 public:
3345 wxPyLocale();
3346
3347 wxPyLocale(const wxChar *szName, // name (for messages)
3348 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3349 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3350 bool bLoadDefault = true, // preload wxstd.mo?
3351 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3352
3353 wxPyLocale(int language, // wxLanguage id or custom language
3354 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3355
3356 ~wxPyLocale();
3357
3358 virtual const wxChar *GetString(const wxChar *szOrigString,
3359 const wxChar *szDomain = NULL) const;
3360 virtual const wxChar *GetString(const wxChar *szOrigString,
3361 const wxChar *szOrigString2, size_t n,
3362 const wxChar *szDomain = NULL) const;
3363
3364 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3365 const wxChar *szDomain = NULL) const;
3366 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3367 const wxChar *szOrigString2, size_t n,
3368 const wxChar *szDomain = NULL) const;
3369
3370 PYPRIVATE;
3371 private:
3372 DECLARE_NO_COPY_CLASS(wxPyLocale)
3373 };
3374
3375 wxPyLocale::wxPyLocale() : wxLocale()
3376 {
3377 }
3378
3379 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3380 const wxChar *szShort, // dir prefix (for msg files)
3381 const wxChar *szLocale, // locale (for setlocale)
3382 bool bLoadDefault, // preload wxstd.mo?
3383 bool bConvertEncoding) // convert Win<->Unix if necessary?
3384 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3385 {
3386 }
3387
3388 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3389 int flags) : wxLocale(language, flags)
3390 {
3391 }
3392
3393 wxPyLocale::~wxPyLocale()
3394 {
3395 }
3396
3397 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3398 const wxChar *szDomain) const
3399 {
3400 wxChar *str = GetSingularString(szOrigString, szDomain);
3401 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3402 }
3403
3404 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3405 const wxChar *szOrigString2, size_t n,
3406 const wxChar *szDomain) const
3407 {
3408 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3409 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3410 }
3411
3412 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3413 const wxChar *szDomain) const
3414 {
3415 bool found;
3416 static wxString str;
3417 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.
3418 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3419 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3420 PyObject* param1 = wx2PyString(szOrigString);
3421 PyObject* param2 = wx2PyString(szDomain);
3422 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3423 Py_DECREF(param1);
3424 Py_DECREF(param2);
3425 if (ret) {
3426 str = Py2wxString(ret);
3427 Py_DECREF(ret);
3428 }
3429 }
3430 wxPyEndBlockThreads(blocked);
3431 return (found ? (wxChar*)str.c_str() : NULL);
3432 }
3433
3434 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3435 const wxChar *szOrigString2, size_t n,
3436 const wxChar *szDomain) const
3437 {
3438 bool found;
3439 static wxString str;
3440 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.
3441 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3442 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3443 PyObject* param1 = wx2PyString(szOrigString);
3444 PyObject* param2 = wx2PyString(szOrigString2);
3445 PyObject* param4 = wx2PyString(szDomain);
3446 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3447 Py_DECREF(param1);
3448 Py_DECREF(param2);
3449 Py_DECREF(param4);
3450 if( ret) {
3451 str = Py2wxString(ret);
3452 Py_DECREF(ret);
3453 }
3454 }
3455 wxPyEndBlockThreads(blocked);
3456 return (found ? (wxChar*)str.c_str() : NULL);
3457 }
3458
3459 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3460 wxPyLocale* loc;
3461 if (language == -1)
3462 loc = new wxPyLocale();
3463 else
3464 loc = new wxPyLocale(language, flags);
3465 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3466 // for the floating point conversions and such to work right.
3467 #if PY_VERSION_HEX < 0x02040000
3468 setlocale(LC_NUMERIC, "C");
3469 #endif
3470 return loc;
3471 }
3472
3473 #include "wx/wxPython/pydrawxxx.h"
3474
3475 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3476 wxColour col;
3477 self->GetPixel(x, y, &col);
3478 return col;
3479 }
3480 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3481 wxColour col;
3482 self->GetPixel(pt, &col);
3483 return col;
3484 }
3485
3486 SWIGINTERN int
3487 SWIG_AsVal_double (PyObject *obj, double* val)
3488 {
3489 if (PyNumber_Check(obj)) {
3490 if (val) *val = PyFloat_AsDouble(obj);
3491 return SWIG_OK;
3492 }
3493 return SWIG_TypeError;
3494 }
3495
3496 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3497 wxRect rv;
3498 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3499 return rv;
3500 }
3501 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3502 wxRect rect;
3503 self->GetClippingBox(rect);
3504 return rect;
3505 }
3506 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3507 wxArrayInt widths;
3508 self->GetPartialTextExtents(text, widths);
3509 return widths;
3510 }
3511
3512 #define SWIG_From_double PyFloat_FromDouble
3513
3514 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3515 self->SetLogicalOrigin(point.x, point.y);
3516 }
3517 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3518 self->SetDeviceOrigin(point.x, point.y);
3519 }
3520 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3521 self->CalcBoundingBox(point.x, point.y);
3522 }
3523 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3524 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3525 }
3526 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3527 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3528 }
3529 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3530 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3531 }
3532 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3533 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3534 }
3535 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3536 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3537 }
3538 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3539 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3540 }
3541
3542 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3543 *x1 = dc->MinX();
3544 *y1 = dc->MinY();
3545 *x2 = dc->MaxX();
3546 *y2 = dc->MaxY();
3547 }
3548
3549
3550 #include <wx/dcbuffer.h>
3551
3552
3553 #include <wx/dcps.h>
3554
3555
3556 #include <wx/metafile.h>
3557
3558
3559 #include <wx/graphics.h>
3560
3561
3562 #if !wxUSE_GRAPHICS_CONTEXT
3563 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3564
3565 class wxGraphicsPath
3566 {
3567 public :
3568 wxGraphicsPath() {
3569 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3570 PyErr_SetString(PyExc_NotImplementedError,
3571 "wxGraphicsPath is not available on this platform.");
3572 wxPyEndBlockThreads(blocked);
3573 }
3574 virtual ~wxGraphicsPath() {}
3575
3576 void MoveToPoint( wxDouble, wxDouble ) {}
3577 void AddLineToPoint( wxDouble, wxDouble ) {}
3578 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3579 void CloseSubpath() {}
3580 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3581 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3582
3583 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3584 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3585 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3586 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3587
3588 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3589 void MoveToPoint( const wxPoint2DDouble& ) {}
3590 void AddLineToPoint( const wxPoint2DDouble&) {}
3591 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3592 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3593 };
3594
3595
3596 class wxGraphicsContext
3597 {
3598 public:
3599 wxGraphicsContext() {
3600 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3601 PyErr_SetString(PyExc_NotImplementedError,
3602 "wxGraphicsContext is not available on this platform.");
3603 wxPyEndBlockThreads(blocked);
3604 }
3605 virtual ~wxGraphicsContext() {}
3606
3607 static wxGraphicsContext* Create( const wxWindowDC&) {
3608 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3609 PyErr_SetString(PyExc_NotImplementedError,
3610 "wxGraphicsPath is not available on this platform.");
3611 wxPyEndBlockThreads(blocked);
3612 return NULL;
3613 }
3614
3615 wxGraphicsPath * CreatePath() { return NULL; }
3616 void PushState() {}
3617 void PopState() {}
3618 void Clip( const wxRegion & ) {}
3619 void Translate( wxDouble , wxDouble ) {}
3620 void Scale( wxDouble , wxDouble ) {}
3621 void Rotate( wxDouble ) {}
3622 void SetPen( const wxPen & ) {}
3623 void SetBrush( const wxBrush & ) {}
3624 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3625 const wxColour&, const wxColour&) {}
3626 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3627 const wxColour &, const wxColour &) {}
3628 void SetFont( const wxFont & ) {}
3629 void SetTextColor( const wxColour & ) {}
3630 void StrokePath( const wxGraphicsPath * ) {}
3631 void FillPath( const wxGraphicsPath *, int ) {}
3632 void DrawPath( const wxGraphicsPath *, int ) {}
3633 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3634 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3635 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3636 wxDouble *, wxDouble * ) const {}
3637 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3638 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3639 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3640 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3641 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3642 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3643 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3644 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3645 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3646 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3647 };
3648
3649
3650 class wxGCDC: public wxWindowDC
3651 {
3652 public:
3653 wxGCDC(const wxWindowDC&) {
3654 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3655 PyErr_SetString(PyExc_NotImplementedError,
3656 "wxGCDC is not available on this platform.");
3657 wxPyEndBlockThreads(blocked);
3658 }
3659
3660 wxGCDC() {
3661 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3662 PyErr_SetString(PyExc_NotImplementedError,
3663 "wxGCDC is not available on this platform.");
3664 wxPyEndBlockThreads(blocked);
3665 }
3666
3667 virtual ~wxGCDC() {}
3668
3669 wxGraphicsContext* GetGraphicContext() { return NULL; }
3670 };
3671
3672 #endif
3673
3674
3675
3676 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3677 self->AddColour(name, wxColour(red, green, blue));
3678 }
3679
3680 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3681 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3682 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3683 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3684
3685
3686 #include <wx/effects.h>
3687
3688
3689 #include "wx/renderer.h"
3690
3691
3692 SWIGINTERNINLINE PyObject*
3693 SWIG_From_bool (bool value)
3694 {
3695 return PyBool_FromLong(value ? 1 : 0);
3696 }
3697
3698
3699 #include "wx/wxPython/pseudodc.h"
3700
3701 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3702 wxRect rect;
3703 self->GetIdBounds(id, rect);
3704 return rect;
3705 }
3706 #ifdef __cplusplus
3707 extern "C" {
3708 #endif
3709 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3710 PyObject *resultobj = 0;
3711 wxGDIObject *result = 0 ;
3712
3713 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3714 {
3715 if (!wxPyCheckForApp()) SWIG_fail;
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 result = (wxGDIObject *)new wxGDIObject();
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3722 return resultobj;
3723 fail:
3724 return NULL;
3725 }
3726
3727
3728 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3729 PyObject *resultobj = 0;
3730 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3731 void *argp1 = 0 ;
3732 int res1 = 0 ;
3733 PyObject *swig_obj[1] ;
3734
3735 if (!args) SWIG_fail;
3736 swig_obj[0] = args;
3737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3738 if (!SWIG_IsOK(res1)) {
3739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3740 }
3741 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3742 {
3743 PyThreadState* __tstate = wxPyBeginAllowThreads();
3744 delete arg1;
3745
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 resultobj = SWIG_Py_Void();
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3757 PyObject *resultobj = 0;
3758 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3759 bool result;
3760 void *argp1 = 0 ;
3761 int res1 = 0 ;
3762 PyObject *swig_obj[1] ;
3763
3764 if (!args) SWIG_fail;
3765 swig_obj[0] = args;
3766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3767 if (!SWIG_IsOK(res1)) {
3768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3769 }
3770 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3771 {
3772 PyThreadState* __tstate = wxPyBeginAllowThreads();
3773 result = (bool)(arg1)->IsNull();
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 {
3778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3779 }
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3787 PyObject *obj;
3788 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3789 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3790 return SWIG_Py_Void();
3791 }
3792
3793 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3794 return SWIG_Python_InitShadowInstance(args);
3795 }
3796
3797 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3798 PyObject *resultobj = 0;
3799 byte arg1 = (byte) 0 ;
3800 byte arg2 = (byte) 0 ;
3801 byte arg3 = (byte) 0 ;
3802 byte arg4 = (byte) wxALPHA_OPAQUE ;
3803 wxColour *result = 0 ;
3804 unsigned char val1 ;
3805 int ecode1 = 0 ;
3806 unsigned char val2 ;
3807 int ecode2 = 0 ;
3808 unsigned char val3 ;
3809 int ecode3 = 0 ;
3810 unsigned char val4 ;
3811 int ecode4 = 0 ;
3812 PyObject * obj0 = 0 ;
3813 PyObject * obj1 = 0 ;
3814 PyObject * obj2 = 0 ;
3815 PyObject * obj3 = 0 ;
3816 char * kwnames[] = {
3817 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3818 };
3819
3820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3821 if (obj0) {
3822 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3823 if (!SWIG_IsOK(ecode1)) {
3824 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3825 }
3826 arg1 = static_cast< byte >(val1);
3827 }
3828 if (obj1) {
3829 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3830 if (!SWIG_IsOK(ecode2)) {
3831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3832 }
3833 arg2 = static_cast< byte >(val2);
3834 }
3835 if (obj2) {
3836 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3837 if (!SWIG_IsOK(ecode3)) {
3838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3839 }
3840 arg3 = static_cast< byte >(val3);
3841 }
3842 if (obj3) {
3843 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3844 if (!SWIG_IsOK(ecode4)) {
3845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3846 }
3847 arg4 = static_cast< byte >(val4);
3848 }
3849 {
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3856 return resultobj;
3857 fail:
3858 return NULL;
3859 }
3860
3861
3862 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3863 PyObject *resultobj = 0;
3864 wxString *arg1 = 0 ;
3865 wxColour *result = 0 ;
3866 bool temp1 = false ;
3867 PyObject * obj0 = 0 ;
3868 char * kwnames[] = {
3869 (char *) "colorName", NULL
3870 };
3871
3872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3873 {
3874 arg1 = wxString_in_helper(obj0);
3875 if (arg1 == NULL) SWIG_fail;
3876 temp1 = true;
3877 }
3878 {
3879 if (!wxPyCheckForApp()) SWIG_fail;
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (wxColour *)new wxColour((wxString const &)*arg1);
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3886 {
3887 if (temp1)
3888 delete arg1;
3889 }
3890 return resultobj;
3891 fail:
3892 {
3893 if (temp1)
3894 delete arg1;
3895 }
3896 return NULL;
3897 }
3898
3899
3900 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3901 PyObject *resultobj = 0;
3902 unsigned long arg1 ;
3903 wxColour *result = 0 ;
3904 unsigned long val1 ;
3905 int ecode1 = 0 ;
3906 PyObject * obj0 = 0 ;
3907 char * kwnames[] = {
3908 (char *) "colRGB", NULL
3909 };
3910
3911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3912 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3913 if (!SWIG_IsOK(ecode1)) {
3914 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3915 }
3916 arg1 = static_cast< unsigned long >(val1);
3917 {
3918 PyThreadState* __tstate = wxPyBeginAllowThreads();
3919 result = (wxColour *)new wxColour(arg1);
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3931 PyObject *resultobj = 0;
3932 wxColour *arg1 = (wxColour *) 0 ;
3933 void *argp1 = 0 ;
3934 int res1 = 0 ;
3935 PyObject *swig_obj[1] ;
3936
3937 if (!args) SWIG_fail;
3938 swig_obj[0] = args;
3939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3940 if (!SWIG_IsOK(res1)) {
3941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3942 }
3943 arg1 = reinterpret_cast< wxColour * >(argp1);
3944 {
3945 PyThreadState* __tstate = wxPyBeginAllowThreads();
3946 delete arg1;
3947
3948 wxPyEndAllowThreads(__tstate);
3949 if (PyErr_Occurred()) SWIG_fail;
3950 }
3951 resultobj = SWIG_Py_Void();
3952 return resultobj;
3953 fail:
3954 return NULL;
3955 }
3956
3957
3958 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3959 PyObject *resultobj = 0;
3960 wxColour *arg1 = (wxColour *) 0 ;
3961 byte result;
3962 void *argp1 = 0 ;
3963 int res1 = 0 ;
3964 PyObject *swig_obj[1] ;
3965
3966 if (!args) SWIG_fail;
3967 swig_obj[0] = args;
3968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3969 if (!SWIG_IsOK(res1)) {
3970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3971 }
3972 arg1 = reinterpret_cast< wxColour * >(argp1);
3973 {
3974 PyThreadState* __tstate = wxPyBeginAllowThreads();
3975 result = (byte)(arg1)->Red();
3976 wxPyEndAllowThreads(__tstate);
3977 if (PyErr_Occurred()) SWIG_fail;
3978 }
3979 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3980 return resultobj;
3981 fail:
3982 return NULL;
3983 }
3984
3985
3986 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3987 PyObject *resultobj = 0;
3988 wxColour *arg1 = (wxColour *) 0 ;
3989 byte result;
3990 void *argp1 = 0 ;
3991 int res1 = 0 ;
3992 PyObject *swig_obj[1] ;
3993
3994 if (!args) SWIG_fail;
3995 swig_obj[0] = args;
3996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3997 if (!SWIG_IsOK(res1)) {
3998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3999 }
4000 arg1 = reinterpret_cast< wxColour * >(argp1);
4001 {
4002 PyThreadState* __tstate = wxPyBeginAllowThreads();
4003 result = (byte)(arg1)->Green();
4004 wxPyEndAllowThreads(__tstate);
4005 if (PyErr_Occurred()) SWIG_fail;
4006 }
4007 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4008 return resultobj;
4009 fail:
4010 return NULL;
4011 }
4012
4013
4014 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 wxColour *arg1 = (wxColour *) 0 ;
4017 byte result;
4018 void *argp1 = 0 ;
4019 int res1 = 0 ;
4020 PyObject *swig_obj[1] ;
4021
4022 if (!args) SWIG_fail;
4023 swig_obj[0] = args;
4024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4025 if (!SWIG_IsOK(res1)) {
4026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4027 }
4028 arg1 = reinterpret_cast< wxColour * >(argp1);
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (byte)(arg1)->Blue();
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4036 return resultobj;
4037 fail:
4038 return NULL;
4039 }
4040
4041
4042 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 PyObject *resultobj = 0;
4044 wxColour *arg1 = (wxColour *) 0 ;
4045 byte result;
4046 void *argp1 = 0 ;
4047 int res1 = 0 ;
4048 PyObject *swig_obj[1] ;
4049
4050 if (!args) SWIG_fail;
4051 swig_obj[0] = args;
4052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4053 if (!SWIG_IsOK(res1)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4055 }
4056 arg1 = reinterpret_cast< wxColour * >(argp1);
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (byte)(arg1)->Alpha();
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4064 return resultobj;
4065 fail:
4066 return NULL;
4067 }
4068
4069
4070 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4071 PyObject *resultobj = 0;
4072 wxColour *arg1 = (wxColour *) 0 ;
4073 bool result;
4074 void *argp1 = 0 ;
4075 int res1 = 0 ;
4076 PyObject *swig_obj[1] ;
4077
4078 if (!args) SWIG_fail;
4079 swig_obj[0] = args;
4080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
4083 }
4084 arg1 = reinterpret_cast< wxColour * >(argp1);
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (bool)(arg1)->Ok();
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 {
4092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4093 }
4094 return resultobj;
4095 fail:
4096 return NULL;
4097 }
4098
4099
4100 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj = 0;
4102 wxColour *arg1 = (wxColour *) 0 ;
4103 byte arg2 ;
4104 byte arg3 ;
4105 byte arg4 ;
4106 byte arg5 = (byte) wxALPHA_OPAQUE ;
4107 void *argp1 = 0 ;
4108 int res1 = 0 ;
4109 unsigned char val2 ;
4110 int ecode2 = 0 ;
4111 unsigned char val3 ;
4112 int ecode3 = 0 ;
4113 unsigned char val4 ;
4114 int ecode4 = 0 ;
4115 unsigned char val5 ;
4116 int ecode5 = 0 ;
4117 PyObject * obj0 = 0 ;
4118 PyObject * obj1 = 0 ;
4119 PyObject * obj2 = 0 ;
4120 PyObject * obj3 = 0 ;
4121 PyObject * obj4 = 0 ;
4122 char * kwnames[] = {
4123 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4124 };
4125
4126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4128 if (!SWIG_IsOK(res1)) {
4129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4130 }
4131 arg1 = reinterpret_cast< wxColour * >(argp1);
4132 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4133 if (!SWIG_IsOK(ecode2)) {
4134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4135 }
4136 arg2 = static_cast< byte >(val2);
4137 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4138 if (!SWIG_IsOK(ecode3)) {
4139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4140 }
4141 arg3 = static_cast< byte >(val3);
4142 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4143 if (!SWIG_IsOK(ecode4)) {
4144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4145 }
4146 arg4 = static_cast< byte >(val4);
4147 if (obj4) {
4148 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4149 if (!SWIG_IsOK(ecode5)) {
4150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4151 }
4152 arg5 = static_cast< byte >(val5);
4153 }
4154 {
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 (arg1)->Set(arg2,arg3,arg4,arg5);
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 resultobj = SWIG_Py_Void();
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj = 0;
4169 wxColour *arg1 = (wxColour *) 0 ;
4170 unsigned long arg2 ;
4171 void *argp1 = 0 ;
4172 int res1 = 0 ;
4173 unsigned long val2 ;
4174 int ecode2 = 0 ;
4175 PyObject * obj0 = 0 ;
4176 PyObject * obj1 = 0 ;
4177 char * kwnames[] = {
4178 (char *) "self",(char *) "colRGB", NULL
4179 };
4180
4181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4183 if (!SWIG_IsOK(res1)) {
4184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4185 }
4186 arg1 = reinterpret_cast< wxColour * >(argp1);
4187 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4188 if (!SWIG_IsOK(ecode2)) {
4189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4190 }
4191 arg2 = static_cast< unsigned long >(val2);
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 (arg1)->Set(arg2);
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 resultobj = SWIG_Py_Void();
4199 return resultobj;
4200 fail:
4201 return NULL;
4202 }
4203
4204
4205 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj = 0;
4207 wxColour *arg1 = (wxColour *) 0 ;
4208 wxString *arg2 = 0 ;
4209 void *argp1 = 0 ;
4210 int res1 = 0 ;
4211 bool temp2 = false ;
4212 PyObject * obj0 = 0 ;
4213 PyObject * obj1 = 0 ;
4214 char * kwnames[] = {
4215 (char *) "self",(char *) "colourName", NULL
4216 };
4217
4218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4220 if (!SWIG_IsOK(res1)) {
4221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4222 }
4223 arg1 = reinterpret_cast< wxColour * >(argp1);
4224 {
4225 arg2 = wxString_in_helper(obj1);
4226 if (arg2 == NULL) SWIG_fail;
4227 temp2 = true;
4228 }
4229 {
4230 PyThreadState* __tstate = wxPyBeginAllowThreads();
4231 (arg1)->Set((wxString const &)*arg2);
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 resultobj = SWIG_Py_Void();
4236 {
4237 if (temp2)
4238 delete arg2;
4239 }
4240 return resultobj;
4241 fail:
4242 {
4243 if (temp2)
4244 delete arg2;
4245 }
4246 return NULL;
4247 }
4248
4249
4250 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4251 PyObject *resultobj = 0;
4252 wxColour *arg1 = (wxColour *) 0 ;
4253 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4254 wxString result;
4255 void *argp1 = 0 ;
4256 int res1 = 0 ;
4257 long val2 ;
4258 int ecode2 = 0 ;
4259 PyObject * obj0 = 0 ;
4260 PyObject * obj1 = 0 ;
4261 char * kwnames[] = {
4262 (char *) "self",(char *) "flags", NULL
4263 };
4264
4265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4267 if (!SWIG_IsOK(res1)) {
4268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4269 }
4270 arg1 = reinterpret_cast< wxColour * >(argp1);
4271 if (obj1) {
4272 ecode2 = SWIG_AsVal_long(obj1, &val2);
4273 if (!SWIG_IsOK(ecode2)) {
4274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4275 }
4276 arg2 = static_cast< long >(val2);
4277 }
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 result = ((wxColour const *)arg1)->GetAsString(arg2);
4281 wxPyEndAllowThreads(__tstate);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 {
4285 #if wxUSE_UNICODE
4286 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4287 #else
4288 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4289 #endif
4290 }
4291 return resultobj;
4292 fail:
4293 return NULL;
4294 }
4295
4296
4297 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4298 PyObject *resultobj = 0;
4299 wxColour *arg1 = (wxColour *) 0 ;
4300 long result;
4301 void *argp1 = 0 ;
4302 int res1 = 0 ;
4303 PyObject *swig_obj[1] ;
4304
4305 if (!args) SWIG_fail;
4306 swig_obj[0] = args;
4307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4308 if (!SWIG_IsOK(res1)) {
4309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4310 }
4311 arg1 = reinterpret_cast< wxColour * >(argp1);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 result = (long)((wxColour const *)arg1)->GetPixel();
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_From_long(static_cast< long >(result));
4319 return resultobj;
4320 fail:
4321 return NULL;
4322 }
4323
4324
4325 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4326 PyObject *resultobj = 0;
4327 wxColour *arg1 = (wxColour *) 0 ;
4328 PyObject *arg2 = (PyObject *) 0 ;
4329 bool result;
4330 void *argp1 = 0 ;
4331 int res1 = 0 ;
4332 PyObject * obj0 = 0 ;
4333 PyObject * obj1 = 0 ;
4334 char * kwnames[] = {
4335 (char *) "self",(char *) "other", NULL
4336 };
4337
4338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4340 if (!SWIG_IsOK(res1)) {
4341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4342 }
4343 arg1 = reinterpret_cast< wxColour * >(argp1);
4344 arg2 = obj1;
4345 {
4346 result = (bool)wxColour___eq__(arg1,arg2);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 {
4350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4351 }
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj = 0;
4360 wxColour *arg1 = (wxColour *) 0 ;
4361 PyObject *arg2 = (PyObject *) 0 ;
4362 bool result;
4363 void *argp1 = 0 ;
4364 int res1 = 0 ;
4365 PyObject * obj0 = 0 ;
4366 PyObject * obj1 = 0 ;
4367 char * kwnames[] = {
4368 (char *) "self",(char *) "other", NULL
4369 };
4370
4371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4373 if (!SWIG_IsOK(res1)) {
4374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4375 }
4376 arg1 = reinterpret_cast< wxColour * >(argp1);
4377 arg2 = obj1;
4378 {
4379 result = (bool)wxColour___ne__(arg1,arg2);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 {
4383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4384 }
4385 return resultobj;
4386 fail:
4387 return NULL;
4388 }
4389
4390
4391 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4392 PyObject *resultobj = 0;
4393 wxColour *arg1 = (wxColour *) 0 ;
4394 bool arg2 = (bool) false ;
4395 PyObject *result = 0 ;
4396 void *argp1 = 0 ;
4397 int res1 = 0 ;
4398 bool val2 ;
4399 int ecode2 = 0 ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 char * kwnames[] = {
4403 (char *) "self",(char *) "includeAlpha", NULL
4404 };
4405
4406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4408 if (!SWIG_IsOK(res1)) {
4409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4410 }
4411 arg1 = reinterpret_cast< wxColour * >(argp1);
4412 if (obj1) {
4413 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4414 if (!SWIG_IsOK(ecode2)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4416 }
4417 arg2 = static_cast< bool >(val2);
4418 }
4419 {
4420 result = (PyObject *)wxColour_Get(arg1,arg2);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = result;
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4431 PyObject *resultobj = 0;
4432 wxColour *arg1 = (wxColour *) 0 ;
4433 unsigned long result;
4434 void *argp1 = 0 ;
4435 int res1 = 0 ;
4436 PyObject *swig_obj[1] ;
4437
4438 if (!args) SWIG_fail;
4439 swig_obj[0] = args;
4440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4441 if (!SWIG_IsOK(res1)) {
4442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4443 }
4444 arg1 = reinterpret_cast< wxColour * >(argp1);
4445 {
4446 result = (unsigned long)wxColour_GetRGB(arg1);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4450 return resultobj;
4451 fail:
4452 return NULL;
4453 }
4454
4455
4456 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4457 PyObject *obj;
4458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4459 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4460 return SWIG_Py_Void();
4461 }
4462
4463 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464 return SWIG_Python_InitShadowInstance(args);
4465 }
4466
4467 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4468 PyObject *resultobj = 0;
4469 int arg1 ;
4470 unsigned char *arg2 = (unsigned char *) 0 ;
4471 unsigned char *arg3 = (unsigned char *) 0 ;
4472 unsigned char *arg4 = (unsigned char *) 0 ;
4473 wxPalette *result = 0 ;
4474 int val1 ;
4475 int ecode1 = 0 ;
4476 void *argp2 = 0 ;
4477 int res2 = 0 ;
4478 void *argp3 = 0 ;
4479 int res3 = 0 ;
4480 void *argp4 = 0 ;
4481 int res4 = 0 ;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 PyObject * obj2 = 0 ;
4485 PyObject * obj3 = 0 ;
4486 char * kwnames[] = {
4487 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4488 };
4489
4490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4491 ecode1 = SWIG_AsVal_int(obj0, &val1);
4492 if (!SWIG_IsOK(ecode1)) {
4493 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4494 }
4495 arg1 = static_cast< int >(val1);
4496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4497 if (!SWIG_IsOK(res2)) {
4498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4499 }
4500 arg2 = reinterpret_cast< unsigned char * >(argp2);
4501 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4502 if (!SWIG_IsOK(res3)) {
4503 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4504 }
4505 arg3 = reinterpret_cast< unsigned char * >(argp3);
4506 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4507 if (!SWIG_IsOK(res4)) {
4508 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4509 }
4510 arg4 = reinterpret_cast< unsigned char * >(argp4);
4511 {
4512 if (!wxPyCheckForApp()) SWIG_fail;
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4519 return resultobj;
4520 fail:
4521 return NULL;
4522 }
4523
4524
4525 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4526 PyObject *resultobj = 0;
4527 wxPalette *arg1 = (wxPalette *) 0 ;
4528 void *argp1 = 0 ;
4529 int res1 = 0 ;
4530 PyObject *swig_obj[1] ;
4531
4532 if (!args) SWIG_fail;
4533 swig_obj[0] = args;
4534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4535 if (!SWIG_IsOK(res1)) {
4536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4537 }
4538 arg1 = reinterpret_cast< wxPalette * >(argp1);
4539 {
4540 PyThreadState* __tstate = wxPyBeginAllowThreads();
4541 delete arg1;
4542
4543 wxPyEndAllowThreads(__tstate);
4544 if (PyErr_Occurred()) SWIG_fail;
4545 }
4546 resultobj = SWIG_Py_Void();
4547 return resultobj;
4548 fail:
4549 return NULL;
4550 }
4551
4552
4553 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4554 PyObject *resultobj = 0;
4555 wxPalette *arg1 = (wxPalette *) 0 ;
4556 byte arg2 ;
4557 byte arg3 ;
4558 byte arg4 ;
4559 int result;
4560 void *argp1 = 0 ;
4561 int res1 = 0 ;
4562 unsigned char val2 ;
4563 int ecode2 = 0 ;
4564 unsigned char val3 ;
4565 int ecode3 = 0 ;
4566 unsigned char val4 ;
4567 int ecode4 = 0 ;
4568 PyObject * obj0 = 0 ;
4569 PyObject * obj1 = 0 ;
4570 PyObject * obj2 = 0 ;
4571 PyObject * obj3 = 0 ;
4572 char * kwnames[] = {
4573 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4574 };
4575
4576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4578 if (!SWIG_IsOK(res1)) {
4579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4580 }
4581 arg1 = reinterpret_cast< wxPalette * >(argp1);
4582 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4583 if (!SWIG_IsOK(ecode2)) {
4584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4585 }
4586 arg2 = static_cast< byte >(val2);
4587 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4588 if (!SWIG_IsOK(ecode3)) {
4589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4590 }
4591 arg3 = static_cast< byte >(val3);
4592 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4593 if (!SWIG_IsOK(ecode4)) {
4594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4595 }
4596 arg4 = static_cast< byte >(val4);
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 resultobj = SWIG_From_int(static_cast< int >(result));
4604 return resultobj;
4605 fail:
4606 return NULL;
4607 }
4608
4609
4610 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4611 PyObject *resultobj = 0;
4612 wxPalette *arg1 = (wxPalette *) 0 ;
4613 int arg2 ;
4614 byte *arg3 = (byte *) 0 ;
4615 byte *arg4 = (byte *) 0 ;
4616 byte *arg5 = (byte *) 0 ;
4617 bool result;
4618 void *argp1 = 0 ;
4619 int res1 = 0 ;
4620 int val2 ;
4621 int ecode2 = 0 ;
4622 byte temp3 ;
4623 int res3 = SWIG_TMPOBJ ;
4624 byte temp4 ;
4625 int res4 = SWIG_TMPOBJ ;
4626 byte temp5 ;
4627 int res5 = SWIG_TMPOBJ ;
4628 PyObject * obj0 = 0 ;
4629 PyObject * obj1 = 0 ;
4630 char * kwnames[] = {
4631 (char *) "self",(char *) "pixel", NULL
4632 };
4633
4634 arg3 = &temp3;
4635 arg4 = &temp4;
4636 arg5 = &temp5;
4637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4639 if (!SWIG_IsOK(res1)) {
4640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4641 }
4642 arg1 = reinterpret_cast< wxPalette * >(argp1);
4643 ecode2 = SWIG_AsVal_int(obj1, &val2);
4644 if (!SWIG_IsOK(ecode2)) {
4645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4646 }
4647 arg2 = static_cast< int >(val2);
4648 {
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 {
4655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4656 }
4657 if (SWIG_IsTmpObj(res3)) {
4658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4659 } else {
4660 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4662 }
4663 if (SWIG_IsTmpObj(res4)) {
4664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4665 } else {
4666 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4668 }
4669 if (SWIG_IsTmpObj(res5)) {
4670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4671 } else {
4672 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4674 }
4675 return resultobj;
4676 fail:
4677 return NULL;
4678 }
4679
4680
4681 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4682 PyObject *resultobj = 0;
4683 wxPalette *arg1 = (wxPalette *) 0 ;
4684 int result;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 PyObject *swig_obj[1] ;
4688
4689 if (!args) SWIG_fail;
4690 swig_obj[0] = args;
4691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4692 if (!SWIG_IsOK(res1)) {
4693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4694 }
4695 arg1 = reinterpret_cast< wxPalette * >(argp1);
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4699 wxPyEndAllowThreads(__tstate);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 }
4702 resultobj = SWIG_From_int(static_cast< int >(result));
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4710 PyObject *resultobj = 0;
4711 wxPalette *arg1 = (wxPalette *) 0 ;
4712 bool result;
4713 void *argp1 = 0 ;
4714 int res1 = 0 ;
4715 PyObject *swig_obj[1] ;
4716
4717 if (!args) SWIG_fail;
4718 swig_obj[0] = args;
4719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4720 if (!SWIG_IsOK(res1)) {
4721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4722 }
4723 arg1 = reinterpret_cast< wxPalette * >(argp1);
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (bool)(arg1)->Ok();
4727 wxPyEndAllowThreads(__tstate);
4728 if (PyErr_Occurred()) SWIG_fail;
4729 }
4730 {
4731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4732 }
4733 return resultobj;
4734 fail:
4735 return NULL;
4736 }
4737
4738
4739 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4740 PyObject *obj;
4741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4742 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4743 return SWIG_Py_Void();
4744 }
4745
4746 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 return SWIG_Python_InitShadowInstance(args);
4748 }
4749
4750 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4751 PyObject *resultobj = 0;
4752 wxColour *arg1 = 0 ;
4753 int arg2 = (int) 1 ;
4754 int arg3 = (int) wxSOLID ;
4755 wxPen *result = 0 ;
4756 wxColour temp1 ;
4757 int val2 ;
4758 int ecode2 = 0 ;
4759 int val3 ;
4760 int ecode3 = 0 ;
4761 PyObject * obj0 = 0 ;
4762 PyObject * obj1 = 0 ;
4763 PyObject * obj2 = 0 ;
4764 char * kwnames[] = {
4765 (char *) "colour",(char *) "width",(char *) "style", NULL
4766 };
4767
4768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4769 {
4770 arg1 = &temp1;
4771 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4772 }
4773 if (obj1) {
4774 ecode2 = SWIG_AsVal_int(obj1, &val2);
4775 if (!SWIG_IsOK(ecode2)) {
4776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4777 }
4778 arg2 = static_cast< int >(val2);
4779 }
4780 if (obj2) {
4781 ecode3 = SWIG_AsVal_int(obj2, &val3);
4782 if (!SWIG_IsOK(ecode3)) {
4783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4784 }
4785 arg3 = static_cast< int >(val3);
4786 }
4787 {
4788 if (!wxPyCheckForApp()) SWIG_fail;
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxPen *arg1 = (wxPen *) 0 ;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4813 }
4814 arg1 = reinterpret_cast< wxPen * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 delete arg1;
4818
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_Py_Void();
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4830 PyObject *resultobj = 0;
4831 wxPen *arg1 = (wxPen *) 0 ;
4832 int result;
4833 void *argp1 = 0 ;
4834 int res1 = 0 ;
4835 PyObject *swig_obj[1] ;
4836
4837 if (!args) SWIG_fail;
4838 swig_obj[0] = args;
4839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4840 if (!SWIG_IsOK(res1)) {
4841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4842 }
4843 arg1 = reinterpret_cast< wxPen * >(argp1);
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (int)(arg1)->GetCap();
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_From_int(static_cast< int >(result));
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4858 PyObject *resultobj = 0;
4859 wxPen *arg1 = (wxPen *) 0 ;
4860 wxColour result;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 PyObject *swig_obj[1] ;
4864
4865 if (!args) SWIG_fail;
4866 swig_obj[0] = args;
4867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4868 if (!SWIG_IsOK(res1)) {
4869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4870 }
4871 arg1 = reinterpret_cast< wxPen * >(argp1);
4872 {
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
4874 result = (arg1)->GetColour();
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 PyObject *resultobj = 0;
4887 wxPen *arg1 = (wxPen *) 0 ;
4888 int result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 PyObject *swig_obj[1] ;
4892
4893 if (!args) SWIG_fail;
4894 swig_obj[0] = args;
4895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4896 if (!SWIG_IsOK(res1)) {
4897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4898 }
4899 arg1 = reinterpret_cast< wxPen * >(argp1);
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (int)(arg1)->GetJoin();
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 resultobj = SWIG_From_int(static_cast< int >(result));
4907 return resultobj;
4908 fail:
4909 return NULL;
4910 }
4911
4912
4913 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4914 PyObject *resultobj = 0;
4915 wxPen *arg1 = (wxPen *) 0 ;
4916 int result;
4917 void *argp1 = 0 ;
4918 int res1 = 0 ;
4919 PyObject *swig_obj[1] ;
4920
4921 if (!args) SWIG_fail;
4922 swig_obj[0] = args;
4923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4924 if (!SWIG_IsOK(res1)) {
4925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4926 }
4927 arg1 = reinterpret_cast< wxPen * >(argp1);
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (int)(arg1)->GetStyle();
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 resultobj = SWIG_From_int(static_cast< int >(result));
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4942 PyObject *resultobj = 0;
4943 wxPen *arg1 = (wxPen *) 0 ;
4944 int result;
4945 void *argp1 = 0 ;
4946 int res1 = 0 ;
4947 PyObject *swig_obj[1] ;
4948
4949 if (!args) SWIG_fail;
4950 swig_obj[0] = args;
4951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4952 if (!SWIG_IsOK(res1)) {
4953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4954 }
4955 arg1 = reinterpret_cast< wxPen * >(argp1);
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (int)(arg1)->GetWidth();
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) SWIG_fail;
4961 }
4962 resultobj = SWIG_From_int(static_cast< int >(result));
4963 return resultobj;
4964 fail:
4965 return NULL;
4966 }
4967
4968
4969 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4970 PyObject *resultobj = 0;
4971 wxPen *arg1 = (wxPen *) 0 ;
4972 bool result;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject *swig_obj[1] ;
4976
4977 if (!args) SWIG_fail;
4978 swig_obj[0] = args;
4979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4980 if (!SWIG_IsOK(res1)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4982 }
4983 arg1 = reinterpret_cast< wxPen * >(argp1);
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (bool)(arg1)->Ok();
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj = 0;
5001 wxPen *arg1 = (wxPen *) 0 ;
5002 int arg2 ;
5003 void *argp1 = 0 ;
5004 int res1 = 0 ;
5005 int val2 ;
5006 int ecode2 = 0 ;
5007 PyObject * obj0 = 0 ;
5008 PyObject * obj1 = 0 ;
5009 char * kwnames[] = {
5010 (char *) "self",(char *) "cap_style", NULL
5011 };
5012
5013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5015 if (!SWIG_IsOK(res1)) {
5016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5017 }
5018 arg1 = reinterpret_cast< wxPen * >(argp1);
5019 ecode2 = SWIG_AsVal_int(obj1, &val2);
5020 if (!SWIG_IsOK(ecode2)) {
5021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5022 }
5023 arg2 = static_cast< int >(val2);
5024 {
5025 PyThreadState* __tstate = wxPyBeginAllowThreads();
5026 (arg1)->SetCap(arg2);
5027 wxPyEndAllowThreads(__tstate);
5028 if (PyErr_Occurred()) SWIG_fail;
5029 }
5030 resultobj = SWIG_Py_Void();
5031 return resultobj;
5032 fail:
5033 return NULL;
5034 }
5035
5036
5037 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5038 PyObject *resultobj = 0;
5039 wxPen *arg1 = (wxPen *) 0 ;
5040 wxColour *arg2 = 0 ;
5041 void *argp1 = 0 ;
5042 int res1 = 0 ;
5043 wxColour temp2 ;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 char * kwnames[] = {
5047 (char *) "self",(char *) "colour", NULL
5048 };
5049
5050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5052 if (!SWIG_IsOK(res1)) {
5053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5054 }
5055 arg1 = reinterpret_cast< wxPen * >(argp1);
5056 {
5057 arg2 = &temp2;
5058 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5059 }
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 (arg1)->SetColour(*arg2);
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 resultobj = SWIG_Py_Void();
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj = 0;
5075 wxPen *arg1 = (wxPen *) 0 ;
5076 int arg2 ;
5077 void *argp1 = 0 ;
5078 int res1 = 0 ;
5079 int val2 ;
5080 int ecode2 = 0 ;
5081 PyObject * obj0 = 0 ;
5082 PyObject * obj1 = 0 ;
5083 char * kwnames[] = {
5084 (char *) "self",(char *) "join_style", NULL
5085 };
5086
5087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5089 if (!SWIG_IsOK(res1)) {
5090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5091 }
5092 arg1 = reinterpret_cast< wxPen * >(argp1);
5093 ecode2 = SWIG_AsVal_int(obj1, &val2);
5094 if (!SWIG_IsOK(ecode2)) {
5095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5096 }
5097 arg2 = static_cast< int >(val2);
5098 {
5099 PyThreadState* __tstate = wxPyBeginAllowThreads();
5100 (arg1)->SetJoin(arg2);
5101 wxPyEndAllowThreads(__tstate);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 }
5104 resultobj = SWIG_Py_Void();
5105 return resultobj;
5106 fail:
5107 return NULL;
5108 }
5109
5110
5111 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5112 PyObject *resultobj = 0;
5113 wxPen *arg1 = (wxPen *) 0 ;
5114 int arg2 ;
5115 void *argp1 = 0 ;
5116 int res1 = 0 ;
5117 int val2 ;
5118 int ecode2 = 0 ;
5119 PyObject * obj0 = 0 ;
5120 PyObject * obj1 = 0 ;
5121 char * kwnames[] = {
5122 (char *) "self",(char *) "style", NULL
5123 };
5124
5125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5129 }
5130 arg1 = reinterpret_cast< wxPen * >(argp1);
5131 ecode2 = SWIG_AsVal_int(obj1, &val2);
5132 if (!SWIG_IsOK(ecode2)) {
5133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5134 }
5135 arg2 = static_cast< int >(val2);
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 (arg1)->SetStyle(arg2);
5139 wxPyEndAllowThreads(__tstate);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 resultobj = SWIG_Py_Void();
5143 return resultobj;
5144 fail:
5145 return NULL;
5146 }
5147
5148
5149 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5150 PyObject *resultobj = 0;
5151 wxPen *arg1 = (wxPen *) 0 ;
5152 int arg2 ;
5153 void *argp1 = 0 ;
5154 int res1 = 0 ;
5155 int val2 ;
5156 int ecode2 = 0 ;
5157 PyObject * obj0 = 0 ;
5158 PyObject * obj1 = 0 ;
5159 char * kwnames[] = {
5160 (char *) "self",(char *) "width", NULL
5161 };
5162
5163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5165 if (!SWIG_IsOK(res1)) {
5166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5167 }
5168 arg1 = reinterpret_cast< wxPen * >(argp1);
5169 ecode2 = SWIG_AsVal_int(obj1, &val2);
5170 if (!SWIG_IsOK(ecode2)) {
5171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5172 }
5173 arg2 = static_cast< int >(val2);
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 (arg1)->SetWidth(arg2);
5177 wxPyEndAllowThreads(__tstate);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 }
5180 resultobj = SWIG_Py_Void();
5181 return resultobj;
5182 fail:
5183 return NULL;
5184 }
5185
5186
5187 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5188 PyObject *resultobj = 0;
5189 wxPen *arg1 = (wxPen *) 0 ;
5190 int arg2 ;
5191 wxDash *arg3 = (wxDash *) 0 ;
5192 void *argp1 = 0 ;
5193 int res1 = 0 ;
5194 PyObject * obj0 = 0 ;
5195 PyObject * obj1 = 0 ;
5196 char * kwnames[] = {
5197 (char *) "self",(char *) "dashes", NULL
5198 };
5199
5200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5202 if (!SWIG_IsOK(res1)) {
5203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5204 }
5205 arg1 = reinterpret_cast< wxPen * >(argp1);
5206 {
5207 arg2 = PyList_Size(obj1);
5208 arg3 = (wxDash*)byte_LIST_helper(obj1);
5209 if (arg3 == NULL) SWIG_fail;
5210 }
5211 {
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 (arg1)->SetDashes(arg2,arg3);
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_Py_Void();
5218 {
5219 if (arg3) delete [] arg3;
5220 }
5221 return resultobj;
5222 fail:
5223 {
5224 if (arg3) delete [] arg3;
5225 }
5226 return NULL;
5227 }
5228
5229
5230 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5231 PyObject *resultobj = 0;
5232 wxPen *arg1 = (wxPen *) 0 ;
5233 PyObject *result = 0 ;
5234 void *argp1 = 0 ;
5235 int res1 = 0 ;
5236 PyObject *swig_obj[1] ;
5237
5238 if (!args) SWIG_fail;
5239 swig_obj[0] = args;
5240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5241 if (!SWIG_IsOK(res1)) {
5242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5243 }
5244 arg1 = reinterpret_cast< wxPen * >(argp1);
5245 {
5246 PyThreadState* __tstate = wxPyBeginAllowThreads();
5247 result = (PyObject *)wxPen_GetDashes(arg1);
5248 wxPyEndAllowThreads(__tstate);
5249 if (PyErr_Occurred()) SWIG_fail;
5250 }
5251 resultobj = result;
5252 return resultobj;
5253 fail:
5254 return NULL;
5255 }
5256
5257
5258 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5259 PyObject *resultobj = 0;
5260 wxPen *arg1 = (wxPen *) 0 ;
5261 PyObject *arg2 = (PyObject *) 0 ;
5262 PyObject *arg3 = (PyObject *) 0 ;
5263 void *argp1 = 0 ;
5264 int res1 = 0 ;
5265 PyObject * obj0 = 0 ;
5266 PyObject * obj1 = 0 ;
5267 PyObject * obj2 = 0 ;
5268 char * kwnames[] = {
5269 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5270 };
5271
5272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5274 if (!SWIG_IsOK(res1)) {
5275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5276 }
5277 arg1 = reinterpret_cast< wxPen * >(argp1);
5278 arg2 = obj1;
5279 arg3 = obj2;
5280 {
5281 PyThreadState* __tstate = wxPyBeginAllowThreads();
5282 wxPen__SetDashes(arg1,arg2,arg3);
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 resultobj = SWIG_Py_Void();
5287 return resultobj;
5288 fail:
5289 return NULL;
5290 }
5291
5292
5293 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj = 0;
5295 wxPen *arg1 = (wxPen *) 0 ;
5296 wxPen *arg2 = (wxPen *) 0 ;
5297 bool result;
5298 void *argp1 = 0 ;
5299 int res1 = 0 ;
5300 void *argp2 = 0 ;
5301 int res2 = 0 ;
5302 PyObject * obj0 = 0 ;
5303 PyObject * obj1 = 0 ;
5304 char * kwnames[] = {
5305 (char *) "self",(char *) "other", NULL
5306 };
5307
5308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5310 if (!SWIG_IsOK(res1)) {
5311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5312 }
5313 arg1 = reinterpret_cast< wxPen * >(argp1);
5314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5315 if (!SWIG_IsOK(res2)) {
5316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5317 }
5318 arg2 = reinterpret_cast< wxPen * >(argp2);
5319 {
5320 PyThreadState* __tstate = wxPyBeginAllowThreads();
5321 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5322 wxPyEndAllowThreads(__tstate);
5323 if (PyErr_Occurred()) SWIG_fail;
5324 }
5325 {
5326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5327 }
5328 return resultobj;
5329 fail:
5330 return NULL;
5331 }
5332
5333
5334 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj = 0;
5336 wxPen *arg1 = (wxPen *) 0 ;
5337 wxPen *arg2 = (wxPen *) 0 ;
5338 bool result;
5339 void *argp1 = 0 ;
5340 int res1 = 0 ;
5341 void *argp2 = 0 ;
5342 int res2 = 0 ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 char * kwnames[] = {
5346 (char *) "self",(char *) "other", NULL
5347 };
5348
5349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5351 if (!SWIG_IsOK(res1)) {
5352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5353 }
5354 arg1 = reinterpret_cast< wxPen * >(argp1);
5355 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5356 if (!SWIG_IsOK(res2)) {
5357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5358 }
5359 arg2 = reinterpret_cast< wxPen * >(argp2);
5360 {
5361 PyThreadState* __tstate = wxPyBeginAllowThreads();
5362 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 {
5367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5368 }
5369 return resultobj;
5370 fail:
5371 return NULL;
5372 }
5373
5374
5375 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5376 PyObject *obj;
5377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5378 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5379 return SWIG_Py_Void();
5380 }
5381
5382 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5383 return SWIG_Python_InitShadowInstance(args);
5384 }
5385
5386 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5387 PyObject *resultobj = 0;
5388 wxColour *arg1 = 0 ;
5389 int arg2 = (int) wxSOLID ;
5390 wxBrush *result = 0 ;
5391 wxColour temp1 ;
5392 int val2 ;
5393 int ecode2 = 0 ;
5394 PyObject * obj0 = 0 ;
5395 PyObject * obj1 = 0 ;
5396 char * kwnames[] = {
5397 (char *) "colour",(char *) "style", NULL
5398 };
5399
5400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5401 {
5402 arg1 = &temp1;
5403 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5404 }
5405 if (obj1) {
5406 ecode2 = SWIG_AsVal_int(obj1, &val2);
5407 if (!SWIG_IsOK(ecode2)) {
5408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5409 }
5410 arg2 = static_cast< int >(val2);
5411 }
5412 {
5413 if (!wxPyCheckForApp()) SWIG_fail;
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5420 return resultobj;
5421 fail:
5422 return NULL;
5423 }
5424
5425
5426 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj = 0;
5428 wxBitmap *arg1 = 0 ;
5429 wxBrush *result = 0 ;
5430 void *argp1 = 0 ;
5431 int res1 = 0 ;
5432 PyObject * obj0 = 0 ;
5433 char * kwnames[] = {
5434 (char *) "stippleBitmap", NULL
5435 };
5436
5437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5438 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5439 if (!SWIG_IsOK(res1)) {
5440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5441 }
5442 if (!argp1) {
5443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5444 }
5445 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5446 {
5447 if (!wxPyCheckForApp()) SWIG_fail;
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5450 wxPyEndAllowThreads(__tstate);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 }
5453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5454 return resultobj;
5455 fail:
5456 return NULL;
5457 }
5458
5459
5460 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5461 PyObject *resultobj = 0;
5462 wxBrush *arg1 = (wxBrush *) 0 ;
5463 void *argp1 = 0 ;
5464 int res1 = 0 ;
5465 PyObject *swig_obj[1] ;
5466
5467 if (!args) SWIG_fail;
5468 swig_obj[0] = args;
5469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5470 if (!SWIG_IsOK(res1)) {
5471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5472 }
5473 arg1 = reinterpret_cast< wxBrush * >(argp1);
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 delete arg1;
5477
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 resultobj = SWIG_Py_Void();
5482 return resultobj;
5483 fail:
5484 return NULL;
5485 }
5486
5487
5488 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5489 PyObject *resultobj = 0;
5490 wxBrush *arg1 = (wxBrush *) 0 ;
5491 wxColour *arg2 = 0 ;
5492 void *argp1 = 0 ;
5493 int res1 = 0 ;
5494 wxColour temp2 ;
5495 PyObject * obj0 = 0 ;
5496 PyObject * obj1 = 0 ;
5497 char * kwnames[] = {
5498 (char *) "self",(char *) "col", NULL
5499 };
5500
5501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5503 if (!SWIG_IsOK(res1)) {
5504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5505 }
5506 arg1 = reinterpret_cast< wxBrush * >(argp1);
5507 {
5508 arg2 = &temp2;
5509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5510 }
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 (arg1)->SetColour((wxColour const &)*arg2);
5514 wxPyEndAllowThreads(__tstate);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 }
5517 resultobj = SWIG_Py_Void();
5518 return resultobj;
5519 fail:
5520 return NULL;
5521 }
5522
5523
5524 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5525 PyObject *resultobj = 0;
5526 wxBrush *arg1 = (wxBrush *) 0 ;
5527 int arg2 ;
5528 void *argp1 = 0 ;
5529 int res1 = 0 ;
5530 int val2 ;
5531 int ecode2 = 0 ;
5532 PyObject * obj0 = 0 ;
5533 PyObject * obj1 = 0 ;
5534 char * kwnames[] = {
5535 (char *) "self",(char *) "style", NULL
5536 };
5537
5538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5540 if (!SWIG_IsOK(res1)) {
5541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5542 }
5543 arg1 = reinterpret_cast< wxBrush * >(argp1);
5544 ecode2 = SWIG_AsVal_int(obj1, &val2);
5545 if (!SWIG_IsOK(ecode2)) {
5546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5547 }
5548 arg2 = static_cast< int >(val2);
5549 {
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 (arg1)->SetStyle(arg2);
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 resultobj = SWIG_Py_Void();
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj = 0;
5564 wxBrush *arg1 = (wxBrush *) 0 ;
5565 wxBitmap *arg2 = 0 ;
5566 void *argp1 = 0 ;
5567 int res1 = 0 ;
5568 void *argp2 = 0 ;
5569 int res2 = 0 ;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "self",(char *) "stipple", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5580 }
5581 arg1 = reinterpret_cast< wxBrush * >(argp1);
5582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5583 if (!SWIG_IsOK(res2)) {
5584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5585 }
5586 if (!argp2) {
5587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5588 }
5589 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 (arg1)->SetStipple((wxBitmap const &)*arg2);
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 resultobj = SWIG_Py_Void();
5597 return resultobj;
5598 fail:
5599 return NULL;
5600 }
5601
5602
5603 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5604 PyObject *resultobj = 0;
5605 wxBrush *arg1 = (wxBrush *) 0 ;
5606 wxColour result;
5607 void *argp1 = 0 ;
5608 int res1 = 0 ;
5609 PyObject *swig_obj[1] ;
5610
5611 if (!args) SWIG_fail;
5612 swig_obj[0] = args;
5613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5616 }
5617 arg1 = reinterpret_cast< wxBrush * >(argp1);
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 result = ((wxBrush const *)arg1)->GetColour();
5621 wxPyEndAllowThreads(__tstate);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 }
5624 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5625 return resultobj;
5626 fail:
5627 return NULL;
5628 }
5629
5630
5631 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5632 PyObject *resultobj = 0;
5633 wxBrush *arg1 = (wxBrush *) 0 ;
5634 int result;
5635 void *argp1 = 0 ;
5636 int res1 = 0 ;
5637 PyObject *swig_obj[1] ;
5638
5639 if (!args) SWIG_fail;
5640 swig_obj[0] = args;
5641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5642 if (!SWIG_IsOK(res1)) {
5643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5644 }
5645 arg1 = reinterpret_cast< wxBrush * >(argp1);
5646 {
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (int)((wxBrush const *)arg1)->GetStyle();
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = SWIG_From_int(static_cast< int >(result));
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5660 PyObject *resultobj = 0;
5661 wxBrush *arg1 = (wxBrush *) 0 ;
5662 wxBitmap *result = 0 ;
5663 void *argp1 = 0 ;
5664 int res1 = 0 ;
5665 PyObject *swig_obj[1] ;
5666
5667 if (!args) SWIG_fail;
5668 swig_obj[0] = args;
5669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5670 if (!SWIG_IsOK(res1)) {
5671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5672 }
5673 arg1 = reinterpret_cast< wxBrush * >(argp1);
5674 {
5675 PyThreadState* __tstate = wxPyBeginAllowThreads();
5676 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5677 wxPyEndAllowThreads(__tstate);
5678 if (PyErr_Occurred()) SWIG_fail;
5679 }
5680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5681 return resultobj;
5682 fail:
5683 return NULL;
5684 }
5685
5686
5687 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *resultobj = 0;
5689 wxBrush *arg1 = (wxBrush *) 0 ;
5690 bool result;
5691 void *argp1 = 0 ;
5692 int res1 = 0 ;
5693 PyObject *swig_obj[1] ;
5694
5695 if (!args) SWIG_fail;
5696 swig_obj[0] = args;
5697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5698 if (!SWIG_IsOK(res1)) {
5699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5700 }
5701 arg1 = reinterpret_cast< wxBrush * >(argp1);
5702 {
5703 PyThreadState* __tstate = wxPyBeginAllowThreads();
5704 result = (bool)((wxBrush const *)arg1)->IsHatch();
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 {
5709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5710 }
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5718 PyObject *resultobj = 0;
5719 wxBrush *arg1 = (wxBrush *) 0 ;
5720 bool result;
5721 void *argp1 = 0 ;
5722 int res1 = 0 ;
5723 PyObject *swig_obj[1] ;
5724
5725 if (!args) SWIG_fail;
5726 swig_obj[0] = args;
5727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5728 if (!SWIG_IsOK(res1)) {
5729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5730 }
5731 arg1 = reinterpret_cast< wxBrush * >(argp1);
5732 {
5733 PyThreadState* __tstate = wxPyBeginAllowThreads();
5734 result = (bool)(arg1)->Ok();
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 {
5739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5740 }
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5748 PyObject *resultobj = 0;
5749 wxBrush *arg1 = (wxBrush *) 0 ;
5750 short result;
5751 void *argp1 = 0 ;
5752 int res1 = 0 ;
5753 PyObject *swig_obj[1] ;
5754
5755 if (!args) SWIG_fail;
5756 swig_obj[0] = args;
5757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5758 if (!SWIG_IsOK(res1)) {
5759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5760 }
5761 arg1 = reinterpret_cast< wxBrush * >(argp1);
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 result = (short)(arg1)->MacGetTheme();
5765 wxPyEndAllowThreads(__tstate);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
5768 resultobj = SWIG_From_short(static_cast< short >(result));
5769 return resultobj;
5770 fail:
5771 return NULL;
5772 }
5773
5774
5775 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5776 PyObject *resultobj = 0;
5777 wxBrush *arg1 = (wxBrush *) 0 ;
5778 short arg2 ;
5779 void *argp1 = 0 ;
5780 int res1 = 0 ;
5781 short val2 ;
5782 int ecode2 = 0 ;
5783 PyObject * obj0 = 0 ;
5784 PyObject * obj1 = 0 ;
5785 char * kwnames[] = {
5786 (char *) "self",(char *) "macThemeBrush", NULL
5787 };
5788
5789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5791 if (!SWIG_IsOK(res1)) {
5792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5793 }
5794 arg1 = reinterpret_cast< wxBrush * >(argp1);
5795 ecode2 = SWIG_AsVal_short(obj1, &val2);
5796 if (!SWIG_IsOK(ecode2)) {
5797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5798 }
5799 arg2 = static_cast< short >(val2);
5800 {
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 (arg1)->MacSetTheme(arg2);
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = SWIG_Py_Void();
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5814 PyObject *obj;
5815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5816 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5817 return SWIG_Py_Void();
5818 }
5819
5820 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5821 return SWIG_Python_InitShadowInstance(args);
5822 }
5823
5824 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxString *arg1 = 0 ;
5827 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5828 wxBitmap *result = 0 ;
5829 bool temp1 = false ;
5830 int val2 ;
5831 int ecode2 = 0 ;
5832 PyObject * obj0 = 0 ;
5833 PyObject * obj1 = 0 ;
5834 char * kwnames[] = {
5835 (char *) "name",(char *) "type", NULL
5836 };
5837
5838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5839 {
5840 arg1 = wxString_in_helper(obj0);
5841 if (arg1 == NULL) SWIG_fail;
5842 temp1 = true;
5843 }
5844 if (obj1) {
5845 ecode2 = SWIG_AsVal_int(obj1, &val2);
5846 if (!SWIG_IsOK(ecode2)) {
5847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5848 }
5849 arg2 = static_cast< wxBitmapType >(val2);
5850 }
5851 {
5852 if (!wxPyCheckForApp()) SWIG_fail;
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5859 {
5860 if (temp1)
5861 delete arg1;
5862 }
5863 return resultobj;
5864 fail:
5865 {
5866 if (temp1)
5867 delete arg1;
5868 }
5869 return NULL;
5870 }
5871
5872
5873 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxBitmap *arg1 = (wxBitmap *) 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 PyObject *swig_obj[1] ;
5879
5880 if (!args) SWIG_fail;
5881 swig_obj[0] = args;
5882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5883 if (!SWIG_IsOK(res1)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5885 }
5886 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5887 {
5888 delete arg1;
5889
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 resultobj = SWIG_Py_Void();
5893 return resultobj;
5894 fail:
5895 return NULL;
5896 }
5897
5898
5899 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5900 PyObject *resultobj = 0;
5901 int arg1 ;
5902 int arg2 ;
5903 int arg3 = (int) -1 ;
5904 wxBitmap *result = 0 ;
5905 int val1 ;
5906 int ecode1 = 0 ;
5907 int val2 ;
5908 int ecode2 = 0 ;
5909 int val3 ;
5910 int ecode3 = 0 ;
5911 PyObject * obj0 = 0 ;
5912 PyObject * obj1 = 0 ;
5913 PyObject * obj2 = 0 ;
5914 char * kwnames[] = {
5915 (char *) "width",(char *) "height",(char *) "depth", NULL
5916 };
5917
5918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5919 ecode1 = SWIG_AsVal_int(obj0, &val1);
5920 if (!SWIG_IsOK(ecode1)) {
5921 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5922 }
5923 arg1 = static_cast< int >(val1);
5924 ecode2 = SWIG_AsVal_int(obj1, &val2);
5925 if (!SWIG_IsOK(ecode2)) {
5926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5927 }
5928 arg2 = static_cast< int >(val2);
5929 if (obj2) {
5930 ecode3 = SWIG_AsVal_int(obj2, &val3);
5931 if (!SWIG_IsOK(ecode3)) {
5932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5933 }
5934 arg3 = static_cast< int >(val3);
5935 }
5936 {
5937 if (!wxPyCheckForApp()) SWIG_fail;
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5944 return resultobj;
5945 fail:
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5951 PyObject *resultobj = 0;
5952 wxIcon *arg1 = 0 ;
5953 wxBitmap *result = 0 ;
5954 void *argp1 = 0 ;
5955 int res1 = 0 ;
5956 PyObject * obj0 = 0 ;
5957 char * kwnames[] = {
5958 (char *) "icon", NULL
5959 };
5960
5961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5962 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5963 if (!SWIG_IsOK(res1)) {
5964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5965 }
5966 if (!argp1) {
5967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5968 }
5969 arg1 = reinterpret_cast< wxIcon * >(argp1);
5970 {
5971 if (!wxPyCheckForApp()) SWIG_fail;
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj = 0;
5986 wxImage *arg1 = 0 ;
5987 int arg2 = (int) -1 ;
5988 wxBitmap *result = 0 ;
5989 void *argp1 = 0 ;
5990 int res1 = 0 ;
5991 int val2 ;
5992 int ecode2 = 0 ;
5993 PyObject * obj0 = 0 ;
5994 PyObject * obj1 = 0 ;
5995 char * kwnames[] = {
5996 (char *) "image",(char *) "depth", NULL
5997 };
5998
5999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6000 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6001 if (!SWIG_IsOK(res1)) {
6002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6003 }
6004 if (!argp1) {
6005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6006 }
6007 arg1 = reinterpret_cast< wxImage * >(argp1);
6008 if (obj1) {
6009 ecode2 = SWIG_AsVal_int(obj1, &val2);
6010 if (!SWIG_IsOK(ecode2)) {
6011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6012 }
6013 arg2 = static_cast< int >(val2);
6014 }
6015 {
6016 if (!wxPyCheckForApp()) SWIG_fail;
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
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_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj = 0;
6031 PyObject *arg1 = (PyObject *) 0 ;
6032 wxBitmap *result = 0 ;
6033 PyObject * obj0 = 0 ;
6034 char * kwnames[] = {
6035 (char *) "listOfStrings", NULL
6036 };
6037
6038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6039 arg1 = obj0;
6040 {
6041 if (!wxPyCheckForApp()) SWIG_fail;
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 result = (wxBitmap *)new_wxBitmap(arg1);
6044 wxPyEndAllowThreads(__tstate);
6045 if (PyErr_Occurred()) SWIG_fail;
6046 }
6047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6048 return resultobj;
6049 fail:
6050 return NULL;
6051 }
6052
6053
6054 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6055 PyObject *resultobj = 0;
6056 PyObject *arg1 = (PyObject *) 0 ;
6057 int arg2 ;
6058 int arg3 ;
6059 int arg4 = (int) 1 ;
6060 wxBitmap *result = 0 ;
6061 int val2 ;
6062 int ecode2 = 0 ;
6063 int val3 ;
6064 int ecode3 = 0 ;
6065 int val4 ;
6066 int ecode4 = 0 ;
6067 PyObject * obj0 = 0 ;
6068 PyObject * obj1 = 0 ;
6069 PyObject * obj2 = 0 ;
6070 PyObject * obj3 = 0 ;
6071 char * kwnames[] = {
6072 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6073 };
6074
6075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6076 arg1 = obj0;
6077 ecode2 = SWIG_AsVal_int(obj1, &val2);
6078 if (!SWIG_IsOK(ecode2)) {
6079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6080 }
6081 arg2 = static_cast< int >(val2);
6082 ecode3 = SWIG_AsVal_int(obj2, &val3);
6083 if (!SWIG_IsOK(ecode3)) {
6084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6085 }
6086 arg3 = static_cast< int >(val3);
6087 if (obj3) {
6088 ecode4 = SWIG_AsVal_int(obj3, &val4);
6089 if (!SWIG_IsOK(ecode4)) {
6090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6091 }
6092 arg4 = static_cast< int >(val4);
6093 }
6094 {
6095 if (!wxPyCheckForApp()) SWIG_fail;
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6102 return resultobj;
6103 fail:
6104 return NULL;
6105 }
6106
6107
6108 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6109 PyObject *resultobj = 0;
6110 wxBitmap *arg1 = (wxBitmap *) 0 ;
6111 bool result;
6112 void *argp1 = 0 ;
6113 int res1 = 0 ;
6114 PyObject *swig_obj[1] ;
6115
6116 if (!args) SWIG_fail;
6117 swig_obj[0] = args;
6118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6119 if (!SWIG_IsOK(res1)) {
6120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6121 }
6122 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6123 {
6124 result = (bool)(arg1)->Ok();
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 {
6128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6129 }
6130 return resultobj;
6131 fail:
6132 return NULL;
6133 }
6134
6135
6136 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6137 PyObject *resultobj = 0;
6138 wxBitmap *arg1 = (wxBitmap *) 0 ;
6139 int result;
6140 void *argp1 = 0 ;
6141 int res1 = 0 ;
6142 PyObject *swig_obj[1] ;
6143
6144 if (!args) SWIG_fail;
6145 swig_obj[0] = args;
6146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6147 if (!SWIG_IsOK(res1)) {
6148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6149 }
6150 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6151 {
6152 result = (int)(arg1)->GetWidth();
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_From_int(static_cast< int >(result));
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 int result;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 PyObject *swig_obj[1] ;
6169
6170 if (!args) SWIG_fail;
6171 swig_obj[0] = args;
6172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6173 if (!SWIG_IsOK(res1)) {
6174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6175 }
6176 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6177 {
6178 result = (int)(arg1)->GetHeight();
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_From_int(static_cast< int >(result));
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxBitmap *arg1 = (wxBitmap *) 0 ;
6191 int result;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 PyObject *swig_obj[1] ;
6195
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6201 }
6202 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6203 {
6204 result = (int)(arg1)->GetDepth();
6205 if (PyErr_Occurred()) SWIG_fail;
6206 }
6207 resultobj = SWIG_From_int(static_cast< int >(result));
6208 return resultobj;
6209 fail:
6210 return NULL;
6211 }
6212
6213
6214 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6215 PyObject *resultobj = 0;
6216 wxBitmap *arg1 = (wxBitmap *) 0 ;
6217 wxSize result;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 PyObject *swig_obj[1] ;
6221
6222 if (!args) SWIG_fail;
6223 swig_obj[0] = args;
6224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6225 if (!SWIG_IsOK(res1)) {
6226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6227 }
6228 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6229 {
6230 result = wxBitmap_GetSize(arg1);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6241 PyObject *resultobj = 0;
6242 wxBitmap *arg1 = (wxBitmap *) 0 ;
6243 SwigValueWrapper<wxImage > result;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 PyObject *swig_obj[1] ;
6247
6248 if (!args) SWIG_fail;
6249 swig_obj[0] = args;
6250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6251 if (!SWIG_IsOK(res1)) {
6252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6253 }
6254 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6255 {
6256 result = ((wxBitmap const *)arg1)->ConvertToImage();
6257 if (PyErr_Occurred()) SWIG_fail;
6258 }
6259 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6260 return resultobj;
6261 fail:
6262 return NULL;
6263 }
6264
6265
6266 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6267 PyObject *resultobj = 0;
6268 wxBitmap *arg1 = (wxBitmap *) 0 ;
6269 wxMask *result = 0 ;
6270 void *argp1 = 0 ;
6271 int res1 = 0 ;
6272 PyObject *swig_obj[1] ;
6273
6274 if (!args) SWIG_fail;
6275 swig_obj[0] = args;
6276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6277 if (!SWIG_IsOK(res1)) {
6278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6279 }
6280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6281 {
6282 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj = 0;
6294 wxBitmap *arg1 = (wxBitmap *) 0 ;
6295 wxMask *arg2 = (wxMask *) 0 ;
6296 void *argp1 = 0 ;
6297 int res1 = 0 ;
6298 int res2 = 0 ;
6299 PyObject * obj0 = 0 ;
6300 PyObject * obj1 = 0 ;
6301 char * kwnames[] = {
6302 (char *) "self",(char *) "mask", NULL
6303 };
6304
6305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6307 if (!SWIG_IsOK(res1)) {
6308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6309 }
6310 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6311 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6312 if (!SWIG_IsOK(res2)) {
6313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6314 }
6315 {
6316 (arg1)->SetMask(arg2);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 }
6319 resultobj = SWIG_Py_Void();
6320 return resultobj;
6321 fail:
6322 return NULL;
6323 }
6324
6325
6326 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6327 PyObject *resultobj = 0;
6328 wxBitmap *arg1 = (wxBitmap *) 0 ;
6329 wxColour *arg2 = 0 ;
6330 void *argp1 = 0 ;
6331 int res1 = 0 ;
6332 wxColour temp2 ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 char * kwnames[] = {
6336 (char *) "self",(char *) "colour", NULL
6337 };
6338
6339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6341 if (!SWIG_IsOK(res1)) {
6342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6343 }
6344 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6345 {
6346 arg2 = &temp2;
6347 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6348 }
6349 {
6350 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 resultobj = SWIG_Py_Void();
6354 return resultobj;
6355 fail:
6356 return NULL;
6357 }
6358
6359
6360 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6361 PyObject *resultobj = 0;
6362 wxBitmap *arg1 = (wxBitmap *) 0 ;
6363 wxRect *arg2 = 0 ;
6364 SwigValueWrapper<wxBitmap > result;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 wxRect temp2 ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 char * kwnames[] = {
6371 (char *) "self",(char *) "rect", NULL
6372 };
6373
6374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6376 if (!SWIG_IsOK(res1)) {
6377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6378 }
6379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6380 {
6381 arg2 = &temp2;
6382 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6383 }
6384 {
6385 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6389 return resultobj;
6390 fail:
6391 return NULL;
6392 }
6393
6394
6395 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj = 0;
6397 wxBitmap *arg1 = (wxBitmap *) 0 ;
6398 wxString *arg2 = 0 ;
6399 wxBitmapType arg3 ;
6400 wxPalette *arg4 = (wxPalette *) NULL ;
6401 bool result;
6402 void *argp1 = 0 ;
6403 int res1 = 0 ;
6404 bool temp2 = false ;
6405 int val3 ;
6406 int ecode3 = 0 ;
6407 void *argp4 = 0 ;
6408 int res4 = 0 ;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 PyObject * obj2 = 0 ;
6412 PyObject * obj3 = 0 ;
6413 char * kwnames[] = {
6414 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6415 };
6416
6417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6419 if (!SWIG_IsOK(res1)) {
6420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6421 }
6422 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6423 {
6424 arg2 = wxString_in_helper(obj1);
6425 if (arg2 == NULL) SWIG_fail;
6426 temp2 = true;
6427 }
6428 ecode3 = SWIG_AsVal_int(obj2, &val3);
6429 if (!SWIG_IsOK(ecode3)) {
6430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6431 }
6432 arg3 = static_cast< wxBitmapType >(val3);
6433 if (obj3) {
6434 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6435 if (!SWIG_IsOK(res4)) {
6436 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6437 }
6438 arg4 = reinterpret_cast< wxPalette * >(argp4);
6439 }
6440 {
6441 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 {
6445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6446 }
6447 {
6448 if (temp2)
6449 delete arg2;
6450 }
6451 return resultobj;
6452 fail:
6453 {
6454 if (temp2)
6455 delete arg2;
6456 }
6457 return NULL;
6458 }
6459
6460
6461 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6462 PyObject *resultobj = 0;
6463 wxBitmap *arg1 = (wxBitmap *) 0 ;
6464 wxString *arg2 = 0 ;
6465 wxBitmapType arg3 ;
6466 bool result;
6467 void *argp1 = 0 ;
6468 int res1 = 0 ;
6469 bool temp2 = false ;
6470 int val3 ;
6471 int ecode3 = 0 ;
6472 PyObject * obj0 = 0 ;
6473 PyObject * obj1 = 0 ;
6474 PyObject * obj2 = 0 ;
6475 char * kwnames[] = {
6476 (char *) "self",(char *) "name",(char *) "type", NULL
6477 };
6478
6479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6481 if (!SWIG_IsOK(res1)) {
6482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6483 }
6484 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6485 {
6486 arg2 = wxString_in_helper(obj1);
6487 if (arg2 == NULL) SWIG_fail;
6488 temp2 = true;
6489 }
6490 ecode3 = SWIG_AsVal_int(obj2, &val3);
6491 if (!SWIG_IsOK(ecode3)) {
6492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6493 }
6494 arg3 = static_cast< wxBitmapType >(val3);
6495 {
6496 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 {
6500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6501 }
6502 {
6503 if (temp2)
6504 delete arg2;
6505 }
6506 return resultobj;
6507 fail:
6508 {
6509 if (temp2)
6510 delete arg2;
6511 }
6512 return NULL;
6513 }
6514
6515
6516 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6517 PyObject *resultobj = 0;
6518 wxBitmap *arg1 = (wxBitmap *) 0 ;
6519 wxPalette *result = 0 ;
6520 void *argp1 = 0 ;
6521 int res1 = 0 ;
6522 PyObject *swig_obj[1] ;
6523
6524 if (!args) SWIG_fail;
6525 swig_obj[0] = args;
6526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6527 if (!SWIG_IsOK(res1)) {
6528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6529 }
6530 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6531 {
6532 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6536 return resultobj;
6537 fail:
6538 return NULL;
6539 }
6540
6541
6542 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6543 PyObject *resultobj = 0;
6544 wxBitmap *arg1 = (wxBitmap *) 0 ;
6545 wxIcon *arg2 = 0 ;
6546 bool result;
6547 void *argp1 = 0 ;
6548 int res1 = 0 ;
6549 void *argp2 = 0 ;
6550 int res2 = 0 ;
6551 PyObject * obj0 = 0 ;
6552 PyObject * obj1 = 0 ;
6553 char * kwnames[] = {
6554 (char *) "self",(char *) "icon", NULL
6555 };
6556
6557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6559 if (!SWIG_IsOK(res1)) {
6560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6561 }
6562 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6564 if (!SWIG_IsOK(res2)) {
6565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6566 }
6567 if (!argp2) {
6568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6569 }
6570 arg2 = reinterpret_cast< wxIcon * >(argp2);
6571 {
6572 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 {
6576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6577 }
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6585 PyObject *resultobj = 0;
6586 wxBitmap *arg1 = (wxBitmap *) 0 ;
6587 int arg2 ;
6588 void *argp1 = 0 ;
6589 int res1 = 0 ;
6590 int val2 ;
6591 int ecode2 = 0 ;
6592 PyObject * obj0 = 0 ;
6593 PyObject * obj1 = 0 ;
6594 char * kwnames[] = {
6595 (char *) "self",(char *) "height", NULL
6596 };
6597
6598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6600 if (!SWIG_IsOK(res1)) {
6601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6602 }
6603 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6604 ecode2 = SWIG_AsVal_int(obj1, &val2);
6605 if (!SWIG_IsOK(ecode2)) {
6606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6607 }
6608 arg2 = static_cast< int >(val2);
6609 {
6610 (arg1)->SetHeight(arg2);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 resultobj = SWIG_Py_Void();
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj = 0;
6622 wxBitmap *arg1 = (wxBitmap *) 0 ;
6623 int arg2 ;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 int val2 ;
6627 int ecode2 = 0 ;
6628 PyObject * obj0 = 0 ;
6629 PyObject * obj1 = 0 ;
6630 char * kwnames[] = {
6631 (char *) "self",(char *) "width", NULL
6632 };
6633
6634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6636 if (!SWIG_IsOK(res1)) {
6637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6638 }
6639 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6640 ecode2 = SWIG_AsVal_int(obj1, &val2);
6641 if (!SWIG_IsOK(ecode2)) {
6642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6643 }
6644 arg2 = static_cast< int >(val2);
6645 {
6646 (arg1)->SetWidth(arg2);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 resultobj = SWIG_Py_Void();
6650 return resultobj;
6651 fail:
6652 return NULL;
6653 }
6654
6655
6656 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6657 PyObject *resultobj = 0;
6658 wxBitmap *arg1 = (wxBitmap *) 0 ;
6659 int arg2 ;
6660 void *argp1 = 0 ;
6661 int res1 = 0 ;
6662 int val2 ;
6663 int ecode2 = 0 ;
6664 PyObject * obj0 = 0 ;
6665 PyObject * obj1 = 0 ;
6666 char * kwnames[] = {
6667 (char *) "self",(char *) "depth", NULL
6668 };
6669
6670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6672 if (!SWIG_IsOK(res1)) {
6673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6674 }
6675 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6676 ecode2 = SWIG_AsVal_int(obj1, &val2);
6677 if (!SWIG_IsOK(ecode2)) {
6678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6679 }
6680 arg2 = static_cast< int >(val2);
6681 {
6682 (arg1)->SetDepth(arg2);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 }
6685 resultobj = SWIG_Py_Void();
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj = 0;
6694 wxBitmap *arg1 = (wxBitmap *) 0 ;
6695 wxSize *arg2 = 0 ;
6696 void *argp1 = 0 ;
6697 int res1 = 0 ;
6698 wxSize temp2 ;
6699 PyObject * obj0 = 0 ;
6700 PyObject * obj1 = 0 ;
6701 char * kwnames[] = {
6702 (char *) "self",(char *) "size", NULL
6703 };
6704
6705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6707 if (!SWIG_IsOK(res1)) {
6708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6709 }
6710 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6711 {
6712 arg2 = &temp2;
6713 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6714 }
6715 {
6716 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 resultobj = SWIG_Py_Void();
6720 return resultobj;
6721 fail:
6722 return NULL;
6723 }
6724
6725
6726 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj = 0;
6728 wxBitmap *arg1 = (wxBitmap *) 0 ;
6729 wxBitmap *arg2 = (wxBitmap *) 0 ;
6730 bool result;
6731 void *argp1 = 0 ;
6732 int res1 = 0 ;
6733 void *argp2 = 0 ;
6734 int res2 = 0 ;
6735 PyObject * obj0 = 0 ;
6736 PyObject * obj1 = 0 ;
6737 char * kwnames[] = {
6738 (char *) "self",(char *) "other", NULL
6739 };
6740
6741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6743 if (!SWIG_IsOK(res1)) {
6744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6745 }
6746 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6747 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6748 if (!SWIG_IsOK(res2)) {
6749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6750 }
6751 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6752 {
6753 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 {
6757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6758 }
6759 return resultobj;
6760 fail:
6761 return NULL;
6762 }
6763
6764
6765 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6766 PyObject *resultobj = 0;
6767 wxBitmap *arg1 = (wxBitmap *) 0 ;
6768 wxBitmap *arg2 = (wxBitmap *) 0 ;
6769 bool result;
6770 void *argp1 = 0 ;
6771 int res1 = 0 ;
6772 void *argp2 = 0 ;
6773 int res2 = 0 ;
6774 PyObject * obj0 = 0 ;
6775 PyObject * obj1 = 0 ;
6776 char * kwnames[] = {
6777 (char *) "self",(char *) "other", NULL
6778 };
6779
6780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",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___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6784 }
6785 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6787 if (!SWIG_IsOK(res2)) {
6788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6789 }
6790 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6791 {
6792 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 {
6796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6797 }
6798 return resultobj;
6799 fail:
6800 return NULL;
6801 }
6802
6803
6804 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6805 PyObject *obj;
6806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6807 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6808 return SWIG_Py_Void();
6809 }
6810
6811 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6812 return SWIG_Python_InitShadowInstance(args);
6813 }
6814
6815 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6816 PyObject *resultobj = 0;
6817 int arg1 ;
6818 int arg2 ;
6819 buffer arg3 ;
6820 int arg4 ;
6821 buffer arg5 ;
6822 int arg6 ;
6823 wxBitmap *result = 0 ;
6824 int val1 ;
6825 int ecode1 = 0 ;
6826 int val2 ;
6827 int ecode2 = 0 ;
6828 Py_ssize_t temp3 ;
6829 Py_ssize_t temp5 ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 PyObject * obj3 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6839 ecode1 = SWIG_AsVal_int(obj0, &val1);
6840 if (!SWIG_IsOK(ecode1)) {
6841 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6842 }
6843 arg1 = static_cast< int >(val1);
6844 ecode2 = SWIG_AsVal_int(obj1, &val2);
6845 if (!SWIG_IsOK(ecode2)) {
6846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6847 }
6848 arg2 = static_cast< int >(val2);
6849 {
6850 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6851 arg4 = (int)temp3;
6852 }
6853 {
6854 if (obj3 != Py_None) {
6855 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6856 arg6 = (int)temp5;
6857 }
6858 }
6859 {
6860 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 }
6863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6864 return resultobj;
6865 fail:
6866 return NULL;
6867 }
6868
6869
6870 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6871 PyObject *resultobj = 0;
6872 int arg1 ;
6873 int arg2 ;
6874 buffer arg3 ;
6875 int arg4 ;
6876 wxBitmap *result = 0 ;
6877 int val1 ;
6878 int ecode1 = 0 ;
6879 int val2 ;
6880 int ecode2 = 0 ;
6881 Py_ssize_t temp3 ;
6882 PyObject * obj0 = 0 ;
6883 PyObject * obj1 = 0 ;
6884 PyObject * obj2 = 0 ;
6885 char * kwnames[] = {
6886 (char *) "width",(char *) "height",(char *) "data", NULL
6887 };
6888
6889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6890 ecode1 = SWIG_AsVal_int(obj0, &val1);
6891 if (!SWIG_IsOK(ecode1)) {
6892 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6893 }
6894 arg1 = static_cast< int >(val1);
6895 ecode2 = SWIG_AsVal_int(obj1, &val2);
6896 if (!SWIG_IsOK(ecode2)) {
6897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6898 }
6899 arg2 = static_cast< int >(val2);
6900 {
6901 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6902 arg4 = (int)temp3;
6903 }
6904 {
6905 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6909 return resultobj;
6910 fail:
6911 return NULL;
6912 }
6913
6914
6915 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj = 0;
6917 int arg1 ;
6918 int arg2 ;
6919 buffer arg3 ;
6920 int arg4 ;
6921 wxBitmap *result = 0 ;
6922 int val1 ;
6923 int ecode1 = 0 ;
6924 int val2 ;
6925 int ecode2 = 0 ;
6926 Py_ssize_t temp3 ;
6927 PyObject * obj0 = 0 ;
6928 PyObject * obj1 = 0 ;
6929 PyObject * obj2 = 0 ;
6930 char * kwnames[] = {
6931 (char *) "width",(char *) "height",(char *) "data", NULL
6932 };
6933
6934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6935 ecode1 = SWIG_AsVal_int(obj0, &val1);
6936 if (!SWIG_IsOK(ecode1)) {
6937 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6938 }
6939 arg1 = static_cast< int >(val1);
6940 ecode2 = SWIG_AsVal_int(obj1, &val2);
6941 if (!SWIG_IsOK(ecode2)) {
6942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6943 }
6944 arg2 = static_cast< int >(val2);
6945 {
6946 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6947 arg4 = (int)temp3;
6948 }
6949 {
6950 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6954 return resultobj;
6955 fail:
6956 return NULL;
6957 }
6958
6959
6960 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6961 PyObject *resultobj = 0;
6962 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6963 wxPoint result;
6964 void *argp1 = 0 ;
6965 int res1 = 0 ;
6966 PyObject *swig_obj[1] ;
6967
6968 if (!args) SWIG_fail;
6969 swig_obj[0] = args;
6970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6971 if (!SWIG_IsOK(res1)) {
6972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6973 }
6974 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6975 {
6976 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6977 if (PyErr_Occurred()) SWIG_fail;
6978 }
6979 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6980 return resultobj;
6981 fail:
6982 return NULL;
6983 }
6984
6985
6986 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6987 PyObject *resultobj = 0;
6988 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6989 int result;
6990 void *argp1 = 0 ;
6991 int res1 = 0 ;
6992 PyObject *swig_obj[1] ;
6993
6994 if (!args) SWIG_fail;
6995 swig_obj[0] = args;
6996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6997 if (!SWIG_IsOK(res1)) {
6998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6999 }
7000 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7001 {
7002 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7003 if (PyErr_Occurred()) SWIG_fail;
7004 }
7005 resultobj = SWIG_From_int(static_cast< int >(result));
7006 return resultobj;
7007 fail:
7008 return NULL;
7009 }
7010
7011
7012 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7013 PyObject *resultobj = 0;
7014 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7015 int result;
7016 void *argp1 = 0 ;
7017 int res1 = 0 ;
7018 PyObject *swig_obj[1] ;
7019
7020 if (!args) SWIG_fail;
7021 swig_obj[0] = args;
7022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7023 if (!SWIG_IsOK(res1)) {
7024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7025 }
7026 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7027 {
7028 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_From_int(static_cast< int >(result));
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7039 PyObject *resultobj = 0;
7040 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7041 wxSize result;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 PyObject *swig_obj[1] ;
7045
7046 if (!args) SWIG_fail;
7047 swig_obj[0] = args;
7048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7049 if (!SWIG_IsOK(res1)) {
7050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7051 }
7052 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7053 {
7054 result = ((wxPixelDataBase const *)arg1)->GetSize();
7055 if (PyErr_Occurred()) SWIG_fail;
7056 }
7057 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7058 return resultobj;
7059 fail:
7060 return NULL;
7061 }
7062
7063
7064 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7065 PyObject *resultobj = 0;
7066 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7067 int result;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 PyObject *swig_obj[1] ;
7071
7072 if (!args) SWIG_fail;
7073 swig_obj[0] = args;
7074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7075 if (!SWIG_IsOK(res1)) {
7076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7077 }
7078 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7079 {
7080 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
7083 resultobj = SWIG_From_int(static_cast< int >(result));
7084 return resultobj;
7085 fail:
7086 return NULL;
7087 }
7088
7089
7090 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7091 PyObject *obj;
7092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7093 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7094 return SWIG_Py_Void();
7095 }
7096
7097 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7098 PyObject *resultobj = 0;
7099 wxBitmap *arg1 = 0 ;
7100 wxNativePixelData *result = 0 ;
7101 void *argp1 = 0 ;
7102 int res1 = 0 ;
7103
7104 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7106 if (!SWIG_IsOK(res1)) {
7107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7108 }
7109 if (!argp1) {
7110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7111 }
7112 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7113 {
7114 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7118 return resultobj;
7119 fail:
7120 return NULL;
7121 }
7122
7123
7124 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7125 PyObject *resultobj = 0;
7126 wxBitmap *arg1 = 0 ;
7127 wxRect *arg2 = 0 ;
7128 wxNativePixelData *result = 0 ;
7129 void *argp1 = 0 ;
7130 int res1 = 0 ;
7131 wxRect temp2 ;
7132
7133 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7135 if (!SWIG_IsOK(res1)) {
7136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7137 }
7138 if (!argp1) {
7139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7140 }
7141 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7142 {
7143 arg2 = &temp2;
7144 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7145 }
7146 {
7147 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7158 PyObject *resultobj = 0;
7159 wxBitmap *arg1 = 0 ;
7160 wxPoint *arg2 = 0 ;
7161 wxSize *arg3 = 0 ;
7162 wxNativePixelData *result = 0 ;
7163 void *argp1 = 0 ;
7164 int res1 = 0 ;
7165 wxPoint temp2 ;
7166 wxSize temp3 ;
7167
7168 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7170 if (!SWIG_IsOK(res1)) {
7171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7172 }
7173 if (!argp1) {
7174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7175 }
7176 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7177 {
7178 arg2 = &temp2;
7179 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7180 }
7181 {
7182 arg3 = &temp3;
7183 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7184 }
7185 {
7186 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7197 int argc;
7198 PyObject *argv[4];
7199
7200 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7201 --argc;
7202 if (argc == 1) {
7203 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7204 }
7205 if (argc == 2) {
7206 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7207 }
7208 if (argc == 3) {
7209 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7210 }
7211
7212 fail:
7213 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7214 return NULL;
7215 }
7216
7217
7218 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7219 PyObject *resultobj = 0;
7220 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7221 void *argp1 = 0 ;
7222 int res1 = 0 ;
7223 PyObject *swig_obj[1] ;
7224
7225 if (!args) SWIG_fail;
7226 swig_obj[0] = args;
7227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7228 if (!SWIG_IsOK(res1)) {
7229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7230 }
7231 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7232 {
7233 delete arg1;
7234
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_Py_Void();
7238 return resultobj;
7239 fail:
7240 return NULL;
7241 }
7242
7243
7244 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7245 PyObject *resultobj = 0;
7246 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7247 wxNativePixelData_Accessor result;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 PyObject *swig_obj[1] ;
7251
7252 if (!args) SWIG_fail;
7253 swig_obj[0] = args;
7254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7255 if (!SWIG_IsOK(res1)) {
7256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7257 }
7258 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7259 {
7260 result = ((wxNativePixelData const *)arg1)->GetPixels();
7261 if (PyErr_Occurred()) SWIG_fail;
7262 }
7263 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7264 return resultobj;
7265 fail:
7266 return NULL;
7267 }
7268
7269
7270 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7271 PyObject *resultobj = 0;
7272 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7273 void *argp1 = 0 ;
7274 int res1 = 0 ;
7275 PyObject *swig_obj[1] ;
7276
7277 if (!args) SWIG_fail;
7278 swig_obj[0] = args;
7279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7280 if (!SWIG_IsOK(res1)) {
7281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7282 }
7283 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7284 {
7285 (arg1)->UseAlpha();
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 resultobj = SWIG_Py_Void();
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7296 PyObject *resultobj = 0;
7297 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7298 bool result;
7299 void *argp1 = 0 ;
7300 int res1 = 0 ;
7301 PyObject *swig_obj[1] ;
7302
7303 if (!args) SWIG_fail;
7304 swig_obj[0] = args;
7305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7306 if (!SWIG_IsOK(res1)) {
7307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7308 }
7309 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7310 {
7311 result = (bool)wxNativePixelData___nonzero__(arg1);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 {
7315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7316 }
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7324 PyObject *obj;
7325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7326 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7327 return SWIG_Py_Void();
7328 }
7329
7330 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7331 return SWIG_Python_InitShadowInstance(args);
7332 }
7333
7334 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7335 PyObject *resultobj = 0;
7336 wxNativePixelData *arg1 = 0 ;
7337 wxNativePixelData_Accessor *result = 0 ;
7338 void *argp1 = 0 ;
7339 int res1 = 0 ;
7340
7341 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7343 if (!SWIG_IsOK(res1)) {
7344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7345 }
7346 if (!argp1) {
7347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7348 }
7349 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7350 {
7351 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7352 if (PyErr_Occurred()) SWIG_fail;
7353 }
7354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7355 return resultobj;
7356 fail:
7357 return NULL;
7358 }
7359
7360
7361 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7362 PyObject *resultobj = 0;
7363 wxBitmap *arg1 = 0 ;
7364 wxNativePixelData *arg2 = 0 ;
7365 wxNativePixelData_Accessor *result = 0 ;
7366 void *argp1 = 0 ;
7367 int res1 = 0 ;
7368 void *argp2 = 0 ;
7369 int res2 = 0 ;
7370
7371 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7373 if (!SWIG_IsOK(res1)) {
7374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7375 }
7376 if (!argp1) {
7377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7378 }
7379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7380 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7381 if (!SWIG_IsOK(res2)) {
7382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7383 }
7384 if (!argp2) {
7385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7386 }
7387 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7388 {
7389 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7390 if (PyErr_Occurred()) SWIG_fail;
7391 }
7392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7393 return resultobj;
7394 fail:
7395 return NULL;
7396 }
7397
7398
7399 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7400 PyObject *resultobj = 0;
7401 wxNativePixelData_Accessor *result = 0 ;
7402
7403 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7404 {
7405 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7406 if (PyErr_Occurred()) SWIG_fail;
7407 }
7408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7409 return resultobj;
7410 fail:
7411 return NULL;
7412 }
7413
7414
7415 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7416 int argc;
7417 PyObject *argv[3];
7418
7419 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7420 --argc;
7421 if (argc == 0) {
7422 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7423 }
7424 if (argc == 1) {
7425 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7426 }
7427 if (argc == 2) {
7428 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7429 }
7430
7431 fail:
7432 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7433 return NULL;
7434 }
7435
7436
7437 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7438 PyObject *resultobj = 0;
7439 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7440 void *argp1 = 0 ;
7441 int res1 = 0 ;
7442 PyObject *swig_obj[1] ;
7443
7444 if (!args) SWIG_fail;
7445 swig_obj[0] = args;
7446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7447 if (!SWIG_IsOK(res1)) {
7448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7449 }
7450 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7451 {
7452 delete arg1;
7453
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 resultobj = SWIG_Py_Void();
7457 return resultobj;
7458 fail:
7459 return NULL;
7460 }
7461
7462
7463 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7464 PyObject *resultobj = 0;
7465 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7466 wxNativePixelData *arg2 = 0 ;
7467 void *argp1 = 0 ;
7468 int res1 = 0 ;
7469 void *argp2 = 0 ;
7470 int res2 = 0 ;
7471 PyObject * obj0 = 0 ;
7472 PyObject * obj1 = 0 ;
7473 char * kwnames[] = {
7474 (char *) "self",(char *) "data", NULL
7475 };
7476
7477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7479 if (!SWIG_IsOK(res1)) {
7480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7481 }
7482 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7484 if (!SWIG_IsOK(res2)) {
7485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7486 }
7487 if (!argp2) {
7488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7489 }
7490 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7491 {
7492 (arg1)->Reset((wxNativePixelData const &)*arg2);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = SWIG_Py_Void();
7496 return resultobj;
7497 fail:
7498 return NULL;
7499 }
7500
7501
7502 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7503 PyObject *resultobj = 0;
7504 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7505 bool result;
7506 void *argp1 = 0 ;
7507 int res1 = 0 ;
7508 PyObject *swig_obj[1] ;
7509
7510 if (!args) SWIG_fail;
7511 swig_obj[0] = args;
7512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7513 if (!SWIG_IsOK(res1)) {
7514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7515 }
7516 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7517 {
7518 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 {
7522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7523 }
7524 return resultobj;
7525 fail:
7526 return NULL;
7527 }
7528
7529
7530 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7531 PyObject *resultobj = 0;
7532 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7533 void *argp1 = 0 ;
7534 int res1 = 0 ;
7535 PyObject *swig_obj[1] ;
7536
7537 if (!args) SWIG_fail;
7538 swig_obj[0] = args;
7539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7540 if (!SWIG_IsOK(res1)) {
7541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7542 }
7543 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7544 {
7545 wxNativePixelData_Accessor_nextPixel(arg1);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 }
7548 resultobj = SWIG_Py_Void();
7549 return resultobj;
7550 fail:
7551 return NULL;
7552 }
7553
7554
7555 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7556 PyObject *resultobj = 0;
7557 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7558 wxNativePixelData *arg2 = 0 ;
7559 int arg3 ;
7560 int arg4 ;
7561 void *argp1 = 0 ;
7562 int res1 = 0 ;
7563 void *argp2 = 0 ;
7564 int res2 = 0 ;
7565 int val3 ;
7566 int ecode3 = 0 ;
7567 int val4 ;
7568 int ecode4 = 0 ;
7569 PyObject * obj0 = 0 ;
7570 PyObject * obj1 = 0 ;
7571 PyObject * obj2 = 0 ;
7572 PyObject * obj3 = 0 ;
7573 char * kwnames[] = {
7574 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7575 };
7576
7577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7579 if (!SWIG_IsOK(res1)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7581 }
7582 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7584 if (!SWIG_IsOK(res2)) {
7585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7586 }
7587 if (!argp2) {
7588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7589 }
7590 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7591 ecode3 = SWIG_AsVal_int(obj2, &val3);
7592 if (!SWIG_IsOK(ecode3)) {
7593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7594 }
7595 arg3 = static_cast< int >(val3);
7596 ecode4 = SWIG_AsVal_int(obj3, &val4);
7597 if (!SWIG_IsOK(ecode4)) {
7598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7599 }
7600 arg4 = static_cast< int >(val4);
7601 {
7602 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7603 if (PyErr_Occurred()) SWIG_fail;
7604 }
7605 resultobj = SWIG_Py_Void();
7606 return resultobj;
7607 fail:
7608 return NULL;
7609 }
7610
7611
7612 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7613 PyObject *resultobj = 0;
7614 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7615 wxNativePixelData *arg2 = 0 ;
7616 int arg3 ;
7617 void *argp1 = 0 ;
7618 int res1 = 0 ;
7619 void *argp2 = 0 ;
7620 int res2 = 0 ;
7621 int val3 ;
7622 int ecode3 = 0 ;
7623 PyObject * obj0 = 0 ;
7624 PyObject * obj1 = 0 ;
7625 PyObject * obj2 = 0 ;
7626 char * kwnames[] = {
7627 (char *) "self",(char *) "data",(char *) "x", NULL
7628 };
7629
7630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7632 if (!SWIG_IsOK(res1)) {
7633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7634 }
7635 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7637 if (!SWIG_IsOK(res2)) {
7638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7639 }
7640 if (!argp2) {
7641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7642 }
7643 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7644 ecode3 = SWIG_AsVal_int(obj2, &val3);
7645 if (!SWIG_IsOK(ecode3)) {
7646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7647 }
7648 arg3 = static_cast< int >(val3);
7649 {
7650 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 resultobj = SWIG_Py_Void();
7654 return resultobj;
7655 fail:
7656 return NULL;
7657 }
7658
7659
7660 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7661 PyObject *resultobj = 0;
7662 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7663 wxNativePixelData *arg2 = 0 ;
7664 int arg3 ;
7665 void *argp1 = 0 ;
7666 int res1 = 0 ;
7667 void *argp2 = 0 ;
7668 int res2 = 0 ;
7669 int val3 ;
7670 int ecode3 = 0 ;
7671 PyObject * obj0 = 0 ;
7672 PyObject * obj1 = 0 ;
7673 PyObject * obj2 = 0 ;
7674 char * kwnames[] = {
7675 (char *) "self",(char *) "data",(char *) "y", NULL
7676 };
7677
7678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7680 if (!SWIG_IsOK(res1)) {
7681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7682 }
7683 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7685 if (!SWIG_IsOK(res2)) {
7686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7687 }
7688 if (!argp2) {
7689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7690 }
7691 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7692 ecode3 = SWIG_AsVal_int(obj2, &val3);
7693 if (!SWIG_IsOK(ecode3)) {
7694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7695 }
7696 arg3 = static_cast< int >(val3);
7697 {
7698 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 resultobj = SWIG_Py_Void();
7702 return resultobj;
7703 fail:
7704 return NULL;
7705 }
7706
7707
7708 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7709 PyObject *resultobj = 0;
7710 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7711 wxNativePixelData *arg2 = 0 ;
7712 int arg3 ;
7713 int arg4 ;
7714 void *argp1 = 0 ;
7715 int res1 = 0 ;
7716 void *argp2 = 0 ;
7717 int res2 = 0 ;
7718 int val3 ;
7719 int ecode3 = 0 ;
7720 int val4 ;
7721 int ecode4 = 0 ;
7722 PyObject * obj0 = 0 ;
7723 PyObject * obj1 = 0 ;
7724 PyObject * obj2 = 0 ;
7725 PyObject * obj3 = 0 ;
7726 char * kwnames[] = {
7727 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7728 };
7729
7730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7732 if (!SWIG_IsOK(res1)) {
7733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7734 }
7735 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7737 if (!SWIG_IsOK(res2)) {
7738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7739 }
7740 if (!argp2) {
7741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7742 }
7743 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7744 ecode3 = SWIG_AsVal_int(obj2, &val3);
7745 if (!SWIG_IsOK(ecode3)) {
7746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7747 }
7748 arg3 = static_cast< int >(val3);
7749 ecode4 = SWIG_AsVal_int(obj3, &val4);
7750 if (!SWIG_IsOK(ecode4)) {
7751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7752 }
7753 arg4 = static_cast< int >(val4);
7754 {
7755 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 resultobj = SWIG_Py_Void();
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj = 0;
7767 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7768 byte arg2 ;
7769 byte arg3 ;
7770 byte arg4 ;
7771 void *argp1 = 0 ;
7772 int res1 = 0 ;
7773 unsigned char val2 ;
7774 int ecode2 = 0 ;
7775 unsigned char val3 ;
7776 int ecode3 = 0 ;
7777 unsigned char val4 ;
7778 int ecode4 = 0 ;
7779 PyObject * obj0 = 0 ;
7780 PyObject * obj1 = 0 ;
7781 PyObject * obj2 = 0 ;
7782 PyObject * obj3 = 0 ;
7783 char * kwnames[] = {
7784 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7785 };
7786
7787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7789 if (!SWIG_IsOK(res1)) {
7790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7791 }
7792 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7793 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7794 if (!SWIG_IsOK(ecode2)) {
7795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7796 }
7797 arg2 = static_cast< byte >(val2);
7798 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7799 if (!SWIG_IsOK(ecode3)) {
7800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7801 }
7802 arg3 = static_cast< byte >(val3);
7803 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7804 if (!SWIG_IsOK(ecode4)) {
7805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7806 }
7807 arg4 = static_cast< byte >(val4);
7808 {
7809 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7810 if (PyErr_Occurred()) SWIG_fail;
7811 }
7812 resultobj = SWIG_Py_Void();
7813 return resultobj;
7814 fail:
7815 return NULL;
7816 }
7817
7818
7819 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7820 PyObject *resultobj = 0;
7821 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7822 PyObject *result = 0 ;
7823 void *argp1 = 0 ;
7824 int res1 = 0 ;
7825 PyObject *swig_obj[1] ;
7826
7827 if (!args) SWIG_fail;
7828 swig_obj[0] = args;
7829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7830 if (!SWIG_IsOK(res1)) {
7831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7832 }
7833 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7834 {
7835 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = result;
7839 return resultobj;
7840 fail:
7841 return NULL;
7842 }
7843
7844
7845 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7846 PyObject *obj;
7847 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7848 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7849 return SWIG_Py_Void();
7850 }
7851
7852 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7853 return SWIG_Python_InitShadowInstance(args);
7854 }
7855
7856 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7857 PyObject *resultobj = 0;
7858 wxBitmap *arg1 = 0 ;
7859 wxAlphaPixelData *result = 0 ;
7860 void *argp1 = 0 ;
7861 int res1 = 0 ;
7862
7863 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7867 }
7868 if (!argp1) {
7869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7870 }
7871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7872 {
7873 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7877 return resultobj;
7878 fail:
7879 return NULL;
7880 }
7881
7882
7883 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7884 PyObject *resultobj = 0;
7885 wxBitmap *arg1 = 0 ;
7886 wxRect *arg2 = 0 ;
7887 wxAlphaPixelData *result = 0 ;
7888 void *argp1 = 0 ;
7889 int res1 = 0 ;
7890 wxRect temp2 ;
7891
7892 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7894 if (!SWIG_IsOK(res1)) {
7895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7896 }
7897 if (!argp1) {
7898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7899 }
7900 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7901 {
7902 arg2 = &temp2;
7903 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7904 }
7905 {
7906 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7907 if (PyErr_Occurred()) SWIG_fail;
7908 }
7909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7910 return resultobj;
7911 fail:
7912 return NULL;
7913 }
7914
7915
7916 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7917 PyObject *resultobj = 0;
7918 wxBitmap *arg1 = 0 ;
7919 wxPoint *arg2 = 0 ;
7920 wxSize *arg3 = 0 ;
7921 wxAlphaPixelData *result = 0 ;
7922 void *argp1 = 0 ;
7923 int res1 = 0 ;
7924 wxPoint temp2 ;
7925 wxSize temp3 ;
7926
7927 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7929 if (!SWIG_IsOK(res1)) {
7930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7931 }
7932 if (!argp1) {
7933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7934 }
7935 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7936 {
7937 arg2 = &temp2;
7938 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7939 }
7940 {
7941 arg3 = &temp3;
7942 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7943 }
7944 {
7945 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7949 return resultobj;
7950 fail:
7951 return NULL;
7952 }
7953
7954
7955 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7956 int argc;
7957 PyObject *argv[4];
7958
7959 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7960 --argc;
7961 if (argc == 1) {
7962 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7963 }
7964 if (argc == 2) {
7965 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7966 }
7967 if (argc == 3) {
7968 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7969 }
7970
7971 fail:
7972 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7973 return NULL;
7974 }
7975
7976
7977 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7978 PyObject *resultobj = 0;
7979 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7980 void *argp1 = 0 ;
7981 int res1 = 0 ;
7982 PyObject *swig_obj[1] ;
7983
7984 if (!args) SWIG_fail;
7985 swig_obj[0] = args;
7986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7987 if (!SWIG_IsOK(res1)) {
7988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7989 }
7990 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7991 {
7992 delete arg1;
7993
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 resultobj = SWIG_Py_Void();
7997 return resultobj;
7998 fail:
7999 return NULL;
8000 }
8001
8002
8003 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8004 PyObject *resultobj = 0;
8005 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8006 wxAlphaPixelData_Accessor result;
8007 void *argp1 = 0 ;
8008 int res1 = 0 ;
8009 PyObject *swig_obj[1] ;
8010
8011 if (!args) SWIG_fail;
8012 swig_obj[0] = args;
8013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8016 }
8017 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8018 {
8019 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
8022 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8023 return resultobj;
8024 fail:
8025 return NULL;
8026 }
8027
8028
8029 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8030 PyObject *resultobj = 0;
8031 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8032 void *argp1 = 0 ;
8033 int res1 = 0 ;
8034 PyObject *swig_obj[1] ;
8035
8036 if (!args) SWIG_fail;
8037 swig_obj[0] = args;
8038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8039 if (!SWIG_IsOK(res1)) {
8040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8041 }
8042 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8043 {
8044 (arg1)->UseAlpha();
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 resultobj = SWIG_Py_Void();
8048 return resultobj;
8049 fail:
8050 return NULL;
8051 }
8052
8053
8054 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8055 PyObject *resultobj = 0;
8056 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8057 bool result;
8058 void *argp1 = 0 ;
8059 int res1 = 0 ;
8060 PyObject *swig_obj[1] ;
8061
8062 if (!args) SWIG_fail;
8063 swig_obj[0] = args;
8064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8065 if (!SWIG_IsOK(res1)) {
8066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8067 }
8068 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8069 {
8070 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
8073 {
8074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8075 }
8076 return resultobj;
8077 fail:
8078 return NULL;
8079 }
8080
8081
8082 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8083 PyObject *obj;
8084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8085 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8086 return SWIG_Py_Void();
8087 }
8088
8089 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8090 return SWIG_Python_InitShadowInstance(args);
8091 }
8092
8093 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8094 PyObject *resultobj = 0;
8095 wxAlphaPixelData *arg1 = 0 ;
8096 wxAlphaPixelData_Accessor *result = 0 ;
8097 void *argp1 = 0 ;
8098 int res1 = 0 ;
8099
8100 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8102 if (!SWIG_IsOK(res1)) {
8103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8104 }
8105 if (!argp1) {
8106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8107 }
8108 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8109 {
8110 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8111 if (PyErr_Occurred()) SWIG_fail;
8112 }
8113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8114 return resultobj;
8115 fail:
8116 return NULL;
8117 }
8118
8119
8120 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8121 PyObject *resultobj = 0;
8122 wxBitmap *arg1 = 0 ;
8123 wxAlphaPixelData *arg2 = 0 ;
8124 wxAlphaPixelData_Accessor *result = 0 ;
8125 void *argp1 = 0 ;
8126 int res1 = 0 ;
8127 void *argp2 = 0 ;
8128 int res2 = 0 ;
8129
8130 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8132 if (!SWIG_IsOK(res1)) {
8133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8134 }
8135 if (!argp1) {
8136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8137 }
8138 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8139 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8140 if (!SWIG_IsOK(res2)) {
8141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8142 }
8143 if (!argp2) {
8144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8145 }
8146 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8147 {
8148 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8159 PyObject *resultobj = 0;
8160 wxAlphaPixelData_Accessor *result = 0 ;
8161
8162 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8163 {
8164 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8168 return resultobj;
8169 fail:
8170 return NULL;
8171 }
8172
8173
8174 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8175 int argc;
8176 PyObject *argv[3];
8177
8178 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8179 --argc;
8180 if (argc == 0) {
8181 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8182 }
8183 if (argc == 1) {
8184 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8185 }
8186 if (argc == 2) {
8187 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8188 }
8189
8190 fail:
8191 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8192 return NULL;
8193 }
8194
8195
8196 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8197 PyObject *resultobj = 0;
8198 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8199 void *argp1 = 0 ;
8200 int res1 = 0 ;
8201 PyObject *swig_obj[1] ;
8202
8203 if (!args) SWIG_fail;
8204 swig_obj[0] = args;
8205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8206 if (!SWIG_IsOK(res1)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8208 }
8209 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8210 {
8211 delete arg1;
8212
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = SWIG_Py_Void();
8216 return resultobj;
8217 fail:
8218 return NULL;
8219 }
8220
8221
8222 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj = 0;
8224 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8225 wxAlphaPixelData *arg2 = 0 ;
8226 void *argp1 = 0 ;
8227 int res1 = 0 ;
8228 void *argp2 = 0 ;
8229 int res2 = 0 ;
8230 PyObject * obj0 = 0 ;
8231 PyObject * obj1 = 0 ;
8232 char * kwnames[] = {
8233 (char *) "self",(char *) "data", NULL
8234 };
8235
8236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8238 if (!SWIG_IsOK(res1)) {
8239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8240 }
8241 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8243 if (!SWIG_IsOK(res2)) {
8244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8245 }
8246 if (!argp2) {
8247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8248 }
8249 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8250 {
8251 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 resultobj = SWIG_Py_Void();
8255 return resultobj;
8256 fail:
8257 return NULL;
8258 }
8259
8260
8261 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8262 PyObject *resultobj = 0;
8263 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8264 bool result;
8265 void *argp1 = 0 ;
8266 int res1 = 0 ;
8267 PyObject *swig_obj[1] ;
8268
8269 if (!args) SWIG_fail;
8270 swig_obj[0] = args;
8271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8272 if (!SWIG_IsOK(res1)) {
8273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8274 }
8275 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8276 {
8277 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8278 if (PyErr_Occurred()) SWIG_fail;
8279 }
8280 {
8281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8282 }
8283 return resultobj;
8284 fail:
8285 return NULL;
8286 }
8287
8288
8289 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8290 PyObject *resultobj = 0;
8291 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8292 void *argp1 = 0 ;
8293 int res1 = 0 ;
8294 PyObject *swig_obj[1] ;
8295
8296 if (!args) SWIG_fail;
8297 swig_obj[0] = args;
8298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8299 if (!SWIG_IsOK(res1)) {
8300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8301 }
8302 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8303 {
8304 wxAlphaPixelData_Accessor_nextPixel(arg1);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 resultobj = SWIG_Py_Void();
8308 return resultobj;
8309 fail:
8310 return NULL;
8311 }
8312
8313
8314 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8315 PyObject *resultobj = 0;
8316 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8317 wxAlphaPixelData *arg2 = 0 ;
8318 int arg3 ;
8319 int arg4 ;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 void *argp2 = 0 ;
8323 int res2 = 0 ;
8324 int val3 ;
8325 int ecode3 = 0 ;
8326 int val4 ;
8327 int ecode4 = 0 ;
8328 PyObject * obj0 = 0 ;
8329 PyObject * obj1 = 0 ;
8330 PyObject * obj2 = 0 ;
8331 PyObject * obj3 = 0 ;
8332 char * kwnames[] = {
8333 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8334 };
8335
8336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8338 if (!SWIG_IsOK(res1)) {
8339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8340 }
8341 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8343 if (!SWIG_IsOK(res2)) {
8344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8345 }
8346 if (!argp2) {
8347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8348 }
8349 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8350 ecode3 = SWIG_AsVal_int(obj2, &val3);
8351 if (!SWIG_IsOK(ecode3)) {
8352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8353 }
8354 arg3 = static_cast< int >(val3);
8355 ecode4 = SWIG_AsVal_int(obj3, &val4);
8356 if (!SWIG_IsOK(ecode4)) {
8357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8358 }
8359 arg4 = static_cast< int >(val4);
8360 {
8361 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 resultobj = SWIG_Py_Void();
8365 return resultobj;
8366 fail:
8367 return NULL;
8368 }
8369
8370
8371 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8372 PyObject *resultobj = 0;
8373 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8374 wxAlphaPixelData *arg2 = 0 ;
8375 int arg3 ;
8376 void *argp1 = 0 ;
8377 int res1 = 0 ;
8378 void *argp2 = 0 ;
8379 int res2 = 0 ;
8380 int val3 ;
8381 int ecode3 = 0 ;
8382 PyObject * obj0 = 0 ;
8383 PyObject * obj1 = 0 ;
8384 PyObject * obj2 = 0 ;
8385 char * kwnames[] = {
8386 (char *) "self",(char *) "data",(char *) "x", NULL
8387 };
8388
8389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8391 if (!SWIG_IsOK(res1)) {
8392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8393 }
8394 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8396 if (!SWIG_IsOK(res2)) {
8397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8398 }
8399 if (!argp2) {
8400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8401 }
8402 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8403 ecode3 = SWIG_AsVal_int(obj2, &val3);
8404 if (!SWIG_IsOK(ecode3)) {
8405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8406 }
8407 arg3 = static_cast< int >(val3);
8408 {
8409 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 resultobj = SWIG_Py_Void();
8413 return resultobj;
8414 fail:
8415 return NULL;
8416 }
8417
8418
8419 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj = 0;
8421 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8422 wxAlphaPixelData *arg2 = 0 ;
8423 int arg3 ;
8424 void *argp1 = 0 ;
8425 int res1 = 0 ;
8426 void *argp2 = 0 ;
8427 int res2 = 0 ;
8428 int val3 ;
8429 int ecode3 = 0 ;
8430 PyObject * obj0 = 0 ;
8431 PyObject * obj1 = 0 ;
8432 PyObject * obj2 = 0 ;
8433 char * kwnames[] = {
8434 (char *) "self",(char *) "data",(char *) "y", NULL
8435 };
8436
8437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8439 if (!SWIG_IsOK(res1)) {
8440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8441 }
8442 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8444 if (!SWIG_IsOK(res2)) {
8445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8446 }
8447 if (!argp2) {
8448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8449 }
8450 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8451 ecode3 = SWIG_AsVal_int(obj2, &val3);
8452 if (!SWIG_IsOK(ecode3)) {
8453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8454 }
8455 arg3 = static_cast< int >(val3);
8456 {
8457 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 resultobj = SWIG_Py_Void();
8461 return resultobj;
8462 fail:
8463 return NULL;
8464 }
8465
8466
8467 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8468 PyObject *resultobj = 0;
8469 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8470 wxAlphaPixelData *arg2 = 0 ;
8471 int arg3 ;
8472 int arg4 ;
8473 void *argp1 = 0 ;
8474 int res1 = 0 ;
8475 void *argp2 = 0 ;
8476 int res2 = 0 ;
8477 int val3 ;
8478 int ecode3 = 0 ;
8479 int val4 ;
8480 int ecode4 = 0 ;
8481 PyObject * obj0 = 0 ;
8482 PyObject * obj1 = 0 ;
8483 PyObject * obj2 = 0 ;
8484 PyObject * obj3 = 0 ;
8485 char * kwnames[] = {
8486 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8487 };
8488
8489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8491 if (!SWIG_IsOK(res1)) {
8492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8493 }
8494 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8496 if (!SWIG_IsOK(res2)) {
8497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8498 }
8499 if (!argp2) {
8500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8501 }
8502 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8503 ecode3 = SWIG_AsVal_int(obj2, &val3);
8504 if (!SWIG_IsOK(ecode3)) {
8505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8506 }
8507 arg3 = static_cast< int >(val3);
8508 ecode4 = SWIG_AsVal_int(obj3, &val4);
8509 if (!SWIG_IsOK(ecode4)) {
8510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8511 }
8512 arg4 = static_cast< int >(val4);
8513 {
8514 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 resultobj = SWIG_Py_Void();
8518 return resultobj;
8519 fail:
8520 return NULL;
8521 }
8522
8523
8524 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8525 PyObject *resultobj = 0;
8526 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8527 byte arg2 ;
8528 byte arg3 ;
8529 byte arg4 ;
8530 byte arg5 ;
8531 void *argp1 = 0 ;
8532 int res1 = 0 ;
8533 unsigned char val2 ;
8534 int ecode2 = 0 ;
8535 unsigned char val3 ;
8536 int ecode3 = 0 ;
8537 unsigned char val4 ;
8538 int ecode4 = 0 ;
8539 unsigned char val5 ;
8540 int ecode5 = 0 ;
8541 PyObject * obj0 = 0 ;
8542 PyObject * obj1 = 0 ;
8543 PyObject * obj2 = 0 ;
8544 PyObject * obj3 = 0 ;
8545 PyObject * obj4 = 0 ;
8546 char * kwnames[] = {
8547 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8548 };
8549
8550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8552 if (!SWIG_IsOK(res1)) {
8553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8554 }
8555 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8556 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8557 if (!SWIG_IsOK(ecode2)) {
8558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8559 }
8560 arg2 = static_cast< byte >(val2);
8561 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8562 if (!SWIG_IsOK(ecode3)) {
8563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8564 }
8565 arg3 = static_cast< byte >(val3);
8566 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8567 if (!SWIG_IsOK(ecode4)) {
8568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8569 }
8570 arg4 = static_cast< byte >(val4);
8571 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8572 if (!SWIG_IsOK(ecode5)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8574 }
8575 arg5 = static_cast< byte >(val5);
8576 {
8577 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 resultobj = SWIG_Py_Void();
8581 return resultobj;
8582 fail:
8583 return NULL;
8584 }
8585
8586
8587 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8588 PyObject *resultobj = 0;
8589 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8590 PyObject *result = 0 ;
8591 void *argp1 = 0 ;
8592 int res1 = 0 ;
8593 PyObject *swig_obj[1] ;
8594
8595 if (!args) SWIG_fail;
8596 swig_obj[0] = args;
8597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8598 if (!SWIG_IsOK(res1)) {
8599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8600 }
8601 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8602 {
8603 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 resultobj = result;
8607 return resultobj;
8608 fail:
8609 return NULL;
8610 }
8611
8612
8613 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8614 PyObject *obj;
8615 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8616 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8617 return SWIG_Py_Void();
8618 }
8619
8620 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8621 return SWIG_Python_InitShadowInstance(args);
8622 }
8623
8624 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj = 0;
8626 wxBitmap *arg1 = 0 ;
8627 wxColour const &arg2_defvalue = wxNullColour ;
8628 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8629 wxMask *result = 0 ;
8630 void *argp1 = 0 ;
8631 int res1 = 0 ;
8632 wxColour temp2 ;
8633 PyObject * obj0 = 0 ;
8634 PyObject * obj1 = 0 ;
8635 char * kwnames[] = {
8636 (char *) "bitmap",(char *) "colour", NULL
8637 };
8638
8639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8640 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8641 if (!SWIG_IsOK(res1)) {
8642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8643 }
8644 if (!argp1) {
8645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8646 }
8647 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8648 if (obj1) {
8649 {
8650 arg2 = &temp2;
8651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8652 }
8653 }
8654 {
8655 if (!wxPyCheckForApp()) SWIG_fail;
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8662 return resultobj;
8663 fail:
8664 return NULL;
8665 }
8666
8667
8668 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8669 PyObject *resultobj = 0;
8670 wxMask *arg1 = (wxMask *) 0 ;
8671 void *argp1 = 0 ;
8672 int res1 = 0 ;
8673 PyObject *swig_obj[1] ;
8674
8675 if (!args) SWIG_fail;
8676 swig_obj[0] = args;
8677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8678 if (!SWIG_IsOK(res1)) {
8679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8680 }
8681 arg1 = reinterpret_cast< wxMask * >(argp1);
8682 {
8683 delete arg1;
8684
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 resultobj = SWIG_Py_Void();
8688 return resultobj;
8689 fail:
8690 return NULL;
8691 }
8692
8693
8694 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8695 PyObject *obj;
8696 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8697 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8698 return SWIG_Py_Void();
8699 }
8700
8701 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8702 return SWIG_Python_InitShadowInstance(args);
8703 }
8704
8705 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8706 PyObject *resultobj = 0;
8707 wxString *arg1 = 0 ;
8708 wxBitmapType arg2 ;
8709 int arg3 = (int) -1 ;
8710 int arg4 = (int) -1 ;
8711 wxIcon *result = 0 ;
8712 bool temp1 = false ;
8713 int val2 ;
8714 int ecode2 = 0 ;
8715 int val3 ;
8716 int ecode3 = 0 ;
8717 int val4 ;
8718 int ecode4 = 0 ;
8719 PyObject * obj0 = 0 ;
8720 PyObject * obj1 = 0 ;
8721 PyObject * obj2 = 0 ;
8722 PyObject * obj3 = 0 ;
8723 char * kwnames[] = {
8724 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8725 };
8726
8727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8728 {
8729 arg1 = wxString_in_helper(obj0);
8730 if (arg1 == NULL) SWIG_fail;
8731 temp1 = true;
8732 }
8733 ecode2 = SWIG_AsVal_int(obj1, &val2);
8734 if (!SWIG_IsOK(ecode2)) {
8735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8736 }
8737 arg2 = static_cast< wxBitmapType >(val2);
8738 if (obj2) {
8739 ecode3 = SWIG_AsVal_int(obj2, &val3);
8740 if (!SWIG_IsOK(ecode3)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8742 }
8743 arg3 = static_cast< int >(val3);
8744 }
8745 if (obj3) {
8746 ecode4 = SWIG_AsVal_int(obj3, &val4);
8747 if (!SWIG_IsOK(ecode4)) {
8748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8749 }
8750 arg4 = static_cast< int >(val4);
8751 }
8752 {
8753 if (!wxPyCheckForApp()) SWIG_fail;
8754 PyThreadState* __tstate = wxPyBeginAllowThreads();
8755 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8756 wxPyEndAllowThreads(__tstate);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 }
8759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8760 {
8761 if (temp1)
8762 delete arg1;
8763 }
8764 return resultobj;
8765 fail:
8766 {
8767 if (temp1)
8768 delete arg1;
8769 }
8770 return NULL;
8771 }
8772
8773
8774 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8775 PyObject *resultobj = 0;
8776 wxIcon *arg1 = (wxIcon *) 0 ;
8777 void *argp1 = 0 ;
8778 int res1 = 0 ;
8779 PyObject *swig_obj[1] ;
8780
8781 if (!args) SWIG_fail;
8782 swig_obj[0] = args;
8783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8784 if (!SWIG_IsOK(res1)) {
8785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8786 }
8787 arg1 = reinterpret_cast< wxIcon * >(argp1);
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 delete arg1;
8791
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 resultobj = SWIG_Py_Void();
8796 return resultobj;
8797 fail:
8798 return NULL;
8799 }
8800
8801
8802 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8803 PyObject *resultobj = 0;
8804 wxIcon *result = 0 ;
8805
8806 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8807 {
8808 if (!wxPyCheckForApp()) SWIG_fail;
8809 PyThreadState* __tstate = wxPyBeginAllowThreads();
8810 result = (wxIcon *)new wxIcon();
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8815 return resultobj;
8816 fail:
8817 return NULL;
8818 }
8819
8820
8821 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj = 0;
8823 wxIconLocation *arg1 = 0 ;
8824 wxIcon *result = 0 ;
8825 void *argp1 = 0 ;
8826 int res1 = 0 ;
8827 PyObject * obj0 = 0 ;
8828 char * kwnames[] = {
8829 (char *) "loc", NULL
8830 };
8831
8832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8833 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8834 if (!SWIG_IsOK(res1)) {
8835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8836 }
8837 if (!argp1) {
8838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8839 }
8840 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8841 {
8842 if (!wxPyCheckForApp()) SWIG_fail;
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8845 wxPyEndAllowThreads(__tstate);
8846 if (PyErr_Occurred()) SWIG_fail;
8847 }
8848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8849 return resultobj;
8850 fail:
8851 return NULL;
8852 }
8853
8854
8855 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8856 PyObject *resultobj = 0;
8857 wxBitmap *arg1 = 0 ;
8858 wxIcon *result = 0 ;
8859 void *argp1 = 0 ;
8860 int res1 = 0 ;
8861 PyObject * obj0 = 0 ;
8862 char * kwnames[] = {
8863 (char *) "bmp", NULL
8864 };
8865
8866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8867 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8868 if (!SWIG_IsOK(res1)) {
8869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8870 }
8871 if (!argp1) {
8872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8873 }
8874 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8875 {
8876 if (!wxPyCheckForApp()) SWIG_fail;
8877 PyThreadState* __tstate = wxPyBeginAllowThreads();
8878 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8879 wxPyEndAllowThreads(__tstate);
8880 if (PyErr_Occurred()) SWIG_fail;
8881 }
8882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8883 return resultobj;
8884 fail:
8885 return NULL;
8886 }
8887
8888
8889 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8890 PyObject *resultobj = 0;
8891 PyObject *arg1 = (PyObject *) 0 ;
8892 wxIcon *result = 0 ;
8893 PyObject * obj0 = 0 ;
8894 char * kwnames[] = {
8895 (char *) "listOfStrings", NULL
8896 };
8897
8898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8899 arg1 = obj0;
8900 {
8901 if (!wxPyCheckForApp()) SWIG_fail;
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (wxIcon *)new_wxIcon(arg1);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8908 return resultobj;
8909 fail:
8910 return NULL;
8911 }
8912
8913
8914 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8915 PyObject *resultobj = 0;
8916 wxIcon *arg1 = (wxIcon *) 0 ;
8917 bool result;
8918 void *argp1 = 0 ;
8919 int res1 = 0 ;
8920 PyObject *swig_obj[1] ;
8921
8922 if (!args) SWIG_fail;
8923 swig_obj[0] = args;
8924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8925 if (!SWIG_IsOK(res1)) {
8926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8927 }
8928 arg1 = reinterpret_cast< wxIcon * >(argp1);
8929 {
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 result = (bool)(arg1)->Ok();
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 {
8936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8937 }
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *resultobj = 0;
8946 wxIcon *arg1 = (wxIcon *) 0 ;
8947 int result;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 PyObject *swig_obj[1] ;
8951
8952 if (!args) SWIG_fail;
8953 swig_obj[0] = args;
8954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8955 if (!SWIG_IsOK(res1)) {
8956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8957 }
8958 arg1 = reinterpret_cast< wxIcon * >(argp1);
8959 {
8960 PyThreadState* __tstate = wxPyBeginAllowThreads();
8961 result = (int)(arg1)->GetWidth();
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 resultobj = SWIG_From_int(static_cast< int >(result));
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8973 PyObject *resultobj = 0;
8974 wxIcon *arg1 = (wxIcon *) 0 ;
8975 int result;
8976 void *argp1 = 0 ;
8977 int res1 = 0 ;
8978 PyObject *swig_obj[1] ;
8979
8980 if (!args) SWIG_fail;
8981 swig_obj[0] = args;
8982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8983 if (!SWIG_IsOK(res1)) {
8984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8985 }
8986 arg1 = reinterpret_cast< wxIcon * >(argp1);
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 result = (int)(arg1)->GetHeight();
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 resultobj = SWIG_From_int(static_cast< int >(result));
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9001 PyObject *resultobj = 0;
9002 wxIcon *arg1 = (wxIcon *) 0 ;
9003 int result;
9004 void *argp1 = 0 ;
9005 int res1 = 0 ;
9006 PyObject *swig_obj[1] ;
9007
9008 if (!args) SWIG_fail;
9009 swig_obj[0] = args;
9010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9011 if (!SWIG_IsOK(res1)) {
9012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9013 }
9014 arg1 = reinterpret_cast< wxIcon * >(argp1);
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 result = (int)(arg1)->GetDepth();
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 resultobj = SWIG_From_int(static_cast< int >(result));
9022 return resultobj;
9023 fail:
9024 return NULL;
9025 }
9026
9027
9028 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj = 0;
9030 wxIcon *arg1 = (wxIcon *) 0 ;
9031 int arg2 ;
9032 void *argp1 = 0 ;
9033 int res1 = 0 ;
9034 int val2 ;
9035 int ecode2 = 0 ;
9036 PyObject * obj0 = 0 ;
9037 PyObject * obj1 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "self",(char *) "w", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9044 if (!SWIG_IsOK(res1)) {
9045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9046 }
9047 arg1 = reinterpret_cast< wxIcon * >(argp1);
9048 ecode2 = SWIG_AsVal_int(obj1, &val2);
9049 if (!SWIG_IsOK(ecode2)) {
9050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9051 }
9052 arg2 = static_cast< int >(val2);
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 (arg1)->SetWidth(arg2);
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 resultobj = SWIG_Py_Void();
9060 return resultobj;
9061 fail:
9062 return NULL;
9063 }
9064
9065
9066 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj = 0;
9068 wxIcon *arg1 = (wxIcon *) 0 ;
9069 int arg2 ;
9070 void *argp1 = 0 ;
9071 int res1 = 0 ;
9072 int val2 ;
9073 int ecode2 = 0 ;
9074 PyObject * obj0 = 0 ;
9075 PyObject * obj1 = 0 ;
9076 char * kwnames[] = {
9077 (char *) "self",(char *) "h", NULL
9078 };
9079
9080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9082 if (!SWIG_IsOK(res1)) {
9083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9084 }
9085 arg1 = reinterpret_cast< wxIcon * >(argp1);
9086 ecode2 = SWIG_AsVal_int(obj1, &val2);
9087 if (!SWIG_IsOK(ecode2)) {
9088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9089 }
9090 arg2 = static_cast< int >(val2);
9091 {
9092 PyThreadState* __tstate = wxPyBeginAllowThreads();
9093 (arg1)->SetHeight(arg2);
9094 wxPyEndAllowThreads(__tstate);
9095 if (PyErr_Occurred()) SWIG_fail;
9096 }
9097 resultobj = SWIG_Py_Void();
9098 return resultobj;
9099 fail:
9100 return NULL;
9101 }
9102
9103
9104 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9105 PyObject *resultobj = 0;
9106 wxIcon *arg1 = (wxIcon *) 0 ;
9107 int arg2 ;
9108 void *argp1 = 0 ;
9109 int res1 = 0 ;
9110 int val2 ;
9111 int ecode2 = 0 ;
9112 PyObject * obj0 = 0 ;
9113 PyObject * obj1 = 0 ;
9114 char * kwnames[] = {
9115 (char *) "self",(char *) "d", NULL
9116 };
9117
9118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9120 if (!SWIG_IsOK(res1)) {
9121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9122 }
9123 arg1 = reinterpret_cast< wxIcon * >(argp1);
9124 ecode2 = SWIG_AsVal_int(obj1, &val2);
9125 if (!SWIG_IsOK(ecode2)) {
9126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9127 }
9128 arg2 = static_cast< int >(val2);
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 (arg1)->SetDepth(arg2);
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 resultobj = SWIG_Py_Void();
9136 return resultobj;
9137 fail:
9138 return NULL;
9139 }
9140
9141
9142 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9143 PyObject *resultobj = 0;
9144 wxIcon *arg1 = (wxIcon *) 0 ;
9145 wxBitmap *arg2 = 0 ;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 void *argp2 = 0 ;
9149 int res2 = 0 ;
9150 PyObject * obj0 = 0 ;
9151 PyObject * obj1 = 0 ;
9152 char * kwnames[] = {
9153 (char *) "self",(char *) "bmp", NULL
9154 };
9155
9156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9158 if (!SWIG_IsOK(res1)) {
9159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9160 }
9161 arg1 = reinterpret_cast< wxIcon * >(argp1);
9162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9163 if (!SWIG_IsOK(res2)) {
9164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9165 }
9166 if (!argp2) {
9167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9168 }
9169 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_Py_Void();
9177 return resultobj;
9178 fail:
9179 return NULL;
9180 }
9181
9182
9183 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9184 PyObject *obj;
9185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9186 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9187 return SWIG_Py_Void();
9188 }
9189
9190 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9191 return SWIG_Python_InitShadowInstance(args);
9192 }
9193
9194 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9195 PyObject *resultobj = 0;
9196 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9197 int arg2 = (int) 0 ;
9198 wxIconLocation *result = 0 ;
9199 bool temp1 = false ;
9200 int val2 ;
9201 int ecode2 = 0 ;
9202 PyObject * obj0 = 0 ;
9203 PyObject * obj1 = 0 ;
9204 char * kwnames[] = {
9205 (char *) "filename",(char *) "num", NULL
9206 };
9207
9208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9209 if (obj0) {
9210 {
9211 arg1 = wxString_in_helper(obj0);
9212 if (arg1 == NULL) SWIG_fail;
9213 temp1 = true;
9214 }
9215 }
9216 if (obj1) {
9217 ecode2 = SWIG_AsVal_int(obj1, &val2);
9218 if (!SWIG_IsOK(ecode2)) {
9219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9220 }
9221 arg2 = static_cast< int >(val2);
9222 }
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9230 {
9231 if (temp1)
9232 delete arg1;
9233 }
9234 return resultobj;
9235 fail:
9236 {
9237 if (temp1)
9238 delete arg1;
9239 }
9240 return NULL;
9241 }
9242
9243
9244 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9245 PyObject *resultobj = 0;
9246 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9247 void *argp1 = 0 ;
9248 int res1 = 0 ;
9249 PyObject *swig_obj[1] ;
9250
9251 if (!args) SWIG_fail;
9252 swig_obj[0] = args;
9253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9256 }
9257 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 delete arg1;
9261
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 resultobj = SWIG_Py_Void();
9266 return resultobj;
9267 fail:
9268 return NULL;
9269 }
9270
9271
9272 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9273 PyObject *resultobj = 0;
9274 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9275 bool result;
9276 void *argp1 = 0 ;
9277 int res1 = 0 ;
9278 PyObject *swig_obj[1] ;
9279
9280 if (!args) SWIG_fail;
9281 swig_obj[0] = args;
9282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9283 if (!SWIG_IsOK(res1)) {
9284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9285 }
9286 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9287 {
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 {
9294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9295 }
9296 return resultobj;
9297 fail:
9298 return NULL;
9299 }
9300
9301
9302 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9303 PyObject *resultobj = 0;
9304 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9305 wxString *arg2 = 0 ;
9306 void *argp1 = 0 ;
9307 int res1 = 0 ;
9308 bool temp2 = false ;
9309 PyObject * obj0 = 0 ;
9310 PyObject * obj1 = 0 ;
9311 char * kwnames[] = {
9312 (char *) "self",(char *) "filename", NULL
9313 };
9314
9315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9317 if (!SWIG_IsOK(res1)) {
9318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9319 }
9320 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9321 {
9322 arg2 = wxString_in_helper(obj1);
9323 if (arg2 == NULL) SWIG_fail;
9324 temp2 = true;
9325 }
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 (arg1)->SetFileName((wxString const &)*arg2);
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = SWIG_Py_Void();
9333 {
9334 if (temp2)
9335 delete arg2;
9336 }
9337 return resultobj;
9338 fail:
9339 {
9340 if (temp2)
9341 delete arg2;
9342 }
9343 return NULL;
9344 }
9345
9346
9347 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9348 PyObject *resultobj = 0;
9349 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9350 wxString *result = 0 ;
9351 void *argp1 = 0 ;
9352 int res1 = 0 ;
9353 PyObject *swig_obj[1] ;
9354
9355 if (!args) SWIG_fail;
9356 swig_obj[0] = args;
9357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9358 if (!SWIG_IsOK(res1)) {
9359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9360 }
9361 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 {
9365 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9366 result = (wxString *) &_result_ref;
9367 }
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 #if wxUSE_UNICODE
9373 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9374 #else
9375 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9376 #endif
9377 }
9378 return resultobj;
9379 fail:
9380 return NULL;
9381 }
9382
9383
9384 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9385 PyObject *resultobj = 0;
9386 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9387 int arg2 ;
9388 void *argp1 = 0 ;
9389 int res1 = 0 ;
9390 int val2 ;
9391 int ecode2 = 0 ;
9392 PyObject * obj0 = 0 ;
9393 PyObject * obj1 = 0 ;
9394 char * kwnames[] = {
9395 (char *) "self",(char *) "num", NULL
9396 };
9397
9398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9402 }
9403 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9404 ecode2 = SWIG_AsVal_int(obj1, &val2);
9405 if (!SWIG_IsOK(ecode2)) {
9406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9407 }
9408 arg2 = static_cast< int >(val2);
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 wxIconLocation_SetIndex(arg1,arg2);
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 resultobj = SWIG_Py_Void();
9416 return resultobj;
9417 fail:
9418 return NULL;
9419 }
9420
9421
9422 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9423 PyObject *resultobj = 0;
9424 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9425 int result;
9426 void *argp1 = 0 ;
9427 int res1 = 0 ;
9428 PyObject *swig_obj[1] ;
9429
9430 if (!args) SWIG_fail;
9431 swig_obj[0] = args;
9432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9433 if (!SWIG_IsOK(res1)) {
9434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9435 }
9436 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9437 {
9438 PyThreadState* __tstate = wxPyBeginAllowThreads();
9439 result = (int)wxIconLocation_GetIndex(arg1);
9440 wxPyEndAllowThreads(__tstate);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 resultobj = SWIG_From_int(static_cast< int >(result));
9444 return resultobj;
9445 fail:
9446 return NULL;
9447 }
9448
9449
9450 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9451 PyObject *obj;
9452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9453 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9454 return SWIG_Py_Void();
9455 }
9456
9457 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9458 return SWIG_Python_InitShadowInstance(args);
9459 }
9460
9461 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9462 PyObject *resultobj = 0;
9463 wxIconBundle *result = 0 ;
9464
9465 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9466 {
9467 PyThreadState* __tstate = wxPyBeginAllowThreads();
9468 result = (wxIconBundle *)new wxIconBundle();
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9480 PyObject *resultobj = 0;
9481 wxString *arg1 = 0 ;
9482 long arg2 ;
9483 wxIconBundle *result = 0 ;
9484 bool temp1 = false ;
9485 long val2 ;
9486 int ecode2 = 0 ;
9487 PyObject * obj0 = 0 ;
9488 PyObject * obj1 = 0 ;
9489 char * kwnames[] = {
9490 (char *) "file",(char *) "type", NULL
9491 };
9492
9493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9494 {
9495 arg1 = wxString_in_helper(obj0);
9496 if (arg1 == NULL) SWIG_fail;
9497 temp1 = true;
9498 }
9499 ecode2 = SWIG_AsVal_long(obj1, &val2);
9500 if (!SWIG_IsOK(ecode2)) {
9501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9502 }
9503 arg2 = static_cast< long >(val2);
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9511 {
9512 if (temp1)
9513 delete arg1;
9514 }
9515 return resultobj;
9516 fail:
9517 {
9518 if (temp1)
9519 delete arg1;
9520 }
9521 return NULL;
9522 }
9523
9524
9525 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj = 0;
9527 wxIcon *arg1 = 0 ;
9528 wxIconBundle *result = 0 ;
9529 void *argp1 = 0 ;
9530 int res1 = 0 ;
9531 PyObject * obj0 = 0 ;
9532 char * kwnames[] = {
9533 (char *) "icon", NULL
9534 };
9535
9536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9540 }
9541 if (!argp1) {
9542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9543 }
9544 arg1 = reinterpret_cast< wxIcon * >(argp1);
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9552 return resultobj;
9553 fail:
9554 return NULL;
9555 }
9556
9557
9558 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9559 PyObject *resultobj = 0;
9560 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 PyObject *swig_obj[1] ;
9564
9565 if (!args) SWIG_fail;
9566 swig_obj[0] = args;
9567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9568 if (!SWIG_IsOK(res1)) {
9569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9570 }
9571 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 delete arg1;
9575
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 resultobj = SWIG_Py_Void();
9580 return resultobj;
9581 fail:
9582 return NULL;
9583 }
9584
9585
9586 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9587 PyObject *resultobj = 0;
9588 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9589 wxIcon *arg2 = 0 ;
9590 void *argp1 = 0 ;
9591 int res1 = 0 ;
9592 void *argp2 = 0 ;
9593 int res2 = 0 ;
9594 PyObject * obj0 = 0 ;
9595 PyObject * obj1 = 0 ;
9596 char * kwnames[] = {
9597 (char *) "self",(char *) "icon", NULL
9598 };
9599
9600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9602 if (!SWIG_IsOK(res1)) {
9603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9604 }
9605 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9607 if (!SWIG_IsOK(res2)) {
9608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9609 }
9610 if (!argp2) {
9611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9612 }
9613 arg2 = reinterpret_cast< wxIcon * >(argp2);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 (arg1)->AddIcon((wxIcon const &)*arg2);
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_Py_Void();
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9630 wxString *arg2 = 0 ;
9631 long arg3 ;
9632 void *argp1 = 0 ;
9633 int res1 = 0 ;
9634 bool temp2 = false ;
9635 long val3 ;
9636 int ecode3 = 0 ;
9637 PyObject * obj0 = 0 ;
9638 PyObject * obj1 = 0 ;
9639 PyObject * obj2 = 0 ;
9640 char * kwnames[] = {
9641 (char *) "self",(char *) "file",(char *) "type", NULL
9642 };
9643
9644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9646 if (!SWIG_IsOK(res1)) {
9647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9648 }
9649 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9650 {
9651 arg2 = wxString_in_helper(obj1);
9652 if (arg2 == NULL) SWIG_fail;
9653 temp2 = true;
9654 }
9655 ecode3 = SWIG_AsVal_long(obj2, &val3);
9656 if (!SWIG_IsOK(ecode3)) {
9657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9658 }
9659 arg3 = static_cast< long >(val3);
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9663 wxPyEndAllowThreads(__tstate);
9664 if (PyErr_Occurred()) SWIG_fail;
9665 }
9666 resultobj = SWIG_Py_Void();
9667 {
9668 if (temp2)
9669 delete arg2;
9670 }
9671 return resultobj;
9672 fail:
9673 {
9674 if (temp2)
9675 delete arg2;
9676 }
9677 return NULL;
9678 }
9679
9680
9681 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj = 0;
9683 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9684 wxSize *arg2 = 0 ;
9685 wxIcon *result = 0 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 wxSize temp2 ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "size", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9699 }
9700 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9701 {
9702 arg2 = &temp2;
9703 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 {
9708 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9709 result = (wxIcon *) &_result_ref;
9710 }
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 {
9715 wxIcon* resultptr = new wxIcon(*result);
9716 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9717 }
9718 return resultobj;
9719 fail:
9720 return NULL;
9721 }
9722
9723
9724 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9725 PyObject *obj;
9726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9727 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9728 return SWIG_Py_Void();
9729 }
9730
9731 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9732 return SWIG_Python_InitShadowInstance(args);
9733 }
9734
9735 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxString *arg1 = 0 ;
9738 long arg2 ;
9739 int arg3 = (int) 0 ;
9740 int arg4 = (int) 0 ;
9741 wxCursor *result = 0 ;
9742 bool temp1 = false ;
9743 long val2 ;
9744 int ecode2 = 0 ;
9745 int val3 ;
9746 int ecode3 = 0 ;
9747 int val4 ;
9748 int ecode4 = 0 ;
9749 PyObject * obj0 = 0 ;
9750 PyObject * obj1 = 0 ;
9751 PyObject * obj2 = 0 ;
9752 PyObject * obj3 = 0 ;
9753 char * kwnames[] = {
9754 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9755 };
9756
9757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9758 {
9759 arg1 = wxString_in_helper(obj0);
9760 if (arg1 == NULL) SWIG_fail;
9761 temp1 = true;
9762 }
9763 ecode2 = SWIG_AsVal_long(obj1, &val2);
9764 if (!SWIG_IsOK(ecode2)) {
9765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9766 }
9767 arg2 = static_cast< long >(val2);
9768 if (obj2) {
9769 ecode3 = SWIG_AsVal_int(obj2, &val3);
9770 if (!SWIG_IsOK(ecode3)) {
9771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9772 }
9773 arg3 = static_cast< int >(val3);
9774 }
9775 if (obj3) {
9776 ecode4 = SWIG_AsVal_int(obj3, &val4);
9777 if (!SWIG_IsOK(ecode4)) {
9778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9779 }
9780 arg4 = static_cast< int >(val4);
9781 }
9782 {
9783 if (!wxPyCheckForApp()) SWIG_fail;
9784 PyThreadState* __tstate = wxPyBeginAllowThreads();
9785 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9790 {
9791 if (temp1)
9792 delete arg1;
9793 }
9794 return resultobj;
9795 fail:
9796 {
9797 if (temp1)
9798 delete arg1;
9799 }
9800 return NULL;
9801 }
9802
9803
9804 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9805 PyObject *resultobj = 0;
9806 wxCursor *arg1 = (wxCursor *) 0 ;
9807 void *argp1 = 0 ;
9808 int res1 = 0 ;
9809 PyObject *swig_obj[1] ;
9810
9811 if (!args) SWIG_fail;
9812 swig_obj[0] = args;
9813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9816 }
9817 arg1 = reinterpret_cast< wxCursor * >(argp1);
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 delete arg1;
9821
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_Py_Void();
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj = 0;
9834 int arg1 ;
9835 wxCursor *result = 0 ;
9836 int val1 ;
9837 int ecode1 = 0 ;
9838 PyObject * obj0 = 0 ;
9839 char * kwnames[] = {
9840 (char *) "id", NULL
9841 };
9842
9843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9844 ecode1 = SWIG_AsVal_int(obj0, &val1);
9845 if (!SWIG_IsOK(ecode1)) {
9846 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9847 }
9848 arg1 = static_cast< int >(val1);
9849 {
9850 if (!wxPyCheckForApp()) SWIG_fail;
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 result = (wxCursor *)new wxCursor(arg1);
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9857 return resultobj;
9858 fail:
9859 return NULL;
9860 }
9861
9862
9863 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9864 PyObject *resultobj = 0;
9865 wxImage *arg1 = 0 ;
9866 wxCursor *result = 0 ;
9867 void *argp1 = 0 ;
9868 int res1 = 0 ;
9869 PyObject * obj0 = 0 ;
9870 char * kwnames[] = {
9871 (char *) "image", NULL
9872 };
9873
9874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9875 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9876 if (!SWIG_IsOK(res1)) {
9877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9878 }
9879 if (!argp1) {
9880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9881 }
9882 arg1 = reinterpret_cast< wxImage * >(argp1);
9883 {
9884 if (!wxPyCheckForApp()) SWIG_fail;
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9898 PyObject *resultobj = 0;
9899 wxCursor *arg1 = (wxCursor *) 0 ;
9900 bool result;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 PyObject *swig_obj[1] ;
9904
9905 if (!args) SWIG_fail;
9906 swig_obj[0] = args;
9907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9910 }
9911 arg1 = reinterpret_cast< wxCursor * >(argp1);
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 result = (bool)(arg1)->Ok();
9915 wxPyEndAllowThreads(__tstate);
9916 if (PyErr_Occurred()) SWIG_fail;
9917 }
9918 {
9919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9920 }
9921 return resultobj;
9922 fail:
9923 return NULL;
9924 }
9925
9926
9927 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9928 PyObject *obj;
9929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9930 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9931 return SWIG_Py_Void();
9932 }
9933
9934 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9935 return SWIG_Python_InitShadowInstance(args);
9936 }
9937
9938 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9939 PyObject *resultobj = 0;
9940 int arg1 = (int) 0 ;
9941 int arg2 = (int) 0 ;
9942 int arg3 = (int) 0 ;
9943 int arg4 = (int) 0 ;
9944 wxRegion *result = 0 ;
9945 int val1 ;
9946 int ecode1 = 0 ;
9947 int val2 ;
9948 int ecode2 = 0 ;
9949 int val3 ;
9950 int ecode3 = 0 ;
9951 int val4 ;
9952 int ecode4 = 0 ;
9953 PyObject * obj0 = 0 ;
9954 PyObject * obj1 = 0 ;
9955 PyObject * obj2 = 0 ;
9956 PyObject * obj3 = 0 ;
9957 char * kwnames[] = {
9958 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9959 };
9960
9961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9962 if (obj0) {
9963 ecode1 = SWIG_AsVal_int(obj0, &val1);
9964 if (!SWIG_IsOK(ecode1)) {
9965 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9966 }
9967 arg1 = static_cast< int >(val1);
9968 }
9969 if (obj1) {
9970 ecode2 = SWIG_AsVal_int(obj1, &val2);
9971 if (!SWIG_IsOK(ecode2)) {
9972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9973 }
9974 arg2 = static_cast< int >(val2);
9975 }
9976 if (obj2) {
9977 ecode3 = SWIG_AsVal_int(obj2, &val3);
9978 if (!SWIG_IsOK(ecode3)) {
9979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9980 }
9981 arg3 = static_cast< int >(val3);
9982 }
9983 if (obj3) {
9984 ecode4 = SWIG_AsVal_int(obj3, &val4);
9985 if (!SWIG_IsOK(ecode4)) {
9986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9987 }
9988 arg4 = static_cast< int >(val4);
9989 }
9990 {
9991 if (!wxPyCheckForApp()) SWIG_fail;
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9998 return resultobj;
9999 fail:
10000 return NULL;
10001 }
10002
10003
10004 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10005 PyObject *resultobj = 0;
10006 wxBitmap *arg1 = 0 ;
10007 wxRegion *result = 0 ;
10008 void *argp1 = 0 ;
10009 int res1 = 0 ;
10010 PyObject * obj0 = 0 ;
10011 char * kwnames[] = {
10012 (char *) "bmp", NULL
10013 };
10014
10015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10016 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10017 if (!SWIG_IsOK(res1)) {
10018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10019 }
10020 if (!argp1) {
10021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10022 }
10023 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10024 {
10025 if (!wxPyCheckForApp()) SWIG_fail;
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10032 return resultobj;
10033 fail:
10034 return NULL;
10035 }
10036
10037
10038 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj = 0;
10040 wxBitmap *arg1 = 0 ;
10041 wxColour *arg2 = 0 ;
10042 int arg3 = (int) 0 ;
10043 wxRegion *result = 0 ;
10044 void *argp1 = 0 ;
10045 int res1 = 0 ;
10046 wxColour temp2 ;
10047 int val3 ;
10048 int ecode3 = 0 ;
10049 PyObject * obj0 = 0 ;
10050 PyObject * obj1 = 0 ;
10051 PyObject * obj2 = 0 ;
10052 char * kwnames[] = {
10053 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10054 };
10055
10056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10057 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10058 if (!SWIG_IsOK(res1)) {
10059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10060 }
10061 if (!argp1) {
10062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10063 }
10064 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10065 {
10066 arg2 = &temp2;
10067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10068 }
10069 if (obj2) {
10070 ecode3 = SWIG_AsVal_int(obj2, &val3);
10071 if (!SWIG_IsOK(ecode3)) {
10072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10073 }
10074 arg3 = static_cast< int >(val3);
10075 }
10076 {
10077 if (!wxPyCheckForApp()) SWIG_fail;
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10084 return resultobj;
10085 fail:
10086 return NULL;
10087 }
10088
10089
10090 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10091 PyObject *resultobj = 0;
10092 int arg1 ;
10093 wxPoint *arg2 = (wxPoint *) 0 ;
10094 int arg3 = (int) wxWINDING_RULE ;
10095 wxRegion *result = 0 ;
10096 int val3 ;
10097 int ecode3 = 0 ;
10098 PyObject * obj0 = 0 ;
10099 PyObject * obj1 = 0 ;
10100 char * kwnames[] = {
10101 (char *) "points",(char *) "fillStyle", NULL
10102 };
10103
10104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10105 {
10106 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10107 if (arg2 == NULL) SWIG_fail;
10108 }
10109 if (obj1) {
10110 ecode3 = SWIG_AsVal_int(obj1, &val3);
10111 if (!SWIG_IsOK(ecode3)) {
10112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10113 }
10114 arg3 = static_cast< int >(val3);
10115 }
10116 {
10117 if (!wxPyCheckForApp()) SWIG_fail;
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10124 {
10125 if (arg2) delete [] arg2;
10126 }
10127 return resultobj;
10128 fail:
10129 {
10130 if (arg2) delete [] arg2;
10131 }
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10137 PyObject *resultobj = 0;
10138 wxRegion *arg1 = (wxRegion *) 0 ;
10139 void *argp1 = 0 ;
10140 int res1 = 0 ;
10141 PyObject *swig_obj[1] ;
10142
10143 if (!args) SWIG_fail;
10144 swig_obj[0] = args;
10145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10146 if (!SWIG_IsOK(res1)) {
10147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10148 }
10149 arg1 = reinterpret_cast< wxRegion * >(argp1);
10150 {
10151 PyThreadState* __tstate = wxPyBeginAllowThreads();
10152 delete arg1;
10153
10154 wxPyEndAllowThreads(__tstate);
10155 if (PyErr_Occurred()) SWIG_fail;
10156 }
10157 resultobj = SWIG_Py_Void();
10158 return resultobj;
10159 fail:
10160 return NULL;
10161 }
10162
10163
10164 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10165 PyObject *resultobj = 0;
10166 wxRegion *arg1 = (wxRegion *) 0 ;
10167 void *argp1 = 0 ;
10168 int res1 = 0 ;
10169 PyObject *swig_obj[1] ;
10170
10171 if (!args) SWIG_fail;
10172 swig_obj[0] = args;
10173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10174 if (!SWIG_IsOK(res1)) {
10175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10176 }
10177 arg1 = reinterpret_cast< wxRegion * >(argp1);
10178 {
10179 PyThreadState* __tstate = wxPyBeginAllowThreads();
10180 (arg1)->Clear();
10181 wxPyEndAllowThreads(__tstate);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 resultobj = SWIG_Py_Void();
10185 return resultobj;
10186 fail:
10187 return NULL;
10188 }
10189
10190
10191 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10192 PyObject *resultobj = 0;
10193 wxRegion *arg1 = (wxRegion *) 0 ;
10194 int arg2 ;
10195 int arg3 ;
10196 bool result;
10197 void *argp1 = 0 ;
10198 int res1 = 0 ;
10199 int val2 ;
10200 int ecode2 = 0 ;
10201 int val3 ;
10202 int ecode3 = 0 ;
10203 PyObject * obj0 = 0 ;
10204 PyObject * obj1 = 0 ;
10205 PyObject * obj2 = 0 ;
10206 char * kwnames[] = {
10207 (char *) "self",(char *) "x",(char *) "y", NULL
10208 };
10209
10210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10212 if (!SWIG_IsOK(res1)) {
10213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10214 }
10215 arg1 = reinterpret_cast< wxRegion * >(argp1);
10216 ecode2 = SWIG_AsVal_int(obj1, &val2);
10217 if (!SWIG_IsOK(ecode2)) {
10218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10219 }
10220 arg2 = static_cast< int >(val2);
10221 ecode3 = SWIG_AsVal_int(obj2, &val3);
10222 if (!SWIG_IsOK(ecode3)) {
10223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10224 }
10225 arg3 = static_cast< int >(val3);
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 result = (bool)(arg1)->Offset(arg2,arg3);
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 {
10233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10234 }
10235 return resultobj;
10236 fail:
10237 return NULL;
10238 }
10239
10240
10241 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10242 PyObject *resultobj = 0;
10243 wxRegion *arg1 = (wxRegion *) 0 ;
10244 int arg2 ;
10245 int arg3 ;
10246 wxRegionContain result;
10247 void *argp1 = 0 ;
10248 int res1 = 0 ;
10249 int val2 ;
10250 int ecode2 = 0 ;
10251 int val3 ;
10252 int ecode3 = 0 ;
10253 PyObject * obj0 = 0 ;
10254 PyObject * obj1 = 0 ;
10255 PyObject * obj2 = 0 ;
10256 char * kwnames[] = {
10257 (char *) "self",(char *) "x",(char *) "y", NULL
10258 };
10259
10260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10262 if (!SWIG_IsOK(res1)) {
10263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10264 }
10265 arg1 = reinterpret_cast< wxRegion * >(argp1);
10266 ecode2 = SWIG_AsVal_int(obj1, &val2);
10267 if (!SWIG_IsOK(ecode2)) {
10268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10269 }
10270 arg2 = static_cast< int >(val2);
10271 ecode3 = SWIG_AsVal_int(obj2, &val3);
10272 if (!SWIG_IsOK(ecode3)) {
10273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10274 }
10275 arg3 = static_cast< int >(val3);
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 resultobj = SWIG_From_int(static_cast< int >(result));
10283 return resultobj;
10284 fail:
10285 return NULL;
10286 }
10287
10288
10289 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10290 PyObject *resultobj = 0;
10291 wxRegion *arg1 = (wxRegion *) 0 ;
10292 wxPoint *arg2 = 0 ;
10293 wxRegionContain result;
10294 void *argp1 = 0 ;
10295 int res1 = 0 ;
10296 wxPoint temp2 ;
10297 PyObject * obj0 = 0 ;
10298 PyObject * obj1 = 0 ;
10299 char * kwnames[] = {
10300 (char *) "self",(char *) "pt", NULL
10301 };
10302
10303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10305 if (!SWIG_IsOK(res1)) {
10306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10307 }
10308 arg1 = reinterpret_cast< wxRegion * >(argp1);
10309 {
10310 arg2 = &temp2;
10311 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10312 }
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
10315 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 resultobj = SWIG_From_int(static_cast< int >(result));
10320 return resultobj;
10321 fail:
10322 return NULL;
10323 }
10324
10325
10326 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10327 PyObject *resultobj = 0;
10328 wxRegion *arg1 = (wxRegion *) 0 ;
10329 wxRect *arg2 = 0 ;
10330 wxRegionContain result;
10331 void *argp1 = 0 ;
10332 int res1 = 0 ;
10333 wxRect temp2 ;
10334 PyObject * obj0 = 0 ;
10335 PyObject * obj1 = 0 ;
10336 char * kwnames[] = {
10337 (char *) "self",(char *) "rect", NULL
10338 };
10339
10340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10342 if (!SWIG_IsOK(res1)) {
10343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10344 }
10345 arg1 = reinterpret_cast< wxRegion * >(argp1);
10346 {
10347 arg2 = &temp2;
10348 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 resultobj = SWIG_From_int(static_cast< int >(result));
10357 return resultobj;
10358 fail:
10359 return NULL;
10360 }
10361
10362
10363 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10364 PyObject *resultobj = 0;
10365 wxRegion *arg1 = (wxRegion *) 0 ;
10366 int arg2 ;
10367 int arg3 ;
10368 int arg4 ;
10369 int arg5 ;
10370 wxRegionContain result;
10371 void *argp1 = 0 ;
10372 int res1 = 0 ;
10373 int val2 ;
10374 int ecode2 = 0 ;
10375 int val3 ;
10376 int ecode3 = 0 ;
10377 int val4 ;
10378 int ecode4 = 0 ;
10379 int val5 ;
10380 int ecode5 = 0 ;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10383 PyObject * obj2 = 0 ;
10384 PyObject * obj3 = 0 ;
10385 PyObject * obj4 = 0 ;
10386 char * kwnames[] = {
10387 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10388 };
10389
10390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10392 if (!SWIG_IsOK(res1)) {
10393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10394 }
10395 arg1 = reinterpret_cast< wxRegion * >(argp1);
10396 ecode2 = SWIG_AsVal_int(obj1, &val2);
10397 if (!SWIG_IsOK(ecode2)) {
10398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10399 }
10400 arg2 = static_cast< int >(val2);
10401 ecode3 = SWIG_AsVal_int(obj2, &val3);
10402 if (!SWIG_IsOK(ecode3)) {
10403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10404 }
10405 arg3 = static_cast< int >(val3);
10406 ecode4 = SWIG_AsVal_int(obj3, &val4);
10407 if (!SWIG_IsOK(ecode4)) {
10408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10409 }
10410 arg4 = static_cast< int >(val4);
10411 ecode5 = SWIG_AsVal_int(obj4, &val5);
10412 if (!SWIG_IsOK(ecode5)) {
10413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10414 }
10415 arg5 = static_cast< int >(val5);
10416 {
10417 PyThreadState* __tstate = wxPyBeginAllowThreads();
10418 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10419 wxPyEndAllowThreads(__tstate);
10420 if (PyErr_Occurred()) SWIG_fail;
10421 }
10422 resultobj = SWIG_From_int(static_cast< int >(result));
10423 return resultobj;
10424 fail:
10425 return NULL;
10426 }
10427
10428
10429 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10430 PyObject *resultobj = 0;
10431 wxRegion *arg1 = (wxRegion *) 0 ;
10432 wxRect result;
10433 void *argp1 = 0 ;
10434 int res1 = 0 ;
10435 PyObject *swig_obj[1] ;
10436
10437 if (!args) SWIG_fail;
10438 swig_obj[0] = args;
10439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10440 if (!SWIG_IsOK(res1)) {
10441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10442 }
10443 arg1 = reinterpret_cast< wxRegion * >(argp1);
10444 {
10445 PyThreadState* __tstate = wxPyBeginAllowThreads();
10446 result = (arg1)->GetBox();
10447 wxPyEndAllowThreads(__tstate);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 }
10450 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj = 0;
10459 wxRegion *arg1 = (wxRegion *) 0 ;
10460 int arg2 ;
10461 int arg3 ;
10462 int arg4 ;
10463 int arg5 ;
10464 bool result;
10465 void *argp1 = 0 ;
10466 int res1 = 0 ;
10467 int val2 ;
10468 int ecode2 = 0 ;
10469 int val3 ;
10470 int ecode3 = 0 ;
10471 int val4 ;
10472 int ecode4 = 0 ;
10473 int val5 ;
10474 int ecode5 = 0 ;
10475 PyObject * obj0 = 0 ;
10476 PyObject * obj1 = 0 ;
10477 PyObject * obj2 = 0 ;
10478 PyObject * obj3 = 0 ;
10479 PyObject * obj4 = 0 ;
10480 char * kwnames[] = {
10481 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10482 };
10483
10484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10486 if (!SWIG_IsOK(res1)) {
10487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10488 }
10489 arg1 = reinterpret_cast< wxRegion * >(argp1);
10490 ecode2 = SWIG_AsVal_int(obj1, &val2);
10491 if (!SWIG_IsOK(ecode2)) {
10492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10493 }
10494 arg2 = static_cast< int >(val2);
10495 ecode3 = SWIG_AsVal_int(obj2, &val3);
10496 if (!SWIG_IsOK(ecode3)) {
10497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10498 }
10499 arg3 = static_cast< int >(val3);
10500 ecode4 = SWIG_AsVal_int(obj3, &val4);
10501 if (!SWIG_IsOK(ecode4)) {
10502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10503 }
10504 arg4 = static_cast< int >(val4);
10505 ecode5 = SWIG_AsVal_int(obj4, &val5);
10506 if (!SWIG_IsOK(ecode5)) {
10507 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10508 }
10509 arg5 = static_cast< int >(val5);
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 {
10517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10518 }
10519 return resultobj;
10520 fail:
10521 return NULL;
10522 }
10523
10524
10525 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10526 PyObject *resultobj = 0;
10527 wxRegion *arg1 = (wxRegion *) 0 ;
10528 wxRect *arg2 = 0 ;
10529 bool result;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 wxRect temp2 ;
10533 PyObject * obj0 = 0 ;
10534 PyObject * obj1 = 0 ;
10535 char * kwnames[] = {
10536 (char *) "self",(char *) "rect", NULL
10537 };
10538
10539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10541 if (!SWIG_IsOK(res1)) {
10542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10543 }
10544 arg1 = reinterpret_cast< wxRegion * >(argp1);
10545 {
10546 arg2 = &temp2;
10547 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10548 }
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 {
10556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10557 }
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj = 0;
10566 wxRegion *arg1 = (wxRegion *) 0 ;
10567 wxRegion *arg2 = 0 ;
10568 bool result;
10569 void *argp1 = 0 ;
10570 int res1 = 0 ;
10571 void *argp2 = 0 ;
10572 int res2 = 0 ;
10573 PyObject * obj0 = 0 ;
10574 PyObject * obj1 = 0 ;
10575 char * kwnames[] = {
10576 (char *) "self",(char *) "region", NULL
10577 };
10578
10579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10581 if (!SWIG_IsOK(res1)) {
10582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10583 }
10584 arg1 = reinterpret_cast< wxRegion * >(argp1);
10585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10586 if (!SWIG_IsOK(res2)) {
10587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10588 }
10589 if (!argp2) {
10590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10591 }
10592 arg2 = reinterpret_cast< wxRegion * >(argp2);
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10596 wxPyEndAllowThreads(__tstate);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 }
10599 {
10600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10601 }
10602 return resultobj;
10603 fail:
10604 return NULL;
10605 }
10606
10607
10608 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10609 PyObject *resultobj = 0;
10610 wxRegion *arg1 = (wxRegion *) 0 ;
10611 bool result;
10612 void *argp1 = 0 ;
10613 int res1 = 0 ;
10614 PyObject *swig_obj[1] ;
10615
10616 if (!args) SWIG_fail;
10617 swig_obj[0] = args;
10618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10619 if (!SWIG_IsOK(res1)) {
10620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10621 }
10622 arg1 = reinterpret_cast< wxRegion * >(argp1);
10623 {
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 result = (bool)(arg1)->IsEmpty();
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 {
10630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10631 }
10632 return resultobj;
10633 fail:
10634 return NULL;
10635 }
10636
10637
10638 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10639 PyObject *resultobj = 0;
10640 wxRegion *arg1 = (wxRegion *) 0 ;
10641 wxRegion *arg2 = 0 ;
10642 bool result;
10643 void *argp1 = 0 ;
10644 int res1 = 0 ;
10645 void *argp2 = 0 ;
10646 int res2 = 0 ;
10647 PyObject * obj0 = 0 ;
10648 PyObject * obj1 = 0 ;
10649 char * kwnames[] = {
10650 (char *) "self",(char *) "region", NULL
10651 };
10652
10653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10655 if (!SWIG_IsOK(res1)) {
10656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10657 }
10658 arg1 = reinterpret_cast< wxRegion * >(argp1);
10659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10660 if (!SWIG_IsOK(res2)) {
10661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10662 }
10663 if (!argp2) {
10664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10665 }
10666 arg2 = reinterpret_cast< wxRegion * >(argp2);
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 int arg2 ;
10686 int arg3 ;
10687 int arg4 ;
10688 int arg5 ;
10689 bool result;
10690 void *argp1 = 0 ;
10691 int res1 = 0 ;
10692 int val2 ;
10693 int ecode2 = 0 ;
10694 int val3 ;
10695 int ecode3 = 0 ;
10696 int val4 ;
10697 int ecode4 = 0 ;
10698 int val5 ;
10699 int ecode5 = 0 ;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 PyObject * obj2 = 0 ;
10703 PyObject * obj3 = 0 ;
10704 PyObject * obj4 = 0 ;
10705 char * kwnames[] = {
10706 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10707 };
10708
10709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10711 if (!SWIG_IsOK(res1)) {
10712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10713 }
10714 arg1 = reinterpret_cast< wxRegion * >(argp1);
10715 ecode2 = SWIG_AsVal_int(obj1, &val2);
10716 if (!SWIG_IsOK(ecode2)) {
10717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10718 }
10719 arg2 = static_cast< int >(val2);
10720 ecode3 = SWIG_AsVal_int(obj2, &val3);
10721 if (!SWIG_IsOK(ecode3)) {
10722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10723 }
10724 arg3 = static_cast< int >(val3);
10725 ecode4 = SWIG_AsVal_int(obj3, &val4);
10726 if (!SWIG_IsOK(ecode4)) {
10727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10728 }
10729 arg4 = static_cast< int >(val4);
10730 ecode5 = SWIG_AsVal_int(obj4, &val5);
10731 if (!SWIG_IsOK(ecode5)) {
10732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10733 }
10734 arg5 = static_cast< int >(val5);
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 {
10742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10743 }
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj = 0;
10752 wxRegion *arg1 = (wxRegion *) 0 ;
10753 wxRect *arg2 = 0 ;
10754 bool result;
10755 void *argp1 = 0 ;
10756 int res1 = 0 ;
10757 wxRect temp2 ;
10758 PyObject * obj0 = 0 ;
10759 PyObject * obj1 = 0 ;
10760 char * kwnames[] = {
10761 (char *) "self",(char *) "rect", NULL
10762 };
10763
10764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10766 if (!SWIG_IsOK(res1)) {
10767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10768 }
10769 arg1 = reinterpret_cast< wxRegion * >(argp1);
10770 {
10771 arg2 = &temp2;
10772 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10773 }
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 {
10781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10782 }
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj = 0;
10791 wxRegion *arg1 = (wxRegion *) 0 ;
10792 wxRegion *arg2 = 0 ;
10793 bool result;
10794 void *argp1 = 0 ;
10795 int res1 = 0 ;
10796 void *argp2 = 0 ;
10797 int res2 = 0 ;
10798 PyObject * obj0 = 0 ;
10799 PyObject * obj1 = 0 ;
10800 char * kwnames[] = {
10801 (char *) "self",(char *) "region", NULL
10802 };
10803
10804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10806 if (!SWIG_IsOK(res1)) {
10807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10808 }
10809 arg1 = reinterpret_cast< wxRegion * >(argp1);
10810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10811 if (!SWIG_IsOK(res2)) {
10812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10813 }
10814 if (!argp2) {
10815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10816 }
10817 arg2 = reinterpret_cast< wxRegion * >(argp2);
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10826 }
10827 return resultobj;
10828 fail:
10829 return NULL;
10830 }
10831
10832
10833 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10834 PyObject *resultobj = 0;
10835 wxRegion *arg1 = (wxRegion *) 0 ;
10836 int arg2 ;
10837 int arg3 ;
10838 int arg4 ;
10839 int arg5 ;
10840 bool result;
10841 void *argp1 = 0 ;
10842 int res1 = 0 ;
10843 int val2 ;
10844 int ecode2 = 0 ;
10845 int val3 ;
10846 int ecode3 = 0 ;
10847 int val4 ;
10848 int ecode4 = 0 ;
10849 int val5 ;
10850 int ecode5 = 0 ;
10851 PyObject * obj0 = 0 ;
10852 PyObject * obj1 = 0 ;
10853 PyObject * obj2 = 0 ;
10854 PyObject * obj3 = 0 ;
10855 PyObject * obj4 = 0 ;
10856 char * kwnames[] = {
10857 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10858 };
10859
10860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10864 }
10865 arg1 = reinterpret_cast< wxRegion * >(argp1);
10866 ecode2 = SWIG_AsVal_int(obj1, &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10869 }
10870 arg2 = static_cast< int >(val2);
10871 ecode3 = SWIG_AsVal_int(obj2, &val3);
10872 if (!SWIG_IsOK(ecode3)) {
10873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10874 }
10875 arg3 = static_cast< int >(val3);
10876 ecode4 = SWIG_AsVal_int(obj3, &val4);
10877 if (!SWIG_IsOK(ecode4)) {
10878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10879 }
10880 arg4 = static_cast< int >(val4);
10881 ecode5 = SWIG_AsVal_int(obj4, &val5);
10882 if (!SWIG_IsOK(ecode5)) {
10883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10884 }
10885 arg5 = static_cast< int >(val5);
10886 {
10887 PyThreadState* __tstate = wxPyBeginAllowThreads();
10888 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10889 wxPyEndAllowThreads(__tstate);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 {
10893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10894 }
10895 return resultobj;
10896 fail:
10897 return NULL;
10898 }
10899
10900
10901 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10902 PyObject *resultobj = 0;
10903 wxRegion *arg1 = (wxRegion *) 0 ;
10904 wxRect *arg2 = 0 ;
10905 bool result;
10906 void *argp1 = 0 ;
10907 int res1 = 0 ;
10908 wxRect temp2 ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 char * kwnames[] = {
10912 (char *) "self",(char *) "rect", NULL
10913 };
10914
10915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10917 if (!SWIG_IsOK(res1)) {
10918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10919 }
10920 arg1 = reinterpret_cast< wxRegion * >(argp1);
10921 {
10922 arg2 = &temp2;
10923 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10924 }
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
10927 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10928 wxPyEndAllowThreads(__tstate);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 }
10931 {
10932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10933 }
10934 return resultobj;
10935 fail:
10936 return NULL;
10937 }
10938
10939
10940 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10941 PyObject *resultobj = 0;
10942 wxRegion *arg1 = (wxRegion *) 0 ;
10943 wxRegion *arg2 = 0 ;
10944 bool result;
10945 void *argp1 = 0 ;
10946 int res1 = 0 ;
10947 void *argp2 = 0 ;
10948 int res2 = 0 ;
10949 PyObject * obj0 = 0 ;
10950 PyObject * obj1 = 0 ;
10951 char * kwnames[] = {
10952 (char *) "self",(char *) "region", NULL
10953 };
10954
10955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10957 if (!SWIG_IsOK(res1)) {
10958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10959 }
10960 arg1 = reinterpret_cast< wxRegion * >(argp1);
10961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10962 if (!SWIG_IsOK(res2)) {
10963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10964 }
10965 if (!argp2) {
10966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10967 }
10968 arg2 = reinterpret_cast< wxRegion * >(argp2);
10969 {
10970 PyThreadState* __tstate = wxPyBeginAllowThreads();
10971 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10972 wxPyEndAllowThreads(__tstate);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 {
10976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10977 }
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj = 0;
10986 wxRegion *arg1 = (wxRegion *) 0 ;
10987 int arg2 ;
10988 int arg3 ;
10989 int arg4 ;
10990 int arg5 ;
10991 bool result;
10992 void *argp1 = 0 ;
10993 int res1 = 0 ;
10994 int val2 ;
10995 int ecode2 = 0 ;
10996 int val3 ;
10997 int ecode3 = 0 ;
10998 int val4 ;
10999 int ecode4 = 0 ;
11000 int val5 ;
11001 int ecode5 = 0 ;
11002 PyObject * obj0 = 0 ;
11003 PyObject * obj1 = 0 ;
11004 PyObject * obj2 = 0 ;
11005 PyObject * obj3 = 0 ;
11006 PyObject * obj4 = 0 ;
11007 char * kwnames[] = {
11008 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11009 };
11010
11011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11013 if (!SWIG_IsOK(res1)) {
11014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11015 }
11016 arg1 = reinterpret_cast< wxRegion * >(argp1);
11017 ecode2 = SWIG_AsVal_int(obj1, &val2);
11018 if (!SWIG_IsOK(ecode2)) {
11019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11020 }
11021 arg2 = static_cast< int >(val2);
11022 ecode3 = SWIG_AsVal_int(obj2, &val3);
11023 if (!SWIG_IsOK(ecode3)) {
11024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11025 }
11026 arg3 = static_cast< int >(val3);
11027 ecode4 = SWIG_AsVal_int(obj3, &val4);
11028 if (!SWIG_IsOK(ecode4)) {
11029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11030 }
11031 arg4 = static_cast< int >(val4);
11032 ecode5 = SWIG_AsVal_int(obj4, &val5);
11033 if (!SWIG_IsOK(ecode5)) {
11034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11035 }
11036 arg5 = static_cast< int >(val5);
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 {
11044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11045 }
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11053 PyObject *resultobj = 0;
11054 wxRegion *arg1 = (wxRegion *) 0 ;
11055 wxRect *arg2 = 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 wxRect temp2 ;
11060 PyObject * obj0 = 0 ;
11061 PyObject * obj1 = 0 ;
11062 char * kwnames[] = {
11063 (char *) "self",(char *) "rect", NULL
11064 };
11065
11066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11068 if (!SWIG_IsOK(res1)) {
11069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11070 }
11071 arg1 = reinterpret_cast< wxRegion * >(argp1);
11072 {
11073 arg2 = &temp2;
11074 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11075 }
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj = 0;
11093 wxRegion *arg1 = (wxRegion *) 0 ;
11094 wxRegion *arg2 = 0 ;
11095 bool result;
11096 void *argp1 = 0 ;
11097 int res1 = 0 ;
11098 void *argp2 = 0 ;
11099 int res2 = 0 ;
11100 PyObject * obj0 = 0 ;
11101 PyObject * obj1 = 0 ;
11102 char * kwnames[] = {
11103 (char *) "self",(char *) "region", NULL
11104 };
11105
11106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11108 if (!SWIG_IsOK(res1)) {
11109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11110 }
11111 arg1 = reinterpret_cast< wxRegion * >(argp1);
11112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11113 if (!SWIG_IsOK(res2)) {
11114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11115 }
11116 if (!argp2) {
11117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11118 }
11119 arg2 = reinterpret_cast< wxRegion * >(argp2);
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 {
11127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11128 }
11129 return resultobj;
11130 fail:
11131 return NULL;
11132 }
11133
11134
11135 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11136 PyObject *resultobj = 0;
11137 wxRegion *arg1 = (wxRegion *) 0 ;
11138 SwigValueWrapper<wxBitmap > result;
11139 void *argp1 = 0 ;
11140 int res1 = 0 ;
11141 PyObject *swig_obj[1] ;
11142
11143 if (!args) SWIG_fail;
11144 swig_obj[0] = args;
11145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11148 }
11149 arg1 = reinterpret_cast< wxRegion * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (arg1)->ConvertToBitmap();
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11157 return resultobj;
11158 fail:
11159 return NULL;
11160 }
11161
11162
11163 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11164 PyObject *resultobj = 0;
11165 wxRegion *arg1 = (wxRegion *) 0 ;
11166 wxBitmap *arg2 = 0 ;
11167 bool result;
11168 void *argp1 = 0 ;
11169 int res1 = 0 ;
11170 void *argp2 = 0 ;
11171 int res2 = 0 ;
11172 PyObject * obj0 = 0 ;
11173 PyObject * obj1 = 0 ;
11174 char * kwnames[] = {
11175 (char *) "self",(char *) "bmp", NULL
11176 };
11177
11178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11182 }
11183 arg1 = reinterpret_cast< wxRegion * >(argp1);
11184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11185 if (!SWIG_IsOK(res2)) {
11186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11187 }
11188 if (!argp2) {
11189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11190 }
11191 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11195 wxPyEndAllowThreads(__tstate);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
11198 {
11199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11200 }
11201 return resultobj;
11202 fail:
11203 return NULL;
11204 }
11205
11206
11207 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11208 PyObject *resultobj = 0;
11209 wxRegion *arg1 = (wxRegion *) 0 ;
11210 wxBitmap *arg2 = 0 ;
11211 wxColour *arg3 = 0 ;
11212 int arg4 = (int) 0 ;
11213 bool result;
11214 void *argp1 = 0 ;
11215 int res1 = 0 ;
11216 void *argp2 = 0 ;
11217 int res2 = 0 ;
11218 wxColour temp3 ;
11219 int val4 ;
11220 int ecode4 = 0 ;
11221 PyObject * obj0 = 0 ;
11222 PyObject * obj1 = 0 ;
11223 PyObject * obj2 = 0 ;
11224 PyObject * obj3 = 0 ;
11225 char * kwnames[] = {
11226 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11227 };
11228
11229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11231 if (!SWIG_IsOK(res1)) {
11232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11233 }
11234 arg1 = reinterpret_cast< wxRegion * >(argp1);
11235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11236 if (!SWIG_IsOK(res2)) {
11237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11238 }
11239 if (!argp2) {
11240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11241 }
11242 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11243 {
11244 arg3 = &temp3;
11245 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11246 }
11247 if (obj3) {
11248 ecode4 = SWIG_AsVal_int(obj3, &val4);
11249 if (!SWIG_IsOK(ecode4)) {
11250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11251 }
11252 arg4 = static_cast< int >(val4);
11253 }
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
11256 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 {
11261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11262 }
11263 return resultobj;
11264 fail:
11265 return NULL;
11266 }
11267
11268
11269 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11270 PyObject *obj;
11271 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11272 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11273 return SWIG_Py_Void();
11274 }
11275
11276 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11277 return SWIG_Python_InitShadowInstance(args);
11278 }
11279
11280 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj = 0;
11282 wxRegion *arg1 = 0 ;
11283 wxRegionIterator *result = 0 ;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 PyObject * obj0 = 0 ;
11287 char * kwnames[] = {
11288 (char *) "region", NULL
11289 };
11290
11291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11292 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11293 if (!SWIG_IsOK(res1)) {
11294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11295 }
11296 if (!argp1) {
11297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11298 }
11299 arg1 = reinterpret_cast< wxRegion * >(argp1);
11300 {
11301 if (!wxPyCheckForApp()) SWIG_fail;
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11308 return resultobj;
11309 fail:
11310 return NULL;
11311 }
11312
11313
11314 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11315 PyObject *resultobj = 0;
11316 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11317 void *argp1 = 0 ;
11318 int res1 = 0 ;
11319 PyObject *swig_obj[1] ;
11320
11321 if (!args) SWIG_fail;
11322 swig_obj[0] = args;
11323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11324 if (!SWIG_IsOK(res1)) {
11325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11326 }
11327 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11328 {
11329 PyThreadState* __tstate = wxPyBeginAllowThreads();
11330 delete arg1;
11331
11332 wxPyEndAllowThreads(__tstate);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 resultobj = SWIG_Py_Void();
11336 return resultobj;
11337 fail:
11338 return NULL;
11339 }
11340
11341
11342 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11343 PyObject *resultobj = 0;
11344 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11345 int result;
11346 void *argp1 = 0 ;
11347 int res1 = 0 ;
11348 PyObject *swig_obj[1] ;
11349
11350 if (!args) SWIG_fail;
11351 swig_obj[0] = args;
11352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11353 if (!SWIG_IsOK(res1)) {
11354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11355 }
11356 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 result = (int)(arg1)->GetX();
11360 wxPyEndAllowThreads(__tstate);
11361 if (PyErr_Occurred()) SWIG_fail;
11362 }
11363 resultobj = SWIG_From_int(static_cast< int >(result));
11364 return resultobj;
11365 fail:
11366 return NULL;
11367 }
11368
11369
11370 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11371 PyObject *resultobj = 0;
11372 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11373 int result;
11374 void *argp1 = 0 ;
11375 int res1 = 0 ;
11376 PyObject *swig_obj[1] ;
11377
11378 if (!args) SWIG_fail;
11379 swig_obj[0] = args;
11380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11381 if (!SWIG_IsOK(res1)) {
11382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11383 }
11384 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11385 {
11386 PyThreadState* __tstate = wxPyBeginAllowThreads();
11387 result = (int)(arg1)->GetY();
11388 wxPyEndAllowThreads(__tstate);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 }
11391 resultobj = SWIG_From_int(static_cast< int >(result));
11392 return resultobj;
11393 fail:
11394 return NULL;
11395 }
11396
11397
11398 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11399 PyObject *resultobj = 0;
11400 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11401 int result;
11402 void *argp1 = 0 ;
11403 int res1 = 0 ;
11404 PyObject *swig_obj[1] ;
11405
11406 if (!args) SWIG_fail;
11407 swig_obj[0] = args;
11408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11409 if (!SWIG_IsOK(res1)) {
11410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11411 }
11412 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11413 {
11414 PyThreadState* __tstate = wxPyBeginAllowThreads();
11415 result = (int)(arg1)->GetW();
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 resultobj = SWIG_From_int(static_cast< int >(result));
11420 return resultobj;
11421 fail:
11422 return NULL;
11423 }
11424
11425
11426 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11427 PyObject *resultobj = 0;
11428 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11429 int result;
11430 void *argp1 = 0 ;
11431 int res1 = 0 ;
11432 PyObject *swig_obj[1] ;
11433
11434 if (!args) SWIG_fail;
11435 swig_obj[0] = args;
11436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11437 if (!SWIG_IsOK(res1)) {
11438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11439 }
11440 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11441 {
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 result = (int)(arg1)->GetWidth();
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 resultobj = SWIG_From_int(static_cast< int >(result));
11448 return resultobj;
11449 fail:
11450 return NULL;
11451 }
11452
11453
11454 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11455 PyObject *resultobj = 0;
11456 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11457 int result;
11458 void *argp1 = 0 ;
11459 int res1 = 0 ;
11460 PyObject *swig_obj[1] ;
11461
11462 if (!args) SWIG_fail;
11463 swig_obj[0] = args;
11464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11465 if (!SWIG_IsOK(res1)) {
11466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11467 }
11468 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = (int)(arg1)->GetH();
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 resultobj = SWIG_From_int(static_cast< int >(result));
11476 return resultobj;
11477 fail:
11478 return NULL;
11479 }
11480
11481
11482 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11483 PyObject *resultobj = 0;
11484 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11485 int result;
11486 void *argp1 = 0 ;
11487 int res1 = 0 ;
11488 PyObject *swig_obj[1] ;
11489
11490 if (!args) SWIG_fail;
11491 swig_obj[0] = args;
11492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11493 if (!SWIG_IsOK(res1)) {
11494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11495 }
11496 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 result = (int)(arg1)->GetHeight();
11500 wxPyEndAllowThreads(__tstate);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 }
11503 resultobj = SWIG_From_int(static_cast< int >(result));
11504 return resultobj;
11505 fail:
11506 return NULL;
11507 }
11508
11509
11510 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11511 PyObject *resultobj = 0;
11512 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11513 wxRect result;
11514 void *argp1 = 0 ;
11515 int res1 = 0 ;
11516 PyObject *swig_obj[1] ;
11517
11518 if (!args) SWIG_fail;
11519 swig_obj[0] = args;
11520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11521 if (!SWIG_IsOK(res1)) {
11522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11523 }
11524 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11525 {
11526 PyThreadState* __tstate = wxPyBeginAllowThreads();
11527 result = (arg1)->GetRect();
11528 wxPyEndAllowThreads(__tstate);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 }
11531 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11532 return resultobj;
11533 fail:
11534 return NULL;
11535 }
11536
11537
11538 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11539 PyObject *resultobj = 0;
11540 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11541 bool result;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 PyObject *swig_obj[1] ;
11545
11546 if (!args) SWIG_fail;
11547 swig_obj[0] = args;
11548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11549 if (!SWIG_IsOK(res1)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11551 }
11552 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11553 {
11554 PyThreadState* __tstate = wxPyBeginAllowThreads();
11555 result = (bool)(arg1)->HaveRects();
11556 wxPyEndAllowThreads(__tstate);
11557 if (PyErr_Occurred()) SWIG_fail;
11558 }
11559 {
11560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11561 }
11562 return resultobj;
11563 fail:
11564 return NULL;
11565 }
11566
11567
11568 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11569 PyObject *resultobj = 0;
11570 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11571 void *argp1 = 0 ;
11572 int res1 = 0 ;
11573 PyObject *swig_obj[1] ;
11574
11575 if (!args) SWIG_fail;
11576 swig_obj[0] = args;
11577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11578 if (!SWIG_IsOK(res1)) {
11579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11580 }
11581 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11582 {
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 (arg1)->Reset();
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 resultobj = SWIG_Py_Void();
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11596 PyObject *resultobj = 0;
11597 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11598 void *argp1 = 0 ;
11599 int res1 = 0 ;
11600 PyObject *swig_obj[1] ;
11601
11602 if (!args) SWIG_fail;
11603 swig_obj[0] = args;
11604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11605 if (!SWIG_IsOK(res1)) {
11606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11607 }
11608 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 wxRegionIterator_Next(arg1);
11612 wxPyEndAllowThreads(__tstate);
11613 if (PyErr_Occurred()) SWIG_fail;
11614 }
11615 resultobj = SWIG_Py_Void();
11616 return resultobj;
11617 fail:
11618 return NULL;
11619 }
11620
11621
11622 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11623 PyObject *resultobj = 0;
11624 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11625 bool result;
11626 void *argp1 = 0 ;
11627 int res1 = 0 ;
11628 PyObject *swig_obj[1] ;
11629
11630 if (!args) SWIG_fail;
11631 swig_obj[0] = args;
11632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11633 if (!SWIG_IsOK(res1)) {
11634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11635 }
11636 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)wxRegionIterator___nonzero__(arg1);
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 {
11644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11645 }
11646 return resultobj;
11647 fail:
11648 return NULL;
11649 }
11650
11651
11652 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11653 PyObject *obj;
11654 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11655 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11656 return SWIG_Py_Void();
11657 }
11658
11659 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11660 return SWIG_Python_InitShadowInstance(args);
11661 }
11662
11663 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11664 PyObject *resultobj = 0;
11665 wxNativeFontInfo *result = 0 ;
11666
11667 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11671 wxPyEndAllowThreads(__tstate);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11675 return resultobj;
11676 fail:
11677 return NULL;
11678 }
11679
11680
11681 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11682 PyObject *resultobj = 0;
11683 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11684 void *argp1 = 0 ;
11685 int res1 = 0 ;
11686 PyObject *swig_obj[1] ;
11687
11688 if (!args) SWIG_fail;
11689 swig_obj[0] = args;
11690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11691 if (!SWIG_IsOK(res1)) {
11692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11693 }
11694 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11695 {
11696 PyThreadState* __tstate = wxPyBeginAllowThreads();
11697 delete arg1;
11698
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 }
11702 resultobj = SWIG_Py_Void();
11703 return resultobj;
11704 fail:
11705 return NULL;
11706 }
11707
11708
11709 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11710 PyObject *resultobj = 0;
11711 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11712 void *argp1 = 0 ;
11713 int res1 = 0 ;
11714 PyObject *swig_obj[1] ;
11715
11716 if (!args) SWIG_fail;
11717 swig_obj[0] = args;
11718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11719 if (!SWIG_IsOK(res1)) {
11720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11721 }
11722 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 (arg1)->Init();
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 resultobj = SWIG_Py_Void();
11730 return resultobj;
11731 fail:
11732 return NULL;
11733 }
11734
11735
11736 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11737 PyObject *resultobj = 0;
11738 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11739 wxFont *arg2 = 0 ;
11740 void *argp1 = 0 ;
11741 int res1 = 0 ;
11742 void *argp2 = 0 ;
11743 int res2 = 0 ;
11744 PyObject * obj0 = 0 ;
11745 PyObject * obj1 = 0 ;
11746 char * kwnames[] = {
11747 (char *) "self",(char *) "font", NULL
11748 };
11749
11750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11752 if (!SWIG_IsOK(res1)) {
11753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11754 }
11755 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11757 if (!SWIG_IsOK(res2)) {
11758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11759 }
11760 if (!argp2) {
11761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11762 }
11763 arg2 = reinterpret_cast< wxFont * >(argp2);
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 (arg1)->InitFromFont((wxFont const &)*arg2);
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 resultobj = SWIG_Py_Void();
11771 return resultobj;
11772 fail:
11773 return NULL;
11774 }
11775
11776
11777 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11778 PyObject *resultobj = 0;
11779 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11780 int result;
11781 void *argp1 = 0 ;
11782 int res1 = 0 ;
11783 PyObject *swig_obj[1] ;
11784
11785 if (!args) SWIG_fail;
11786 swig_obj[0] = args;
11787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11788 if (!SWIG_IsOK(res1)) {
11789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11790 }
11791 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11792 {
11793 PyThreadState* __tstate = wxPyBeginAllowThreads();
11794 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = SWIG_From_int(static_cast< int >(result));
11799 return resultobj;
11800 fail:
11801 return NULL;
11802 }
11803
11804
11805 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11806 PyObject *resultobj = 0;
11807 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11808 wxFontStyle result;
11809 void *argp1 = 0 ;
11810 int res1 = 0 ;
11811 PyObject *swig_obj[1] ;
11812
11813 if (!args) SWIG_fail;
11814 swig_obj[0] = args;
11815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11816 if (!SWIG_IsOK(res1)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11818 }
11819 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11820 {
11821 PyThreadState* __tstate = wxPyBeginAllowThreads();
11822 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11823 wxPyEndAllowThreads(__tstate);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 resultobj = SWIG_From_int(static_cast< int >(result));
11827 return resultobj;
11828 fail:
11829 return NULL;
11830 }
11831
11832
11833 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11834 PyObject *resultobj = 0;
11835 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11836 wxFontWeight result;
11837 void *argp1 = 0 ;
11838 int res1 = 0 ;
11839 PyObject *swig_obj[1] ;
11840
11841 if (!args) SWIG_fail;
11842 swig_obj[0] = args;
11843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11844 if (!SWIG_IsOK(res1)) {
11845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11846 }
11847 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 resultobj = SWIG_From_int(static_cast< int >(result));
11855 return resultobj;
11856 fail:
11857 return NULL;
11858 }
11859
11860
11861 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11862 PyObject *resultobj = 0;
11863 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11864 bool result;
11865 void *argp1 = 0 ;
11866 int res1 = 0 ;
11867 PyObject *swig_obj[1] ;
11868
11869 if (!args) SWIG_fail;
11870 swig_obj[0] = args;
11871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11872 if (!SWIG_IsOK(res1)) {
11873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11874 }
11875 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11884 }
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11892 PyObject *resultobj = 0;
11893 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11894 wxString result;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 PyObject *swig_obj[1] ;
11898
11899 if (!args) SWIG_fail;
11900 swig_obj[0] = args;
11901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11902 if (!SWIG_IsOK(res1)) {
11903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11904 }
11905 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11906 {
11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
11908 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 {
11913 #if wxUSE_UNICODE
11914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11915 #else
11916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11917 #endif
11918 }
11919 return resultobj;
11920 fail:
11921 return NULL;
11922 }
11923
11924
11925 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11926 PyObject *resultobj = 0;
11927 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11928 wxFontFamily result;
11929 void *argp1 = 0 ;
11930 int res1 = 0 ;
11931 PyObject *swig_obj[1] ;
11932
11933 if (!args) SWIG_fail;
11934 swig_obj[0] = args;
11935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11938 }
11939 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 resultobj = SWIG_From_int(static_cast< int >(result));
11947 return resultobj;
11948 fail:
11949 return NULL;
11950 }
11951
11952
11953 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11954 PyObject *resultobj = 0;
11955 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11956 wxFontEncoding result;
11957 void *argp1 = 0 ;
11958 int res1 = 0 ;
11959 PyObject *swig_obj[1] ;
11960
11961 if (!args) SWIG_fail;
11962 swig_obj[0] = args;
11963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11964 if (!SWIG_IsOK(res1)) {
11965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11966 }
11967 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = SWIG_From_int(static_cast< int >(result));
11975 return resultobj;
11976 fail:
11977 return NULL;
11978 }
11979
11980
11981 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11982 PyObject *resultobj = 0;
11983 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11984 int arg2 ;
11985 void *argp1 = 0 ;
11986 int res1 = 0 ;
11987 int val2 ;
11988 int ecode2 = 0 ;
11989 PyObject * obj0 = 0 ;
11990 PyObject * obj1 = 0 ;
11991 char * kwnames[] = {
11992 (char *) "self",(char *) "pointsize", NULL
11993 };
11994
11995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11997 if (!SWIG_IsOK(res1)) {
11998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11999 }
12000 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12001 ecode2 = SWIG_AsVal_int(obj1, &val2);
12002 if (!SWIG_IsOK(ecode2)) {
12003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12004 }
12005 arg2 = static_cast< int >(val2);
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
12008 (arg1)->SetPointSize(arg2);
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 resultobj = SWIG_Py_Void();
12013 return resultobj;
12014 fail:
12015 return NULL;
12016 }
12017
12018
12019 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12020 PyObject *resultobj = 0;
12021 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12022 wxFontStyle arg2 ;
12023 void *argp1 = 0 ;
12024 int res1 = 0 ;
12025 int val2 ;
12026 int ecode2 = 0 ;
12027 PyObject * obj0 = 0 ;
12028 PyObject * obj1 = 0 ;
12029 char * kwnames[] = {
12030 (char *) "self",(char *) "style", NULL
12031 };
12032
12033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12035 if (!SWIG_IsOK(res1)) {
12036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12037 }
12038 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12039 ecode2 = SWIG_AsVal_int(obj1, &val2);
12040 if (!SWIG_IsOK(ecode2)) {
12041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12042 }
12043 arg2 = static_cast< wxFontStyle >(val2);
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 (arg1)->SetStyle(arg2);
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 resultobj = SWIG_Py_Void();
12051 return resultobj;
12052 fail:
12053 return NULL;
12054 }
12055
12056
12057 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12058 PyObject *resultobj = 0;
12059 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12060 wxFontWeight arg2 ;
12061 void *argp1 = 0 ;
12062 int res1 = 0 ;
12063 int val2 ;
12064 int ecode2 = 0 ;
12065 PyObject * obj0 = 0 ;
12066 PyObject * obj1 = 0 ;
12067 char * kwnames[] = {
12068 (char *) "self",(char *) "weight", NULL
12069 };
12070
12071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12073 if (!SWIG_IsOK(res1)) {
12074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12075 }
12076 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12077 ecode2 = SWIG_AsVal_int(obj1, &val2);
12078 if (!SWIG_IsOK(ecode2)) {
12079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12080 }
12081 arg2 = static_cast< wxFontWeight >(val2);
12082 {
12083 PyThreadState* __tstate = wxPyBeginAllowThreads();
12084 (arg1)->SetWeight(arg2);
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 resultobj = SWIG_Py_Void();
12089 return resultobj;
12090 fail:
12091 return NULL;
12092 }
12093
12094
12095 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12096 PyObject *resultobj = 0;
12097 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12098 bool arg2 ;
12099 void *argp1 = 0 ;
12100 int res1 = 0 ;
12101 bool val2 ;
12102 int ecode2 = 0 ;
12103 PyObject * obj0 = 0 ;
12104 PyObject * obj1 = 0 ;
12105 char * kwnames[] = {
12106 (char *) "self",(char *) "underlined", NULL
12107 };
12108
12109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12111 if (!SWIG_IsOK(res1)) {
12112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12113 }
12114 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12115 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12116 if (!SWIG_IsOK(ecode2)) {
12117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12118 }
12119 arg2 = static_cast< bool >(val2);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 (arg1)->SetUnderlined(arg2);
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_Py_Void();
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj = 0;
12135 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12136 wxString arg2 ;
12137 bool result;
12138 void *argp1 = 0 ;
12139 int res1 = 0 ;
12140 PyObject * obj0 = 0 ;
12141 PyObject * obj1 = 0 ;
12142 char * kwnames[] = {
12143 (char *) "self",(char *) "facename", NULL
12144 };
12145
12146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12148 if (!SWIG_IsOK(res1)) {
12149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12150 }
12151 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12152 {
12153 wxString* sptr = wxString_in_helper(obj1);
12154 if (sptr == NULL) SWIG_fail;
12155 arg2 = *sptr;
12156 delete sptr;
12157 }
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 result = (bool)(arg1)->SetFaceName(arg2);
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 {
12165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12166 }
12167 return resultobj;
12168 fail:
12169 return NULL;
12170 }
12171
12172
12173 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12174 PyObject *resultobj = 0;
12175 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12176 wxFontFamily arg2 ;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 int val2 ;
12180 int ecode2 = 0 ;
12181 PyObject * obj0 = 0 ;
12182 PyObject * obj1 = 0 ;
12183 char * kwnames[] = {
12184 (char *) "self",(char *) "family", NULL
12185 };
12186
12187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12189 if (!SWIG_IsOK(res1)) {
12190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12191 }
12192 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12193 ecode2 = SWIG_AsVal_int(obj1, &val2);
12194 if (!SWIG_IsOK(ecode2)) {
12195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12196 }
12197 arg2 = static_cast< wxFontFamily >(val2);
12198 {
12199 PyThreadState* __tstate = wxPyBeginAllowThreads();
12200 (arg1)->SetFamily(arg2);
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 resultobj = SWIG_Py_Void();
12205 return resultobj;
12206 fail:
12207 return NULL;
12208 }
12209
12210
12211 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12212 PyObject *resultobj = 0;
12213 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12214 wxFontEncoding arg2 ;
12215 void *argp1 = 0 ;
12216 int res1 = 0 ;
12217 int val2 ;
12218 int ecode2 = 0 ;
12219 PyObject * obj0 = 0 ;
12220 PyObject * obj1 = 0 ;
12221 char * kwnames[] = {
12222 (char *) "self",(char *) "encoding", NULL
12223 };
12224
12225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12227 if (!SWIG_IsOK(res1)) {
12228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12229 }
12230 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12231 ecode2 = SWIG_AsVal_int(obj1, &val2);
12232 if (!SWIG_IsOK(ecode2)) {
12233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12234 }
12235 arg2 = static_cast< wxFontEncoding >(val2);
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 (arg1)->SetEncoding(arg2);
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 resultobj = SWIG_Py_Void();
12243 return resultobj;
12244 fail:
12245 return NULL;
12246 }
12247
12248
12249 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12250 PyObject *resultobj = 0;
12251 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12252 wxString *arg2 = 0 ;
12253 bool result;
12254 void *argp1 = 0 ;
12255 int res1 = 0 ;
12256 bool temp2 = false ;
12257 PyObject * obj0 = 0 ;
12258 PyObject * obj1 = 0 ;
12259 char * kwnames[] = {
12260 (char *) "self",(char *) "s", NULL
12261 };
12262
12263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12265 if (!SWIG_IsOK(res1)) {
12266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12267 }
12268 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12269 {
12270 arg2 = wxString_in_helper(obj1);
12271 if (arg2 == NULL) SWIG_fail;
12272 temp2 = true;
12273 }
12274 {
12275 PyThreadState* __tstate = wxPyBeginAllowThreads();
12276 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12277 wxPyEndAllowThreads(__tstate);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 }
12280 {
12281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12282 }
12283 {
12284 if (temp2)
12285 delete arg2;
12286 }
12287 return resultobj;
12288 fail:
12289 {
12290 if (temp2)
12291 delete arg2;
12292 }
12293 return NULL;
12294 }
12295
12296
12297 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12298 PyObject *resultobj = 0;
12299 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12300 wxString result;
12301 void *argp1 = 0 ;
12302 int res1 = 0 ;
12303 PyObject *swig_obj[1] ;
12304
12305 if (!args) SWIG_fail;
12306 swig_obj[0] = args;
12307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12308 if (!SWIG_IsOK(res1)) {
12309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12310 }
12311 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12312 {
12313 PyThreadState* __tstate = wxPyBeginAllowThreads();
12314 result = ((wxNativeFontInfo const *)arg1)->ToString();
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 {
12319 #if wxUSE_UNICODE
12320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12321 #else
12322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12323 #endif
12324 }
12325 return resultobj;
12326 fail:
12327 return NULL;
12328 }
12329
12330
12331 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 wxString result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12344 }
12345 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = wxNativeFontInfo___str__(arg1);
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 {
12353 #if wxUSE_UNICODE
12354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12355 #else
12356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12357 #endif
12358 }
12359 return resultobj;
12360 fail:
12361 return NULL;
12362 }
12363
12364
12365 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12366 PyObject *resultobj = 0;
12367 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12368 wxString *arg2 = 0 ;
12369 bool result;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 bool temp2 = false ;
12373 PyObject * obj0 = 0 ;
12374 PyObject * obj1 = 0 ;
12375 char * kwnames[] = {
12376 (char *) "self",(char *) "s", NULL
12377 };
12378
12379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12381 if (!SWIG_IsOK(res1)) {
12382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12383 }
12384 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12385 {
12386 arg2 = wxString_in_helper(obj1);
12387 if (arg2 == NULL) SWIG_fail;
12388 temp2 = true;
12389 }
12390 {
12391 PyThreadState* __tstate = wxPyBeginAllowThreads();
12392 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12398 }
12399 {
12400 if (temp2)
12401 delete arg2;
12402 }
12403 return resultobj;
12404 fail:
12405 {
12406 if (temp2)
12407 delete arg2;
12408 }
12409 return NULL;
12410 }
12411
12412
12413 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12414 PyObject *resultobj = 0;
12415 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12416 wxString result;
12417 void *argp1 = 0 ;
12418 int res1 = 0 ;
12419 PyObject *swig_obj[1] ;
12420
12421 if (!args) SWIG_fail;
12422 swig_obj[0] = args;
12423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12424 if (!SWIG_IsOK(res1)) {
12425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12426 }
12427 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
12434 {
12435 #if wxUSE_UNICODE
12436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12437 #else
12438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12439 #endif
12440 }
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *obj;
12449 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12450 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12451 return SWIG_Py_Void();
12452 }
12453
12454 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12455 return SWIG_Python_InitShadowInstance(args);
12456 }
12457
12458 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12459 PyObject *resultobj = 0;
12460 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12461 wxString *arg2 = (wxString *) 0 ;
12462 void *argp1 = 0 ;
12463 int res1 = 0 ;
12464 bool temp2 = false ;
12465 PyObject *swig_obj[2] ;
12466
12467 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12469 if (!SWIG_IsOK(res1)) {
12470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12471 }
12472 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12473 {
12474 arg2 = wxString_in_helper(swig_obj[1]);
12475 if (arg2 == NULL) SWIG_fail;
12476 temp2 = true;
12477 }
12478 if (arg1) (arg1)->facename = *arg2;
12479
12480 resultobj = SWIG_Py_Void();
12481 {
12482 if (temp2)
12483 delete arg2;
12484 }
12485 return resultobj;
12486 fail:
12487 {
12488 if (temp2)
12489 delete arg2;
12490 }
12491 return NULL;
12492 }
12493
12494
12495 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12496 PyObject *resultobj = 0;
12497 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12498 wxString *result = 0 ;
12499 void *argp1 = 0 ;
12500 int res1 = 0 ;
12501 PyObject *swig_obj[1] ;
12502
12503 if (!args) SWIG_fail;
12504 swig_obj[0] = args;
12505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12506 if (!SWIG_IsOK(res1)) {
12507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12508 }
12509 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12510 result = (wxString *)& ((arg1)->facename);
12511 {
12512 #if wxUSE_UNICODE
12513 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12514 #else
12515 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12516 #endif
12517 }
12518 return resultobj;
12519 fail:
12520 return NULL;
12521 }
12522
12523
12524 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12525 PyObject *resultobj = 0;
12526 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12527 wxFontEncoding arg2 ;
12528 void *argp1 = 0 ;
12529 int res1 = 0 ;
12530 int val2 ;
12531 int ecode2 = 0 ;
12532 PyObject *swig_obj[2] ;
12533
12534 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12536 if (!SWIG_IsOK(res1)) {
12537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12538 }
12539 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12540 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12541 if (!SWIG_IsOK(ecode2)) {
12542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12543 }
12544 arg2 = static_cast< wxFontEncoding >(val2);
12545 if (arg1) (arg1)->encoding = arg2;
12546
12547 resultobj = SWIG_Py_Void();
12548 return resultobj;
12549 fail:
12550 return NULL;
12551 }
12552
12553
12554 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12555 PyObject *resultobj = 0;
12556 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12557 wxFontEncoding result;
12558 void *argp1 = 0 ;
12559 int res1 = 0 ;
12560 PyObject *swig_obj[1] ;
12561
12562 if (!args) SWIG_fail;
12563 swig_obj[0] = args;
12564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12567 }
12568 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12569 result = (wxFontEncoding) ((arg1)->encoding);
12570 resultobj = SWIG_From_int(static_cast< int >(result));
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12578 PyObject *resultobj = 0;
12579 wxNativeEncodingInfo *result = 0 ;
12580
12581 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12596 PyObject *resultobj = 0;
12597 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12598 void *argp1 = 0 ;
12599 int res1 = 0 ;
12600 PyObject *swig_obj[1] ;
12601
12602 if (!args) SWIG_fail;
12603 swig_obj[0] = args;
12604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12605 if (!SWIG_IsOK(res1)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12607 }
12608 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 delete arg1;
12612
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 resultobj = SWIG_Py_Void();
12617 return resultobj;
12618 fail:
12619 return NULL;
12620 }
12621
12622
12623 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12624 PyObject *resultobj = 0;
12625 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12626 wxString *arg2 = 0 ;
12627 bool result;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 bool temp2 = false ;
12631 PyObject * obj0 = 0 ;
12632 PyObject * obj1 = 0 ;
12633 char * kwnames[] = {
12634 (char *) "self",(char *) "s", NULL
12635 };
12636
12637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12639 if (!SWIG_IsOK(res1)) {
12640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12641 }
12642 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12643 {
12644 arg2 = wxString_in_helper(obj1);
12645 if (arg2 == NULL) SWIG_fail;
12646 temp2 = true;
12647 }
12648 {
12649 PyThreadState* __tstate = wxPyBeginAllowThreads();
12650 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12651 wxPyEndAllowThreads(__tstate);
12652 if (PyErr_Occurred()) SWIG_fail;
12653 }
12654 {
12655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12656 }
12657 {
12658 if (temp2)
12659 delete arg2;
12660 }
12661 return resultobj;
12662 fail:
12663 {
12664 if (temp2)
12665 delete arg2;
12666 }
12667 return NULL;
12668 }
12669
12670
12671 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12672 PyObject *resultobj = 0;
12673 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12674 wxString result;
12675 void *argp1 = 0 ;
12676 int res1 = 0 ;
12677 PyObject *swig_obj[1] ;
12678
12679 if (!args) SWIG_fail;
12680 swig_obj[0] = args;
12681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12682 if (!SWIG_IsOK(res1)) {
12683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12684 }
12685 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 {
12693 #if wxUSE_UNICODE
12694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12695 #else
12696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12697 #endif
12698 }
12699 return resultobj;
12700 fail:
12701 return NULL;
12702 }
12703
12704
12705 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12706 PyObject *obj;
12707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12708 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12709 return SWIG_Py_Void();
12710 }
12711
12712 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12713 return SWIG_Python_InitShadowInstance(args);
12714 }
12715
12716 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12717 PyObject *resultobj = 0;
12718 wxFontEncoding arg1 ;
12719 wxNativeEncodingInfo *result = 0 ;
12720 int val1 ;
12721 int ecode1 = 0 ;
12722 PyObject * obj0 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "encoding", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12728 ecode1 = SWIG_AsVal_int(obj0, &val1);
12729 if (!SWIG_IsOK(ecode1)) {
12730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12731 }
12732 arg1 = static_cast< wxFontEncoding >(val1);
12733 {
12734 PyThreadState* __tstate = wxPyBeginAllowThreads();
12735 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12736 wxPyEndAllowThreads(__tstate);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12740 return resultobj;
12741 fail:
12742 return NULL;
12743 }
12744
12745
12746 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj = 0;
12748 wxNativeEncodingInfo *arg1 = 0 ;
12749 bool result;
12750 void *argp1 = 0 ;
12751 int res1 = 0 ;
12752 PyObject * obj0 = 0 ;
12753 char * kwnames[] = {
12754 (char *) "info", NULL
12755 };
12756
12757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12758 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12759 if (!SWIG_IsOK(res1)) {
12760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12761 }
12762 if (!argp1) {
12763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12764 }
12765 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12766 {
12767 PyThreadState* __tstate = wxPyBeginAllowThreads();
12768 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 {
12773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12774 }
12775 return resultobj;
12776 fail:
12777 return NULL;
12778 }
12779
12780
12781 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12782 PyObject *resultobj = 0;
12783 wxFontMapper *result = 0 ;
12784
12785 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (wxFontMapper *)new wxFontMapper();
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12793 return resultobj;
12794 fail:
12795 return NULL;
12796 }
12797
12798
12799 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12800 PyObject *resultobj = 0;
12801 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 PyObject *swig_obj[1] ;
12805
12806 if (!args) SWIG_fail;
12807 swig_obj[0] = args;
12808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12809 if (!SWIG_IsOK(res1)) {
12810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12811 }
12812 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 delete arg1;
12816
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 resultobj = SWIG_Py_Void();
12821 return resultobj;
12822 fail:
12823 return NULL;
12824 }
12825
12826
12827 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12828 PyObject *resultobj = 0;
12829 wxFontMapper *result = 0 ;
12830
12831 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 result = (wxFontMapper *)wxFontMapper::Get();
12835 wxPyEndAllowThreads(__tstate);
12836 if (PyErr_Occurred()) SWIG_fail;
12837 }
12838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12839 return resultobj;
12840 fail:
12841 return NULL;
12842 }
12843
12844
12845 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12846 PyObject *resultobj = 0;
12847 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12848 wxFontMapper *result = 0 ;
12849 void *argp1 = 0 ;
12850 int res1 = 0 ;
12851 PyObject * obj0 = 0 ;
12852 char * kwnames[] = {
12853 (char *) "mapper", NULL
12854 };
12855
12856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12858 if (!SWIG_IsOK(res1)) {
12859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12860 }
12861 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12862 {
12863 PyThreadState* __tstate = wxPyBeginAllowThreads();
12864 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12869 return resultobj;
12870 fail:
12871 return NULL;
12872 }
12873
12874
12875 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12876 PyObject *resultobj = 0;
12877 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12878 wxString *arg2 = 0 ;
12879 bool arg3 = (bool) true ;
12880 wxFontEncoding result;
12881 void *argp1 = 0 ;
12882 int res1 = 0 ;
12883 bool temp2 = false ;
12884 bool val3 ;
12885 int ecode3 = 0 ;
12886 PyObject * obj0 = 0 ;
12887 PyObject * obj1 = 0 ;
12888 PyObject * obj2 = 0 ;
12889 char * kwnames[] = {
12890 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12891 };
12892
12893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12895 if (!SWIG_IsOK(res1)) {
12896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12897 }
12898 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12899 {
12900 arg2 = wxString_in_helper(obj1);
12901 if (arg2 == NULL) SWIG_fail;
12902 temp2 = true;
12903 }
12904 if (obj2) {
12905 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12906 if (!SWIG_IsOK(ecode3)) {
12907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12908 }
12909 arg3 = static_cast< bool >(val3);
12910 }
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 resultobj = SWIG_From_int(static_cast< int >(result));
12918 {
12919 if (temp2)
12920 delete arg2;
12921 }
12922 return resultobj;
12923 fail:
12924 {
12925 if (temp2)
12926 delete arg2;
12927 }
12928 return NULL;
12929 }
12930
12931
12932 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12933 PyObject *resultobj = 0;
12934 size_t result;
12935
12936 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12944 return resultobj;
12945 fail:
12946 return NULL;
12947 }
12948
12949
12950 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12951 PyObject *resultobj = 0;
12952 size_t arg1 ;
12953 wxFontEncoding result;
12954 size_t val1 ;
12955 int ecode1 = 0 ;
12956 PyObject * obj0 = 0 ;
12957 char * kwnames[] = {
12958 (char *) "n", NULL
12959 };
12960
12961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12962 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12963 if (!SWIG_IsOK(ecode1)) {
12964 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12965 }
12966 arg1 = static_cast< size_t >(val1);
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 resultobj = SWIG_From_int(static_cast< int >(result));
12974 return resultobj;
12975 fail:
12976 return NULL;
12977 }
12978
12979
12980 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj = 0;
12982 wxFontEncoding arg1 ;
12983 wxString result;
12984 int val1 ;
12985 int ecode1 = 0 ;
12986 PyObject * obj0 = 0 ;
12987 char * kwnames[] = {
12988 (char *) "encoding", NULL
12989 };
12990
12991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12992 ecode1 = SWIG_AsVal_int(obj0, &val1);
12993 if (!SWIG_IsOK(ecode1)) {
12994 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12995 }
12996 arg1 = static_cast< wxFontEncoding >(val1);
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 result = wxFontMapper::GetEncodingName(arg1);
13000 wxPyEndAllowThreads(__tstate);
13001 if (PyErr_Occurred()) SWIG_fail;
13002 }
13003 {
13004 #if wxUSE_UNICODE
13005 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13006 #else
13007 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13008 #endif
13009 }
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj = 0;
13018 wxFontEncoding arg1 ;
13019 wxString result;
13020 int val1 ;
13021 int ecode1 = 0 ;
13022 PyObject * obj0 = 0 ;
13023 char * kwnames[] = {
13024 (char *) "encoding", NULL
13025 };
13026
13027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13028 ecode1 = SWIG_AsVal_int(obj0, &val1);
13029 if (!SWIG_IsOK(ecode1)) {
13030 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13031 }
13032 arg1 = static_cast< wxFontEncoding >(val1);
13033 {
13034 PyThreadState* __tstate = wxPyBeginAllowThreads();
13035 result = wxFontMapper::GetEncodingDescription(arg1);
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 {
13040 #if wxUSE_UNICODE
13041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13042 #else
13043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13044 #endif
13045 }
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj = 0;
13054 wxString *arg1 = 0 ;
13055 wxFontEncoding result;
13056 bool temp1 = false ;
13057 PyObject * obj0 = 0 ;
13058 char * kwnames[] = {
13059 (char *) "name", NULL
13060 };
13061
13062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13063 {
13064 arg1 = wxString_in_helper(obj0);
13065 if (arg1 == NULL) SWIG_fail;
13066 temp1 = true;
13067 }
13068 {
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 resultobj = SWIG_From_int(static_cast< int >(result));
13075 {
13076 if (temp1)
13077 delete arg1;
13078 }
13079 return resultobj;
13080 fail:
13081 {
13082 if (temp1)
13083 delete arg1;
13084 }
13085 return NULL;
13086 }
13087
13088
13089 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13090 PyObject *resultobj = 0;
13091 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13092 wxString *arg2 = 0 ;
13093 void *argp1 = 0 ;
13094 int res1 = 0 ;
13095 bool temp2 = false ;
13096 PyObject * obj0 = 0 ;
13097 PyObject * obj1 = 0 ;
13098 char * kwnames[] = {
13099 (char *) "self",(char *) "prefix", NULL
13100 };
13101
13102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13104 if (!SWIG_IsOK(res1)) {
13105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13106 }
13107 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13108 {
13109 arg2 = wxString_in_helper(obj1);
13110 if (arg2 == NULL) SWIG_fail;
13111 temp2 = true;
13112 }
13113 {
13114 PyThreadState* __tstate = wxPyBeginAllowThreads();
13115 (arg1)->SetConfigPath((wxString const &)*arg2);
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 resultobj = SWIG_Py_Void();
13120 {
13121 if (temp2)
13122 delete arg2;
13123 }
13124 return resultobj;
13125 fail:
13126 {
13127 if (temp2)
13128 delete arg2;
13129 }
13130 return NULL;
13131 }
13132
13133
13134 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13135 PyObject *resultobj = 0;
13136 wxString result;
13137
13138 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 result = wxFontMapper::GetDefaultConfigPath();
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 *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13159 PyObject *resultobj = 0;
13160 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13161 wxFontEncoding arg2 ;
13162 wxString const &arg3_defvalue = wxPyEmptyString ;
13163 wxString *arg3 = (wxString *) &arg3_defvalue ;
13164 bool arg4 = (bool) true ;
13165 PyObject *result = 0 ;
13166 void *argp1 = 0 ;
13167 int res1 = 0 ;
13168 int val2 ;
13169 int ecode2 = 0 ;
13170 bool temp3 = false ;
13171 bool val4 ;
13172 int ecode4 = 0 ;
13173 PyObject * obj0 = 0 ;
13174 PyObject * obj1 = 0 ;
13175 PyObject * obj2 = 0 ;
13176 PyObject * obj3 = 0 ;
13177 char * kwnames[] = {
13178 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13179 };
13180
13181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13183 if (!SWIG_IsOK(res1)) {
13184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13185 }
13186 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13187 ecode2 = SWIG_AsVal_int(obj1, &val2);
13188 if (!SWIG_IsOK(ecode2)) {
13189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13190 }
13191 arg2 = static_cast< wxFontEncoding >(val2);
13192 if (obj2) {
13193 {
13194 arg3 = wxString_in_helper(obj2);
13195 if (arg3 == NULL) SWIG_fail;
13196 temp3 = true;
13197 }
13198 }
13199 if (obj3) {
13200 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13201 if (!SWIG_IsOK(ecode4)) {
13202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13203 }
13204 arg4 = static_cast< bool >(val4);
13205 }
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 resultobj = result;
13213 {
13214 if (temp3)
13215 delete arg3;
13216 }
13217 return resultobj;
13218 fail:
13219 {
13220 if (temp3)
13221 delete arg3;
13222 }
13223 return NULL;
13224 }
13225
13226
13227 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13230 wxFontEncoding arg2 ;
13231 wxString const &arg3_defvalue = wxPyEmptyString ;
13232 wxString *arg3 = (wxString *) &arg3_defvalue ;
13233 bool result;
13234 void *argp1 = 0 ;
13235 int res1 = 0 ;
13236 int val2 ;
13237 int ecode2 = 0 ;
13238 bool temp3 = false ;
13239 PyObject * obj0 = 0 ;
13240 PyObject * obj1 = 0 ;
13241 PyObject * obj2 = 0 ;
13242 char * kwnames[] = {
13243 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13244 };
13245
13246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13248 if (!SWIG_IsOK(res1)) {
13249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13250 }
13251 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13252 ecode2 = SWIG_AsVal_int(obj1, &val2);
13253 if (!SWIG_IsOK(ecode2)) {
13254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13255 }
13256 arg2 = static_cast< wxFontEncoding >(val2);
13257 if (obj2) {
13258 {
13259 arg3 = wxString_in_helper(obj2);
13260 if (arg3 == NULL) SWIG_fail;
13261 temp3 = true;
13262 }
13263 }
13264 {
13265 PyThreadState* __tstate = wxPyBeginAllowThreads();
13266 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13267 wxPyEndAllowThreads(__tstate);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 }
13270 {
13271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13272 }
13273 {
13274 if (temp3)
13275 delete arg3;
13276 }
13277 return resultobj;
13278 fail:
13279 {
13280 if (temp3)
13281 delete arg3;
13282 }
13283 return NULL;
13284 }
13285
13286
13287 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13288 PyObject *resultobj = 0;
13289 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13290 wxWindow *arg2 = (wxWindow *) 0 ;
13291 void *argp1 = 0 ;
13292 int res1 = 0 ;
13293 void *argp2 = 0 ;
13294 int res2 = 0 ;
13295 PyObject * obj0 = 0 ;
13296 PyObject * obj1 = 0 ;
13297 char * kwnames[] = {
13298 (char *) "self",(char *) "parent", NULL
13299 };
13300
13301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13303 if (!SWIG_IsOK(res1)) {
13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13305 }
13306 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13307 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13308 if (!SWIG_IsOK(res2)) {
13309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13310 }
13311 arg2 = reinterpret_cast< wxWindow * >(argp2);
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 (arg1)->SetDialogParent(arg2);
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 resultobj = SWIG_Py_Void();
13319 return resultobj;
13320 fail:
13321 return NULL;
13322 }
13323
13324
13325 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13326 PyObject *resultobj = 0;
13327 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13328 wxString *arg2 = 0 ;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 bool temp2 = false ;
13332 PyObject * obj0 = 0 ;
13333 PyObject * obj1 = 0 ;
13334 char * kwnames[] = {
13335 (char *) "self",(char *) "title", NULL
13336 };
13337
13338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13340 if (!SWIG_IsOK(res1)) {
13341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13342 }
13343 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13344 {
13345 arg2 = wxString_in_helper(obj1);
13346 if (arg2 == NULL) SWIG_fail;
13347 temp2 = true;
13348 }
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 (arg1)->SetDialogTitle((wxString const &)*arg2);
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 resultobj = SWIG_Py_Void();
13356 {
13357 if (temp2)
13358 delete arg2;
13359 }
13360 return resultobj;
13361 fail:
13362 {
13363 if (temp2)
13364 delete arg2;
13365 }
13366 return NULL;
13367 }
13368
13369
13370 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *obj;
13372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13373 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13374 return SWIG_Py_Void();
13375 }
13376
13377 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13378 return SWIG_Python_InitShadowInstance(args);
13379 }
13380
13381 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13382 PyObject *resultobj = 0;
13383 int arg1 ;
13384 int arg2 ;
13385 int arg3 ;
13386 int arg4 ;
13387 bool arg5 = (bool) false ;
13388 wxString const &arg6_defvalue = wxPyEmptyString ;
13389 wxString *arg6 = (wxString *) &arg6_defvalue ;
13390 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13391 wxFont *result = 0 ;
13392 int val1 ;
13393 int ecode1 = 0 ;
13394 int val2 ;
13395 int ecode2 = 0 ;
13396 int val3 ;
13397 int ecode3 = 0 ;
13398 int val4 ;
13399 int ecode4 = 0 ;
13400 bool val5 ;
13401 int ecode5 = 0 ;
13402 bool temp6 = false ;
13403 int val7 ;
13404 int ecode7 = 0 ;
13405 PyObject * obj0 = 0 ;
13406 PyObject * obj1 = 0 ;
13407 PyObject * obj2 = 0 ;
13408 PyObject * obj3 = 0 ;
13409 PyObject * obj4 = 0 ;
13410 PyObject * obj5 = 0 ;
13411 PyObject * obj6 = 0 ;
13412 char * kwnames[] = {
13413 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13414 };
13415
13416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13417 ecode1 = SWIG_AsVal_int(obj0, &val1);
13418 if (!SWIG_IsOK(ecode1)) {
13419 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13420 }
13421 arg1 = static_cast< int >(val1);
13422 ecode2 = SWIG_AsVal_int(obj1, &val2);
13423 if (!SWIG_IsOK(ecode2)) {
13424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13425 }
13426 arg2 = static_cast< int >(val2);
13427 ecode3 = SWIG_AsVal_int(obj2, &val3);
13428 if (!SWIG_IsOK(ecode3)) {
13429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13430 }
13431 arg3 = static_cast< int >(val3);
13432 ecode4 = SWIG_AsVal_int(obj3, &val4);
13433 if (!SWIG_IsOK(ecode4)) {
13434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13435 }
13436 arg4 = static_cast< int >(val4);
13437 if (obj4) {
13438 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13439 if (!SWIG_IsOK(ecode5)) {
13440 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13441 }
13442 arg5 = static_cast< bool >(val5);
13443 }
13444 if (obj5) {
13445 {
13446 arg6 = wxString_in_helper(obj5);
13447 if (arg6 == NULL) SWIG_fail;
13448 temp6 = true;
13449 }
13450 }
13451 if (obj6) {
13452 ecode7 = SWIG_AsVal_int(obj6, &val7);
13453 if (!SWIG_IsOK(ecode7)) {
13454 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13455 }
13456 arg7 = static_cast< wxFontEncoding >(val7);
13457 }
13458 {
13459 if (!wxPyCheckForApp()) SWIG_fail;
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13466 {
13467 if (temp6)
13468 delete arg6;
13469 }
13470 return resultobj;
13471 fail:
13472 {
13473 if (temp6)
13474 delete arg6;
13475 }
13476 return NULL;
13477 }
13478
13479
13480 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13481 PyObject *resultobj = 0;
13482 wxFont *arg1 = (wxFont *) 0 ;
13483 void *argp1 = 0 ;
13484 int res1 = 0 ;
13485 PyObject *swig_obj[1] ;
13486
13487 if (!args) SWIG_fail;
13488 swig_obj[0] = args;
13489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13490 if (!SWIG_IsOK(res1)) {
13491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13492 }
13493 arg1 = reinterpret_cast< wxFont * >(argp1);
13494 {
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 delete arg1;
13497
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_Py_Void();
13502 return resultobj;
13503 fail:
13504 return NULL;
13505 }
13506
13507
13508 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj = 0;
13510 wxNativeFontInfo *arg1 = 0 ;
13511 wxFont *result = 0 ;
13512 void *argp1 = 0 ;
13513 int res1 = 0 ;
13514 PyObject * obj0 = 0 ;
13515 char * kwnames[] = {
13516 (char *) "info", NULL
13517 };
13518
13519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13520 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13521 if (!SWIG_IsOK(res1)) {
13522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13523 }
13524 if (!argp1) {
13525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13526 }
13527 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13528 {
13529 if (!wxPyCheckForApp()) SWIG_fail;
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj = 0;
13544 wxString *arg1 = 0 ;
13545 wxFont *result = 0 ;
13546 bool temp1 = false ;
13547 PyObject * obj0 = 0 ;
13548 char * kwnames[] = {
13549 (char *) "info", NULL
13550 };
13551
13552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13553 {
13554 arg1 = wxString_in_helper(obj0);
13555 if (arg1 == NULL) SWIG_fail;
13556 temp1 = true;
13557 }
13558 {
13559 if (!wxPyCheckForApp()) SWIG_fail;
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13562 wxPyEndAllowThreads(__tstate);
13563 if (PyErr_Occurred()) SWIG_fail;
13564 }
13565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13566 {
13567 if (temp1)
13568 delete arg1;
13569 }
13570 return resultobj;
13571 fail:
13572 {
13573 if (temp1)
13574 delete arg1;
13575 }
13576 return NULL;
13577 }
13578
13579
13580 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13581 PyObject *resultobj = 0;
13582 int arg1 ;
13583 wxFontFamily arg2 ;
13584 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13585 wxString const &arg4_defvalue = wxPyEmptyString ;
13586 wxString *arg4 = (wxString *) &arg4_defvalue ;
13587 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13588 wxFont *result = 0 ;
13589 int val1 ;
13590 int ecode1 = 0 ;
13591 int val2 ;
13592 int ecode2 = 0 ;
13593 int val3 ;
13594 int ecode3 = 0 ;
13595 bool temp4 = false ;
13596 int val5 ;
13597 int ecode5 = 0 ;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 PyObject * obj2 = 0 ;
13601 PyObject * obj3 = 0 ;
13602 PyObject * obj4 = 0 ;
13603 char * kwnames[] = {
13604 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13605 };
13606
13607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13608 ecode1 = SWIG_AsVal_int(obj0, &val1);
13609 if (!SWIG_IsOK(ecode1)) {
13610 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13611 }
13612 arg1 = static_cast< int >(val1);
13613 ecode2 = SWIG_AsVal_int(obj1, &val2);
13614 if (!SWIG_IsOK(ecode2)) {
13615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13616 }
13617 arg2 = static_cast< wxFontFamily >(val2);
13618 if (obj2) {
13619 ecode3 = SWIG_AsVal_int(obj2, &val3);
13620 if (!SWIG_IsOK(ecode3)) {
13621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13622 }
13623 arg3 = static_cast< int >(val3);
13624 }
13625 if (obj3) {
13626 {
13627 arg4 = wxString_in_helper(obj3);
13628 if (arg4 == NULL) SWIG_fail;
13629 temp4 = true;
13630 }
13631 }
13632 if (obj4) {
13633 ecode5 = SWIG_AsVal_int(obj4, &val5);
13634 if (!SWIG_IsOK(ecode5)) {
13635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13636 }
13637 arg5 = static_cast< wxFontEncoding >(val5);
13638 }
13639 {
13640 if (!wxPyCheckForApp()) SWIG_fail;
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13643 wxPyEndAllowThreads(__tstate);
13644 if (PyErr_Occurred()) SWIG_fail;
13645 }
13646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13647 {
13648 if (temp4)
13649 delete arg4;
13650 }
13651 return resultobj;
13652 fail:
13653 {
13654 if (temp4)
13655 delete arg4;
13656 }
13657 return NULL;
13658 }
13659
13660
13661 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13662 PyObject *resultobj = 0;
13663 wxSize *arg1 = 0 ;
13664 int arg2 ;
13665 int arg3 ;
13666 int arg4 ;
13667 bool arg5 = (bool) false ;
13668 wxString const &arg6_defvalue = wxEmptyString ;
13669 wxString *arg6 = (wxString *) &arg6_defvalue ;
13670 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13671 wxFont *result = 0 ;
13672 wxSize temp1 ;
13673 int val2 ;
13674 int ecode2 = 0 ;
13675 int val3 ;
13676 int ecode3 = 0 ;
13677 int val4 ;
13678 int ecode4 = 0 ;
13679 bool val5 ;
13680 int ecode5 = 0 ;
13681 bool temp6 = false ;
13682 int val7 ;
13683 int ecode7 = 0 ;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 PyObject * obj2 = 0 ;
13687 PyObject * obj3 = 0 ;
13688 PyObject * obj4 = 0 ;
13689 PyObject * obj5 = 0 ;
13690 PyObject * obj6 = 0 ;
13691 char * kwnames[] = {
13692 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13693 };
13694
13695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13696 {
13697 arg1 = &temp1;
13698 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13699 }
13700 ecode2 = SWIG_AsVal_int(obj1, &val2);
13701 if (!SWIG_IsOK(ecode2)) {
13702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13703 }
13704 arg2 = static_cast< int >(val2);
13705 ecode3 = SWIG_AsVal_int(obj2, &val3);
13706 if (!SWIG_IsOK(ecode3)) {
13707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13708 }
13709 arg3 = static_cast< int >(val3);
13710 ecode4 = SWIG_AsVal_int(obj3, &val4);
13711 if (!SWIG_IsOK(ecode4)) {
13712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13713 }
13714 arg4 = static_cast< int >(val4);
13715 if (obj4) {
13716 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13717 if (!SWIG_IsOK(ecode5)) {
13718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13719 }
13720 arg5 = static_cast< bool >(val5);
13721 }
13722 if (obj5) {
13723 {
13724 arg6 = wxString_in_helper(obj5);
13725 if (arg6 == NULL) SWIG_fail;
13726 temp6 = true;
13727 }
13728 }
13729 if (obj6) {
13730 ecode7 = SWIG_AsVal_int(obj6, &val7);
13731 if (!SWIG_IsOK(ecode7)) {
13732 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13733 }
13734 arg7 = static_cast< wxFontEncoding >(val7);
13735 }
13736 {
13737 if (!wxPyCheckForApp()) SWIG_fail;
13738 PyThreadState* __tstate = wxPyBeginAllowThreads();
13739 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13740 wxPyEndAllowThreads(__tstate);
13741 if (PyErr_Occurred()) SWIG_fail;
13742 }
13743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13744 {
13745 if (temp6)
13746 delete arg6;
13747 }
13748 return resultobj;
13749 fail:
13750 {
13751 if (temp6)
13752 delete arg6;
13753 }
13754 return NULL;
13755 }
13756
13757
13758 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13759 PyObject *resultobj = 0;
13760 wxSize *arg1 = 0 ;
13761 wxFontFamily arg2 ;
13762 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13763 wxString const &arg4_defvalue = wxEmptyString ;
13764 wxString *arg4 = (wxString *) &arg4_defvalue ;
13765 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13766 wxFont *result = 0 ;
13767 wxSize temp1 ;
13768 int val2 ;
13769 int ecode2 = 0 ;
13770 int val3 ;
13771 int ecode3 = 0 ;
13772 bool temp4 = false ;
13773 int val5 ;
13774 int ecode5 = 0 ;
13775 PyObject * obj0 = 0 ;
13776 PyObject * obj1 = 0 ;
13777 PyObject * obj2 = 0 ;
13778 PyObject * obj3 = 0 ;
13779 PyObject * obj4 = 0 ;
13780 char * kwnames[] = {
13781 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13782 };
13783
13784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13785 {
13786 arg1 = &temp1;
13787 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13788 }
13789 ecode2 = SWIG_AsVal_int(obj1, &val2);
13790 if (!SWIG_IsOK(ecode2)) {
13791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13792 }
13793 arg2 = static_cast< wxFontFamily >(val2);
13794 if (obj2) {
13795 ecode3 = SWIG_AsVal_int(obj2, &val3);
13796 if (!SWIG_IsOK(ecode3)) {
13797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13798 }
13799 arg3 = static_cast< int >(val3);
13800 }
13801 if (obj3) {
13802 {
13803 arg4 = wxString_in_helper(obj3);
13804 if (arg4 == NULL) SWIG_fail;
13805 temp4 = true;
13806 }
13807 }
13808 if (obj4) {
13809 ecode5 = SWIG_AsVal_int(obj4, &val5);
13810 if (!SWIG_IsOK(ecode5)) {
13811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13812 }
13813 arg5 = static_cast< wxFontEncoding >(val5);
13814 }
13815 {
13816 if (!wxPyCheckForApp()) SWIG_fail;
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13819 wxPyEndAllowThreads(__tstate);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13823 {
13824 if (temp4)
13825 delete arg4;
13826 }
13827 return resultobj;
13828 fail:
13829 {
13830 if (temp4)
13831 delete arg4;
13832 }
13833 return NULL;
13834 }
13835
13836
13837 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13838 PyObject *resultobj = 0;
13839 wxFont *arg1 = (wxFont *) 0 ;
13840 bool result;
13841 void *argp1 = 0 ;
13842 int res1 = 0 ;
13843 PyObject *swig_obj[1] ;
13844
13845 if (!args) SWIG_fail;
13846 swig_obj[0] = args;
13847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13848 if (!SWIG_IsOK(res1)) {
13849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13850 }
13851 arg1 = reinterpret_cast< wxFont * >(argp1);
13852 {
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = (bool)((wxFont const *)arg1)->Ok();
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 {
13859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13860 }
13861 return resultobj;
13862 fail:
13863 return NULL;
13864 }
13865
13866
13867 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13868 PyObject *resultobj = 0;
13869 wxFont *arg1 = (wxFont *) 0 ;
13870 wxFont *arg2 = (wxFont *) 0 ;
13871 bool result;
13872 void *argp1 = 0 ;
13873 int res1 = 0 ;
13874 void *argp2 = 0 ;
13875 int res2 = 0 ;
13876 PyObject * obj0 = 0 ;
13877 PyObject * obj1 = 0 ;
13878 char * kwnames[] = {
13879 (char *) "self",(char *) "other", NULL
13880 };
13881
13882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13884 if (!SWIG_IsOK(res1)) {
13885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13886 }
13887 arg1 = reinterpret_cast< wxFont * >(argp1);
13888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13889 if (!SWIG_IsOK(res2)) {
13890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13891 }
13892 arg2 = reinterpret_cast< wxFont * >(argp2);
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13896 wxPyEndAllowThreads(__tstate);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 {
13900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13901 }
13902 return resultobj;
13903 fail:
13904 return NULL;
13905 }
13906
13907
13908 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13909 PyObject *resultobj = 0;
13910 wxFont *arg1 = (wxFont *) 0 ;
13911 wxFont *arg2 = (wxFont *) 0 ;
13912 bool result;
13913 void *argp1 = 0 ;
13914 int res1 = 0 ;
13915 void *argp2 = 0 ;
13916 int res2 = 0 ;
13917 PyObject * obj0 = 0 ;
13918 PyObject * obj1 = 0 ;
13919 char * kwnames[] = {
13920 (char *) "self",(char *) "other", NULL
13921 };
13922
13923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13925 if (!SWIG_IsOK(res1)) {
13926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13927 }
13928 arg1 = reinterpret_cast< wxFont * >(argp1);
13929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13930 if (!SWIG_IsOK(res2)) {
13931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13932 }
13933 arg2 = reinterpret_cast< wxFont * >(argp2);
13934 {
13935 PyThreadState* __tstate = wxPyBeginAllowThreads();
13936 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 {
13941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13942 }
13943 return resultobj;
13944 fail:
13945 return NULL;
13946 }
13947
13948
13949 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13950 PyObject *resultobj = 0;
13951 wxFont *arg1 = (wxFont *) 0 ;
13952 int result;
13953 void *argp1 = 0 ;
13954 int res1 = 0 ;
13955 PyObject *swig_obj[1] ;
13956
13957 if (!args) SWIG_fail;
13958 swig_obj[0] = args;
13959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13960 if (!SWIG_IsOK(res1)) {
13961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13962 }
13963 arg1 = reinterpret_cast< wxFont * >(argp1);
13964 {
13965 PyThreadState* __tstate = wxPyBeginAllowThreads();
13966 result = (int)((wxFont const *)arg1)->GetPointSize();
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 resultobj = SWIG_From_int(static_cast< int >(result));
13971 return resultobj;
13972 fail:
13973 return NULL;
13974 }
13975
13976
13977 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13978 PyObject *resultobj = 0;
13979 wxFont *arg1 = (wxFont *) 0 ;
13980 wxSize result;
13981 void *argp1 = 0 ;
13982 int res1 = 0 ;
13983 PyObject *swig_obj[1] ;
13984
13985 if (!args) SWIG_fail;
13986 swig_obj[0] = args;
13987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13988 if (!SWIG_IsOK(res1)) {
13989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13990 }
13991 arg1 = reinterpret_cast< wxFont * >(argp1);
13992 {
13993 PyThreadState* __tstate = wxPyBeginAllowThreads();
13994 result = ((wxFont const *)arg1)->GetPixelSize();
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13999 return resultobj;
14000 fail:
14001 return NULL;
14002 }
14003
14004
14005 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14006 PyObject *resultobj = 0;
14007 wxFont *arg1 = (wxFont *) 0 ;
14008 bool result;
14009 void *argp1 = 0 ;
14010 int res1 = 0 ;
14011 PyObject *swig_obj[1] ;
14012
14013 if (!args) SWIG_fail;
14014 swig_obj[0] = args;
14015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14016 if (!SWIG_IsOK(res1)) {
14017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14018 }
14019 arg1 = reinterpret_cast< wxFont * >(argp1);
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 {
14027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14028 }
14029 return resultobj;
14030 fail:
14031 return NULL;
14032 }
14033
14034
14035 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14036 PyObject *resultobj = 0;
14037 wxFont *arg1 = (wxFont *) 0 ;
14038 int result;
14039 void *argp1 = 0 ;
14040 int res1 = 0 ;
14041 PyObject *swig_obj[1] ;
14042
14043 if (!args) SWIG_fail;
14044 swig_obj[0] = args;
14045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14046 if (!SWIG_IsOK(res1)) {
14047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14048 }
14049 arg1 = reinterpret_cast< wxFont * >(argp1);
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
14052 result = (int)((wxFont const *)arg1)->GetFamily();
14053 wxPyEndAllowThreads(__tstate);
14054 if (PyErr_Occurred()) SWIG_fail;
14055 }
14056 resultobj = SWIG_From_int(static_cast< int >(result));
14057 return resultobj;
14058 fail:
14059 return NULL;
14060 }
14061
14062
14063 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14064 PyObject *resultobj = 0;
14065 wxFont *arg1 = (wxFont *) 0 ;
14066 int result;
14067 void *argp1 = 0 ;
14068 int res1 = 0 ;
14069 PyObject *swig_obj[1] ;
14070
14071 if (!args) SWIG_fail;
14072 swig_obj[0] = args;
14073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14074 if (!SWIG_IsOK(res1)) {
14075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14076 }
14077 arg1 = reinterpret_cast< wxFont * >(argp1);
14078 {
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = (int)((wxFont const *)arg1)->GetStyle();
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 resultobj = SWIG_From_int(static_cast< int >(result));
14085 return resultobj;
14086 fail:
14087 return NULL;
14088 }
14089
14090
14091 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14092 PyObject *resultobj = 0;
14093 wxFont *arg1 = (wxFont *) 0 ;
14094 int result;
14095 void *argp1 = 0 ;
14096 int res1 = 0 ;
14097 PyObject *swig_obj[1] ;
14098
14099 if (!args) SWIG_fail;
14100 swig_obj[0] = args;
14101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14102 if (!SWIG_IsOK(res1)) {
14103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14104 }
14105 arg1 = reinterpret_cast< wxFont * >(argp1);
14106 {
14107 PyThreadState* __tstate = wxPyBeginAllowThreads();
14108 result = (int)((wxFont const *)arg1)->GetWeight();
14109 wxPyEndAllowThreads(__tstate);
14110 if (PyErr_Occurred()) SWIG_fail;
14111 }
14112 resultobj = SWIG_From_int(static_cast< int >(result));
14113 return resultobj;
14114 fail:
14115 return NULL;
14116 }
14117
14118
14119 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14120 PyObject *resultobj = 0;
14121 wxFont *arg1 = (wxFont *) 0 ;
14122 bool result;
14123 void *argp1 = 0 ;
14124 int res1 = 0 ;
14125 PyObject *swig_obj[1] ;
14126
14127 if (!args) SWIG_fail;
14128 swig_obj[0] = args;
14129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14130 if (!SWIG_IsOK(res1)) {
14131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14132 }
14133 arg1 = reinterpret_cast< wxFont * >(argp1);
14134 {
14135 PyThreadState* __tstate = wxPyBeginAllowThreads();
14136 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14137 wxPyEndAllowThreads(__tstate);
14138 if (PyErr_Occurred()) SWIG_fail;
14139 }
14140 {
14141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14142 }
14143 return resultobj;
14144 fail:
14145 return NULL;
14146 }
14147
14148
14149 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14150 PyObject *resultobj = 0;
14151 wxFont *arg1 = (wxFont *) 0 ;
14152 wxString result;
14153 void *argp1 = 0 ;
14154 int res1 = 0 ;
14155 PyObject *swig_obj[1] ;
14156
14157 if (!args) SWIG_fail;
14158 swig_obj[0] = args;
14159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14160 if (!SWIG_IsOK(res1)) {
14161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14162 }
14163 arg1 = reinterpret_cast< wxFont * >(argp1);
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 result = ((wxFont const *)arg1)->GetFaceName();
14167 wxPyEndAllowThreads(__tstate);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 {
14171 #if wxUSE_UNICODE
14172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14173 #else
14174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14175 #endif
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14184 PyObject *resultobj = 0;
14185 wxFont *arg1 = (wxFont *) 0 ;
14186 wxFontEncoding result;
14187 void *argp1 = 0 ;
14188 int res1 = 0 ;
14189 PyObject *swig_obj[1] ;
14190
14191 if (!args) SWIG_fail;
14192 swig_obj[0] = args;
14193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14194 if (!SWIG_IsOK(res1)) {
14195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14196 }
14197 arg1 = reinterpret_cast< wxFont * >(argp1);
14198 {
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 resultobj = SWIG_From_int(static_cast< int >(result));
14205 return resultobj;
14206 fail:
14207 return NULL;
14208 }
14209
14210
14211 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14212 PyObject *resultobj = 0;
14213 wxFont *arg1 = (wxFont *) 0 ;
14214 wxNativeFontInfo *result = 0 ;
14215 void *argp1 = 0 ;
14216 int res1 = 0 ;
14217 PyObject *swig_obj[1] ;
14218
14219 if (!args) SWIG_fail;
14220 swig_obj[0] = args;
14221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14222 if (!SWIG_IsOK(res1)) {
14223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14224 }
14225 arg1 = reinterpret_cast< wxFont * >(argp1);
14226 {
14227 PyThreadState* __tstate = wxPyBeginAllowThreads();
14228 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14229 wxPyEndAllowThreads(__tstate);
14230 if (PyErr_Occurred()) SWIG_fail;
14231 }
14232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14233 return resultobj;
14234 fail:
14235 return NULL;
14236 }
14237
14238
14239 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14240 PyObject *resultobj = 0;
14241 wxFont *arg1 = (wxFont *) 0 ;
14242 bool result;
14243 void *argp1 = 0 ;
14244 int res1 = 0 ;
14245 PyObject *swig_obj[1] ;
14246
14247 if (!args) SWIG_fail;
14248 swig_obj[0] = args;
14249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14250 if (!SWIG_IsOK(res1)) {
14251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14252 }
14253 arg1 = reinterpret_cast< wxFont * >(argp1);
14254 {
14255 PyThreadState* __tstate = wxPyBeginAllowThreads();
14256 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14257 wxPyEndAllowThreads(__tstate);
14258 if (PyErr_Occurred()) SWIG_fail;
14259 }
14260 {
14261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14262 }
14263 return resultobj;
14264 fail:
14265 return NULL;
14266 }
14267
14268
14269 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14270 PyObject *resultobj = 0;
14271 wxFont *arg1 = (wxFont *) 0 ;
14272 wxString result;
14273 void *argp1 = 0 ;
14274 int res1 = 0 ;
14275 PyObject *swig_obj[1] ;
14276
14277 if (!args) SWIG_fail;
14278 swig_obj[0] = args;
14279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14280 if (!SWIG_IsOK(res1)) {
14281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14282 }
14283 arg1 = reinterpret_cast< wxFont * >(argp1);
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 {
14291 #if wxUSE_UNICODE
14292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14293 #else
14294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14295 #endif
14296 }
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14304 PyObject *resultobj = 0;
14305 wxFont *arg1 = (wxFont *) 0 ;
14306 wxString result;
14307 void *argp1 = 0 ;
14308 int res1 = 0 ;
14309 PyObject *swig_obj[1] ;
14310
14311 if (!args) SWIG_fail;
14312 swig_obj[0] = args;
14313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14314 if (!SWIG_IsOK(res1)) {
14315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14316 }
14317 arg1 = reinterpret_cast< wxFont * >(argp1);
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 {
14325 #if wxUSE_UNICODE
14326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14327 #else
14328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14329 #endif
14330 }
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14338 PyObject *resultobj = 0;
14339 wxFont *arg1 = (wxFont *) 0 ;
14340 int arg2 ;
14341 void *argp1 = 0 ;
14342 int res1 = 0 ;
14343 int val2 ;
14344 int ecode2 = 0 ;
14345 PyObject * obj0 = 0 ;
14346 PyObject * obj1 = 0 ;
14347 char * kwnames[] = {
14348 (char *) "self",(char *) "pointSize", NULL
14349 };
14350
14351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14355 }
14356 arg1 = reinterpret_cast< wxFont * >(argp1);
14357 ecode2 = SWIG_AsVal_int(obj1, &val2);
14358 if (!SWIG_IsOK(ecode2)) {
14359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14360 }
14361 arg2 = static_cast< int >(val2);
14362 {
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 (arg1)->SetPointSize(arg2);
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_Py_Void();
14369 return resultobj;
14370 fail:
14371 return NULL;
14372 }
14373
14374
14375 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj = 0;
14377 wxFont *arg1 = (wxFont *) 0 ;
14378 wxSize *arg2 = 0 ;
14379 void *argp1 = 0 ;
14380 int res1 = 0 ;
14381 wxSize temp2 ;
14382 PyObject * obj0 = 0 ;
14383 PyObject * obj1 = 0 ;
14384 char * kwnames[] = {
14385 (char *) "self",(char *) "pixelSize", NULL
14386 };
14387
14388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14390 if (!SWIG_IsOK(res1)) {
14391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14392 }
14393 arg1 = reinterpret_cast< wxFont * >(argp1);
14394 {
14395 arg2 = &temp2;
14396 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14397 }
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 (arg1)->SetPixelSize((wxSize const &)*arg2);
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 resultobj = SWIG_Py_Void();
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj = 0;
14413 wxFont *arg1 = (wxFont *) 0 ;
14414 int arg2 ;
14415 void *argp1 = 0 ;
14416 int res1 = 0 ;
14417 int val2 ;
14418 int ecode2 = 0 ;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char * kwnames[] = {
14422 (char *) "self",(char *) "family", NULL
14423 };
14424
14425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14427 if (!SWIG_IsOK(res1)) {
14428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14429 }
14430 arg1 = reinterpret_cast< wxFont * >(argp1);
14431 ecode2 = SWIG_AsVal_int(obj1, &val2);
14432 if (!SWIG_IsOK(ecode2)) {
14433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14434 }
14435 arg2 = static_cast< int >(val2);
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 (arg1)->SetFamily(arg2);
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = SWIG_Py_Void();
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14450 PyObject *resultobj = 0;
14451 wxFont *arg1 = (wxFont *) 0 ;
14452 int arg2 ;
14453 void *argp1 = 0 ;
14454 int res1 = 0 ;
14455 int val2 ;
14456 int ecode2 = 0 ;
14457 PyObject * obj0 = 0 ;
14458 PyObject * obj1 = 0 ;
14459 char * kwnames[] = {
14460 (char *) "self",(char *) "style", NULL
14461 };
14462
14463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14465 if (!SWIG_IsOK(res1)) {
14466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14467 }
14468 arg1 = reinterpret_cast< wxFont * >(argp1);
14469 ecode2 = SWIG_AsVal_int(obj1, &val2);
14470 if (!SWIG_IsOK(ecode2)) {
14471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14472 }
14473 arg2 = static_cast< int >(val2);
14474 {
14475 PyThreadState* __tstate = wxPyBeginAllowThreads();
14476 (arg1)->SetStyle(arg2);
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 resultobj = SWIG_Py_Void();
14481 return resultobj;
14482 fail:
14483 return NULL;
14484 }
14485
14486
14487 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14488 PyObject *resultobj = 0;
14489 wxFont *arg1 = (wxFont *) 0 ;
14490 int arg2 ;
14491 void *argp1 = 0 ;
14492 int res1 = 0 ;
14493 int val2 ;
14494 int ecode2 = 0 ;
14495 PyObject * obj0 = 0 ;
14496 PyObject * obj1 = 0 ;
14497 char * kwnames[] = {
14498 (char *) "self",(char *) "weight", NULL
14499 };
14500
14501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14503 if (!SWIG_IsOK(res1)) {
14504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14505 }
14506 arg1 = reinterpret_cast< wxFont * >(argp1);
14507 ecode2 = SWIG_AsVal_int(obj1, &val2);
14508 if (!SWIG_IsOK(ecode2)) {
14509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14510 }
14511 arg2 = static_cast< int >(val2);
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 (arg1)->SetWeight(arg2);
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 resultobj = SWIG_Py_Void();
14519 return resultobj;
14520 fail:
14521 return NULL;
14522 }
14523
14524
14525 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14526 PyObject *resultobj = 0;
14527 wxFont *arg1 = (wxFont *) 0 ;
14528 wxString *arg2 = 0 ;
14529 bool result;
14530 void *argp1 = 0 ;
14531 int res1 = 0 ;
14532 bool temp2 = false ;
14533 PyObject * obj0 = 0 ;
14534 PyObject * obj1 = 0 ;
14535 char * kwnames[] = {
14536 (char *) "self",(char *) "faceName", NULL
14537 };
14538
14539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14541 if (!SWIG_IsOK(res1)) {
14542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14543 }
14544 arg1 = reinterpret_cast< wxFont * >(argp1);
14545 {
14546 arg2 = wxString_in_helper(obj1);
14547 if (arg2 == NULL) SWIG_fail;
14548 temp2 = true;
14549 }
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 {
14557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14558 }
14559 {
14560 if (temp2)
14561 delete arg2;
14562 }
14563 return resultobj;
14564 fail:
14565 {
14566 if (temp2)
14567 delete arg2;
14568 }
14569 return NULL;
14570 }
14571
14572
14573 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj = 0;
14575 wxFont *arg1 = (wxFont *) 0 ;
14576 bool arg2 ;
14577 void *argp1 = 0 ;
14578 int res1 = 0 ;
14579 bool val2 ;
14580 int ecode2 = 0 ;
14581 PyObject * obj0 = 0 ;
14582 PyObject * obj1 = 0 ;
14583 char * kwnames[] = {
14584 (char *) "self",(char *) "underlined", NULL
14585 };
14586
14587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14589 if (!SWIG_IsOK(res1)) {
14590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14591 }
14592 arg1 = reinterpret_cast< wxFont * >(argp1);
14593 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14594 if (!SWIG_IsOK(ecode2)) {
14595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14596 }
14597 arg2 = static_cast< bool >(val2);
14598 {
14599 PyThreadState* __tstate = wxPyBeginAllowThreads();
14600 (arg1)->SetUnderlined(arg2);
14601 wxPyEndAllowThreads(__tstate);
14602 if (PyErr_Occurred()) SWIG_fail;
14603 }
14604 resultobj = SWIG_Py_Void();
14605 return resultobj;
14606 fail:
14607 return NULL;
14608 }
14609
14610
14611 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj = 0;
14613 wxFont *arg1 = (wxFont *) 0 ;
14614 wxFontEncoding arg2 ;
14615 void *argp1 = 0 ;
14616 int res1 = 0 ;
14617 int val2 ;
14618 int ecode2 = 0 ;
14619 PyObject * obj0 = 0 ;
14620 PyObject * obj1 = 0 ;
14621 char * kwnames[] = {
14622 (char *) "self",(char *) "encoding", NULL
14623 };
14624
14625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14627 if (!SWIG_IsOK(res1)) {
14628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14629 }
14630 arg1 = reinterpret_cast< wxFont * >(argp1);
14631 ecode2 = SWIG_AsVal_int(obj1, &val2);
14632 if (!SWIG_IsOK(ecode2)) {
14633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14634 }
14635 arg2 = static_cast< wxFontEncoding >(val2);
14636 {
14637 PyThreadState* __tstate = wxPyBeginAllowThreads();
14638 (arg1)->SetEncoding(arg2);
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 resultobj = SWIG_Py_Void();
14643 return resultobj;
14644 fail:
14645 return NULL;
14646 }
14647
14648
14649 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14650 PyObject *resultobj = 0;
14651 wxFont *arg1 = (wxFont *) 0 ;
14652 wxNativeFontInfo *arg2 = 0 ;
14653 void *argp1 = 0 ;
14654 int res1 = 0 ;
14655 void *argp2 = 0 ;
14656 int res2 = 0 ;
14657 PyObject * obj0 = 0 ;
14658 PyObject * obj1 = 0 ;
14659 char * kwnames[] = {
14660 (char *) "self",(char *) "info", NULL
14661 };
14662
14663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14665 if (!SWIG_IsOK(res1)) {
14666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14667 }
14668 arg1 = reinterpret_cast< wxFont * >(argp1);
14669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14670 if (!SWIG_IsOK(res2)) {
14671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14672 }
14673 if (!argp2) {
14674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14675 }
14676 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_Py_Void();
14684 return resultobj;
14685 fail:
14686 return NULL;
14687 }
14688
14689
14690 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj = 0;
14692 wxFont *arg1 = (wxFont *) 0 ;
14693 wxString *arg2 = 0 ;
14694 bool result;
14695 void *argp1 = 0 ;
14696 int res1 = 0 ;
14697 bool temp2 = false ;
14698 PyObject * obj0 = 0 ;
14699 PyObject * obj1 = 0 ;
14700 char * kwnames[] = {
14701 (char *) "self",(char *) "info", NULL
14702 };
14703
14704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14706 if (!SWIG_IsOK(res1)) {
14707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14708 }
14709 arg1 = reinterpret_cast< wxFont * >(argp1);
14710 {
14711 arg2 = wxString_in_helper(obj1);
14712 if (arg2 == NULL) SWIG_fail;
14713 temp2 = true;
14714 }
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 {
14722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14723 }
14724 {
14725 if (temp2)
14726 delete arg2;
14727 }
14728 return resultobj;
14729 fail:
14730 {
14731 if (temp2)
14732 delete arg2;
14733 }
14734 return NULL;
14735 }
14736
14737
14738 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14739 PyObject *resultobj = 0;
14740 wxFont *arg1 = (wxFont *) 0 ;
14741 wxString *arg2 = 0 ;
14742 bool result;
14743 void *argp1 = 0 ;
14744 int res1 = 0 ;
14745 bool temp2 = false ;
14746 PyObject * obj0 = 0 ;
14747 PyObject * obj1 = 0 ;
14748 char * kwnames[] = {
14749 (char *) "self",(char *) "info", NULL
14750 };
14751
14752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14754 if (!SWIG_IsOK(res1)) {
14755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14756 }
14757 arg1 = reinterpret_cast< wxFont * >(argp1);
14758 {
14759 arg2 = wxString_in_helper(obj1);
14760 if (arg2 == NULL) SWIG_fail;
14761 temp2 = true;
14762 }
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 {
14770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14771 }
14772 {
14773 if (temp2)
14774 delete arg2;
14775 }
14776 return resultobj;
14777 fail:
14778 {
14779 if (temp2)
14780 delete arg2;
14781 }
14782 return NULL;
14783 }
14784
14785
14786 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14787 PyObject *resultobj = 0;
14788 wxFont *arg1 = (wxFont *) 0 ;
14789 wxString result;
14790 void *argp1 = 0 ;
14791 int res1 = 0 ;
14792 PyObject *swig_obj[1] ;
14793
14794 if (!args) SWIG_fail;
14795 swig_obj[0] = args;
14796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14797 if (!SWIG_IsOK(res1)) {
14798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14799 }
14800 arg1 = reinterpret_cast< wxFont * >(argp1);
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 result = ((wxFont const *)arg1)->GetFamilyString();
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 {
14808 #if wxUSE_UNICODE
14809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14810 #else
14811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14812 #endif
14813 }
14814 return resultobj;
14815 fail:
14816 return NULL;
14817 }
14818
14819
14820 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14821 PyObject *resultobj = 0;
14822 wxFont *arg1 = (wxFont *) 0 ;
14823 wxString result;
14824 void *argp1 = 0 ;
14825 int res1 = 0 ;
14826 PyObject *swig_obj[1] ;
14827
14828 if (!args) SWIG_fail;
14829 swig_obj[0] = args;
14830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14831 if (!SWIG_IsOK(res1)) {
14832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14833 }
14834 arg1 = reinterpret_cast< wxFont * >(argp1);
14835 {
14836 PyThreadState* __tstate = wxPyBeginAllowThreads();
14837 result = ((wxFont const *)arg1)->GetStyleString();
14838 wxPyEndAllowThreads(__tstate);
14839 if (PyErr_Occurred()) SWIG_fail;
14840 }
14841 {
14842 #if wxUSE_UNICODE
14843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14844 #else
14845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14846 #endif
14847 }
14848 return resultobj;
14849 fail:
14850 return NULL;
14851 }
14852
14853
14854 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14855 PyObject *resultobj = 0;
14856 wxFont *arg1 = (wxFont *) 0 ;
14857 wxString result;
14858 void *argp1 = 0 ;
14859 int res1 = 0 ;
14860 PyObject *swig_obj[1] ;
14861
14862 if (!args) SWIG_fail;
14863 swig_obj[0] = args;
14864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14865 if (!SWIG_IsOK(res1)) {
14866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14867 }
14868 arg1 = reinterpret_cast< wxFont * >(argp1);
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = ((wxFont const *)arg1)->GetWeightString();
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 {
14876 #if wxUSE_UNICODE
14877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14878 #else
14879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14880 #endif
14881 }
14882 return resultobj;
14883 fail:
14884 return NULL;
14885 }
14886
14887
14888 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj = 0;
14890 wxFont *arg1 = (wxFont *) 0 ;
14891 bool arg2 = (bool) true ;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 bool val2 ;
14895 int ecode2 = 0 ;
14896 PyObject * obj0 = 0 ;
14897 PyObject * obj1 = 0 ;
14898 char * kwnames[] = {
14899 (char *) "self",(char *) "no", NULL
14900 };
14901
14902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14906 }
14907 arg1 = reinterpret_cast< wxFont * >(argp1);
14908 if (obj1) {
14909 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14910 if (!SWIG_IsOK(ecode2)) {
14911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14912 }
14913 arg2 = static_cast< bool >(val2);
14914 }
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 (arg1)->SetNoAntiAliasing(arg2);
14918 wxPyEndAllowThreads(__tstate);
14919 if (PyErr_Occurred()) SWIG_fail;
14920 }
14921 resultobj = SWIG_Py_Void();
14922 return resultobj;
14923 fail:
14924 return NULL;
14925 }
14926
14927
14928 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14929 PyObject *resultobj = 0;
14930 wxFont *arg1 = (wxFont *) 0 ;
14931 bool result;
14932 void *argp1 = 0 ;
14933 int res1 = 0 ;
14934 PyObject *swig_obj[1] ;
14935
14936 if (!args) SWIG_fail;
14937 swig_obj[0] = args;
14938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14939 if (!SWIG_IsOK(res1)) {
14940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14941 }
14942 arg1 = reinterpret_cast< wxFont * >(argp1);
14943 {
14944 PyThreadState* __tstate = wxPyBeginAllowThreads();
14945 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14946 wxPyEndAllowThreads(__tstate);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
14949 {
14950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14951 }
14952 return resultobj;
14953 fail:
14954 return NULL;
14955 }
14956
14957
14958 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14959 PyObject *resultobj = 0;
14960 wxFontEncoding result;
14961
14962 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14963 {
14964 if (!wxPyCheckForApp()) SWIG_fail;
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 resultobj = SWIG_From_int(static_cast< int >(result));
14971 return resultobj;
14972 fail:
14973 return NULL;
14974 }
14975
14976
14977 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14978 PyObject *resultobj = 0;
14979 wxFontEncoding arg1 ;
14980 int val1 ;
14981 int ecode1 = 0 ;
14982 PyObject * obj0 = 0 ;
14983 char * kwnames[] = {
14984 (char *) "encoding", NULL
14985 };
14986
14987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14988 ecode1 = SWIG_AsVal_int(obj0, &val1);
14989 if (!SWIG_IsOK(ecode1)) {
14990 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14991 }
14992 arg1 = static_cast< wxFontEncoding >(val1);
14993 {
14994 if (!wxPyCheckForApp()) SWIG_fail;
14995 PyThreadState* __tstate = wxPyBeginAllowThreads();
14996 wxFont::SetDefaultEncoding(arg1);
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
15000 resultobj = SWIG_Py_Void();
15001 return resultobj;
15002 fail:
15003 return NULL;
15004 }
15005
15006
15007 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15008 PyObject *obj;
15009 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15010 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15011 return SWIG_Py_Void();
15012 }
15013
15014 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15015 return SWIG_Python_InitShadowInstance(args);
15016 }
15017
15018 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15019 PyObject *resultobj = 0;
15020 wxPyFontEnumerator *result = 0 ;
15021
15022 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15023 {
15024 if (!wxPyCheckForApp()) SWIG_fail;
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15031 return resultobj;
15032 fail:
15033 return NULL;
15034 }
15035
15036
15037 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15038 PyObject *resultobj = 0;
15039 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15040 void *argp1 = 0 ;
15041 int res1 = 0 ;
15042 PyObject *swig_obj[1] ;
15043
15044 if (!args) SWIG_fail;
15045 swig_obj[0] = args;
15046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15049 }
15050 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15051 {
15052 PyThreadState* __tstate = wxPyBeginAllowThreads();
15053 delete arg1;
15054
15055 wxPyEndAllowThreads(__tstate);
15056 if (PyErr_Occurred()) SWIG_fail;
15057 }
15058 resultobj = SWIG_Py_Void();
15059 return resultobj;
15060 fail:
15061 return NULL;
15062 }
15063
15064
15065 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj = 0;
15067 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15068 PyObject *arg2 = (PyObject *) 0 ;
15069 PyObject *arg3 = (PyObject *) 0 ;
15070 bool arg4 ;
15071 void *argp1 = 0 ;
15072 int res1 = 0 ;
15073 bool val4 ;
15074 int ecode4 = 0 ;
15075 PyObject * obj0 = 0 ;
15076 PyObject * obj1 = 0 ;
15077 PyObject * obj2 = 0 ;
15078 PyObject * obj3 = 0 ;
15079 char * kwnames[] = {
15080 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15081 };
15082
15083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15085 if (!SWIG_IsOK(res1)) {
15086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15087 }
15088 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15089 arg2 = obj1;
15090 arg3 = obj2;
15091 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15092 if (!SWIG_IsOK(ecode4)) {
15093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15094 }
15095 arg4 = static_cast< bool >(val4);
15096 {
15097 PyThreadState* __tstate = wxPyBeginAllowThreads();
15098 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
15102 resultobj = SWIG_Py_Void();
15103 return resultobj;
15104 fail:
15105 return NULL;
15106 }
15107
15108
15109 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15110 PyObject *resultobj = 0;
15111 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15112 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15113 bool arg3 = (bool) false ;
15114 bool result;
15115 void *argp1 = 0 ;
15116 int res1 = 0 ;
15117 int val2 ;
15118 int ecode2 = 0 ;
15119 bool val3 ;
15120 int ecode3 = 0 ;
15121 PyObject * obj0 = 0 ;
15122 PyObject * obj1 = 0 ;
15123 PyObject * obj2 = 0 ;
15124 char * kwnames[] = {
15125 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15126 };
15127
15128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15130 if (!SWIG_IsOK(res1)) {
15131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15132 }
15133 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15134 if (obj1) {
15135 ecode2 = SWIG_AsVal_int(obj1, &val2);
15136 if (!SWIG_IsOK(ecode2)) {
15137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15138 }
15139 arg2 = static_cast< wxFontEncoding >(val2);
15140 }
15141 if (obj2) {
15142 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15143 if (!SWIG_IsOK(ecode3)) {
15144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15145 }
15146 arg3 = static_cast< bool >(val3);
15147 }
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 {
15155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15156 }
15157 return resultobj;
15158 fail:
15159 return NULL;
15160 }
15161
15162
15163 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15164 PyObject *resultobj = 0;
15165 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15166 wxString const &arg2_defvalue = wxPyEmptyString ;
15167 wxString *arg2 = (wxString *) &arg2_defvalue ;
15168 bool result;
15169 void *argp1 = 0 ;
15170 int res1 = 0 ;
15171 bool temp2 = false ;
15172 PyObject * obj0 = 0 ;
15173 PyObject * obj1 = 0 ;
15174 char * kwnames[] = {
15175 (char *) "self",(char *) "facename", NULL
15176 };
15177
15178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15180 if (!SWIG_IsOK(res1)) {
15181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15182 }
15183 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15184 if (obj1) {
15185 {
15186 arg2 = wxString_in_helper(obj1);
15187 if (arg2 == NULL) SWIG_fail;
15188 temp2 = true;
15189 }
15190 }
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15199 }
15200 {
15201 if (temp2)
15202 delete arg2;
15203 }
15204 return resultobj;
15205 fail:
15206 {
15207 if (temp2)
15208 delete arg2;
15209 }
15210 return NULL;
15211 }
15212
15213
15214 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15215 PyObject *resultobj = 0;
15216 PyObject *result = 0 ;
15217
15218 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15219 {
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15222 wxPyEndAllowThreads(__tstate);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 resultobj = result;
15226 return resultobj;
15227 fail:
15228 return NULL;
15229 }
15230
15231
15232 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15233 PyObject *resultobj = 0;
15234 PyObject *result = 0 ;
15235
15236 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15240 wxPyEndAllowThreads(__tstate);
15241 if (PyErr_Occurred()) SWIG_fail;
15242 }
15243 resultobj = result;
15244 return resultobj;
15245 fail:
15246 return NULL;
15247 }
15248
15249
15250 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15251 PyObject *resultobj = 0;
15252 wxString *arg1 = 0 ;
15253 bool result;
15254 bool temp1 = false ;
15255 PyObject * obj0 = 0 ;
15256 char * kwnames[] = {
15257 (char *) "str", NULL
15258 };
15259
15260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15261 {
15262 arg1 = wxString_in_helper(obj0);
15263 if (arg1 == NULL) SWIG_fail;
15264 temp1 = true;
15265 }
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15269 wxPyEndAllowThreads(__tstate);
15270 if (PyErr_Occurred()) SWIG_fail;
15271 }
15272 {
15273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15274 }
15275 {
15276 if (temp1)
15277 delete arg1;
15278 }
15279 return resultobj;
15280 fail:
15281 {
15282 if (temp1)
15283 delete arg1;
15284 }
15285 return NULL;
15286 }
15287
15288
15289 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15290 PyObject *obj;
15291 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15292 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15293 return SWIG_Py_Void();
15294 }
15295
15296 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15297 return SWIG_Python_InitShadowInstance(args);
15298 }
15299
15300 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15301 PyObject *resultobj = 0;
15302 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15303 int arg2 ;
15304 void *argp1 = 0 ;
15305 int res1 = 0 ;
15306 int val2 ;
15307 int ecode2 = 0 ;
15308 PyObject *swig_obj[2] ;
15309
15310 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15312 if (!SWIG_IsOK(res1)) {
15313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15314 }
15315 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15316 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15317 if (!SWIG_IsOK(ecode2)) {
15318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15319 }
15320 arg2 = static_cast< int >(val2);
15321 if (arg1) (arg1)->Language = arg2;
15322
15323 resultobj = SWIG_Py_Void();
15324 return resultobj;
15325 fail:
15326 return NULL;
15327 }
15328
15329
15330 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331 PyObject *resultobj = 0;
15332 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15333 int result;
15334 void *argp1 = 0 ;
15335 int res1 = 0 ;
15336 PyObject *swig_obj[1] ;
15337
15338 if (!args) SWIG_fail;
15339 swig_obj[0] = args;
15340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15341 if (!SWIG_IsOK(res1)) {
15342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15343 }
15344 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15345 result = (int) ((arg1)->Language);
15346 resultobj = SWIG_From_int(static_cast< int >(result));
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15354 PyObject *resultobj = 0;
15355 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15356 wxString *arg2 = (wxString *) 0 ;
15357 void *argp1 = 0 ;
15358 int res1 = 0 ;
15359 bool temp2 = false ;
15360 PyObject *swig_obj[2] ;
15361
15362 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15364 if (!SWIG_IsOK(res1)) {
15365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15366 }
15367 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15368 {
15369 arg2 = wxString_in_helper(swig_obj[1]);
15370 if (arg2 == NULL) SWIG_fail;
15371 temp2 = true;
15372 }
15373 if (arg1) (arg1)->CanonicalName = *arg2;
15374
15375 resultobj = SWIG_Py_Void();
15376 {
15377 if (temp2)
15378 delete arg2;
15379 }
15380 return resultobj;
15381 fail:
15382 {
15383 if (temp2)
15384 delete arg2;
15385 }
15386 return NULL;
15387 }
15388
15389
15390 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15391 PyObject *resultobj = 0;
15392 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15393 wxString *result = 0 ;
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 PyObject *swig_obj[1] ;
15397
15398 if (!args) SWIG_fail;
15399 swig_obj[0] = args;
15400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15401 if (!SWIG_IsOK(res1)) {
15402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15403 }
15404 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15405 result = (wxString *)& ((arg1)->CanonicalName);
15406 {
15407 #if wxUSE_UNICODE
15408 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15409 #else
15410 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15411 #endif
15412 }
15413 return resultobj;
15414 fail:
15415 return NULL;
15416 }
15417
15418
15419 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15420 PyObject *resultobj = 0;
15421 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15422 wxString *arg2 = (wxString *) 0 ;
15423 void *argp1 = 0 ;
15424 int res1 = 0 ;
15425 bool temp2 = false ;
15426 PyObject *swig_obj[2] ;
15427
15428 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15430 if (!SWIG_IsOK(res1)) {
15431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15432 }
15433 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15434 {
15435 arg2 = wxString_in_helper(swig_obj[1]);
15436 if (arg2 == NULL) SWIG_fail;
15437 temp2 = true;
15438 }
15439 if (arg1) (arg1)->Description = *arg2;
15440
15441 resultobj = SWIG_Py_Void();
15442 {
15443 if (temp2)
15444 delete arg2;
15445 }
15446 return resultobj;
15447 fail:
15448 {
15449 if (temp2)
15450 delete arg2;
15451 }
15452 return NULL;
15453 }
15454
15455
15456 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15457 PyObject *resultobj = 0;
15458 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15459 wxString *result = 0 ;
15460 void *argp1 = 0 ;
15461 int res1 = 0 ;
15462 PyObject *swig_obj[1] ;
15463
15464 if (!args) SWIG_fail;
15465 swig_obj[0] = args;
15466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15467 if (!SWIG_IsOK(res1)) {
15468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15469 }
15470 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15471 result = (wxString *)& ((arg1)->Description);
15472 {
15473 #if wxUSE_UNICODE
15474 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15475 #else
15476 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15477 #endif
15478 }
15479 return resultobj;
15480 fail:
15481 return NULL;
15482 }
15483
15484
15485 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15486 PyObject *obj;
15487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15488 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15489 return SWIG_Py_Void();
15490 }
15491
15492 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj = 0;
15494 int arg1 = (int) -1 ;
15495 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15496 wxLocale *result = 0 ;
15497 int val1 ;
15498 int ecode1 = 0 ;
15499 int val2 ;
15500 int ecode2 = 0 ;
15501 PyObject * obj0 = 0 ;
15502 PyObject * obj1 = 0 ;
15503 char * kwnames[] = {
15504 (char *) "language",(char *) "flags", NULL
15505 };
15506
15507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15508 if (obj0) {
15509 ecode1 = SWIG_AsVal_int(obj0, &val1);
15510 if (!SWIG_IsOK(ecode1)) {
15511 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15512 }
15513 arg1 = static_cast< int >(val1);
15514 }
15515 if (obj1) {
15516 ecode2 = SWIG_AsVal_int(obj1, &val2);
15517 if (!SWIG_IsOK(ecode2)) {
15518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15519 }
15520 arg2 = static_cast< int >(val2);
15521 }
15522 {
15523 PyThreadState* __tstate = wxPyBeginAllowThreads();
15524 result = (wxLocale *)new_wxLocale(arg1,arg2);
15525 wxPyEndAllowThreads(__tstate);
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15529 return resultobj;
15530 fail:
15531 return NULL;
15532 }
15533
15534
15535 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15536 PyObject *resultobj = 0;
15537 wxLocale *arg1 = (wxLocale *) 0 ;
15538 void *argp1 = 0 ;
15539 int res1 = 0 ;
15540 PyObject *swig_obj[1] ;
15541
15542 if (!args) SWIG_fail;
15543 swig_obj[0] = args;
15544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15547 }
15548 arg1 = reinterpret_cast< wxLocale * >(argp1);
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 delete arg1;
15552
15553 wxPyEndAllowThreads(__tstate);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 resultobj = SWIG_Py_Void();
15557 return resultobj;
15558 fail:
15559 return NULL;
15560 }
15561
15562
15563 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15564 PyObject *resultobj = 0;
15565 wxLocale *arg1 = (wxLocale *) 0 ;
15566 wxString *arg2 = 0 ;
15567 wxString const &arg3_defvalue = wxPyEmptyString ;
15568 wxString *arg3 = (wxString *) &arg3_defvalue ;
15569 wxString const &arg4_defvalue = wxPyEmptyString ;
15570 wxString *arg4 = (wxString *) &arg4_defvalue ;
15571 bool arg5 = (bool) true ;
15572 bool arg6 = (bool) false ;
15573 bool result;
15574 void *argp1 = 0 ;
15575 int res1 = 0 ;
15576 bool temp2 = false ;
15577 bool temp3 = false ;
15578 bool temp4 = false ;
15579 bool val5 ;
15580 int ecode5 = 0 ;
15581 bool val6 ;
15582 int ecode6 = 0 ;
15583 PyObject * obj0 = 0 ;
15584 PyObject * obj1 = 0 ;
15585 PyObject * obj2 = 0 ;
15586 PyObject * obj3 = 0 ;
15587 PyObject * obj4 = 0 ;
15588 PyObject * obj5 = 0 ;
15589 char * kwnames[] = {
15590 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15591 };
15592
15593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15595 if (!SWIG_IsOK(res1)) {
15596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15597 }
15598 arg1 = reinterpret_cast< wxLocale * >(argp1);
15599 {
15600 arg2 = wxString_in_helper(obj1);
15601 if (arg2 == NULL) SWIG_fail;
15602 temp2 = true;
15603 }
15604 if (obj2) {
15605 {
15606 arg3 = wxString_in_helper(obj2);
15607 if (arg3 == NULL) SWIG_fail;
15608 temp3 = true;
15609 }
15610 }
15611 if (obj3) {
15612 {
15613 arg4 = wxString_in_helper(obj3);
15614 if (arg4 == NULL) SWIG_fail;
15615 temp4 = true;
15616 }
15617 }
15618 if (obj4) {
15619 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15620 if (!SWIG_IsOK(ecode5)) {
15621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15622 }
15623 arg5 = static_cast< bool >(val5);
15624 }
15625 if (obj5) {
15626 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15627 if (!SWIG_IsOK(ecode6)) {
15628 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15629 }
15630 arg6 = static_cast< bool >(val6);
15631 }
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15635 wxPyEndAllowThreads(__tstate);
15636 if (PyErr_Occurred()) SWIG_fail;
15637 }
15638 {
15639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15640 }
15641 {
15642 if (temp2)
15643 delete arg2;
15644 }
15645 {
15646 if (temp3)
15647 delete arg3;
15648 }
15649 {
15650 if (temp4)
15651 delete arg4;
15652 }
15653 return resultobj;
15654 fail:
15655 {
15656 if (temp2)
15657 delete arg2;
15658 }
15659 {
15660 if (temp3)
15661 delete arg3;
15662 }
15663 {
15664 if (temp4)
15665 delete arg4;
15666 }
15667 return NULL;
15668 }
15669
15670
15671 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15672 PyObject *resultobj = 0;
15673 wxLocale *arg1 = (wxLocale *) 0 ;
15674 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15675 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15676 bool result;
15677 void *argp1 = 0 ;
15678 int res1 = 0 ;
15679 int val2 ;
15680 int ecode2 = 0 ;
15681 int val3 ;
15682 int ecode3 = 0 ;
15683 PyObject * obj0 = 0 ;
15684 PyObject * obj1 = 0 ;
15685 PyObject * obj2 = 0 ;
15686 char * kwnames[] = {
15687 (char *) "self",(char *) "language",(char *) "flags", NULL
15688 };
15689
15690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15692 if (!SWIG_IsOK(res1)) {
15693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15694 }
15695 arg1 = reinterpret_cast< wxLocale * >(argp1);
15696 if (obj1) {
15697 ecode2 = SWIG_AsVal_int(obj1, &val2);
15698 if (!SWIG_IsOK(ecode2)) {
15699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15700 }
15701 arg2 = static_cast< int >(val2);
15702 }
15703 if (obj2) {
15704 ecode3 = SWIG_AsVal_int(obj2, &val3);
15705 if (!SWIG_IsOK(ecode3)) {
15706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15707 }
15708 arg3 = static_cast< int >(val3);
15709 }
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15713 wxPyEndAllowThreads(__tstate);
15714 if (PyErr_Occurred()) SWIG_fail;
15715 }
15716 {
15717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15718 }
15719 return resultobj;
15720 fail:
15721 return NULL;
15722 }
15723
15724
15725 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15726 PyObject *resultobj = 0;
15727 int result;
15728
15729 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 result = (int)wxLocale::GetSystemLanguage();
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 resultobj = SWIG_From_int(static_cast< int >(result));
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15744 PyObject *resultobj = 0;
15745 wxFontEncoding result;
15746
15747 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15751 wxPyEndAllowThreads(__tstate);
15752 if (PyErr_Occurred()) SWIG_fail;
15753 }
15754 resultobj = SWIG_From_int(static_cast< int >(result));
15755 return resultobj;
15756 fail:
15757 return NULL;
15758 }
15759
15760
15761 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15762 PyObject *resultobj = 0;
15763 wxString result;
15764
15765 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = wxLocale::GetSystemEncodingName();
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 {
15773 #if wxUSE_UNICODE
15774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15775 #else
15776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15777 #endif
15778 }
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15786 PyObject *resultobj = 0;
15787 wxLocale *arg1 = (wxLocale *) 0 ;
15788 bool result;
15789 void *argp1 = 0 ;
15790 int res1 = 0 ;
15791 PyObject *swig_obj[1] ;
15792
15793 if (!args) SWIG_fail;
15794 swig_obj[0] = args;
15795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15796 if (!SWIG_IsOK(res1)) {
15797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15798 }
15799 arg1 = reinterpret_cast< wxLocale * >(argp1);
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 result = (bool)((wxLocale const *)arg1)->IsOk();
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 {
15807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15808 }
15809 return resultobj;
15810 fail:
15811 return NULL;
15812 }
15813
15814
15815 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15816 PyObject *resultobj = 0;
15817 wxLocale *arg1 = (wxLocale *) 0 ;
15818 wxString result;
15819 void *argp1 = 0 ;
15820 int res1 = 0 ;
15821 PyObject *swig_obj[1] ;
15822
15823 if (!args) SWIG_fail;
15824 swig_obj[0] = args;
15825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15826 if (!SWIG_IsOK(res1)) {
15827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15828 }
15829 arg1 = reinterpret_cast< wxLocale * >(argp1);
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 result = ((wxLocale const *)arg1)->GetLocale();
15833 wxPyEndAllowThreads(__tstate);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 {
15837 #if wxUSE_UNICODE
15838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15839 #else
15840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15841 #endif
15842 }
15843 return resultobj;
15844 fail:
15845 return NULL;
15846 }
15847
15848
15849 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15850 PyObject *resultobj = 0;
15851 wxLocale *arg1 = (wxLocale *) 0 ;
15852 int result;
15853 void *argp1 = 0 ;
15854 int res1 = 0 ;
15855 PyObject *swig_obj[1] ;
15856
15857 if (!args) SWIG_fail;
15858 swig_obj[0] = args;
15859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15862 }
15863 arg1 = reinterpret_cast< wxLocale * >(argp1);
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 result = (int)((wxLocale const *)arg1)->GetLanguage();
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 resultobj = SWIG_From_int(static_cast< int >(result));
15871 return resultobj;
15872 fail:
15873 return NULL;
15874 }
15875
15876
15877 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15878 PyObject *resultobj = 0;
15879 wxLocale *arg1 = (wxLocale *) 0 ;
15880 wxString result;
15881 void *argp1 = 0 ;
15882 int res1 = 0 ;
15883 PyObject *swig_obj[1] ;
15884
15885 if (!args) SWIG_fail;
15886 swig_obj[0] = args;
15887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15888 if (!SWIG_IsOK(res1)) {
15889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15890 }
15891 arg1 = reinterpret_cast< wxLocale * >(argp1);
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = ((wxLocale const *)arg1)->GetSysName();
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 {
15899 #if wxUSE_UNICODE
15900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15901 #else
15902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15903 #endif
15904 }
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15912 PyObject *resultobj = 0;
15913 wxLocale *arg1 = (wxLocale *) 0 ;
15914 wxString result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 PyObject *swig_obj[1] ;
15918
15919 if (!args) SWIG_fail;
15920 swig_obj[0] = args;
15921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15922 if (!SWIG_IsOK(res1)) {
15923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15924 }
15925 arg1 = reinterpret_cast< wxLocale * >(argp1);
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 result = ((wxLocale const *)arg1)->GetCanonicalName();
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933 #if wxUSE_UNICODE
15934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15935 #else
15936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15937 #endif
15938 }
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj = 0;
15947 wxString *arg1 = 0 ;
15948 bool temp1 = false ;
15949 PyObject * obj0 = 0 ;
15950 char * kwnames[] = {
15951 (char *) "prefix", NULL
15952 };
15953
15954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15955 {
15956 arg1 = wxString_in_helper(obj0);
15957 if (arg1 == NULL) SWIG_fail;
15958 temp1 = true;
15959 }
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 resultobj = SWIG_Py_Void();
15967 {
15968 if (temp1)
15969 delete arg1;
15970 }
15971 return resultobj;
15972 fail:
15973 {
15974 if (temp1)
15975 delete arg1;
15976 }
15977 return NULL;
15978 }
15979
15980
15981 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15982 PyObject *resultobj = 0;
15983 wxLocale *arg1 = (wxLocale *) 0 ;
15984 wxString *arg2 = 0 ;
15985 bool result;
15986 void *argp1 = 0 ;
15987 int res1 = 0 ;
15988 bool temp2 = false ;
15989 PyObject * obj0 = 0 ;
15990 PyObject * obj1 = 0 ;
15991 char * kwnames[] = {
15992 (char *) "self",(char *) "szDomain", NULL
15993 };
15994
15995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15997 if (!SWIG_IsOK(res1)) {
15998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15999 }
16000 arg1 = reinterpret_cast< wxLocale * >(argp1);
16001 {
16002 arg2 = wxString_in_helper(obj1);
16003 if (arg2 == NULL) SWIG_fail;
16004 temp2 = true;
16005 }
16006 {
16007 PyThreadState* __tstate = wxPyBeginAllowThreads();
16008 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16009 wxPyEndAllowThreads(__tstate);
16010 if (PyErr_Occurred()) SWIG_fail;
16011 }
16012 {
16013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16014 }
16015 {
16016 if (temp2)
16017 delete arg2;
16018 }
16019 return resultobj;
16020 fail:
16021 {
16022 if (temp2)
16023 delete arg2;
16024 }
16025 return NULL;
16026 }
16027
16028
16029 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16030 PyObject *resultobj = 0;
16031 int arg1 ;
16032 bool result;
16033 int val1 ;
16034 int ecode1 = 0 ;
16035 PyObject * obj0 = 0 ;
16036 char * kwnames[] = {
16037 (char *) "lang", NULL
16038 };
16039
16040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16041 ecode1 = SWIG_AsVal_int(obj0, &val1);
16042 if (!SWIG_IsOK(ecode1)) {
16043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16044 }
16045 arg1 = static_cast< int >(val1);
16046 {
16047 PyThreadState* __tstate = wxPyBeginAllowThreads();
16048 result = (bool)wxLocale::IsAvailable(arg1);
16049 wxPyEndAllowThreads(__tstate);
16050 if (PyErr_Occurred()) SWIG_fail;
16051 }
16052 {
16053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16054 }
16055 return resultobj;
16056 fail:
16057 return NULL;
16058 }
16059
16060
16061 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16062 PyObject *resultobj = 0;
16063 wxLocale *arg1 = (wxLocale *) 0 ;
16064 wxString *arg2 = 0 ;
16065 bool result;
16066 void *argp1 = 0 ;
16067 int res1 = 0 ;
16068 bool temp2 = false ;
16069 PyObject * obj0 = 0 ;
16070 PyObject * obj1 = 0 ;
16071 char * kwnames[] = {
16072 (char *) "self",(char *) "szDomain", NULL
16073 };
16074
16075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16077 if (!SWIG_IsOK(res1)) {
16078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16079 }
16080 arg1 = reinterpret_cast< wxLocale * >(argp1);
16081 {
16082 arg2 = wxString_in_helper(obj1);
16083 if (arg2 == NULL) SWIG_fail;
16084 temp2 = true;
16085 }
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 {
16093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16094 }
16095 {
16096 if (temp2)
16097 delete arg2;
16098 }
16099 return resultobj;
16100 fail:
16101 {
16102 if (temp2)
16103 delete arg2;
16104 }
16105 return NULL;
16106 }
16107
16108
16109 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj = 0;
16111 int arg1 ;
16112 wxLanguageInfo *result = 0 ;
16113 int val1 ;
16114 int ecode1 = 0 ;
16115 PyObject * obj0 = 0 ;
16116 char * kwnames[] = {
16117 (char *) "lang", NULL
16118 };
16119
16120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16121 ecode1 = SWIG_AsVal_int(obj0, &val1);
16122 if (!SWIG_IsOK(ecode1)) {
16123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16124 }
16125 arg1 = static_cast< int >(val1);
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16129 wxPyEndAllowThreads(__tstate);
16130 if (PyErr_Occurred()) SWIG_fail;
16131 }
16132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16133 return resultobj;
16134 fail:
16135 return NULL;
16136 }
16137
16138
16139 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16140 PyObject *resultobj = 0;
16141 int arg1 ;
16142 wxString result;
16143 int val1 ;
16144 int ecode1 = 0 ;
16145 PyObject * obj0 = 0 ;
16146 char * kwnames[] = {
16147 (char *) "lang", NULL
16148 };
16149
16150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16151 ecode1 = SWIG_AsVal_int(obj0, &val1);
16152 if (!SWIG_IsOK(ecode1)) {
16153 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16154 }
16155 arg1 = static_cast< int >(val1);
16156 {
16157 PyThreadState* __tstate = wxPyBeginAllowThreads();
16158 result = wxLocale::GetLanguageName(arg1);
16159 wxPyEndAllowThreads(__tstate);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 {
16163 #if wxUSE_UNICODE
16164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16165 #else
16166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16167 #endif
16168 }
16169 return resultobj;
16170 fail:
16171 return NULL;
16172 }
16173
16174
16175 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16176 PyObject *resultobj = 0;
16177 wxString *arg1 = 0 ;
16178 wxLanguageInfo *result = 0 ;
16179 bool temp1 = false ;
16180 PyObject * obj0 = 0 ;
16181 char * kwnames[] = {
16182 (char *) "locale", NULL
16183 };
16184
16185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16186 {
16187 arg1 = wxString_in_helper(obj0);
16188 if (arg1 == NULL) SWIG_fail;
16189 temp1 = true;
16190 }
16191 {
16192 PyThreadState* __tstate = wxPyBeginAllowThreads();
16193 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16198 {
16199 if (temp1)
16200 delete arg1;
16201 }
16202 return resultobj;
16203 fail:
16204 {
16205 if (temp1)
16206 delete arg1;
16207 }
16208 return NULL;
16209 }
16210
16211
16212 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj = 0;
16214 wxLanguageInfo *arg1 = 0 ;
16215 void *argp1 = 0 ;
16216 int res1 = 0 ;
16217 PyObject * obj0 = 0 ;
16218 char * kwnames[] = {
16219 (char *) "info", NULL
16220 };
16221
16222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16223 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16224 if (!SWIG_IsOK(res1)) {
16225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16226 }
16227 if (!argp1) {
16228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16229 }
16230 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16231 {
16232 PyThreadState* __tstate = wxPyBeginAllowThreads();
16233 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 resultobj = SWIG_Py_Void();
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16245 PyObject *resultobj = 0;
16246 wxLocale *arg1 = (wxLocale *) 0 ;
16247 wxString *arg2 = 0 ;
16248 wxString const &arg3_defvalue = wxPyEmptyString ;
16249 wxString *arg3 = (wxString *) &arg3_defvalue ;
16250 wxString result;
16251 void *argp1 = 0 ;
16252 int res1 = 0 ;
16253 bool temp2 = false ;
16254 bool temp3 = false ;
16255 PyObject * obj0 = 0 ;
16256 PyObject * obj1 = 0 ;
16257 PyObject * obj2 = 0 ;
16258 char * kwnames[] = {
16259 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16260 };
16261
16262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16264 if (!SWIG_IsOK(res1)) {
16265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16266 }
16267 arg1 = reinterpret_cast< wxLocale * >(argp1);
16268 {
16269 arg2 = wxString_in_helper(obj1);
16270 if (arg2 == NULL) SWIG_fail;
16271 temp2 = true;
16272 }
16273 if (obj2) {
16274 {
16275 arg3 = wxString_in_helper(obj2);
16276 if (arg3 == NULL) SWIG_fail;
16277 temp3 = true;
16278 }
16279 }
16280 {
16281 PyThreadState* __tstate = wxPyBeginAllowThreads();
16282 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16283 wxPyEndAllowThreads(__tstate);
16284 if (PyErr_Occurred()) SWIG_fail;
16285 }
16286 {
16287 #if wxUSE_UNICODE
16288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16289 #else
16290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16291 #endif
16292 }
16293 {
16294 if (temp2)
16295 delete arg2;
16296 }
16297 {
16298 if (temp3)
16299 delete arg3;
16300 }
16301 return resultobj;
16302 fail:
16303 {
16304 if (temp2)
16305 delete arg2;
16306 }
16307 {
16308 if (temp3)
16309 delete arg3;
16310 }
16311 return NULL;
16312 }
16313
16314
16315 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16316 PyObject *resultobj = 0;
16317 wxLocale *arg1 = (wxLocale *) 0 ;
16318 wxString *result = 0 ;
16319 void *argp1 = 0 ;
16320 int res1 = 0 ;
16321 PyObject *swig_obj[1] ;
16322
16323 if (!args) SWIG_fail;
16324 swig_obj[0] = args;
16325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16326 if (!SWIG_IsOK(res1)) {
16327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16328 }
16329 arg1 = reinterpret_cast< wxLocale * >(argp1);
16330 {
16331 PyThreadState* __tstate = wxPyBeginAllowThreads();
16332 {
16333 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16334 result = (wxString *) &_result_ref;
16335 }
16336 wxPyEndAllowThreads(__tstate);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 }
16339 {
16340 #if wxUSE_UNICODE
16341 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16342 #else
16343 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16344 #endif
16345 }
16346 return resultobj;
16347 fail:
16348 return NULL;
16349 }
16350
16351
16352 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16353 PyObject *obj;
16354 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16355 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16356 return SWIG_Py_Void();
16357 }
16358
16359 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16360 return SWIG_Python_InitShadowInstance(args);
16361 }
16362
16363 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj = 0;
16365 int arg1 = (int) -1 ;
16366 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16367 wxPyLocale *result = 0 ;
16368 int val1 ;
16369 int ecode1 = 0 ;
16370 int val2 ;
16371 int ecode2 = 0 ;
16372 PyObject * obj0 = 0 ;
16373 PyObject * obj1 = 0 ;
16374 char * kwnames[] = {
16375 (char *) "language",(char *) "flags", NULL
16376 };
16377
16378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16379 if (obj0) {
16380 ecode1 = SWIG_AsVal_int(obj0, &val1);
16381 if (!SWIG_IsOK(ecode1)) {
16382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16383 }
16384 arg1 = static_cast< int >(val1);
16385 }
16386 if (obj1) {
16387 ecode2 = SWIG_AsVal_int(obj1, &val2);
16388 if (!SWIG_IsOK(ecode2)) {
16389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16390 }
16391 arg2 = static_cast< int >(val2);
16392 }
16393 {
16394 PyThreadState* __tstate = wxPyBeginAllowThreads();
16395 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *resultobj = 0;
16408 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16409 void *argp1 = 0 ;
16410 int res1 = 0 ;
16411 PyObject *swig_obj[1] ;
16412
16413 if (!args) SWIG_fail;
16414 swig_obj[0] = args;
16415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16416 if (!SWIG_IsOK(res1)) {
16417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16418 }
16419 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16420 {
16421 PyThreadState* __tstate = wxPyBeginAllowThreads();
16422 delete arg1;
16423
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 resultobj = SWIG_Py_Void();
16428 return resultobj;
16429 fail:
16430 return NULL;
16431 }
16432
16433
16434 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16435 PyObject *resultobj = 0;
16436 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16437 PyObject *arg2 = (PyObject *) 0 ;
16438 PyObject *arg3 = (PyObject *) 0 ;
16439 void *argp1 = 0 ;
16440 int res1 = 0 ;
16441 PyObject * obj0 = 0 ;
16442 PyObject * obj1 = 0 ;
16443 PyObject * obj2 = 0 ;
16444 char * kwnames[] = {
16445 (char *) "self",(char *) "self",(char *) "_class", NULL
16446 };
16447
16448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16450 if (!SWIG_IsOK(res1)) {
16451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16452 }
16453 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16454 arg2 = obj1;
16455 arg3 = obj2;
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
16458 (arg1)->_setCallbackInfo(arg2,arg3);
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 resultobj = SWIG_Py_Void();
16463 return resultobj;
16464 fail:
16465 return NULL;
16466 }
16467
16468
16469 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16472 wxChar *arg2 = (wxChar *) 0 ;
16473 wxChar *arg3 = (wxChar *) NULL ;
16474 wxChar *result = 0 ;
16475 void *argp1 = 0 ;
16476 int res1 = 0 ;
16477 void *argp2 = 0 ;
16478 int res2 = 0 ;
16479 void *argp3 = 0 ;
16480 int res3 = 0 ;
16481 PyObject * obj0 = 0 ;
16482 PyObject * obj1 = 0 ;
16483 PyObject * obj2 = 0 ;
16484 char * kwnames[] = {
16485 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16486 };
16487
16488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16490 if (!SWIG_IsOK(res1)) {
16491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16492 }
16493 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16495 if (!SWIG_IsOK(res2)) {
16496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16497 }
16498 arg2 = reinterpret_cast< wxChar * >(argp2);
16499 if (obj2) {
16500 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16501 if (!SWIG_IsOK(res3)) {
16502 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16503 }
16504 arg3 = reinterpret_cast< wxChar * >(argp3);
16505 }
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16513 return resultobj;
16514 fail:
16515 return NULL;
16516 }
16517
16518
16519 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj = 0;
16521 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16522 wxChar *arg2 = (wxChar *) 0 ;
16523 wxChar *arg3 = (wxChar *) 0 ;
16524 size_t arg4 ;
16525 wxChar *arg5 = (wxChar *) NULL ;
16526 wxChar *result = 0 ;
16527 void *argp1 = 0 ;
16528 int res1 = 0 ;
16529 void *argp2 = 0 ;
16530 int res2 = 0 ;
16531 void *argp3 = 0 ;
16532 int res3 = 0 ;
16533 size_t val4 ;
16534 int ecode4 = 0 ;
16535 void *argp5 = 0 ;
16536 int res5 = 0 ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 PyObject * obj2 = 0 ;
16540 PyObject * obj3 = 0 ;
16541 PyObject * obj4 = 0 ;
16542 char * kwnames[] = {
16543 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16544 };
16545
16546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16548 if (!SWIG_IsOK(res1)) {
16549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16550 }
16551 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16553 if (!SWIG_IsOK(res2)) {
16554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16555 }
16556 arg2 = reinterpret_cast< wxChar * >(argp2);
16557 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16558 if (!SWIG_IsOK(res3)) {
16559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16560 }
16561 arg3 = reinterpret_cast< wxChar * >(argp3);
16562 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16563 if (!SWIG_IsOK(ecode4)) {
16564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16565 }
16566 arg4 = static_cast< size_t >(val4);
16567 if (obj4) {
16568 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16569 if (!SWIG_IsOK(res5)) {
16570 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16571 }
16572 arg5 = reinterpret_cast< wxChar * >(argp5);
16573 }
16574 {
16575 PyThreadState* __tstate = wxPyBeginAllowThreads();
16576 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16581 return resultobj;
16582 fail:
16583 return NULL;
16584 }
16585
16586
16587 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16588 PyObject *obj;
16589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16590 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16591 return SWIG_Py_Void();
16592 }
16593
16594 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16595 return SWIG_Python_InitShadowInstance(args);
16596 }
16597
16598 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16599 PyObject *resultobj = 0;
16600 wxLocale *result = 0 ;
16601
16602 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16603 {
16604 PyThreadState* __tstate = wxPyBeginAllowThreads();
16605 result = (wxLocale *)wxGetLocale();
16606 wxPyEndAllowThreads(__tstate);
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16610 return resultobj;
16611 fail:
16612 return NULL;
16613 }
16614
16615
16616 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16617 PyObject *resultobj = 0;
16618 wxString *arg1 = 0 ;
16619 wxString result;
16620 bool temp1 = false ;
16621
16622 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16623 {
16624 arg1 = wxString_in_helper(swig_obj[0]);
16625 if (arg1 == NULL) SWIG_fail;
16626 temp1 = true;
16627 }
16628 {
16629 PyThreadState* __tstate = wxPyBeginAllowThreads();
16630 result = wxGetTranslation((wxString const &)*arg1);
16631 wxPyEndAllowThreads(__tstate);
16632 if (PyErr_Occurred()) SWIG_fail;
16633 }
16634 {
16635 #if wxUSE_UNICODE
16636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16637 #else
16638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16639 #endif
16640 }
16641 {
16642 if (temp1)
16643 delete arg1;
16644 }
16645 return resultobj;
16646 fail:
16647 {
16648 if (temp1)
16649 delete arg1;
16650 }
16651 return NULL;
16652 }
16653
16654
16655 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16656 PyObject *resultobj = 0;
16657 wxString *arg1 = 0 ;
16658 wxString *arg2 = 0 ;
16659 wxString result;
16660 bool temp1 = false ;
16661 bool temp2 = false ;
16662
16663 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16664 {
16665 arg1 = wxString_in_helper(swig_obj[0]);
16666 if (arg1 == NULL) SWIG_fail;
16667 temp1 = true;
16668 }
16669 {
16670 arg2 = wxString_in_helper(swig_obj[1]);
16671 if (arg2 == NULL) SWIG_fail;
16672 temp2 = true;
16673 }
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 {
16681 #if wxUSE_UNICODE
16682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16683 #else
16684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16685 #endif
16686 }
16687 {
16688 if (temp1)
16689 delete arg1;
16690 }
16691 {
16692 if (temp2)
16693 delete arg2;
16694 }
16695 return resultobj;
16696 fail:
16697 {
16698 if (temp1)
16699 delete arg1;
16700 }
16701 {
16702 if (temp2)
16703 delete arg2;
16704 }
16705 return NULL;
16706 }
16707
16708
16709 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16710 PyObject *resultobj = 0;
16711 wxString *arg1 = 0 ;
16712 wxString *arg2 = 0 ;
16713 size_t arg3 ;
16714 wxString result;
16715 bool temp1 = false ;
16716 bool temp2 = false ;
16717 size_t val3 ;
16718 int ecode3 = 0 ;
16719
16720 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16721 {
16722 arg1 = wxString_in_helper(swig_obj[0]);
16723 if (arg1 == NULL) SWIG_fail;
16724 temp1 = true;
16725 }
16726 {
16727 arg2 = wxString_in_helper(swig_obj[1]);
16728 if (arg2 == NULL) SWIG_fail;
16729 temp2 = true;
16730 }
16731 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16732 if (!SWIG_IsOK(ecode3)) {
16733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16734 }
16735 arg3 = static_cast< size_t >(val3);
16736 {
16737 PyThreadState* __tstate = wxPyBeginAllowThreads();
16738 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16739 wxPyEndAllowThreads(__tstate);
16740 if (PyErr_Occurred()) SWIG_fail;
16741 }
16742 {
16743 #if wxUSE_UNICODE
16744 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16745 #else
16746 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16747 #endif
16748 }
16749 {
16750 if (temp1)
16751 delete arg1;
16752 }
16753 {
16754 if (temp2)
16755 delete arg2;
16756 }
16757 return resultobj;
16758 fail:
16759 {
16760 if (temp1)
16761 delete arg1;
16762 }
16763 {
16764 if (temp2)
16765 delete arg2;
16766 }
16767 return NULL;
16768 }
16769
16770
16771 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16772 PyObject *resultobj = 0;
16773 wxString *arg1 = 0 ;
16774 wxString *arg2 = 0 ;
16775 size_t arg3 ;
16776 wxString *arg4 = 0 ;
16777 wxString result;
16778 bool temp1 = false ;
16779 bool temp2 = false ;
16780 size_t val3 ;
16781 int ecode3 = 0 ;
16782 bool temp4 = false ;
16783
16784 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16785 {
16786 arg1 = wxString_in_helper(swig_obj[0]);
16787 if (arg1 == NULL) SWIG_fail;
16788 temp1 = true;
16789 }
16790 {
16791 arg2 = wxString_in_helper(swig_obj[1]);
16792 if (arg2 == NULL) SWIG_fail;
16793 temp2 = true;
16794 }
16795 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16796 if (!SWIG_IsOK(ecode3)) {
16797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16798 }
16799 arg3 = static_cast< size_t >(val3);
16800 {
16801 arg4 = wxString_in_helper(swig_obj[3]);
16802 if (arg4 == NULL) SWIG_fail;
16803 temp4 = true;
16804 }
16805 {
16806 PyThreadState* __tstate = wxPyBeginAllowThreads();
16807 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 {
16812 #if wxUSE_UNICODE
16813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16814 #else
16815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16816 #endif
16817 }
16818 {
16819 if (temp1)
16820 delete arg1;
16821 }
16822 {
16823 if (temp2)
16824 delete arg2;
16825 }
16826 {
16827 if (temp4)
16828 delete arg4;
16829 }
16830 return resultobj;
16831 fail:
16832 {
16833 if (temp1)
16834 delete arg1;
16835 }
16836 {
16837 if (temp2)
16838 delete arg2;
16839 }
16840 {
16841 if (temp4)
16842 delete arg4;
16843 }
16844 return NULL;
16845 }
16846
16847
16848 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16849 int argc;
16850 PyObject *argv[5];
16851
16852 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16853 --argc;
16854 if (argc == 1) {
16855 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16856 }
16857 if (argc == 2) {
16858 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16859 }
16860 if (argc == 3) {
16861 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16862 }
16863 if (argc == 4) {
16864 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16865 }
16866
16867 fail:
16868 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16869 return NULL;
16870 }
16871
16872
16873 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16874 PyObject *resultobj = 0;
16875 wxEncodingConverter *result = 0 ;
16876
16877 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 result = (wxEncodingConverter *)new wxEncodingConverter();
16881 wxPyEndAllowThreads(__tstate);
16882 if (PyErr_Occurred()) SWIG_fail;
16883 }
16884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16885 return resultobj;
16886 fail:
16887 return NULL;
16888 }
16889
16890
16891 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16892 PyObject *resultobj = 0;
16893 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16894 void *argp1 = 0 ;
16895 int res1 = 0 ;
16896 PyObject *swig_obj[1] ;
16897
16898 if (!args) SWIG_fail;
16899 swig_obj[0] = args;
16900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16901 if (!SWIG_IsOK(res1)) {
16902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16903 }
16904 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16905 {
16906 PyThreadState* __tstate = wxPyBeginAllowThreads();
16907 delete arg1;
16908
16909 wxPyEndAllowThreads(__tstate);
16910 if (PyErr_Occurred()) SWIG_fail;
16911 }
16912 resultobj = SWIG_Py_Void();
16913 return resultobj;
16914 fail:
16915 return NULL;
16916 }
16917
16918
16919 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16920 PyObject *resultobj = 0;
16921 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16922 wxFontEncoding arg2 ;
16923 wxFontEncoding arg3 ;
16924 int arg4 = (int) wxCONVERT_STRICT ;
16925 bool result;
16926 void *argp1 = 0 ;
16927 int res1 = 0 ;
16928 int val2 ;
16929 int ecode2 = 0 ;
16930 int val3 ;
16931 int ecode3 = 0 ;
16932 int val4 ;
16933 int ecode4 = 0 ;
16934 PyObject * obj0 = 0 ;
16935 PyObject * obj1 = 0 ;
16936 PyObject * obj2 = 0 ;
16937 PyObject * obj3 = 0 ;
16938 char * kwnames[] = {
16939 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16940 };
16941
16942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16944 if (!SWIG_IsOK(res1)) {
16945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16946 }
16947 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16948 ecode2 = SWIG_AsVal_int(obj1, &val2);
16949 if (!SWIG_IsOK(ecode2)) {
16950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16951 }
16952 arg2 = static_cast< wxFontEncoding >(val2);
16953 ecode3 = SWIG_AsVal_int(obj2, &val3);
16954 if (!SWIG_IsOK(ecode3)) {
16955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16956 }
16957 arg3 = static_cast< wxFontEncoding >(val3);
16958 if (obj3) {
16959 ecode4 = SWIG_AsVal_int(obj3, &val4);
16960 if (!SWIG_IsOK(ecode4)) {
16961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16962 }
16963 arg4 = static_cast< int >(val4);
16964 }
16965 {
16966 PyThreadState* __tstate = wxPyBeginAllowThreads();
16967 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 {
16972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16973 }
16974 return resultobj;
16975 fail:
16976 return NULL;
16977 }
16978
16979
16980 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16981 PyObject *resultobj = 0;
16982 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16983 wxString *arg2 = 0 ;
16984 wxString result;
16985 void *argp1 = 0 ;
16986 int res1 = 0 ;
16987 bool temp2 = false ;
16988 PyObject * obj0 = 0 ;
16989 PyObject * obj1 = 0 ;
16990 char * kwnames[] = {
16991 (char *) "self",(char *) "input", NULL
16992 };
16993
16994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16996 if (!SWIG_IsOK(res1)) {
16997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16998 }
16999 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17000 {
17001 arg2 = wxString_in_helper(obj1);
17002 if (arg2 == NULL) SWIG_fail;
17003 temp2 = true;
17004 }
17005 {
17006 PyThreadState* __tstate = wxPyBeginAllowThreads();
17007 result = (arg1)->Convert((wxString const &)*arg2);
17008 wxPyEndAllowThreads(__tstate);
17009 if (PyErr_Occurred()) SWIG_fail;
17010 }
17011 {
17012 #if wxUSE_UNICODE
17013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17014 #else
17015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17016 #endif
17017 }
17018 {
17019 if (temp2)
17020 delete arg2;
17021 }
17022 return resultobj;
17023 fail:
17024 {
17025 if (temp2)
17026 delete arg2;
17027 }
17028 return NULL;
17029 }
17030
17031
17032 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj = 0;
17034 wxFontEncoding arg1 ;
17035 int arg2 = (int) wxPLATFORM_CURRENT ;
17036 wxFontEncodingArray result;
17037 int val1 ;
17038 int ecode1 = 0 ;
17039 int val2 ;
17040 int ecode2 = 0 ;
17041 PyObject * obj0 = 0 ;
17042 PyObject * obj1 = 0 ;
17043 char * kwnames[] = {
17044 (char *) "enc",(char *) "platform", NULL
17045 };
17046
17047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17048 ecode1 = SWIG_AsVal_int(obj0, &val1);
17049 if (!SWIG_IsOK(ecode1)) {
17050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17051 }
17052 arg1 = static_cast< wxFontEncoding >(val1);
17053 if (obj1) {
17054 ecode2 = SWIG_AsVal_int(obj1, &val2);
17055 if (!SWIG_IsOK(ecode2)) {
17056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17057 }
17058 arg2 = static_cast< int >(val2);
17059 }
17060 {
17061 PyThreadState* __tstate = wxPyBeginAllowThreads();
17062 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 resultobj = PyList_New(0);
17068 for (size_t i=0; i < (&result)->GetCount(); i++) {
17069 PyObject* number = PyInt_FromLong((&result)->Item(i));
17070 PyList_Append(resultobj, number);
17071 Py_DECREF(number);
17072 }
17073 }
17074 return resultobj;
17075 fail:
17076 return NULL;
17077 }
17078
17079
17080 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17081 PyObject *resultobj = 0;
17082 wxFontEncoding arg1 ;
17083 wxFontEncodingArray result;
17084 int val1 ;
17085 int ecode1 = 0 ;
17086 PyObject * obj0 = 0 ;
17087 char * kwnames[] = {
17088 (char *) "enc", NULL
17089 };
17090
17091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17092 ecode1 = SWIG_AsVal_int(obj0, &val1);
17093 if (!SWIG_IsOK(ecode1)) {
17094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17095 }
17096 arg1 = static_cast< wxFontEncoding >(val1);
17097 {
17098 PyThreadState* __tstate = wxPyBeginAllowThreads();
17099 result = wxEncodingConverter::GetAllEquivalents(arg1);
17100 wxPyEndAllowThreads(__tstate);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 {
17104 resultobj = PyList_New(0);
17105 for (size_t i=0; i < (&result)->GetCount(); i++) {
17106 PyObject* number = PyInt_FromLong((&result)->Item(i));
17107 PyList_Append(resultobj, number);
17108 Py_DECREF(number);
17109 }
17110 }
17111 return resultobj;
17112 fail:
17113 return NULL;
17114 }
17115
17116
17117 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17118 PyObject *resultobj = 0;
17119 wxFontEncoding arg1 ;
17120 wxFontEncoding arg2 ;
17121 bool result;
17122 int val1 ;
17123 int ecode1 = 0 ;
17124 int val2 ;
17125 int ecode2 = 0 ;
17126 PyObject * obj0 = 0 ;
17127 PyObject * obj1 = 0 ;
17128 char * kwnames[] = {
17129 (char *) "encIn",(char *) "encOut", NULL
17130 };
17131
17132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17133 ecode1 = SWIG_AsVal_int(obj0, &val1);
17134 if (!SWIG_IsOK(ecode1)) {
17135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17136 }
17137 arg1 = static_cast< wxFontEncoding >(val1);
17138 ecode2 = SWIG_AsVal_int(obj1, &val2);
17139 if (!SWIG_IsOK(ecode2)) {
17140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17141 }
17142 arg2 = static_cast< wxFontEncoding >(val2);
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 {
17150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17151 }
17152 return resultobj;
17153 fail:
17154 return NULL;
17155 }
17156
17157
17158 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17159 PyObject *obj;
17160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17161 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17162 return SWIG_Py_Void();
17163 }
17164
17165 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17166 return SWIG_Python_InitShadowInstance(args);
17167 }
17168
17169 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17170 PyObject *resultobj = 0;
17171 wxDC *arg1 = (wxDC *) 0 ;
17172 void *argp1 = 0 ;
17173 int res1 = 0 ;
17174 PyObject *swig_obj[1] ;
17175
17176 if (!args) SWIG_fail;
17177 swig_obj[0] = args;
17178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17179 if (!SWIG_IsOK(res1)) {
17180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17181 }
17182 arg1 = reinterpret_cast< wxDC * >(argp1);
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 delete arg1;
17186
17187 wxPyEndAllowThreads(__tstate);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 resultobj = SWIG_Py_Void();
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17198 PyObject *resultobj = 0;
17199 wxDC *arg1 = (wxDC *) 0 ;
17200 int arg2 ;
17201 int arg3 ;
17202 wxColour *arg4 = 0 ;
17203 int arg5 = (int) wxFLOOD_SURFACE ;
17204 bool result;
17205 void *argp1 = 0 ;
17206 int res1 = 0 ;
17207 int val2 ;
17208 int ecode2 = 0 ;
17209 int val3 ;
17210 int ecode3 = 0 ;
17211 wxColour temp4 ;
17212 int val5 ;
17213 int ecode5 = 0 ;
17214 PyObject * obj0 = 0 ;
17215 PyObject * obj1 = 0 ;
17216 PyObject * obj2 = 0 ;
17217 PyObject * obj3 = 0 ;
17218 PyObject * obj4 = 0 ;
17219 char * kwnames[] = {
17220 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17221 };
17222
17223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17225 if (!SWIG_IsOK(res1)) {
17226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17227 }
17228 arg1 = reinterpret_cast< wxDC * >(argp1);
17229 ecode2 = SWIG_AsVal_int(obj1, &val2);
17230 if (!SWIG_IsOK(ecode2)) {
17231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17232 }
17233 arg2 = static_cast< int >(val2);
17234 ecode3 = SWIG_AsVal_int(obj2, &val3);
17235 if (!SWIG_IsOK(ecode3)) {
17236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17237 }
17238 arg3 = static_cast< int >(val3);
17239 {
17240 arg4 = &temp4;
17241 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17242 }
17243 if (obj4) {
17244 ecode5 = SWIG_AsVal_int(obj4, &val5);
17245 if (!SWIG_IsOK(ecode5)) {
17246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17247 }
17248 arg5 = static_cast< int >(val5);
17249 }
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 {
17257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17258 }
17259 return resultobj;
17260 fail:
17261 return NULL;
17262 }
17263
17264
17265 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj = 0;
17267 wxDC *arg1 = (wxDC *) 0 ;
17268 wxPoint *arg2 = 0 ;
17269 wxColour *arg3 = 0 ;
17270 int arg4 = (int) wxFLOOD_SURFACE ;
17271 bool result;
17272 void *argp1 = 0 ;
17273 int res1 = 0 ;
17274 wxPoint temp2 ;
17275 wxColour temp3 ;
17276 int val4 ;
17277 int ecode4 = 0 ;
17278 PyObject * obj0 = 0 ;
17279 PyObject * obj1 = 0 ;
17280 PyObject * obj2 = 0 ;
17281 PyObject * obj3 = 0 ;
17282 char * kwnames[] = {
17283 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17284 };
17285
17286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17288 if (!SWIG_IsOK(res1)) {
17289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17290 }
17291 arg1 = reinterpret_cast< wxDC * >(argp1);
17292 {
17293 arg2 = &temp2;
17294 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17295 }
17296 {
17297 arg3 = &temp3;
17298 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17299 }
17300 if (obj3) {
17301 ecode4 = SWIG_AsVal_int(obj3, &val4);
17302 if (!SWIG_IsOK(ecode4)) {
17303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17304 }
17305 arg4 = static_cast< int >(val4);
17306 }
17307 {
17308 PyThreadState* __tstate = wxPyBeginAllowThreads();
17309 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
17313 {
17314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17315 }
17316 return resultobj;
17317 fail:
17318 return NULL;
17319 }
17320
17321
17322 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17323 PyObject *resultobj = 0;
17324 wxDC *arg1 = (wxDC *) 0 ;
17325 wxRect *arg2 = 0 ;
17326 wxColour *arg3 = 0 ;
17327 wxColour *arg4 = 0 ;
17328 wxPoint *arg5 = 0 ;
17329 void *argp1 = 0 ;
17330 int res1 = 0 ;
17331 wxRect temp2 ;
17332 wxColour temp3 ;
17333 wxColour temp4 ;
17334 wxPoint temp5 ;
17335 PyObject * obj0 = 0 ;
17336 PyObject * obj1 = 0 ;
17337 PyObject * obj2 = 0 ;
17338 PyObject * obj3 = 0 ;
17339 PyObject * obj4 = 0 ;
17340 char * kwnames[] = {
17341 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17342 };
17343
17344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17348 }
17349 arg1 = reinterpret_cast< wxDC * >(argp1);
17350 {
17351 arg2 = &temp2;
17352 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17353 }
17354 {
17355 arg3 = &temp3;
17356 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17357 }
17358 {
17359 arg4 = &temp4;
17360 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17361 }
17362 {
17363 arg5 = &temp5;
17364 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17365 }
17366 {
17367 PyThreadState* __tstate = wxPyBeginAllowThreads();
17368 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17369 wxPyEndAllowThreads(__tstate);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 resultobj = SWIG_Py_Void();
17373 return resultobj;
17374 fail:
17375 return NULL;
17376 }
17377
17378
17379 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17380 PyObject *resultobj = 0;
17381 wxDC *arg1 = (wxDC *) 0 ;
17382 wxRect *arg2 = 0 ;
17383 wxColour *arg3 = 0 ;
17384 wxColour *arg4 = 0 ;
17385 wxDirection arg5 = (wxDirection) wxEAST ;
17386 void *argp1 = 0 ;
17387 int res1 = 0 ;
17388 wxRect temp2 ;
17389 wxColour temp3 ;
17390 wxColour temp4 ;
17391 int val5 ;
17392 int ecode5 = 0 ;
17393 PyObject * obj0 = 0 ;
17394 PyObject * obj1 = 0 ;
17395 PyObject * obj2 = 0 ;
17396 PyObject * obj3 = 0 ;
17397 PyObject * obj4 = 0 ;
17398 char * kwnames[] = {
17399 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17400 };
17401
17402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17404 if (!SWIG_IsOK(res1)) {
17405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17406 }
17407 arg1 = reinterpret_cast< wxDC * >(argp1);
17408 {
17409 arg2 = &temp2;
17410 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17411 }
17412 {
17413 arg3 = &temp3;
17414 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17415 }
17416 {
17417 arg4 = &temp4;
17418 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17419 }
17420 if (obj4) {
17421 ecode5 = SWIG_AsVal_int(obj4, &val5);
17422 if (!SWIG_IsOK(ecode5)) {
17423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17424 }
17425 arg5 = static_cast< wxDirection >(val5);
17426 }
17427 {
17428 PyThreadState* __tstate = wxPyBeginAllowThreads();
17429 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17430 wxPyEndAllowThreads(__tstate);
17431 if (PyErr_Occurred()) SWIG_fail;
17432 }
17433 resultobj = SWIG_Py_Void();
17434 return resultobj;
17435 fail:
17436 return NULL;
17437 }
17438
17439
17440 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17441 PyObject *resultobj = 0;
17442 wxDC *arg1 = (wxDC *) 0 ;
17443 int arg2 ;
17444 int arg3 ;
17445 wxColour result;
17446 void *argp1 = 0 ;
17447 int res1 = 0 ;
17448 int val2 ;
17449 int ecode2 = 0 ;
17450 int val3 ;
17451 int ecode3 = 0 ;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 PyObject * obj2 = 0 ;
17455 char * kwnames[] = {
17456 (char *) "self",(char *) "x",(char *) "y", NULL
17457 };
17458
17459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17461 if (!SWIG_IsOK(res1)) {
17462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17463 }
17464 arg1 = reinterpret_cast< wxDC * >(argp1);
17465 ecode2 = SWIG_AsVal_int(obj1, &val2);
17466 if (!SWIG_IsOK(ecode2)) {
17467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17468 }
17469 arg2 = static_cast< int >(val2);
17470 ecode3 = SWIG_AsVal_int(obj2, &val3);
17471 if (!SWIG_IsOK(ecode3)) {
17472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17473 }
17474 arg3 = static_cast< int >(val3);
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = wxDC_GetPixel(arg1,arg2,arg3);
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17482 return resultobj;
17483 fail:
17484 return NULL;
17485 }
17486
17487
17488 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17489 PyObject *resultobj = 0;
17490 wxDC *arg1 = (wxDC *) 0 ;
17491 wxPoint *arg2 = 0 ;
17492 wxColour result;
17493 void *argp1 = 0 ;
17494 int res1 = 0 ;
17495 wxPoint temp2 ;
17496 PyObject * obj0 = 0 ;
17497 PyObject * obj1 = 0 ;
17498 char * kwnames[] = {
17499 (char *) "self",(char *) "pt", NULL
17500 };
17501
17502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17504 if (!SWIG_IsOK(res1)) {
17505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17506 }
17507 arg1 = reinterpret_cast< wxDC * >(argp1);
17508 {
17509 arg2 = &temp2;
17510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17511 }
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17515 wxPyEndAllowThreads(__tstate);
17516 if (PyErr_Occurred()) SWIG_fail;
17517 }
17518 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17519 return resultobj;
17520 fail:
17521 return NULL;
17522 }
17523
17524
17525 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17526 PyObject *resultobj = 0;
17527 wxDC *arg1 = (wxDC *) 0 ;
17528 int arg2 ;
17529 int arg3 ;
17530 int arg4 ;
17531 int arg5 ;
17532 void *argp1 = 0 ;
17533 int res1 = 0 ;
17534 int val2 ;
17535 int ecode2 = 0 ;
17536 int val3 ;
17537 int ecode3 = 0 ;
17538 int val4 ;
17539 int ecode4 = 0 ;
17540 int val5 ;
17541 int ecode5 = 0 ;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 PyObject * obj2 = 0 ;
17545 PyObject * obj3 = 0 ;
17546 PyObject * obj4 = 0 ;
17547 char * kwnames[] = {
17548 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17549 };
17550
17551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17553 if (!SWIG_IsOK(res1)) {
17554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17555 }
17556 arg1 = reinterpret_cast< wxDC * >(argp1);
17557 ecode2 = SWIG_AsVal_int(obj1, &val2);
17558 if (!SWIG_IsOK(ecode2)) {
17559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17560 }
17561 arg2 = static_cast< int >(val2);
17562 ecode3 = SWIG_AsVal_int(obj2, &val3);
17563 if (!SWIG_IsOK(ecode3)) {
17564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17565 }
17566 arg3 = static_cast< int >(val3);
17567 ecode4 = SWIG_AsVal_int(obj3, &val4);
17568 if (!SWIG_IsOK(ecode4)) {
17569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17570 }
17571 arg4 = static_cast< int >(val4);
17572 ecode5 = SWIG_AsVal_int(obj4, &val5);
17573 if (!SWIG_IsOK(ecode5)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17575 }
17576 arg5 = static_cast< int >(val5);
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_Py_Void();
17584 return resultobj;
17585 fail:
17586 return NULL;
17587 }
17588
17589
17590 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17591 PyObject *resultobj = 0;
17592 wxDC *arg1 = (wxDC *) 0 ;
17593 wxPoint *arg2 = 0 ;
17594 wxPoint *arg3 = 0 ;
17595 void *argp1 = 0 ;
17596 int res1 = 0 ;
17597 wxPoint temp2 ;
17598 wxPoint temp3 ;
17599 PyObject * obj0 = 0 ;
17600 PyObject * obj1 = 0 ;
17601 PyObject * obj2 = 0 ;
17602 char * kwnames[] = {
17603 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17604 };
17605
17606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17608 if (!SWIG_IsOK(res1)) {
17609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17610 }
17611 arg1 = reinterpret_cast< wxDC * >(argp1);
17612 {
17613 arg2 = &temp2;
17614 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17615 }
17616 {
17617 arg3 = &temp3;
17618 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17619 }
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_Py_Void();
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = 0;
17635 wxDC *arg1 = (wxDC *) 0 ;
17636 int arg2 ;
17637 int arg3 ;
17638 void *argp1 = 0 ;
17639 int res1 = 0 ;
17640 int val2 ;
17641 int ecode2 = 0 ;
17642 int val3 ;
17643 int ecode3 = 0 ;
17644 PyObject * obj0 = 0 ;
17645 PyObject * obj1 = 0 ;
17646 PyObject * obj2 = 0 ;
17647 char * kwnames[] = {
17648 (char *) "self",(char *) "x",(char *) "y", NULL
17649 };
17650
17651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17653 if (!SWIG_IsOK(res1)) {
17654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17655 }
17656 arg1 = reinterpret_cast< wxDC * >(argp1);
17657 ecode2 = SWIG_AsVal_int(obj1, &val2);
17658 if (!SWIG_IsOK(ecode2)) {
17659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17660 }
17661 arg2 = static_cast< int >(val2);
17662 ecode3 = SWIG_AsVal_int(obj2, &val3);
17663 if (!SWIG_IsOK(ecode3)) {
17664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17665 }
17666 arg3 = static_cast< int >(val3);
17667 {
17668 PyThreadState* __tstate = wxPyBeginAllowThreads();
17669 (arg1)->CrossHair(arg2,arg3);
17670 wxPyEndAllowThreads(__tstate);
17671 if (PyErr_Occurred()) SWIG_fail;
17672 }
17673 resultobj = SWIG_Py_Void();
17674 return resultobj;
17675 fail:
17676 return NULL;
17677 }
17678
17679
17680 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17681 PyObject *resultobj = 0;
17682 wxDC *arg1 = (wxDC *) 0 ;
17683 wxPoint *arg2 = 0 ;
17684 void *argp1 = 0 ;
17685 int res1 = 0 ;
17686 wxPoint temp2 ;
17687 PyObject * obj0 = 0 ;
17688 PyObject * obj1 = 0 ;
17689 char * kwnames[] = {
17690 (char *) "self",(char *) "pt", NULL
17691 };
17692
17693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17695 if (!SWIG_IsOK(res1)) {
17696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17697 }
17698 arg1 = reinterpret_cast< wxDC * >(argp1);
17699 {
17700 arg2 = &temp2;
17701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17702 }
17703 {
17704 PyThreadState* __tstate = wxPyBeginAllowThreads();
17705 (arg1)->CrossHair((wxPoint const &)*arg2);
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
17709 resultobj = SWIG_Py_Void();
17710 return resultobj;
17711 fail:
17712 return NULL;
17713 }
17714
17715
17716 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17717 PyObject *resultobj = 0;
17718 wxDC *arg1 = (wxDC *) 0 ;
17719 int arg2 ;
17720 int arg3 ;
17721 int arg4 ;
17722 int arg5 ;
17723 int arg6 ;
17724 int arg7 ;
17725 void *argp1 = 0 ;
17726 int res1 = 0 ;
17727 int val2 ;
17728 int ecode2 = 0 ;
17729 int val3 ;
17730 int ecode3 = 0 ;
17731 int val4 ;
17732 int ecode4 = 0 ;
17733 int val5 ;
17734 int ecode5 = 0 ;
17735 int val6 ;
17736 int ecode6 = 0 ;
17737 int val7 ;
17738 int ecode7 = 0 ;
17739 PyObject * obj0 = 0 ;
17740 PyObject * obj1 = 0 ;
17741 PyObject * obj2 = 0 ;
17742 PyObject * obj3 = 0 ;
17743 PyObject * obj4 = 0 ;
17744 PyObject * obj5 = 0 ;
17745 PyObject * obj6 = 0 ;
17746 char * kwnames[] = {
17747 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17748 };
17749
17750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17752 if (!SWIG_IsOK(res1)) {
17753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17754 }
17755 arg1 = reinterpret_cast< wxDC * >(argp1);
17756 ecode2 = SWIG_AsVal_int(obj1, &val2);
17757 if (!SWIG_IsOK(ecode2)) {
17758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17759 }
17760 arg2 = static_cast< int >(val2);
17761 ecode3 = SWIG_AsVal_int(obj2, &val3);
17762 if (!SWIG_IsOK(ecode3)) {
17763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17764 }
17765 arg3 = static_cast< int >(val3);
17766 ecode4 = SWIG_AsVal_int(obj3, &val4);
17767 if (!SWIG_IsOK(ecode4)) {
17768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17769 }
17770 arg4 = static_cast< int >(val4);
17771 ecode5 = SWIG_AsVal_int(obj4, &val5);
17772 if (!SWIG_IsOK(ecode5)) {
17773 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17774 }
17775 arg5 = static_cast< int >(val5);
17776 ecode6 = SWIG_AsVal_int(obj5, &val6);
17777 if (!SWIG_IsOK(ecode6)) {
17778 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17779 }
17780 arg6 = static_cast< int >(val6);
17781 ecode7 = SWIG_AsVal_int(obj6, &val7);
17782 if (!SWIG_IsOK(ecode7)) {
17783 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17784 }
17785 arg7 = static_cast< int >(val7);
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17789 wxPyEndAllowThreads(__tstate);
17790 if (PyErr_Occurred()) SWIG_fail;
17791 }
17792 resultobj = SWIG_Py_Void();
17793 return resultobj;
17794 fail:
17795 return NULL;
17796 }
17797
17798
17799 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17800 PyObject *resultobj = 0;
17801 wxDC *arg1 = (wxDC *) 0 ;
17802 wxPoint *arg2 = 0 ;
17803 wxPoint *arg3 = 0 ;
17804 wxPoint *arg4 = 0 ;
17805 void *argp1 = 0 ;
17806 int res1 = 0 ;
17807 wxPoint temp2 ;
17808 wxPoint temp3 ;
17809 wxPoint temp4 ;
17810 PyObject * obj0 = 0 ;
17811 PyObject * obj1 = 0 ;
17812 PyObject * obj2 = 0 ;
17813 PyObject * obj3 = 0 ;
17814 char * kwnames[] = {
17815 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17816 };
17817
17818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17820 if (!SWIG_IsOK(res1)) {
17821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17822 }
17823 arg1 = reinterpret_cast< wxDC * >(argp1);
17824 {
17825 arg2 = &temp2;
17826 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17827 }
17828 {
17829 arg3 = &temp3;
17830 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17831 }
17832 {
17833 arg4 = &temp4;
17834 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17835 }
17836 {
17837 PyThreadState* __tstate = wxPyBeginAllowThreads();
17838 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 resultobj = SWIG_Py_Void();
17843 return resultobj;
17844 fail:
17845 return NULL;
17846 }
17847
17848
17849 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj = 0;
17851 wxDC *arg1 = (wxDC *) 0 ;
17852 int arg2 ;
17853 int arg3 ;
17854 int arg4 ;
17855 int arg5 ;
17856 void *argp1 = 0 ;
17857 int res1 = 0 ;
17858 int val2 ;
17859 int ecode2 = 0 ;
17860 int val3 ;
17861 int ecode3 = 0 ;
17862 int val4 ;
17863 int ecode4 = 0 ;
17864 int val5 ;
17865 int ecode5 = 0 ;
17866 PyObject * obj0 = 0 ;
17867 PyObject * obj1 = 0 ;
17868 PyObject * obj2 = 0 ;
17869 PyObject * obj3 = 0 ;
17870 PyObject * obj4 = 0 ;
17871 char * kwnames[] = {
17872 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17873 };
17874
17875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17877 if (!SWIG_IsOK(res1)) {
17878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17879 }
17880 arg1 = reinterpret_cast< wxDC * >(argp1);
17881 ecode2 = SWIG_AsVal_int(obj1, &val2);
17882 if (!SWIG_IsOK(ecode2)) {
17883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17884 }
17885 arg2 = static_cast< int >(val2);
17886 ecode3 = SWIG_AsVal_int(obj2, &val3);
17887 if (!SWIG_IsOK(ecode3)) {
17888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17889 }
17890 arg3 = static_cast< int >(val3);
17891 ecode4 = SWIG_AsVal_int(obj3, &val4);
17892 if (!SWIG_IsOK(ecode4)) {
17893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17894 }
17895 arg4 = static_cast< int >(val4);
17896 ecode5 = SWIG_AsVal_int(obj4, &val5);
17897 if (!SWIG_IsOK(ecode5)) {
17898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17899 }
17900 arg5 = static_cast< int >(val5);
17901 {
17902 PyThreadState* __tstate = wxPyBeginAllowThreads();
17903 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 resultobj = SWIG_Py_Void();
17908 return resultobj;
17909 fail:
17910 return NULL;
17911 }
17912
17913
17914 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17915 PyObject *resultobj = 0;
17916 wxDC *arg1 = (wxDC *) 0 ;
17917 wxRect *arg2 = 0 ;
17918 void *argp1 = 0 ;
17919 int res1 = 0 ;
17920 wxRect temp2 ;
17921 PyObject * obj0 = 0 ;
17922 PyObject * obj1 = 0 ;
17923 char * kwnames[] = {
17924 (char *) "self",(char *) "rect", NULL
17925 };
17926
17927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17929 if (!SWIG_IsOK(res1)) {
17930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17931 }
17932 arg1 = reinterpret_cast< wxDC * >(argp1);
17933 {
17934 arg2 = &temp2;
17935 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17936 }
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17940 wxPyEndAllowThreads(__tstate);
17941 if (PyErr_Occurred()) SWIG_fail;
17942 }
17943 resultobj = SWIG_Py_Void();
17944 return resultobj;
17945 fail:
17946 return NULL;
17947 }
17948
17949
17950 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17951 PyObject *resultobj = 0;
17952 wxDC *arg1 = (wxDC *) 0 ;
17953 int arg2 ;
17954 int arg3 ;
17955 int arg4 ;
17956 int arg5 ;
17957 double arg6 ;
17958 double arg7 ;
17959 void *argp1 = 0 ;
17960 int res1 = 0 ;
17961 int val2 ;
17962 int ecode2 = 0 ;
17963 int val3 ;
17964 int ecode3 = 0 ;
17965 int val4 ;
17966 int ecode4 = 0 ;
17967 int val5 ;
17968 int ecode5 = 0 ;
17969 double val6 ;
17970 int ecode6 = 0 ;
17971 double val7 ;
17972 int ecode7 = 0 ;
17973 PyObject * obj0 = 0 ;
17974 PyObject * obj1 = 0 ;
17975 PyObject * obj2 = 0 ;
17976 PyObject * obj3 = 0 ;
17977 PyObject * obj4 = 0 ;
17978 PyObject * obj5 = 0 ;
17979 PyObject * obj6 = 0 ;
17980 char * kwnames[] = {
17981 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17982 };
17983
17984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17986 if (!SWIG_IsOK(res1)) {
17987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17988 }
17989 arg1 = reinterpret_cast< wxDC * >(argp1);
17990 ecode2 = SWIG_AsVal_int(obj1, &val2);
17991 if (!SWIG_IsOK(ecode2)) {
17992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17993 }
17994 arg2 = static_cast< int >(val2);
17995 ecode3 = SWIG_AsVal_int(obj2, &val3);
17996 if (!SWIG_IsOK(ecode3)) {
17997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17998 }
17999 arg3 = static_cast< int >(val3);
18000 ecode4 = SWIG_AsVal_int(obj3, &val4);
18001 if (!SWIG_IsOK(ecode4)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18003 }
18004 arg4 = static_cast< int >(val4);
18005 ecode5 = SWIG_AsVal_int(obj4, &val5);
18006 if (!SWIG_IsOK(ecode5)) {
18007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18008 }
18009 arg5 = static_cast< int >(val5);
18010 ecode6 = SWIG_AsVal_double(obj5, &val6);
18011 if (!SWIG_IsOK(ecode6)) {
18012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18013 }
18014 arg6 = static_cast< double >(val6);
18015 ecode7 = SWIG_AsVal_double(obj6, &val7);
18016 if (!SWIG_IsOK(ecode7)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18018 }
18019 arg7 = static_cast< double >(val7);
18020 {
18021 PyThreadState* __tstate = wxPyBeginAllowThreads();
18022 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 resultobj = SWIG_Py_Void();
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj = 0;
18035 wxDC *arg1 = (wxDC *) 0 ;
18036 wxPoint *arg2 = 0 ;
18037 wxSize *arg3 = 0 ;
18038 double arg4 ;
18039 double arg5 ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 wxPoint temp2 ;
18043 wxSize temp3 ;
18044 double val4 ;
18045 int ecode4 = 0 ;
18046 double val5 ;
18047 int ecode5 = 0 ;
18048 PyObject * obj0 = 0 ;
18049 PyObject * obj1 = 0 ;
18050 PyObject * obj2 = 0 ;
18051 PyObject * obj3 = 0 ;
18052 PyObject * obj4 = 0 ;
18053 char * kwnames[] = {
18054 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18055 };
18056
18057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18059 if (!SWIG_IsOK(res1)) {
18060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18061 }
18062 arg1 = reinterpret_cast< wxDC * >(argp1);
18063 {
18064 arg2 = &temp2;
18065 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18066 }
18067 {
18068 arg3 = &temp3;
18069 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18070 }
18071 ecode4 = SWIG_AsVal_double(obj3, &val4);
18072 if (!SWIG_IsOK(ecode4)) {
18073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18074 }
18075 arg4 = static_cast< double >(val4);
18076 ecode5 = SWIG_AsVal_double(obj4, &val5);
18077 if (!SWIG_IsOK(ecode5)) {
18078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18079 }
18080 arg5 = static_cast< double >(val5);
18081 {
18082 PyThreadState* __tstate = wxPyBeginAllowThreads();
18083 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 resultobj = SWIG_Py_Void();
18088 return resultobj;
18089 fail:
18090 return NULL;
18091 }
18092
18093
18094 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18095 PyObject *resultobj = 0;
18096 wxDC *arg1 = (wxDC *) 0 ;
18097 int arg2 ;
18098 int arg3 ;
18099 void *argp1 = 0 ;
18100 int res1 = 0 ;
18101 int val2 ;
18102 int ecode2 = 0 ;
18103 int val3 ;
18104 int ecode3 = 0 ;
18105 PyObject * obj0 = 0 ;
18106 PyObject * obj1 = 0 ;
18107 PyObject * obj2 = 0 ;
18108 char * kwnames[] = {
18109 (char *) "self",(char *) "x",(char *) "y", NULL
18110 };
18111
18112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18114 if (!SWIG_IsOK(res1)) {
18115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18116 }
18117 arg1 = reinterpret_cast< wxDC * >(argp1);
18118 ecode2 = SWIG_AsVal_int(obj1, &val2);
18119 if (!SWIG_IsOK(ecode2)) {
18120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18121 }
18122 arg2 = static_cast< int >(val2);
18123 ecode3 = SWIG_AsVal_int(obj2, &val3);
18124 if (!SWIG_IsOK(ecode3)) {
18125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18126 }
18127 arg3 = static_cast< int >(val3);
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 (arg1)->DrawPoint(arg2,arg3);
18131 wxPyEndAllowThreads(__tstate);
18132 if (PyErr_Occurred()) SWIG_fail;
18133 }
18134 resultobj = SWIG_Py_Void();
18135 return resultobj;
18136 fail:
18137 return NULL;
18138 }
18139
18140
18141 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18142 PyObject *resultobj = 0;
18143 wxDC *arg1 = (wxDC *) 0 ;
18144 wxPoint *arg2 = 0 ;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 wxPoint temp2 ;
18148 PyObject * obj0 = 0 ;
18149 PyObject * obj1 = 0 ;
18150 char * kwnames[] = {
18151 (char *) "self",(char *) "pt", NULL
18152 };
18153
18154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18156 if (!SWIG_IsOK(res1)) {
18157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18158 }
18159 arg1 = reinterpret_cast< wxDC * >(argp1);
18160 {
18161 arg2 = &temp2;
18162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18163 }
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 (arg1)->DrawPoint((wxPoint const &)*arg2);
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 resultobj = SWIG_Py_Void();
18171 return resultobj;
18172 fail:
18173 return NULL;
18174 }
18175
18176
18177 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18178 PyObject *resultobj = 0;
18179 wxDC *arg1 = (wxDC *) 0 ;
18180 int arg2 ;
18181 int arg3 ;
18182 int arg4 ;
18183 int arg5 ;
18184 void *argp1 = 0 ;
18185 int res1 = 0 ;
18186 int val2 ;
18187 int ecode2 = 0 ;
18188 int val3 ;
18189 int ecode3 = 0 ;
18190 int val4 ;
18191 int ecode4 = 0 ;
18192 int val5 ;
18193 int ecode5 = 0 ;
18194 PyObject * obj0 = 0 ;
18195 PyObject * obj1 = 0 ;
18196 PyObject * obj2 = 0 ;
18197 PyObject * obj3 = 0 ;
18198 PyObject * obj4 = 0 ;
18199 char * kwnames[] = {
18200 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18201 };
18202
18203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18205 if (!SWIG_IsOK(res1)) {
18206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18207 }
18208 arg1 = reinterpret_cast< wxDC * >(argp1);
18209 ecode2 = SWIG_AsVal_int(obj1, &val2);
18210 if (!SWIG_IsOK(ecode2)) {
18211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18212 }
18213 arg2 = static_cast< int >(val2);
18214 ecode3 = SWIG_AsVal_int(obj2, &val3);
18215 if (!SWIG_IsOK(ecode3)) {
18216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18217 }
18218 arg3 = static_cast< int >(val3);
18219 ecode4 = SWIG_AsVal_int(obj3, &val4);
18220 if (!SWIG_IsOK(ecode4)) {
18221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18222 }
18223 arg4 = static_cast< int >(val4);
18224 ecode5 = SWIG_AsVal_int(obj4, &val5);
18225 if (!SWIG_IsOK(ecode5)) {
18226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18227 }
18228 arg5 = static_cast< int >(val5);
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 resultobj = SWIG_Py_Void();
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj = 0;
18244 wxDC *arg1 = (wxDC *) 0 ;
18245 wxRect *arg2 = 0 ;
18246 void *argp1 = 0 ;
18247 int res1 = 0 ;
18248 wxRect temp2 ;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 char * kwnames[] = {
18252 (char *) "self",(char *) "rect", NULL
18253 };
18254
18255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18257 if (!SWIG_IsOK(res1)) {
18258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18259 }
18260 arg1 = reinterpret_cast< wxDC * >(argp1);
18261 {
18262 arg2 = &temp2;
18263 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18264 }
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 (arg1)->DrawRectangle((wxRect const &)*arg2);
18268 wxPyEndAllowThreads(__tstate);
18269 if (PyErr_Occurred()) SWIG_fail;
18270 }
18271 resultobj = SWIG_Py_Void();
18272 return resultobj;
18273 fail:
18274 return NULL;
18275 }
18276
18277
18278 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj = 0;
18280 wxDC *arg1 = (wxDC *) 0 ;
18281 wxPoint *arg2 = 0 ;
18282 wxSize *arg3 = 0 ;
18283 void *argp1 = 0 ;
18284 int res1 = 0 ;
18285 wxPoint temp2 ;
18286 wxSize temp3 ;
18287 PyObject * obj0 = 0 ;
18288 PyObject * obj1 = 0 ;
18289 PyObject * obj2 = 0 ;
18290 char * kwnames[] = {
18291 (char *) "self",(char *) "pt",(char *) "sz", NULL
18292 };
18293
18294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18296 if (!SWIG_IsOK(res1)) {
18297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18298 }
18299 arg1 = reinterpret_cast< wxDC * >(argp1);
18300 {
18301 arg2 = &temp2;
18302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18303 }
18304 {
18305 arg3 = &temp3;
18306 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18307 }
18308 {
18309 PyThreadState* __tstate = wxPyBeginAllowThreads();
18310 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18311 wxPyEndAllowThreads(__tstate);
18312 if (PyErr_Occurred()) SWIG_fail;
18313 }
18314 resultobj = SWIG_Py_Void();
18315 return resultobj;
18316 fail:
18317 return NULL;
18318 }
18319
18320
18321 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18322 PyObject *resultobj = 0;
18323 wxDC *arg1 = (wxDC *) 0 ;
18324 int arg2 ;
18325 int arg3 ;
18326 int arg4 ;
18327 int arg5 ;
18328 double arg6 ;
18329 void *argp1 = 0 ;
18330 int res1 = 0 ;
18331 int val2 ;
18332 int ecode2 = 0 ;
18333 int val3 ;
18334 int ecode3 = 0 ;
18335 int val4 ;
18336 int ecode4 = 0 ;
18337 int val5 ;
18338 int ecode5 = 0 ;
18339 double val6 ;
18340 int ecode6 = 0 ;
18341 PyObject * obj0 = 0 ;
18342 PyObject * obj1 = 0 ;
18343 PyObject * obj2 = 0 ;
18344 PyObject * obj3 = 0 ;
18345 PyObject * obj4 = 0 ;
18346 PyObject * obj5 = 0 ;
18347 char * kwnames[] = {
18348 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18349 };
18350
18351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18353 if (!SWIG_IsOK(res1)) {
18354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18355 }
18356 arg1 = reinterpret_cast< wxDC * >(argp1);
18357 ecode2 = SWIG_AsVal_int(obj1, &val2);
18358 if (!SWIG_IsOK(ecode2)) {
18359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18360 }
18361 arg2 = static_cast< int >(val2);
18362 ecode3 = SWIG_AsVal_int(obj2, &val3);
18363 if (!SWIG_IsOK(ecode3)) {
18364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18365 }
18366 arg3 = static_cast< int >(val3);
18367 ecode4 = SWIG_AsVal_int(obj3, &val4);
18368 if (!SWIG_IsOK(ecode4)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18370 }
18371 arg4 = static_cast< int >(val4);
18372 ecode5 = SWIG_AsVal_int(obj4, &val5);
18373 if (!SWIG_IsOK(ecode5)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18375 }
18376 arg5 = static_cast< int >(val5);
18377 ecode6 = SWIG_AsVal_double(obj5, &val6);
18378 if (!SWIG_IsOK(ecode6)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18380 }
18381 arg6 = static_cast< double >(val6);
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18385 wxPyEndAllowThreads(__tstate);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 }
18388 resultobj = SWIG_Py_Void();
18389 return resultobj;
18390 fail:
18391 return NULL;
18392 }
18393
18394
18395 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj = 0;
18397 wxDC *arg1 = (wxDC *) 0 ;
18398 wxRect *arg2 = 0 ;
18399 double arg3 ;
18400 void *argp1 = 0 ;
18401 int res1 = 0 ;
18402 wxRect temp2 ;
18403 double val3 ;
18404 int ecode3 = 0 ;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 PyObject * obj2 = 0 ;
18408 char * kwnames[] = {
18409 (char *) "self",(char *) "r",(char *) "radius", NULL
18410 };
18411
18412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18414 if (!SWIG_IsOK(res1)) {
18415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18416 }
18417 arg1 = reinterpret_cast< wxDC * >(argp1);
18418 {
18419 arg2 = &temp2;
18420 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18421 }
18422 ecode3 = SWIG_AsVal_double(obj2, &val3);
18423 if (!SWIG_IsOK(ecode3)) {
18424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18425 }
18426 arg3 = static_cast< double >(val3);
18427 {
18428 PyThreadState* __tstate = wxPyBeginAllowThreads();
18429 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18430 wxPyEndAllowThreads(__tstate);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 resultobj = SWIG_Py_Void();
18434 return resultobj;
18435 fail:
18436 return NULL;
18437 }
18438
18439
18440 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18441 PyObject *resultobj = 0;
18442 wxDC *arg1 = (wxDC *) 0 ;
18443 wxPoint *arg2 = 0 ;
18444 wxSize *arg3 = 0 ;
18445 double arg4 ;
18446 void *argp1 = 0 ;
18447 int res1 = 0 ;
18448 wxPoint temp2 ;
18449 wxSize temp3 ;
18450 double val4 ;
18451 int ecode4 = 0 ;
18452 PyObject * obj0 = 0 ;
18453 PyObject * obj1 = 0 ;
18454 PyObject * obj2 = 0 ;
18455 PyObject * obj3 = 0 ;
18456 char * kwnames[] = {
18457 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18458 };
18459
18460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18462 if (!SWIG_IsOK(res1)) {
18463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18464 }
18465 arg1 = reinterpret_cast< wxDC * >(argp1);
18466 {
18467 arg2 = &temp2;
18468 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18469 }
18470 {
18471 arg3 = &temp3;
18472 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18473 }
18474 ecode4 = SWIG_AsVal_double(obj3, &val4);
18475 if (!SWIG_IsOK(ecode4)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18477 }
18478 arg4 = static_cast< double >(val4);
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 resultobj = SWIG_Py_Void();
18486 return resultobj;
18487 fail:
18488 return NULL;
18489 }
18490
18491
18492 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj = 0;
18494 wxDC *arg1 = (wxDC *) 0 ;
18495 int arg2 ;
18496 int arg3 ;
18497 int arg4 ;
18498 void *argp1 = 0 ;
18499 int res1 = 0 ;
18500 int val2 ;
18501 int ecode2 = 0 ;
18502 int val3 ;
18503 int ecode3 = 0 ;
18504 int val4 ;
18505 int ecode4 = 0 ;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 PyObject * obj2 = 0 ;
18509 PyObject * obj3 = 0 ;
18510 char * kwnames[] = {
18511 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18512 };
18513
18514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18516 if (!SWIG_IsOK(res1)) {
18517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18518 }
18519 arg1 = reinterpret_cast< wxDC * >(argp1);
18520 ecode2 = SWIG_AsVal_int(obj1, &val2);
18521 if (!SWIG_IsOK(ecode2)) {
18522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18523 }
18524 arg2 = static_cast< int >(val2);
18525 ecode3 = SWIG_AsVal_int(obj2, &val3);
18526 if (!SWIG_IsOK(ecode3)) {
18527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18528 }
18529 arg3 = static_cast< int >(val3);
18530 ecode4 = SWIG_AsVal_int(obj3, &val4);
18531 if (!SWIG_IsOK(ecode4)) {
18532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18533 }
18534 arg4 = static_cast< int >(val4);
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 (arg1)->DrawCircle(arg2,arg3,arg4);
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 resultobj = SWIG_Py_Void();
18542 return resultobj;
18543 fail:
18544 return NULL;
18545 }
18546
18547
18548 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj = 0;
18550 wxDC *arg1 = (wxDC *) 0 ;
18551 wxPoint *arg2 = 0 ;
18552 int arg3 ;
18553 void *argp1 = 0 ;
18554 int res1 = 0 ;
18555 wxPoint temp2 ;
18556 int val3 ;
18557 int ecode3 = 0 ;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 PyObject * obj2 = 0 ;
18561 char * kwnames[] = {
18562 (char *) "self",(char *) "pt",(char *) "radius", NULL
18563 };
18564
18565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18567 if (!SWIG_IsOK(res1)) {
18568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18569 }
18570 arg1 = reinterpret_cast< wxDC * >(argp1);
18571 {
18572 arg2 = &temp2;
18573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18574 }
18575 ecode3 = SWIG_AsVal_int(obj2, &val3);
18576 if (!SWIG_IsOK(ecode3)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18578 }
18579 arg3 = static_cast< int >(val3);
18580 {
18581 PyThreadState* __tstate = wxPyBeginAllowThreads();
18582 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18583 wxPyEndAllowThreads(__tstate);
18584 if (PyErr_Occurred()) SWIG_fail;
18585 }
18586 resultobj = SWIG_Py_Void();
18587 return resultobj;
18588 fail:
18589 return NULL;
18590 }
18591
18592
18593 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18594 PyObject *resultobj = 0;
18595 wxDC *arg1 = (wxDC *) 0 ;
18596 int arg2 ;
18597 int arg3 ;
18598 int arg4 ;
18599 int arg5 ;
18600 void *argp1 = 0 ;
18601 int res1 = 0 ;
18602 int val2 ;
18603 int ecode2 = 0 ;
18604 int val3 ;
18605 int ecode3 = 0 ;
18606 int val4 ;
18607 int ecode4 = 0 ;
18608 int val5 ;
18609 int ecode5 = 0 ;
18610 PyObject * obj0 = 0 ;
18611 PyObject * obj1 = 0 ;
18612 PyObject * obj2 = 0 ;
18613 PyObject * obj3 = 0 ;
18614 PyObject * obj4 = 0 ;
18615 char * kwnames[] = {
18616 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18617 };
18618
18619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18623 }
18624 arg1 = reinterpret_cast< wxDC * >(argp1);
18625 ecode2 = SWIG_AsVal_int(obj1, &val2);
18626 if (!SWIG_IsOK(ecode2)) {
18627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18628 }
18629 arg2 = static_cast< int >(val2);
18630 ecode3 = SWIG_AsVal_int(obj2, &val3);
18631 if (!SWIG_IsOK(ecode3)) {
18632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18633 }
18634 arg3 = static_cast< int >(val3);
18635 ecode4 = SWIG_AsVal_int(obj3, &val4);
18636 if (!SWIG_IsOK(ecode4)) {
18637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18638 }
18639 arg4 = static_cast< int >(val4);
18640 ecode5 = SWIG_AsVal_int(obj4, &val5);
18641 if (!SWIG_IsOK(ecode5)) {
18642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18643 }
18644 arg5 = static_cast< int >(val5);
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 resultobj = SWIG_Py_Void();
18652 return resultobj;
18653 fail:
18654 return NULL;
18655 }
18656
18657
18658 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18659 PyObject *resultobj = 0;
18660 wxDC *arg1 = (wxDC *) 0 ;
18661 wxRect *arg2 = 0 ;
18662 void *argp1 = 0 ;
18663 int res1 = 0 ;
18664 wxRect temp2 ;
18665 PyObject * obj0 = 0 ;
18666 PyObject * obj1 = 0 ;
18667 char * kwnames[] = {
18668 (char *) "self",(char *) "rect", NULL
18669 };
18670
18671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18673 if (!SWIG_IsOK(res1)) {
18674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18675 }
18676 arg1 = reinterpret_cast< wxDC * >(argp1);
18677 {
18678 arg2 = &temp2;
18679 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18680 }
18681 {
18682 PyThreadState* __tstate = wxPyBeginAllowThreads();
18683 (arg1)->DrawEllipse((wxRect const &)*arg2);
18684 wxPyEndAllowThreads(__tstate);
18685 if (PyErr_Occurred()) SWIG_fail;
18686 }
18687 resultobj = SWIG_Py_Void();
18688 return resultobj;
18689 fail:
18690 return NULL;
18691 }
18692
18693
18694 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18695 PyObject *resultobj = 0;
18696 wxDC *arg1 = (wxDC *) 0 ;
18697 wxPoint *arg2 = 0 ;
18698 wxSize *arg3 = 0 ;
18699 void *argp1 = 0 ;
18700 int res1 = 0 ;
18701 wxPoint temp2 ;
18702 wxSize temp3 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 PyObject * obj2 = 0 ;
18706 char * kwnames[] = {
18707 (char *) "self",(char *) "pt",(char *) "sz", NULL
18708 };
18709
18710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18712 if (!SWIG_IsOK(res1)) {
18713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18714 }
18715 arg1 = reinterpret_cast< wxDC * >(argp1);
18716 {
18717 arg2 = &temp2;
18718 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18719 }
18720 {
18721 arg3 = &temp3;
18722 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18723 }
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 resultobj = SWIG_Py_Void();
18731 return resultobj;
18732 fail:
18733 return NULL;
18734 }
18735
18736
18737 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj = 0;
18739 wxDC *arg1 = (wxDC *) 0 ;
18740 wxIcon *arg2 = 0 ;
18741 int arg3 ;
18742 int arg4 ;
18743 void *argp1 = 0 ;
18744 int res1 = 0 ;
18745 void *argp2 = 0 ;
18746 int res2 = 0 ;
18747 int val3 ;
18748 int ecode3 = 0 ;
18749 int val4 ;
18750 int ecode4 = 0 ;
18751 PyObject * obj0 = 0 ;
18752 PyObject * obj1 = 0 ;
18753 PyObject * obj2 = 0 ;
18754 PyObject * obj3 = 0 ;
18755 char * kwnames[] = {
18756 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18757 };
18758
18759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18761 if (!SWIG_IsOK(res1)) {
18762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18763 }
18764 arg1 = reinterpret_cast< wxDC * >(argp1);
18765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18766 if (!SWIG_IsOK(res2)) {
18767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18768 }
18769 if (!argp2) {
18770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18771 }
18772 arg2 = reinterpret_cast< wxIcon * >(argp2);
18773 ecode3 = SWIG_AsVal_int(obj2, &val3);
18774 if (!SWIG_IsOK(ecode3)) {
18775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18776 }
18777 arg3 = static_cast< int >(val3);
18778 ecode4 = SWIG_AsVal_int(obj3, &val4);
18779 if (!SWIG_IsOK(ecode4)) {
18780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18781 }
18782 arg4 = static_cast< int >(val4);
18783 {
18784 PyThreadState* __tstate = wxPyBeginAllowThreads();
18785 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18786 wxPyEndAllowThreads(__tstate);
18787 if (PyErr_Occurred()) SWIG_fail;
18788 }
18789 resultobj = SWIG_Py_Void();
18790 return resultobj;
18791 fail:
18792 return NULL;
18793 }
18794
18795
18796 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18797 PyObject *resultobj = 0;
18798 wxDC *arg1 = (wxDC *) 0 ;
18799 wxIcon *arg2 = 0 ;
18800 wxPoint *arg3 = 0 ;
18801 void *argp1 = 0 ;
18802 int res1 = 0 ;
18803 void *argp2 = 0 ;
18804 int res2 = 0 ;
18805 wxPoint temp3 ;
18806 PyObject * obj0 = 0 ;
18807 PyObject * obj1 = 0 ;
18808 PyObject * obj2 = 0 ;
18809 char * kwnames[] = {
18810 (char *) "self",(char *) "icon",(char *) "pt", NULL
18811 };
18812
18813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18815 if (!SWIG_IsOK(res1)) {
18816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18817 }
18818 arg1 = reinterpret_cast< wxDC * >(argp1);
18819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18820 if (!SWIG_IsOK(res2)) {
18821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18822 }
18823 if (!argp2) {
18824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18825 }
18826 arg2 = reinterpret_cast< wxIcon * >(argp2);
18827 {
18828 arg3 = &temp3;
18829 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18830 }
18831 {
18832 PyThreadState* __tstate = wxPyBeginAllowThreads();
18833 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18834 wxPyEndAllowThreads(__tstate);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 resultobj = SWIG_Py_Void();
18838 return resultobj;
18839 fail:
18840 return NULL;
18841 }
18842
18843
18844 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18845 PyObject *resultobj = 0;
18846 wxDC *arg1 = (wxDC *) 0 ;
18847 wxBitmap *arg2 = 0 ;
18848 int arg3 ;
18849 int arg4 ;
18850 bool arg5 = (bool) false ;
18851 void *argp1 = 0 ;
18852 int res1 = 0 ;
18853 void *argp2 = 0 ;
18854 int res2 = 0 ;
18855 int val3 ;
18856 int ecode3 = 0 ;
18857 int val4 ;
18858 int ecode4 = 0 ;
18859 bool val5 ;
18860 int ecode5 = 0 ;
18861 PyObject * obj0 = 0 ;
18862 PyObject * obj1 = 0 ;
18863 PyObject * obj2 = 0 ;
18864 PyObject * obj3 = 0 ;
18865 PyObject * obj4 = 0 ;
18866 char * kwnames[] = {
18867 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18868 };
18869
18870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18872 if (!SWIG_IsOK(res1)) {
18873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18874 }
18875 arg1 = reinterpret_cast< wxDC * >(argp1);
18876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18877 if (!SWIG_IsOK(res2)) {
18878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18879 }
18880 if (!argp2) {
18881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18882 }
18883 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18884 ecode3 = SWIG_AsVal_int(obj2, &val3);
18885 if (!SWIG_IsOK(ecode3)) {
18886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18887 }
18888 arg3 = static_cast< int >(val3);
18889 ecode4 = SWIG_AsVal_int(obj3, &val4);
18890 if (!SWIG_IsOK(ecode4)) {
18891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18892 }
18893 arg4 = static_cast< int >(val4);
18894 if (obj4) {
18895 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18896 if (!SWIG_IsOK(ecode5)) {
18897 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18898 }
18899 arg5 = static_cast< bool >(val5);
18900 }
18901 {
18902 PyThreadState* __tstate = wxPyBeginAllowThreads();
18903 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18904 wxPyEndAllowThreads(__tstate);
18905 if (PyErr_Occurred()) SWIG_fail;
18906 }
18907 resultobj = SWIG_Py_Void();
18908 return resultobj;
18909 fail:
18910 return NULL;
18911 }
18912
18913
18914 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18915 PyObject *resultobj = 0;
18916 wxDC *arg1 = (wxDC *) 0 ;
18917 wxBitmap *arg2 = 0 ;
18918 wxPoint *arg3 = 0 ;
18919 bool arg4 = (bool) false ;
18920 void *argp1 = 0 ;
18921 int res1 = 0 ;
18922 void *argp2 = 0 ;
18923 int res2 = 0 ;
18924 wxPoint temp3 ;
18925 bool val4 ;
18926 int ecode4 = 0 ;
18927 PyObject * obj0 = 0 ;
18928 PyObject * obj1 = 0 ;
18929 PyObject * obj2 = 0 ;
18930 PyObject * obj3 = 0 ;
18931 char * kwnames[] = {
18932 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18933 };
18934
18935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18937 if (!SWIG_IsOK(res1)) {
18938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18939 }
18940 arg1 = reinterpret_cast< wxDC * >(argp1);
18941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18942 if (!SWIG_IsOK(res2)) {
18943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18944 }
18945 if (!argp2) {
18946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18947 }
18948 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18949 {
18950 arg3 = &temp3;
18951 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18952 }
18953 if (obj3) {
18954 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18955 if (!SWIG_IsOK(ecode4)) {
18956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18957 }
18958 arg4 = static_cast< bool >(val4);
18959 }
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 resultobj = SWIG_Py_Void();
18967 return resultobj;
18968 fail:
18969 return NULL;
18970 }
18971
18972
18973 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18974 PyObject *resultobj = 0;
18975 wxDC *arg1 = (wxDC *) 0 ;
18976 wxString *arg2 = 0 ;
18977 int arg3 ;
18978 int arg4 ;
18979 void *argp1 = 0 ;
18980 int res1 = 0 ;
18981 bool temp2 = false ;
18982 int val3 ;
18983 int ecode3 = 0 ;
18984 int val4 ;
18985 int ecode4 = 0 ;
18986 PyObject * obj0 = 0 ;
18987 PyObject * obj1 = 0 ;
18988 PyObject * obj2 = 0 ;
18989 PyObject * obj3 = 0 ;
18990 char * kwnames[] = {
18991 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18992 };
18993
18994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18996 if (!SWIG_IsOK(res1)) {
18997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18998 }
18999 arg1 = reinterpret_cast< wxDC * >(argp1);
19000 {
19001 arg2 = wxString_in_helper(obj1);
19002 if (arg2 == NULL) SWIG_fail;
19003 temp2 = true;
19004 }
19005 ecode3 = SWIG_AsVal_int(obj2, &val3);
19006 if (!SWIG_IsOK(ecode3)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19008 }
19009 arg3 = static_cast< int >(val3);
19010 ecode4 = SWIG_AsVal_int(obj3, &val4);
19011 if (!SWIG_IsOK(ecode4)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19013 }
19014 arg4 = static_cast< int >(val4);
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_Py_Void();
19022 {
19023 if (temp2)
19024 delete arg2;
19025 }
19026 return resultobj;
19027 fail:
19028 {
19029 if (temp2)
19030 delete arg2;
19031 }
19032 return NULL;
19033 }
19034
19035
19036 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19037 PyObject *resultobj = 0;
19038 wxDC *arg1 = (wxDC *) 0 ;
19039 wxString *arg2 = 0 ;
19040 wxPoint *arg3 = 0 ;
19041 void *argp1 = 0 ;
19042 int res1 = 0 ;
19043 bool temp2 = false ;
19044 wxPoint temp3 ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 PyObject * obj2 = 0 ;
19048 char * kwnames[] = {
19049 (char *) "self",(char *) "text",(char *) "pt", NULL
19050 };
19051
19052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19054 if (!SWIG_IsOK(res1)) {
19055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19056 }
19057 arg1 = reinterpret_cast< wxDC * >(argp1);
19058 {
19059 arg2 = wxString_in_helper(obj1);
19060 if (arg2 == NULL) SWIG_fail;
19061 temp2 = true;
19062 }
19063 {
19064 arg3 = &temp3;
19065 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19066 }
19067 {
19068 PyThreadState* __tstate = wxPyBeginAllowThreads();
19069 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19070 wxPyEndAllowThreads(__tstate);
19071 if (PyErr_Occurred()) SWIG_fail;
19072 }
19073 resultobj = SWIG_Py_Void();
19074 {
19075 if (temp2)
19076 delete arg2;
19077 }
19078 return resultobj;
19079 fail:
19080 {
19081 if (temp2)
19082 delete arg2;
19083 }
19084 return NULL;
19085 }
19086
19087
19088 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19089 PyObject *resultobj = 0;
19090 wxDC *arg1 = (wxDC *) 0 ;
19091 wxString *arg2 = 0 ;
19092 int arg3 ;
19093 int arg4 ;
19094 double arg5 ;
19095 void *argp1 = 0 ;
19096 int res1 = 0 ;
19097 bool temp2 = false ;
19098 int val3 ;
19099 int ecode3 = 0 ;
19100 int val4 ;
19101 int ecode4 = 0 ;
19102 double val5 ;
19103 int ecode5 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 PyObject * obj2 = 0 ;
19107 PyObject * obj3 = 0 ;
19108 PyObject * obj4 = 0 ;
19109 char * kwnames[] = {
19110 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19111 };
19112
19113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19115 if (!SWIG_IsOK(res1)) {
19116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19117 }
19118 arg1 = reinterpret_cast< wxDC * >(argp1);
19119 {
19120 arg2 = wxString_in_helper(obj1);
19121 if (arg2 == NULL) SWIG_fail;
19122 temp2 = true;
19123 }
19124 ecode3 = SWIG_AsVal_int(obj2, &val3);
19125 if (!SWIG_IsOK(ecode3)) {
19126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19127 }
19128 arg3 = static_cast< int >(val3);
19129 ecode4 = SWIG_AsVal_int(obj3, &val4);
19130 if (!SWIG_IsOK(ecode4)) {
19131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19132 }
19133 arg4 = static_cast< int >(val4);
19134 ecode5 = SWIG_AsVal_double(obj4, &val5);
19135 if (!SWIG_IsOK(ecode5)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19137 }
19138 arg5 = static_cast< double >(val5);
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19142 wxPyEndAllowThreads(__tstate);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 resultobj = SWIG_Py_Void();
19146 {
19147 if (temp2)
19148 delete arg2;
19149 }
19150 return resultobj;
19151 fail:
19152 {
19153 if (temp2)
19154 delete arg2;
19155 }
19156 return NULL;
19157 }
19158
19159
19160 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj = 0;
19162 wxDC *arg1 = (wxDC *) 0 ;
19163 wxString *arg2 = 0 ;
19164 wxPoint *arg3 = 0 ;
19165 double arg4 ;
19166 void *argp1 = 0 ;
19167 int res1 = 0 ;
19168 bool temp2 = false ;
19169 wxPoint temp3 ;
19170 double val4 ;
19171 int ecode4 = 0 ;
19172 PyObject * obj0 = 0 ;
19173 PyObject * obj1 = 0 ;
19174 PyObject * obj2 = 0 ;
19175 PyObject * obj3 = 0 ;
19176 char * kwnames[] = {
19177 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19178 };
19179
19180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19182 if (!SWIG_IsOK(res1)) {
19183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19184 }
19185 arg1 = reinterpret_cast< wxDC * >(argp1);
19186 {
19187 arg2 = wxString_in_helper(obj1);
19188 if (arg2 == NULL) SWIG_fail;
19189 temp2 = true;
19190 }
19191 {
19192 arg3 = &temp3;
19193 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19194 }
19195 ecode4 = SWIG_AsVal_double(obj3, &val4);
19196 if (!SWIG_IsOK(ecode4)) {
19197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19198 }
19199 arg4 = static_cast< double >(val4);
19200 {
19201 PyThreadState* __tstate = wxPyBeginAllowThreads();
19202 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19203 wxPyEndAllowThreads(__tstate);
19204 if (PyErr_Occurred()) SWIG_fail;
19205 }
19206 resultobj = SWIG_Py_Void();
19207 {
19208 if (temp2)
19209 delete arg2;
19210 }
19211 return resultobj;
19212 fail:
19213 {
19214 if (temp2)
19215 delete arg2;
19216 }
19217 return NULL;
19218 }
19219
19220
19221 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19222 PyObject *resultobj = 0;
19223 wxDC *arg1 = (wxDC *) 0 ;
19224 int arg2 ;
19225 int arg3 ;
19226 int arg4 ;
19227 int arg5 ;
19228 wxDC *arg6 = (wxDC *) 0 ;
19229 int arg7 ;
19230 int arg8 ;
19231 int arg9 = (int) wxCOPY ;
19232 bool arg10 = (bool) false ;
19233 int arg11 = (int) -1 ;
19234 int arg12 = (int) -1 ;
19235 bool result;
19236 void *argp1 = 0 ;
19237 int res1 = 0 ;
19238 int val2 ;
19239 int ecode2 = 0 ;
19240 int val3 ;
19241 int ecode3 = 0 ;
19242 int val4 ;
19243 int ecode4 = 0 ;
19244 int val5 ;
19245 int ecode5 = 0 ;
19246 void *argp6 = 0 ;
19247 int res6 = 0 ;
19248 int val7 ;
19249 int ecode7 = 0 ;
19250 int val8 ;
19251 int ecode8 = 0 ;
19252 int val9 ;
19253 int ecode9 = 0 ;
19254 bool val10 ;
19255 int ecode10 = 0 ;
19256 int val11 ;
19257 int ecode11 = 0 ;
19258 int val12 ;
19259 int ecode12 = 0 ;
19260 PyObject * obj0 = 0 ;
19261 PyObject * obj1 = 0 ;
19262 PyObject * obj2 = 0 ;
19263 PyObject * obj3 = 0 ;
19264 PyObject * obj4 = 0 ;
19265 PyObject * obj5 = 0 ;
19266 PyObject * obj6 = 0 ;
19267 PyObject * obj7 = 0 ;
19268 PyObject * obj8 = 0 ;
19269 PyObject * obj9 = 0 ;
19270 PyObject * obj10 = 0 ;
19271 PyObject * obj11 = 0 ;
19272 char * kwnames[] = {
19273 (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
19274 };
19275
19276 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;
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_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19280 }
19281 arg1 = reinterpret_cast< wxDC * >(argp1);
19282 ecode2 = SWIG_AsVal_int(obj1, &val2);
19283 if (!SWIG_IsOK(ecode2)) {
19284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19285 }
19286 arg2 = static_cast< int >(val2);
19287 ecode3 = SWIG_AsVal_int(obj2, &val3);
19288 if (!SWIG_IsOK(ecode3)) {
19289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19290 }
19291 arg3 = static_cast< int >(val3);
19292 ecode4 = SWIG_AsVal_int(obj3, &val4);
19293 if (!SWIG_IsOK(ecode4)) {
19294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19295 }
19296 arg4 = static_cast< int >(val4);
19297 ecode5 = SWIG_AsVal_int(obj4, &val5);
19298 if (!SWIG_IsOK(ecode5)) {
19299 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19300 }
19301 arg5 = static_cast< int >(val5);
19302 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19303 if (!SWIG_IsOK(res6)) {
19304 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19305 }
19306 arg6 = reinterpret_cast< wxDC * >(argp6);
19307 ecode7 = SWIG_AsVal_int(obj6, &val7);
19308 if (!SWIG_IsOK(ecode7)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19310 }
19311 arg7 = static_cast< int >(val7);
19312 ecode8 = SWIG_AsVal_int(obj7, &val8);
19313 if (!SWIG_IsOK(ecode8)) {
19314 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19315 }
19316 arg8 = static_cast< int >(val8);
19317 if (obj8) {
19318 ecode9 = SWIG_AsVal_int(obj8, &val9);
19319 if (!SWIG_IsOK(ecode9)) {
19320 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19321 }
19322 arg9 = static_cast< int >(val9);
19323 }
19324 if (obj9) {
19325 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19326 if (!SWIG_IsOK(ecode10)) {
19327 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19328 }
19329 arg10 = static_cast< bool >(val10);
19330 }
19331 if (obj10) {
19332 ecode11 = SWIG_AsVal_int(obj10, &val11);
19333 if (!SWIG_IsOK(ecode11)) {
19334 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19335 }
19336 arg11 = static_cast< int >(val11);
19337 }
19338 if (obj11) {
19339 ecode12 = SWIG_AsVal_int(obj11, &val12);
19340 if (!SWIG_IsOK(ecode12)) {
19341 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19342 }
19343 arg12 = static_cast< int >(val12);
19344 }
19345 {
19346 PyThreadState* __tstate = wxPyBeginAllowThreads();
19347 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 {
19352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19353 }
19354 return resultobj;
19355 fail:
19356 return NULL;
19357 }
19358
19359
19360 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19361 PyObject *resultobj = 0;
19362 wxDC *arg1 = (wxDC *) 0 ;
19363 wxPoint *arg2 = 0 ;
19364 wxSize *arg3 = 0 ;
19365 wxDC *arg4 = (wxDC *) 0 ;
19366 wxPoint *arg5 = 0 ;
19367 int arg6 = (int) wxCOPY ;
19368 bool arg7 = (bool) false ;
19369 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19370 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19371 bool result;
19372 void *argp1 = 0 ;
19373 int res1 = 0 ;
19374 wxPoint temp2 ;
19375 wxSize temp3 ;
19376 void *argp4 = 0 ;
19377 int res4 = 0 ;
19378 wxPoint temp5 ;
19379 int val6 ;
19380 int ecode6 = 0 ;
19381 bool val7 ;
19382 int ecode7 = 0 ;
19383 wxPoint temp8 ;
19384 PyObject * obj0 = 0 ;
19385 PyObject * obj1 = 0 ;
19386 PyObject * obj2 = 0 ;
19387 PyObject * obj3 = 0 ;
19388 PyObject * obj4 = 0 ;
19389 PyObject * obj5 = 0 ;
19390 PyObject * obj6 = 0 ;
19391 PyObject * obj7 = 0 ;
19392 char * kwnames[] = {
19393 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19394 };
19395
19396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19398 if (!SWIG_IsOK(res1)) {
19399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19400 }
19401 arg1 = reinterpret_cast< wxDC * >(argp1);
19402 {
19403 arg2 = &temp2;
19404 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19405 }
19406 {
19407 arg3 = &temp3;
19408 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19409 }
19410 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19411 if (!SWIG_IsOK(res4)) {
19412 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19413 }
19414 arg4 = reinterpret_cast< wxDC * >(argp4);
19415 {
19416 arg5 = &temp5;
19417 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19418 }
19419 if (obj5) {
19420 ecode6 = SWIG_AsVal_int(obj5, &val6);
19421 if (!SWIG_IsOK(ecode6)) {
19422 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19423 }
19424 arg6 = static_cast< int >(val6);
19425 }
19426 if (obj6) {
19427 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19428 if (!SWIG_IsOK(ecode7)) {
19429 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19430 }
19431 arg7 = static_cast< bool >(val7);
19432 }
19433 if (obj7) {
19434 {
19435 arg8 = &temp8;
19436 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19437 }
19438 }
19439 {
19440 PyThreadState* __tstate = wxPyBeginAllowThreads();
19441 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 {
19446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19447 }
19448 return resultobj;
19449 fail:
19450 return NULL;
19451 }
19452
19453
19454 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj = 0;
19456 wxDC *arg1 = (wxDC *) 0 ;
19457 int arg2 ;
19458 int arg3 ;
19459 int arg4 ;
19460 int arg5 ;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 int val2 ;
19464 int ecode2 = 0 ;
19465 int val3 ;
19466 int ecode3 = 0 ;
19467 int val4 ;
19468 int ecode4 = 0 ;
19469 int val5 ;
19470 int ecode5 = 0 ;
19471 PyObject * obj0 = 0 ;
19472 PyObject * obj1 = 0 ;
19473 PyObject * obj2 = 0 ;
19474 PyObject * obj3 = 0 ;
19475 PyObject * obj4 = 0 ;
19476 char * kwnames[] = {
19477 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19478 };
19479
19480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19482 if (!SWIG_IsOK(res1)) {
19483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19484 }
19485 arg1 = reinterpret_cast< wxDC * >(argp1);
19486 ecode2 = SWIG_AsVal_int(obj1, &val2);
19487 if (!SWIG_IsOK(ecode2)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19489 }
19490 arg2 = static_cast< int >(val2);
19491 ecode3 = SWIG_AsVal_int(obj2, &val3);
19492 if (!SWIG_IsOK(ecode3)) {
19493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19494 }
19495 arg3 = static_cast< int >(val3);
19496 ecode4 = SWIG_AsVal_int(obj3, &val4);
19497 if (!SWIG_IsOK(ecode4)) {
19498 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19499 }
19500 arg4 = static_cast< int >(val4);
19501 ecode5 = SWIG_AsVal_int(obj4, &val5);
19502 if (!SWIG_IsOK(ecode5)) {
19503 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19504 }
19505 arg5 = static_cast< int >(val5);
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19509 wxPyEndAllowThreads(__tstate);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 resultobj = SWIG_Py_Void();
19513 return resultobj;
19514 fail:
19515 return NULL;
19516 }
19517
19518
19519 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19520 PyObject *resultobj = 0;
19521 wxDC *arg1 = (wxDC *) 0 ;
19522 wxPoint *arg2 = 0 ;
19523 wxSize *arg3 = 0 ;
19524 void *argp1 = 0 ;
19525 int res1 = 0 ;
19526 wxPoint temp2 ;
19527 wxSize temp3 ;
19528 PyObject * obj0 = 0 ;
19529 PyObject * obj1 = 0 ;
19530 PyObject * obj2 = 0 ;
19531 char * kwnames[] = {
19532 (char *) "self",(char *) "pt",(char *) "sz", NULL
19533 };
19534
19535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19537 if (!SWIG_IsOK(res1)) {
19538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19539 }
19540 arg1 = reinterpret_cast< wxDC * >(argp1);
19541 {
19542 arg2 = &temp2;
19543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19544 }
19545 {
19546 arg3 = &temp3;
19547 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19548 }
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 resultobj = SWIG_Py_Void();
19556 return resultobj;
19557 fail:
19558 return NULL;
19559 }
19560
19561
19562 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj = 0;
19564 wxDC *arg1 = (wxDC *) 0 ;
19565 wxRegion *arg2 = 0 ;
19566 void *argp1 = 0 ;
19567 int res1 = 0 ;
19568 void *argp2 = 0 ;
19569 int res2 = 0 ;
19570 PyObject * obj0 = 0 ;
19571 PyObject * obj1 = 0 ;
19572 char * kwnames[] = {
19573 (char *) "self",(char *) "region", NULL
19574 };
19575
19576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19578 if (!SWIG_IsOK(res1)) {
19579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19580 }
19581 arg1 = reinterpret_cast< wxDC * >(argp1);
19582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19583 if (!SWIG_IsOK(res2)) {
19584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19585 }
19586 if (!argp2) {
19587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19588 }
19589 arg2 = reinterpret_cast< wxRegion * >(argp2);
19590 {
19591 PyThreadState* __tstate = wxPyBeginAllowThreads();
19592 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19593 wxPyEndAllowThreads(__tstate);
19594 if (PyErr_Occurred()) SWIG_fail;
19595 }
19596 resultobj = SWIG_Py_Void();
19597 return resultobj;
19598 fail:
19599 return NULL;
19600 }
19601
19602
19603 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19604 PyObject *resultobj = 0;
19605 wxDC *arg1 = (wxDC *) 0 ;
19606 wxRect *arg2 = 0 ;
19607 void *argp1 = 0 ;
19608 int res1 = 0 ;
19609 wxRect temp2 ;
19610 PyObject * obj0 = 0 ;
19611 PyObject * obj1 = 0 ;
19612 char * kwnames[] = {
19613 (char *) "self",(char *) "rect", NULL
19614 };
19615
19616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19618 if (!SWIG_IsOK(res1)) {
19619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19620 }
19621 arg1 = reinterpret_cast< wxDC * >(argp1);
19622 {
19623 arg2 = &temp2;
19624 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19625 }
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 resultobj = SWIG_Py_Void();
19633 return resultobj;
19634 fail:
19635 return NULL;
19636 }
19637
19638
19639 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19640 PyObject *resultobj = 0;
19641 wxDC *arg1 = (wxDC *) 0 ;
19642 int arg2 ;
19643 wxPoint *arg3 = (wxPoint *) 0 ;
19644 int arg4 = (int) 0 ;
19645 int arg5 = (int) 0 ;
19646 void *argp1 = 0 ;
19647 int res1 = 0 ;
19648 int val4 ;
19649 int ecode4 = 0 ;
19650 int val5 ;
19651 int ecode5 = 0 ;
19652 PyObject * obj0 = 0 ;
19653 PyObject * obj1 = 0 ;
19654 PyObject * obj2 = 0 ;
19655 PyObject * obj3 = 0 ;
19656 char * kwnames[] = {
19657 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19658 };
19659
19660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19662 if (!SWIG_IsOK(res1)) {
19663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19664 }
19665 arg1 = reinterpret_cast< wxDC * >(argp1);
19666 {
19667 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19668 if (arg3 == NULL) SWIG_fail;
19669 }
19670 if (obj2) {
19671 ecode4 = SWIG_AsVal_int(obj2, &val4);
19672 if (!SWIG_IsOK(ecode4)) {
19673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19674 }
19675 arg4 = static_cast< int >(val4);
19676 }
19677 if (obj3) {
19678 ecode5 = SWIG_AsVal_int(obj3, &val5);
19679 if (!SWIG_IsOK(ecode5)) {
19680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19681 }
19682 arg5 = static_cast< int >(val5);
19683 }
19684 {
19685 PyThreadState* __tstate = wxPyBeginAllowThreads();
19686 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19687 wxPyEndAllowThreads(__tstate);
19688 if (PyErr_Occurred()) SWIG_fail;
19689 }
19690 resultobj = SWIG_Py_Void();
19691 {
19692 if (arg3) delete [] arg3;
19693 }
19694 return resultobj;
19695 fail:
19696 {
19697 if (arg3) delete [] arg3;
19698 }
19699 return NULL;
19700 }
19701
19702
19703 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19704 PyObject *resultobj = 0;
19705 wxDC *arg1 = (wxDC *) 0 ;
19706 int arg2 ;
19707 wxPoint *arg3 = (wxPoint *) 0 ;
19708 int arg4 = (int) 0 ;
19709 int arg5 = (int) 0 ;
19710 int arg6 = (int) wxODDEVEN_RULE ;
19711 void *argp1 = 0 ;
19712 int res1 = 0 ;
19713 int val4 ;
19714 int ecode4 = 0 ;
19715 int val5 ;
19716 int ecode5 = 0 ;
19717 int val6 ;
19718 int ecode6 = 0 ;
19719 PyObject * obj0 = 0 ;
19720 PyObject * obj1 = 0 ;
19721 PyObject * obj2 = 0 ;
19722 PyObject * obj3 = 0 ;
19723 PyObject * obj4 = 0 ;
19724 char * kwnames[] = {
19725 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19726 };
19727
19728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19730 if (!SWIG_IsOK(res1)) {
19731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19732 }
19733 arg1 = reinterpret_cast< wxDC * >(argp1);
19734 {
19735 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19736 if (arg3 == NULL) SWIG_fail;
19737 }
19738 if (obj2) {
19739 ecode4 = SWIG_AsVal_int(obj2, &val4);
19740 if (!SWIG_IsOK(ecode4)) {
19741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19742 }
19743 arg4 = static_cast< int >(val4);
19744 }
19745 if (obj3) {
19746 ecode5 = SWIG_AsVal_int(obj3, &val5);
19747 if (!SWIG_IsOK(ecode5)) {
19748 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19749 }
19750 arg5 = static_cast< int >(val5);
19751 }
19752 if (obj4) {
19753 ecode6 = SWIG_AsVal_int(obj4, &val6);
19754 if (!SWIG_IsOK(ecode6)) {
19755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19756 }
19757 arg6 = static_cast< int >(val6);
19758 }
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 resultobj = SWIG_Py_Void();
19766 {
19767 if (arg3) delete [] arg3;
19768 }
19769 return resultobj;
19770 fail:
19771 {
19772 if (arg3) delete [] arg3;
19773 }
19774 return NULL;
19775 }
19776
19777
19778 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19779 PyObject *resultobj = 0;
19780 wxDC *arg1 = (wxDC *) 0 ;
19781 wxString *arg2 = 0 ;
19782 wxRect *arg3 = 0 ;
19783 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19784 int arg5 = (int) -1 ;
19785 void *argp1 = 0 ;
19786 int res1 = 0 ;
19787 bool temp2 = false ;
19788 wxRect temp3 ;
19789 int val4 ;
19790 int ecode4 = 0 ;
19791 int val5 ;
19792 int ecode5 = 0 ;
19793 PyObject * obj0 = 0 ;
19794 PyObject * obj1 = 0 ;
19795 PyObject * obj2 = 0 ;
19796 PyObject * obj3 = 0 ;
19797 PyObject * obj4 = 0 ;
19798 char * kwnames[] = {
19799 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19800 };
19801
19802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19804 if (!SWIG_IsOK(res1)) {
19805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19806 }
19807 arg1 = reinterpret_cast< wxDC * >(argp1);
19808 {
19809 arg2 = wxString_in_helper(obj1);
19810 if (arg2 == NULL) SWIG_fail;
19811 temp2 = true;
19812 }
19813 {
19814 arg3 = &temp3;
19815 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19816 }
19817 if (obj3) {
19818 ecode4 = SWIG_AsVal_int(obj3, &val4);
19819 if (!SWIG_IsOK(ecode4)) {
19820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19821 }
19822 arg4 = static_cast< int >(val4);
19823 }
19824 if (obj4) {
19825 ecode5 = SWIG_AsVal_int(obj4, &val5);
19826 if (!SWIG_IsOK(ecode5)) {
19827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19828 }
19829 arg5 = static_cast< int >(val5);
19830 }
19831 {
19832 PyThreadState* __tstate = wxPyBeginAllowThreads();
19833 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19834 wxPyEndAllowThreads(__tstate);
19835 if (PyErr_Occurred()) SWIG_fail;
19836 }
19837 resultobj = SWIG_Py_Void();
19838 {
19839 if (temp2)
19840 delete arg2;
19841 }
19842 return resultobj;
19843 fail:
19844 {
19845 if (temp2)
19846 delete arg2;
19847 }
19848 return NULL;
19849 }
19850
19851
19852 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19853 PyObject *resultobj = 0;
19854 wxDC *arg1 = (wxDC *) 0 ;
19855 wxString *arg2 = 0 ;
19856 wxBitmap *arg3 = 0 ;
19857 wxRect *arg4 = 0 ;
19858 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19859 int arg6 = (int) -1 ;
19860 wxRect result;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 bool temp2 = false ;
19864 void *argp3 = 0 ;
19865 int res3 = 0 ;
19866 wxRect temp4 ;
19867 int val5 ;
19868 int ecode5 = 0 ;
19869 int val6 ;
19870 int ecode6 = 0 ;
19871 PyObject * obj0 = 0 ;
19872 PyObject * obj1 = 0 ;
19873 PyObject * obj2 = 0 ;
19874 PyObject * obj3 = 0 ;
19875 PyObject * obj4 = 0 ;
19876 PyObject * obj5 = 0 ;
19877 char * kwnames[] = {
19878 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19879 };
19880
19881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19883 if (!SWIG_IsOK(res1)) {
19884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19885 }
19886 arg1 = reinterpret_cast< wxDC * >(argp1);
19887 {
19888 arg2 = wxString_in_helper(obj1);
19889 if (arg2 == NULL) SWIG_fail;
19890 temp2 = true;
19891 }
19892 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19893 if (!SWIG_IsOK(res3)) {
19894 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19895 }
19896 if (!argp3) {
19897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19898 }
19899 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19900 {
19901 arg4 = &temp4;
19902 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19903 }
19904 if (obj4) {
19905 ecode5 = SWIG_AsVal_int(obj4, &val5);
19906 if (!SWIG_IsOK(ecode5)) {
19907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19908 }
19909 arg5 = static_cast< int >(val5);
19910 }
19911 if (obj5) {
19912 ecode6 = SWIG_AsVal_int(obj5, &val6);
19913 if (!SWIG_IsOK(ecode6)) {
19914 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19915 }
19916 arg6 = static_cast< int >(val6);
19917 }
19918 {
19919 PyThreadState* __tstate = wxPyBeginAllowThreads();
19920 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19921 wxPyEndAllowThreads(__tstate);
19922 if (PyErr_Occurred()) SWIG_fail;
19923 }
19924 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19925 {
19926 if (temp2)
19927 delete arg2;
19928 }
19929 return resultobj;
19930 fail:
19931 {
19932 if (temp2)
19933 delete arg2;
19934 }
19935 return NULL;
19936 }
19937
19938
19939 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19940 PyObject *resultobj = 0;
19941 wxDC *arg1 = (wxDC *) 0 ;
19942 int arg2 ;
19943 wxPoint *arg3 = (wxPoint *) 0 ;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 PyObject * obj0 = 0 ;
19947 PyObject * obj1 = 0 ;
19948 char * kwnames[] = {
19949 (char *) "self",(char *) "points", NULL
19950 };
19951
19952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19954 if (!SWIG_IsOK(res1)) {
19955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19956 }
19957 arg1 = reinterpret_cast< wxDC * >(argp1);
19958 {
19959 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19960 if (arg3 == NULL) SWIG_fail;
19961 }
19962 {
19963 PyThreadState* __tstate = wxPyBeginAllowThreads();
19964 (arg1)->DrawSpline(arg2,arg3);
19965 wxPyEndAllowThreads(__tstate);
19966 if (PyErr_Occurred()) SWIG_fail;
19967 }
19968 resultobj = SWIG_Py_Void();
19969 {
19970 if (arg3) delete [] arg3;
19971 }
19972 return resultobj;
19973 fail:
19974 {
19975 if (arg3) delete [] arg3;
19976 }
19977 return NULL;
19978 }
19979
19980
19981 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19982 PyObject *resultobj = 0;
19983 wxDC *arg1 = (wxDC *) 0 ;
19984 void *argp1 = 0 ;
19985 int res1 = 0 ;
19986 PyObject *swig_obj[1] ;
19987
19988 if (!args) SWIG_fail;
19989 swig_obj[0] = args;
19990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19991 if (!SWIG_IsOK(res1)) {
19992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19993 }
19994 arg1 = reinterpret_cast< wxDC * >(argp1);
19995 {
19996 PyThreadState* __tstate = wxPyBeginAllowThreads();
19997 (arg1)->Clear();
19998 wxPyEndAllowThreads(__tstate);
19999 if (PyErr_Occurred()) SWIG_fail;
20000 }
20001 resultobj = SWIG_Py_Void();
20002 return resultobj;
20003 fail:
20004 return NULL;
20005 }
20006
20007
20008 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20009 PyObject *resultobj = 0;
20010 wxDC *arg1 = (wxDC *) 0 ;
20011 wxString *arg2 = 0 ;
20012 bool result;
20013 void *argp1 = 0 ;
20014 int res1 = 0 ;
20015 bool temp2 = false ;
20016 PyObject * obj0 = 0 ;
20017 PyObject * obj1 = 0 ;
20018 char * kwnames[] = {
20019 (char *) "self",(char *) "message", NULL
20020 };
20021
20022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20024 if (!SWIG_IsOK(res1)) {
20025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20026 }
20027 arg1 = reinterpret_cast< wxDC * >(argp1);
20028 {
20029 arg2 = wxString_in_helper(obj1);
20030 if (arg2 == NULL) SWIG_fail;
20031 temp2 = true;
20032 }
20033 {
20034 PyThreadState* __tstate = wxPyBeginAllowThreads();
20035 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20036 wxPyEndAllowThreads(__tstate);
20037 if (PyErr_Occurred()) SWIG_fail;
20038 }
20039 {
20040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20041 }
20042 {
20043 if (temp2)
20044 delete arg2;
20045 }
20046 return resultobj;
20047 fail:
20048 {
20049 if (temp2)
20050 delete arg2;
20051 }
20052 return NULL;
20053 }
20054
20055
20056 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20057 PyObject *resultobj = 0;
20058 wxDC *arg1 = (wxDC *) 0 ;
20059 void *argp1 = 0 ;
20060 int res1 = 0 ;
20061 PyObject *swig_obj[1] ;
20062
20063 if (!args) SWIG_fail;
20064 swig_obj[0] = args;
20065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20066 if (!SWIG_IsOK(res1)) {
20067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20068 }
20069 arg1 = reinterpret_cast< wxDC * >(argp1);
20070 {
20071 PyThreadState* __tstate = wxPyBeginAllowThreads();
20072 (arg1)->EndDoc();
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 resultobj = SWIG_Py_Void();
20077 return resultobj;
20078 fail:
20079 return NULL;
20080 }
20081
20082
20083 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20084 PyObject *resultobj = 0;
20085 wxDC *arg1 = (wxDC *) 0 ;
20086 void *argp1 = 0 ;
20087 int res1 = 0 ;
20088 PyObject *swig_obj[1] ;
20089
20090 if (!args) SWIG_fail;
20091 swig_obj[0] = args;
20092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20093 if (!SWIG_IsOK(res1)) {
20094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20095 }
20096 arg1 = reinterpret_cast< wxDC * >(argp1);
20097 {
20098 PyThreadState* __tstate = wxPyBeginAllowThreads();
20099 (arg1)->StartPage();
20100 wxPyEndAllowThreads(__tstate);
20101 if (PyErr_Occurred()) SWIG_fail;
20102 }
20103 resultobj = SWIG_Py_Void();
20104 return resultobj;
20105 fail:
20106 return NULL;
20107 }
20108
20109
20110 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20111 PyObject *resultobj = 0;
20112 wxDC *arg1 = (wxDC *) 0 ;
20113 void *argp1 = 0 ;
20114 int res1 = 0 ;
20115 PyObject *swig_obj[1] ;
20116
20117 if (!args) SWIG_fail;
20118 swig_obj[0] = args;
20119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20120 if (!SWIG_IsOK(res1)) {
20121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20122 }
20123 arg1 = reinterpret_cast< wxDC * >(argp1);
20124 {
20125 PyThreadState* __tstate = wxPyBeginAllowThreads();
20126 (arg1)->EndPage();
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 resultobj = SWIG_Py_Void();
20131 return resultobj;
20132 fail:
20133 return NULL;
20134 }
20135
20136
20137 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20138 PyObject *resultobj = 0;
20139 wxDC *arg1 = (wxDC *) 0 ;
20140 wxFont *arg2 = 0 ;
20141 void *argp1 = 0 ;
20142 int res1 = 0 ;
20143 void *argp2 = 0 ;
20144 int res2 = 0 ;
20145 PyObject * obj0 = 0 ;
20146 PyObject * obj1 = 0 ;
20147 char * kwnames[] = {
20148 (char *) "self",(char *) "font", NULL
20149 };
20150
20151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20153 if (!SWIG_IsOK(res1)) {
20154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20155 }
20156 arg1 = reinterpret_cast< wxDC * >(argp1);
20157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20158 if (!SWIG_IsOK(res2)) {
20159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20160 }
20161 if (!argp2) {
20162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20163 }
20164 arg2 = reinterpret_cast< wxFont * >(argp2);
20165 {
20166 PyThreadState* __tstate = wxPyBeginAllowThreads();
20167 (arg1)->SetFont((wxFont const &)*arg2);
20168 wxPyEndAllowThreads(__tstate);
20169 if (PyErr_Occurred()) SWIG_fail;
20170 }
20171 resultobj = SWIG_Py_Void();
20172 return resultobj;
20173 fail:
20174 return NULL;
20175 }
20176
20177
20178 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20179 PyObject *resultobj = 0;
20180 wxDC *arg1 = (wxDC *) 0 ;
20181 wxPen *arg2 = 0 ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 void *argp2 = 0 ;
20185 int res2 = 0 ;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188 char * kwnames[] = {
20189 (char *) "self",(char *) "pen", NULL
20190 };
20191
20192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20194 if (!SWIG_IsOK(res1)) {
20195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20196 }
20197 arg1 = reinterpret_cast< wxDC * >(argp1);
20198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20199 if (!SWIG_IsOK(res2)) {
20200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20201 }
20202 if (!argp2) {
20203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20204 }
20205 arg2 = reinterpret_cast< wxPen * >(argp2);
20206 {
20207 PyThreadState* __tstate = wxPyBeginAllowThreads();
20208 (arg1)->SetPen((wxPen const &)*arg2);
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 resultobj = SWIG_Py_Void();
20213 return resultobj;
20214 fail:
20215 return NULL;
20216 }
20217
20218
20219 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj = 0;
20221 wxDC *arg1 = (wxDC *) 0 ;
20222 wxBrush *arg2 = 0 ;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 void *argp2 = 0 ;
20226 int res2 = 0 ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 char * kwnames[] = {
20230 (char *) "self",(char *) "brush", NULL
20231 };
20232
20233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20235 if (!SWIG_IsOK(res1)) {
20236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20237 }
20238 arg1 = reinterpret_cast< wxDC * >(argp1);
20239 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20240 if (!SWIG_IsOK(res2)) {
20241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20242 }
20243 if (!argp2) {
20244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20245 }
20246 arg2 = reinterpret_cast< wxBrush * >(argp2);
20247 {
20248 PyThreadState* __tstate = wxPyBeginAllowThreads();
20249 (arg1)->SetBrush((wxBrush const &)*arg2);
20250 wxPyEndAllowThreads(__tstate);
20251 if (PyErr_Occurred()) SWIG_fail;
20252 }
20253 resultobj = SWIG_Py_Void();
20254 return resultobj;
20255 fail:
20256 return NULL;
20257 }
20258
20259
20260 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20261 PyObject *resultobj = 0;
20262 wxDC *arg1 = (wxDC *) 0 ;
20263 wxBrush *arg2 = 0 ;
20264 void *argp1 = 0 ;
20265 int res1 = 0 ;
20266 void *argp2 = 0 ;
20267 int res2 = 0 ;
20268 PyObject * obj0 = 0 ;
20269 PyObject * obj1 = 0 ;
20270 char * kwnames[] = {
20271 (char *) "self",(char *) "brush", NULL
20272 };
20273
20274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20276 if (!SWIG_IsOK(res1)) {
20277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20278 }
20279 arg1 = reinterpret_cast< wxDC * >(argp1);
20280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20281 if (!SWIG_IsOK(res2)) {
20282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20283 }
20284 if (!argp2) {
20285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20286 }
20287 arg2 = reinterpret_cast< wxBrush * >(argp2);
20288 {
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 (arg1)->SetBackground((wxBrush const &)*arg2);
20291 wxPyEndAllowThreads(__tstate);
20292 if (PyErr_Occurred()) SWIG_fail;
20293 }
20294 resultobj = SWIG_Py_Void();
20295 return resultobj;
20296 fail:
20297 return NULL;
20298 }
20299
20300
20301 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj = 0;
20303 wxDC *arg1 = (wxDC *) 0 ;
20304 int arg2 ;
20305 void *argp1 = 0 ;
20306 int res1 = 0 ;
20307 int val2 ;
20308 int ecode2 = 0 ;
20309 PyObject * obj0 = 0 ;
20310 PyObject * obj1 = 0 ;
20311 char * kwnames[] = {
20312 (char *) "self",(char *) "mode", NULL
20313 };
20314
20315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20317 if (!SWIG_IsOK(res1)) {
20318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20319 }
20320 arg1 = reinterpret_cast< wxDC * >(argp1);
20321 ecode2 = SWIG_AsVal_int(obj1, &val2);
20322 if (!SWIG_IsOK(ecode2)) {
20323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20324 }
20325 arg2 = static_cast< int >(val2);
20326 {
20327 PyThreadState* __tstate = wxPyBeginAllowThreads();
20328 (arg1)->SetBackgroundMode(arg2);
20329 wxPyEndAllowThreads(__tstate);
20330 if (PyErr_Occurred()) SWIG_fail;
20331 }
20332 resultobj = SWIG_Py_Void();
20333 return resultobj;
20334 fail:
20335 return NULL;
20336 }
20337
20338
20339 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20340 PyObject *resultobj = 0;
20341 wxDC *arg1 = (wxDC *) 0 ;
20342 wxPalette *arg2 = 0 ;
20343 void *argp1 = 0 ;
20344 int res1 = 0 ;
20345 void *argp2 = 0 ;
20346 int res2 = 0 ;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 char * kwnames[] = {
20350 (char *) "self",(char *) "palette", NULL
20351 };
20352
20353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20355 if (!SWIG_IsOK(res1)) {
20356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20357 }
20358 arg1 = reinterpret_cast< wxDC * >(argp1);
20359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20360 if (!SWIG_IsOK(res2)) {
20361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20362 }
20363 if (!argp2) {
20364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20365 }
20366 arg2 = reinterpret_cast< wxPalette * >(argp2);
20367 {
20368 PyThreadState* __tstate = wxPyBeginAllowThreads();
20369 (arg1)->SetPalette((wxPalette const &)*arg2);
20370 wxPyEndAllowThreads(__tstate);
20371 if (PyErr_Occurred()) SWIG_fail;
20372 }
20373 resultobj = SWIG_Py_Void();
20374 return resultobj;
20375 fail:
20376 return NULL;
20377 }
20378
20379
20380 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20381 PyObject *resultobj = 0;
20382 wxDC *arg1 = (wxDC *) 0 ;
20383 void *argp1 = 0 ;
20384 int res1 = 0 ;
20385 PyObject *swig_obj[1] ;
20386
20387 if (!args) SWIG_fail;
20388 swig_obj[0] = args;
20389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20390 if (!SWIG_IsOK(res1)) {
20391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20392 }
20393 arg1 = reinterpret_cast< wxDC * >(argp1);
20394 {
20395 PyThreadState* __tstate = wxPyBeginAllowThreads();
20396 (arg1)->DestroyClippingRegion();
20397 wxPyEndAllowThreads(__tstate);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 }
20400 resultobj = SWIG_Py_Void();
20401 return resultobj;
20402 fail:
20403 return NULL;
20404 }
20405
20406
20407 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20408 PyObject *resultobj = 0;
20409 wxDC *arg1 = (wxDC *) 0 ;
20410 int *arg2 = (int *) 0 ;
20411 int *arg3 = (int *) 0 ;
20412 int *arg4 = (int *) 0 ;
20413 int *arg5 = (int *) 0 ;
20414 void *argp1 = 0 ;
20415 int res1 = 0 ;
20416 int temp2 ;
20417 int res2 = SWIG_TMPOBJ ;
20418 int temp3 ;
20419 int res3 = SWIG_TMPOBJ ;
20420 int temp4 ;
20421 int res4 = SWIG_TMPOBJ ;
20422 int temp5 ;
20423 int res5 = SWIG_TMPOBJ ;
20424 PyObject *swig_obj[1] ;
20425
20426 arg2 = &temp2;
20427 arg3 = &temp3;
20428 arg4 = &temp4;
20429 arg5 = &temp5;
20430 if (!args) SWIG_fail;
20431 swig_obj[0] = args;
20432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20433 if (!SWIG_IsOK(res1)) {
20434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20435 }
20436 arg1 = reinterpret_cast< wxDC * >(argp1);
20437 {
20438 PyThreadState* __tstate = wxPyBeginAllowThreads();
20439 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20440 wxPyEndAllowThreads(__tstate);
20441 if (PyErr_Occurred()) SWIG_fail;
20442 }
20443 resultobj = SWIG_Py_Void();
20444 if (SWIG_IsTmpObj(res2)) {
20445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20446 } else {
20447 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20449 }
20450 if (SWIG_IsTmpObj(res3)) {
20451 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20452 } else {
20453 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20454 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20455 }
20456 if (SWIG_IsTmpObj(res4)) {
20457 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20458 } else {
20459 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20460 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20461 }
20462 if (SWIG_IsTmpObj(res5)) {
20463 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20464 } else {
20465 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20466 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20467 }
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20475 PyObject *resultobj = 0;
20476 wxDC *arg1 = (wxDC *) 0 ;
20477 wxRect result;
20478 void *argp1 = 0 ;
20479 int res1 = 0 ;
20480 PyObject *swig_obj[1] ;
20481
20482 if (!args) SWIG_fail;
20483 swig_obj[0] = args;
20484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20485 if (!SWIG_IsOK(res1)) {
20486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20487 }
20488 arg1 = reinterpret_cast< wxDC * >(argp1);
20489 {
20490 PyThreadState* __tstate = wxPyBeginAllowThreads();
20491 result = wxDC_GetClippingRect(arg1);
20492 wxPyEndAllowThreads(__tstate);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20503 PyObject *resultobj = 0;
20504 wxDC *arg1 = (wxDC *) 0 ;
20505 int result;
20506 void *argp1 = 0 ;
20507 int res1 = 0 ;
20508 PyObject *swig_obj[1] ;
20509
20510 if (!args) SWIG_fail;
20511 swig_obj[0] = args;
20512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20513 if (!SWIG_IsOK(res1)) {
20514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20515 }
20516 arg1 = reinterpret_cast< wxDC * >(argp1);
20517 {
20518 PyThreadState* __tstate = wxPyBeginAllowThreads();
20519 result = (int)((wxDC const *)arg1)->GetCharHeight();
20520 wxPyEndAllowThreads(__tstate);
20521 if (PyErr_Occurred()) SWIG_fail;
20522 }
20523 resultobj = SWIG_From_int(static_cast< int >(result));
20524 return resultobj;
20525 fail:
20526 return NULL;
20527 }
20528
20529
20530 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20531 PyObject *resultobj = 0;
20532 wxDC *arg1 = (wxDC *) 0 ;
20533 int result;
20534 void *argp1 = 0 ;
20535 int res1 = 0 ;
20536 PyObject *swig_obj[1] ;
20537
20538 if (!args) SWIG_fail;
20539 swig_obj[0] = args;
20540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20541 if (!SWIG_IsOK(res1)) {
20542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20543 }
20544 arg1 = reinterpret_cast< wxDC * >(argp1);
20545 {
20546 PyThreadState* __tstate = wxPyBeginAllowThreads();
20547 result = (int)((wxDC const *)arg1)->GetCharWidth();
20548 wxPyEndAllowThreads(__tstate);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
20551 resultobj = SWIG_From_int(static_cast< int >(result));
20552 return resultobj;
20553 fail:
20554 return NULL;
20555 }
20556
20557
20558 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20559 PyObject *resultobj = 0;
20560 wxDC *arg1 = (wxDC *) 0 ;
20561 wxString *arg2 = 0 ;
20562 int *arg3 = (int *) 0 ;
20563 int *arg4 = (int *) 0 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 bool temp2 = false ;
20567 int temp3 ;
20568 int res3 = SWIG_TMPOBJ ;
20569 int temp4 ;
20570 int res4 = SWIG_TMPOBJ ;
20571 PyObject * obj0 = 0 ;
20572 PyObject * obj1 = 0 ;
20573 char * kwnames[] = {
20574 (char *) "self",(char *) "string", NULL
20575 };
20576
20577 arg3 = &temp3;
20578 arg4 = &temp4;
20579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20581 if (!SWIG_IsOK(res1)) {
20582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20583 }
20584 arg1 = reinterpret_cast< wxDC * >(argp1);
20585 {
20586 arg2 = wxString_in_helper(obj1);
20587 if (arg2 == NULL) SWIG_fail;
20588 temp2 = true;
20589 }
20590 {
20591 PyThreadState* __tstate = wxPyBeginAllowThreads();
20592 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20593 wxPyEndAllowThreads(__tstate);
20594 if (PyErr_Occurred()) SWIG_fail;
20595 }
20596 resultobj = SWIG_Py_Void();
20597 if (SWIG_IsTmpObj(res3)) {
20598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20599 } else {
20600 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20602 }
20603 if (SWIG_IsTmpObj(res4)) {
20604 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20605 } else {
20606 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20607 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20608 }
20609 {
20610 if (temp2)
20611 delete arg2;
20612 }
20613 return resultobj;
20614 fail:
20615 {
20616 if (temp2)
20617 delete arg2;
20618 }
20619 return NULL;
20620 }
20621
20622
20623 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj = 0;
20625 wxDC *arg1 = (wxDC *) 0 ;
20626 wxString *arg2 = 0 ;
20627 int *arg3 = (int *) 0 ;
20628 int *arg4 = (int *) 0 ;
20629 int *arg5 = (int *) 0 ;
20630 int *arg6 = (int *) 0 ;
20631 wxFont *arg7 = (wxFont *) NULL ;
20632 void *argp1 = 0 ;
20633 int res1 = 0 ;
20634 bool temp2 = false ;
20635 int temp3 ;
20636 int res3 = SWIG_TMPOBJ ;
20637 int temp4 ;
20638 int res4 = SWIG_TMPOBJ ;
20639 int temp5 ;
20640 int res5 = SWIG_TMPOBJ ;
20641 int temp6 ;
20642 int res6 = SWIG_TMPOBJ ;
20643 void *argp7 = 0 ;
20644 int res7 = 0 ;
20645 PyObject * obj0 = 0 ;
20646 PyObject * obj1 = 0 ;
20647 PyObject * obj2 = 0 ;
20648 char * kwnames[] = {
20649 (char *) "self",(char *) "string",(char *) "font", NULL
20650 };
20651
20652 arg3 = &temp3;
20653 arg4 = &temp4;
20654 arg5 = &temp5;
20655 arg6 = &temp6;
20656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20658 if (!SWIG_IsOK(res1)) {
20659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20660 }
20661 arg1 = reinterpret_cast< wxDC * >(argp1);
20662 {
20663 arg2 = wxString_in_helper(obj1);
20664 if (arg2 == NULL) SWIG_fail;
20665 temp2 = true;
20666 }
20667 if (obj2) {
20668 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20669 if (!SWIG_IsOK(res7)) {
20670 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20671 }
20672 arg7 = reinterpret_cast< wxFont * >(argp7);
20673 }
20674 {
20675 PyThreadState* __tstate = wxPyBeginAllowThreads();
20676 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20677 wxPyEndAllowThreads(__tstate);
20678 if (PyErr_Occurred()) SWIG_fail;
20679 }
20680 resultobj = SWIG_Py_Void();
20681 if (SWIG_IsTmpObj(res3)) {
20682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20683 } else {
20684 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20686 }
20687 if (SWIG_IsTmpObj(res4)) {
20688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20689 } else {
20690 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20692 }
20693 if (SWIG_IsTmpObj(res5)) {
20694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20695 } else {
20696 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20698 }
20699 if (SWIG_IsTmpObj(res6)) {
20700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20701 } else {
20702 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20704 }
20705 {
20706 if (temp2)
20707 delete arg2;
20708 }
20709 return resultobj;
20710 fail:
20711 {
20712 if (temp2)
20713 delete arg2;
20714 }
20715 return NULL;
20716 }
20717
20718
20719 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20720 PyObject *resultobj = 0;
20721 wxDC *arg1 = (wxDC *) 0 ;
20722 wxString *arg2 = 0 ;
20723 int *arg3 = (int *) 0 ;
20724 int *arg4 = (int *) 0 ;
20725 int *arg5 = (int *) 0 ;
20726 wxFont *arg6 = (wxFont *) NULL ;
20727 void *argp1 = 0 ;
20728 int res1 = 0 ;
20729 bool temp2 = false ;
20730 int temp3 ;
20731 int res3 = SWIG_TMPOBJ ;
20732 int temp4 ;
20733 int res4 = SWIG_TMPOBJ ;
20734 int temp5 ;
20735 int res5 = SWIG_TMPOBJ ;
20736 void *argp6 = 0 ;
20737 int res6 = 0 ;
20738 PyObject * obj0 = 0 ;
20739 PyObject * obj1 = 0 ;
20740 PyObject * obj2 = 0 ;
20741 char * kwnames[] = {
20742 (char *) "self",(char *) "text",(char *) "font", NULL
20743 };
20744
20745 arg3 = &temp3;
20746 arg4 = &temp4;
20747 arg5 = &temp5;
20748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20750 if (!SWIG_IsOK(res1)) {
20751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20752 }
20753 arg1 = reinterpret_cast< wxDC * >(argp1);
20754 {
20755 arg2 = wxString_in_helper(obj1);
20756 if (arg2 == NULL) SWIG_fail;
20757 temp2 = true;
20758 }
20759 if (obj2) {
20760 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20761 if (!SWIG_IsOK(res6)) {
20762 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20763 }
20764 arg6 = reinterpret_cast< wxFont * >(argp6);
20765 }
20766 {
20767 PyThreadState* __tstate = wxPyBeginAllowThreads();
20768 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20769 wxPyEndAllowThreads(__tstate);
20770 if (PyErr_Occurred()) SWIG_fail;
20771 }
20772 resultobj = SWIG_Py_Void();
20773 if (SWIG_IsTmpObj(res3)) {
20774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20775 } else {
20776 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20777 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20778 }
20779 if (SWIG_IsTmpObj(res4)) {
20780 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20781 } else {
20782 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20783 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20784 }
20785 if (SWIG_IsTmpObj(res5)) {
20786 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20787 } else {
20788 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20790 }
20791 {
20792 if (temp2)
20793 delete arg2;
20794 }
20795 return resultobj;
20796 fail:
20797 {
20798 if (temp2)
20799 delete arg2;
20800 }
20801 return NULL;
20802 }
20803
20804
20805 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20806 PyObject *resultobj = 0;
20807 wxDC *arg1 = (wxDC *) 0 ;
20808 wxString *arg2 = 0 ;
20809 wxArrayInt result;
20810 void *argp1 = 0 ;
20811 int res1 = 0 ;
20812 bool temp2 = false ;
20813 PyObject * obj0 = 0 ;
20814 PyObject * obj1 = 0 ;
20815 char * kwnames[] = {
20816 (char *) "self",(char *) "text", NULL
20817 };
20818
20819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20821 if (!SWIG_IsOK(res1)) {
20822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20823 }
20824 arg1 = reinterpret_cast< wxDC * >(argp1);
20825 {
20826 arg2 = wxString_in_helper(obj1);
20827 if (arg2 == NULL) SWIG_fail;
20828 temp2 = true;
20829 }
20830 {
20831 PyThreadState* __tstate = wxPyBeginAllowThreads();
20832 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 {
20837 resultobj = PyList_New(0);
20838 size_t idx;
20839 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20840 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20841 PyList_Append(resultobj, val);
20842 Py_DECREF(val);
20843 }
20844 }
20845 {
20846 if (temp2)
20847 delete arg2;
20848 }
20849 return resultobj;
20850 fail:
20851 {
20852 if (temp2)
20853 delete arg2;
20854 }
20855 return NULL;
20856 }
20857
20858
20859 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20860 PyObject *resultobj = 0;
20861 wxDC *arg1 = (wxDC *) 0 ;
20862 wxSize result;
20863 void *argp1 = 0 ;
20864 int res1 = 0 ;
20865 PyObject *swig_obj[1] ;
20866
20867 if (!args) SWIG_fail;
20868 swig_obj[0] = args;
20869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20870 if (!SWIG_IsOK(res1)) {
20871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20872 }
20873 arg1 = reinterpret_cast< wxDC * >(argp1);
20874 {
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = (arg1)->GetSize();
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20881 return resultobj;
20882 fail:
20883 return NULL;
20884 }
20885
20886
20887 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *resultobj = 0;
20889 wxDC *arg1 = (wxDC *) 0 ;
20890 int *arg2 = (int *) 0 ;
20891 int *arg3 = (int *) 0 ;
20892 void *argp1 = 0 ;
20893 int res1 = 0 ;
20894 int temp2 ;
20895 int res2 = SWIG_TMPOBJ ;
20896 int temp3 ;
20897 int res3 = SWIG_TMPOBJ ;
20898 PyObject *swig_obj[1] ;
20899
20900 arg2 = &temp2;
20901 arg3 = &temp3;
20902 if (!args) SWIG_fail;
20903 swig_obj[0] = args;
20904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20905 if (!SWIG_IsOK(res1)) {
20906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20907 }
20908 arg1 = reinterpret_cast< wxDC * >(argp1);
20909 {
20910 PyThreadState* __tstate = wxPyBeginAllowThreads();
20911 (arg1)->GetSize(arg2,arg3);
20912 wxPyEndAllowThreads(__tstate);
20913 if (PyErr_Occurred()) SWIG_fail;
20914 }
20915 resultobj = SWIG_Py_Void();
20916 if (SWIG_IsTmpObj(res2)) {
20917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20918 } else {
20919 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20921 }
20922 if (SWIG_IsTmpObj(res3)) {
20923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20924 } else {
20925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20927 }
20928 return resultobj;
20929 fail:
20930 return NULL;
20931 }
20932
20933
20934 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20935 PyObject *resultobj = 0;
20936 wxDC *arg1 = (wxDC *) 0 ;
20937 wxSize result;
20938 void *argp1 = 0 ;
20939 int res1 = 0 ;
20940 PyObject *swig_obj[1] ;
20941
20942 if (!args) SWIG_fail;
20943 swig_obj[0] = args;
20944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20945 if (!SWIG_IsOK(res1)) {
20946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20947 }
20948 arg1 = reinterpret_cast< wxDC * >(argp1);
20949 {
20950 PyThreadState* __tstate = wxPyBeginAllowThreads();
20951 result = ((wxDC const *)arg1)->GetSizeMM();
20952 wxPyEndAllowThreads(__tstate);
20953 if (PyErr_Occurred()) SWIG_fail;
20954 }
20955 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20956 return resultobj;
20957 fail:
20958 return NULL;
20959 }
20960
20961
20962 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20963 PyObject *resultobj = 0;
20964 wxDC *arg1 = (wxDC *) 0 ;
20965 int *arg2 = (int *) 0 ;
20966 int *arg3 = (int *) 0 ;
20967 void *argp1 = 0 ;
20968 int res1 = 0 ;
20969 int temp2 ;
20970 int res2 = SWIG_TMPOBJ ;
20971 int temp3 ;
20972 int res3 = SWIG_TMPOBJ ;
20973 PyObject *swig_obj[1] ;
20974
20975 arg2 = &temp2;
20976 arg3 = &temp3;
20977 if (!args) SWIG_fail;
20978 swig_obj[0] = args;
20979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20980 if (!SWIG_IsOK(res1)) {
20981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20982 }
20983 arg1 = reinterpret_cast< wxDC * >(argp1);
20984 {
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_Py_Void();
20991 if (SWIG_IsTmpObj(res2)) {
20992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20993 } else {
20994 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20996 }
20997 if (SWIG_IsTmpObj(res3)) {
20998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20999 } else {
21000 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21002 }
21003 return resultobj;
21004 fail:
21005 return NULL;
21006 }
21007
21008
21009 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21010 PyObject *resultobj = 0;
21011 wxDC *arg1 = (wxDC *) 0 ;
21012 int arg2 ;
21013 int result;
21014 void *argp1 = 0 ;
21015 int res1 = 0 ;
21016 int val2 ;
21017 int ecode2 = 0 ;
21018 PyObject * obj0 = 0 ;
21019 PyObject * obj1 = 0 ;
21020 char * kwnames[] = {
21021 (char *) "self",(char *) "x", NULL
21022 };
21023
21024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21026 if (!SWIG_IsOK(res1)) {
21027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21028 }
21029 arg1 = reinterpret_cast< wxDC * >(argp1);
21030 ecode2 = SWIG_AsVal_int(obj1, &val2);
21031 if (!SWIG_IsOK(ecode2)) {
21032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21033 }
21034 arg2 = static_cast< int >(val2);
21035 {
21036 PyThreadState* __tstate = wxPyBeginAllowThreads();
21037 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21038 wxPyEndAllowThreads(__tstate);
21039 if (PyErr_Occurred()) SWIG_fail;
21040 }
21041 resultobj = SWIG_From_int(static_cast< int >(result));
21042 return resultobj;
21043 fail:
21044 return NULL;
21045 }
21046
21047
21048 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21049 PyObject *resultobj = 0;
21050 wxDC *arg1 = (wxDC *) 0 ;
21051 int arg2 ;
21052 int result;
21053 void *argp1 = 0 ;
21054 int res1 = 0 ;
21055 int val2 ;
21056 int ecode2 = 0 ;
21057 PyObject * obj0 = 0 ;
21058 PyObject * obj1 = 0 ;
21059 char * kwnames[] = {
21060 (char *) "self",(char *) "y", NULL
21061 };
21062
21063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21065 if (!SWIG_IsOK(res1)) {
21066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21067 }
21068 arg1 = reinterpret_cast< wxDC * >(argp1);
21069 ecode2 = SWIG_AsVal_int(obj1, &val2);
21070 if (!SWIG_IsOK(ecode2)) {
21071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21072 }
21073 arg2 = static_cast< int >(val2);
21074 {
21075 PyThreadState* __tstate = wxPyBeginAllowThreads();
21076 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21077 wxPyEndAllowThreads(__tstate);
21078 if (PyErr_Occurred()) SWIG_fail;
21079 }
21080 resultobj = SWIG_From_int(static_cast< int >(result));
21081 return resultobj;
21082 fail:
21083 return NULL;
21084 }
21085
21086
21087 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21088 PyObject *resultobj = 0;
21089 wxDC *arg1 = (wxDC *) 0 ;
21090 int arg2 ;
21091 int result;
21092 void *argp1 = 0 ;
21093 int res1 = 0 ;
21094 int val2 ;
21095 int ecode2 = 0 ;
21096 PyObject * obj0 = 0 ;
21097 PyObject * obj1 = 0 ;
21098 char * kwnames[] = {
21099 (char *) "self",(char *) "x", NULL
21100 };
21101
21102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21104 if (!SWIG_IsOK(res1)) {
21105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21106 }
21107 arg1 = reinterpret_cast< wxDC * >(argp1);
21108 ecode2 = SWIG_AsVal_int(obj1, &val2);
21109 if (!SWIG_IsOK(ecode2)) {
21110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21111 }
21112 arg2 = static_cast< int >(val2);
21113 {
21114 PyThreadState* __tstate = wxPyBeginAllowThreads();
21115 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21116 wxPyEndAllowThreads(__tstate);
21117 if (PyErr_Occurred()) SWIG_fail;
21118 }
21119 resultobj = SWIG_From_int(static_cast< int >(result));
21120 return resultobj;
21121 fail:
21122 return NULL;
21123 }
21124
21125
21126 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21127 PyObject *resultobj = 0;
21128 wxDC *arg1 = (wxDC *) 0 ;
21129 int arg2 ;
21130 int result;
21131 void *argp1 = 0 ;
21132 int res1 = 0 ;
21133 int val2 ;
21134 int ecode2 = 0 ;
21135 PyObject * obj0 = 0 ;
21136 PyObject * obj1 = 0 ;
21137 char * kwnames[] = {
21138 (char *) "self",(char *) "y", NULL
21139 };
21140
21141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21143 if (!SWIG_IsOK(res1)) {
21144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21145 }
21146 arg1 = reinterpret_cast< wxDC * >(argp1);
21147 ecode2 = SWIG_AsVal_int(obj1, &val2);
21148 if (!SWIG_IsOK(ecode2)) {
21149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21150 }
21151 arg2 = static_cast< int >(val2);
21152 {
21153 PyThreadState* __tstate = wxPyBeginAllowThreads();
21154 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21155 wxPyEndAllowThreads(__tstate);
21156 if (PyErr_Occurred()) SWIG_fail;
21157 }
21158 resultobj = SWIG_From_int(static_cast< int >(result));
21159 return resultobj;
21160 fail:
21161 return NULL;
21162 }
21163
21164
21165 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21166 PyObject *resultobj = 0;
21167 wxDC *arg1 = (wxDC *) 0 ;
21168 int arg2 ;
21169 int result;
21170 void *argp1 = 0 ;
21171 int res1 = 0 ;
21172 int val2 ;
21173 int ecode2 = 0 ;
21174 PyObject * obj0 = 0 ;
21175 PyObject * obj1 = 0 ;
21176 char * kwnames[] = {
21177 (char *) "self",(char *) "x", NULL
21178 };
21179
21180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21182 if (!SWIG_IsOK(res1)) {
21183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21184 }
21185 arg1 = reinterpret_cast< wxDC * >(argp1);
21186 ecode2 = SWIG_AsVal_int(obj1, &val2);
21187 if (!SWIG_IsOK(ecode2)) {
21188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21189 }
21190 arg2 = static_cast< int >(val2);
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21194 wxPyEndAllowThreads(__tstate);
21195 if (PyErr_Occurred()) SWIG_fail;
21196 }
21197 resultobj = SWIG_From_int(static_cast< int >(result));
21198 return resultobj;
21199 fail:
21200 return NULL;
21201 }
21202
21203
21204 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21205 PyObject *resultobj = 0;
21206 wxDC *arg1 = (wxDC *) 0 ;
21207 int arg2 ;
21208 int result;
21209 void *argp1 = 0 ;
21210 int res1 = 0 ;
21211 int val2 ;
21212 int ecode2 = 0 ;
21213 PyObject * obj0 = 0 ;
21214 PyObject * obj1 = 0 ;
21215 char * kwnames[] = {
21216 (char *) "self",(char *) "y", NULL
21217 };
21218
21219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21221 if (!SWIG_IsOK(res1)) {
21222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21223 }
21224 arg1 = reinterpret_cast< wxDC * >(argp1);
21225 ecode2 = SWIG_AsVal_int(obj1, &val2);
21226 if (!SWIG_IsOK(ecode2)) {
21227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21228 }
21229 arg2 = static_cast< int >(val2);
21230 {
21231 PyThreadState* __tstate = wxPyBeginAllowThreads();
21232 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21233 wxPyEndAllowThreads(__tstate);
21234 if (PyErr_Occurred()) SWIG_fail;
21235 }
21236 resultobj = SWIG_From_int(static_cast< int >(result));
21237 return resultobj;
21238 fail:
21239 return NULL;
21240 }
21241
21242
21243 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21244 PyObject *resultobj = 0;
21245 wxDC *arg1 = (wxDC *) 0 ;
21246 int arg2 ;
21247 int result;
21248 void *argp1 = 0 ;
21249 int res1 = 0 ;
21250 int val2 ;
21251 int ecode2 = 0 ;
21252 PyObject * obj0 = 0 ;
21253 PyObject * obj1 = 0 ;
21254 char * kwnames[] = {
21255 (char *) "self",(char *) "x", NULL
21256 };
21257
21258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21260 if (!SWIG_IsOK(res1)) {
21261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21262 }
21263 arg1 = reinterpret_cast< wxDC * >(argp1);
21264 ecode2 = SWIG_AsVal_int(obj1, &val2);
21265 if (!SWIG_IsOK(ecode2)) {
21266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21267 }
21268 arg2 = static_cast< int >(val2);
21269 {
21270 PyThreadState* __tstate = wxPyBeginAllowThreads();
21271 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21272 wxPyEndAllowThreads(__tstate);
21273 if (PyErr_Occurred()) SWIG_fail;
21274 }
21275 resultobj = SWIG_From_int(static_cast< int >(result));
21276 return resultobj;
21277 fail:
21278 return NULL;
21279 }
21280
21281
21282 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21283 PyObject *resultobj = 0;
21284 wxDC *arg1 = (wxDC *) 0 ;
21285 int arg2 ;
21286 int result;
21287 void *argp1 = 0 ;
21288 int res1 = 0 ;
21289 int val2 ;
21290 int ecode2 = 0 ;
21291 PyObject * obj0 = 0 ;
21292 PyObject * obj1 = 0 ;
21293 char * kwnames[] = {
21294 (char *) "self",(char *) "y", NULL
21295 };
21296
21297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21299 if (!SWIG_IsOK(res1)) {
21300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21301 }
21302 arg1 = reinterpret_cast< wxDC * >(argp1);
21303 ecode2 = SWIG_AsVal_int(obj1, &val2);
21304 if (!SWIG_IsOK(ecode2)) {
21305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21306 }
21307 arg2 = static_cast< int >(val2);
21308 {
21309 PyThreadState* __tstate = wxPyBeginAllowThreads();
21310 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21311 wxPyEndAllowThreads(__tstate);
21312 if (PyErr_Occurred()) SWIG_fail;
21313 }
21314 resultobj = SWIG_From_int(static_cast< int >(result));
21315 return resultobj;
21316 fail:
21317 return NULL;
21318 }
21319
21320
21321 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21322 PyObject *resultobj = 0;
21323 wxDC *arg1 = (wxDC *) 0 ;
21324 bool result;
21325 void *argp1 = 0 ;
21326 int res1 = 0 ;
21327 PyObject *swig_obj[1] ;
21328
21329 if (!args) SWIG_fail;
21330 swig_obj[0] = args;
21331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21332 if (!SWIG_IsOK(res1)) {
21333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21334 }
21335 arg1 = reinterpret_cast< wxDC * >(argp1);
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 {
21343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21344 }
21345 return resultobj;
21346 fail:
21347 return NULL;
21348 }
21349
21350
21351 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21352 PyObject *resultobj = 0;
21353 wxDC *arg1 = (wxDC *) 0 ;
21354 bool result;
21355 void *argp1 = 0 ;
21356 int res1 = 0 ;
21357 PyObject *swig_obj[1] ;
21358
21359 if (!args) SWIG_fail;
21360 swig_obj[0] = args;
21361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21362 if (!SWIG_IsOK(res1)) {
21363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21364 }
21365 arg1 = reinterpret_cast< wxDC * >(argp1);
21366 {
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21369 wxPyEndAllowThreads(__tstate);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 }
21372 {
21373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21374 }
21375 return resultobj;
21376 fail:
21377 return NULL;
21378 }
21379
21380
21381 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21382 PyObject *resultobj = 0;
21383 wxDC *arg1 = (wxDC *) 0 ;
21384 int result;
21385 void *argp1 = 0 ;
21386 int res1 = 0 ;
21387 PyObject *swig_obj[1] ;
21388
21389 if (!args) SWIG_fail;
21390 swig_obj[0] = args;
21391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21392 if (!SWIG_IsOK(res1)) {
21393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21394 }
21395 arg1 = reinterpret_cast< wxDC * >(argp1);
21396 {
21397 PyThreadState* __tstate = wxPyBeginAllowThreads();
21398 result = (int)((wxDC const *)arg1)->GetDepth();
21399 wxPyEndAllowThreads(__tstate);
21400 if (PyErr_Occurred()) SWIG_fail;
21401 }
21402 resultobj = SWIG_From_int(static_cast< int >(result));
21403 return resultobj;
21404 fail:
21405 return NULL;
21406 }
21407
21408
21409 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21410 PyObject *resultobj = 0;
21411 wxDC *arg1 = (wxDC *) 0 ;
21412 wxSize result;
21413 void *argp1 = 0 ;
21414 int res1 = 0 ;
21415 PyObject *swig_obj[1] ;
21416
21417 if (!args) SWIG_fail;
21418 swig_obj[0] = args;
21419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21420 if (!SWIG_IsOK(res1)) {
21421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21422 }
21423 arg1 = reinterpret_cast< wxDC * >(argp1);
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = ((wxDC const *)arg1)->GetPPI();
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21431 return resultobj;
21432 fail:
21433 return NULL;
21434 }
21435
21436
21437 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 bool result;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 PyObject *swig_obj[1] ;
21444
21445 if (!args) SWIG_fail;
21446 swig_obj[0] = args;
21447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21448 if (!SWIG_IsOK(res1)) {
21449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21450 }
21451 arg1 = reinterpret_cast< wxDC * >(argp1);
21452 {
21453 PyThreadState* __tstate = wxPyBeginAllowThreads();
21454 result = (bool)((wxDC const *)arg1)->Ok();
21455 wxPyEndAllowThreads(__tstate);
21456 if (PyErr_Occurred()) SWIG_fail;
21457 }
21458 {
21459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21460 }
21461 return resultobj;
21462 fail:
21463 return NULL;
21464 }
21465
21466
21467 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21468 PyObject *resultobj = 0;
21469 wxDC *arg1 = (wxDC *) 0 ;
21470 int result;
21471 void *argp1 = 0 ;
21472 int res1 = 0 ;
21473 PyObject *swig_obj[1] ;
21474
21475 if (!args) SWIG_fail;
21476 swig_obj[0] = args;
21477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21478 if (!SWIG_IsOK(res1)) {
21479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21480 }
21481 arg1 = reinterpret_cast< wxDC * >(argp1);
21482 {
21483 PyThreadState* __tstate = wxPyBeginAllowThreads();
21484 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21485 wxPyEndAllowThreads(__tstate);
21486 if (PyErr_Occurred()) SWIG_fail;
21487 }
21488 resultobj = SWIG_From_int(static_cast< int >(result));
21489 return resultobj;
21490 fail:
21491 return NULL;
21492 }
21493
21494
21495 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21496 PyObject *resultobj = 0;
21497 wxDC *arg1 = (wxDC *) 0 ;
21498 wxBrush *result = 0 ;
21499 void *argp1 = 0 ;
21500 int res1 = 0 ;
21501 PyObject *swig_obj[1] ;
21502
21503 if (!args) SWIG_fail;
21504 swig_obj[0] = args;
21505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21506 if (!SWIG_IsOK(res1)) {
21507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21508 }
21509 arg1 = reinterpret_cast< wxDC * >(argp1);
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 {
21513 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21514 result = (wxBrush *) &_result_ref;
21515 }
21516 wxPyEndAllowThreads(__tstate);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 {
21520 wxBrush* resultptr = new wxBrush(*result);
21521 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21522 }
21523 return resultobj;
21524 fail:
21525 return NULL;
21526 }
21527
21528
21529 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21530 PyObject *resultobj = 0;
21531 wxDC *arg1 = (wxDC *) 0 ;
21532 wxBrush *result = 0 ;
21533 void *argp1 = 0 ;
21534 int res1 = 0 ;
21535 PyObject *swig_obj[1] ;
21536
21537 if (!args) SWIG_fail;
21538 swig_obj[0] = args;
21539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21540 if (!SWIG_IsOK(res1)) {
21541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21542 }
21543 arg1 = reinterpret_cast< wxDC * >(argp1);
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 {
21547 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21548 result = (wxBrush *) &_result_ref;
21549 }
21550 wxPyEndAllowThreads(__tstate);
21551 if (PyErr_Occurred()) SWIG_fail;
21552 }
21553 {
21554 wxBrush* resultptr = new wxBrush(*result);
21555 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21556 }
21557 return resultobj;
21558 fail:
21559 return NULL;
21560 }
21561
21562
21563 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21564 PyObject *resultobj = 0;
21565 wxDC *arg1 = (wxDC *) 0 ;
21566 wxFont *result = 0 ;
21567 void *argp1 = 0 ;
21568 int res1 = 0 ;
21569 PyObject *swig_obj[1] ;
21570
21571 if (!args) SWIG_fail;
21572 swig_obj[0] = args;
21573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21576 }
21577 arg1 = reinterpret_cast< wxDC * >(argp1);
21578 {
21579 PyThreadState* __tstate = wxPyBeginAllowThreads();
21580 {
21581 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21582 result = (wxFont *) &_result_ref;
21583 }
21584 wxPyEndAllowThreads(__tstate);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 }
21587 {
21588 wxFont* resultptr = new wxFont(*result);
21589 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21590 }
21591 return resultobj;
21592 fail:
21593 return NULL;
21594 }
21595
21596
21597 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21598 PyObject *resultobj = 0;
21599 wxDC *arg1 = (wxDC *) 0 ;
21600 wxPen *result = 0 ;
21601 void *argp1 = 0 ;
21602 int res1 = 0 ;
21603 PyObject *swig_obj[1] ;
21604
21605 if (!args) SWIG_fail;
21606 swig_obj[0] = args;
21607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21608 if (!SWIG_IsOK(res1)) {
21609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21610 }
21611 arg1 = reinterpret_cast< wxDC * >(argp1);
21612 {
21613 PyThreadState* __tstate = wxPyBeginAllowThreads();
21614 {
21615 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21616 result = (wxPen *) &_result_ref;
21617 }
21618 wxPyEndAllowThreads(__tstate);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 {
21622 wxPen* resultptr = new wxPen(*result);
21623 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21624 }
21625 return resultobj;
21626 fail:
21627 return NULL;
21628 }
21629
21630
21631 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21632 PyObject *resultobj = 0;
21633 wxDC *arg1 = (wxDC *) 0 ;
21634 wxColour *result = 0 ;
21635 void *argp1 = 0 ;
21636 int res1 = 0 ;
21637 PyObject *swig_obj[1] ;
21638
21639 if (!args) SWIG_fail;
21640 swig_obj[0] = args;
21641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21642 if (!SWIG_IsOK(res1)) {
21643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21644 }
21645 arg1 = reinterpret_cast< wxDC * >(argp1);
21646 {
21647 PyThreadState* __tstate = wxPyBeginAllowThreads();
21648 {
21649 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21650 result = (wxColour *) &_result_ref;
21651 }
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21656 return resultobj;
21657 fail:
21658 return NULL;
21659 }
21660
21661
21662 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21663 PyObject *resultobj = 0;
21664 wxDC *arg1 = (wxDC *) 0 ;
21665 wxColour *result = 0 ;
21666 void *argp1 = 0 ;
21667 int res1 = 0 ;
21668 PyObject *swig_obj[1] ;
21669
21670 if (!args) SWIG_fail;
21671 swig_obj[0] = args;
21672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21675 }
21676 arg1 = reinterpret_cast< wxDC * >(argp1);
21677 {
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 {
21680 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21681 result = (wxColour *) &_result_ref;
21682 }
21683 wxPyEndAllowThreads(__tstate);
21684 if (PyErr_Occurred()) SWIG_fail;
21685 }
21686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21687 return resultobj;
21688 fail:
21689 return NULL;
21690 }
21691
21692
21693 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21694 PyObject *resultobj = 0;
21695 wxDC *arg1 = (wxDC *) 0 ;
21696 wxColour *arg2 = 0 ;
21697 void *argp1 = 0 ;
21698 int res1 = 0 ;
21699 wxColour temp2 ;
21700 PyObject * obj0 = 0 ;
21701 PyObject * obj1 = 0 ;
21702 char * kwnames[] = {
21703 (char *) "self",(char *) "colour", NULL
21704 };
21705
21706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21710 }
21711 arg1 = reinterpret_cast< wxDC * >(argp1);
21712 {
21713 arg2 = &temp2;
21714 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21715 }
21716 {
21717 PyThreadState* __tstate = wxPyBeginAllowThreads();
21718 (arg1)->SetTextForeground((wxColour const &)*arg2);
21719 wxPyEndAllowThreads(__tstate);
21720 if (PyErr_Occurred()) SWIG_fail;
21721 }
21722 resultobj = SWIG_Py_Void();
21723 return resultobj;
21724 fail:
21725 return NULL;
21726 }
21727
21728
21729 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21730 PyObject *resultobj = 0;
21731 wxDC *arg1 = (wxDC *) 0 ;
21732 wxColour *arg2 = 0 ;
21733 void *argp1 = 0 ;
21734 int res1 = 0 ;
21735 wxColour temp2 ;
21736 PyObject * obj0 = 0 ;
21737 PyObject * obj1 = 0 ;
21738 char * kwnames[] = {
21739 (char *) "self",(char *) "colour", NULL
21740 };
21741
21742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21744 if (!SWIG_IsOK(res1)) {
21745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21746 }
21747 arg1 = reinterpret_cast< wxDC * >(argp1);
21748 {
21749 arg2 = &temp2;
21750 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21751 }
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 (arg1)->SetTextBackground((wxColour const &)*arg2);
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 resultobj = SWIG_Py_Void();
21759 return resultobj;
21760 fail:
21761 return NULL;
21762 }
21763
21764
21765 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21766 PyObject *resultobj = 0;
21767 wxDC *arg1 = (wxDC *) 0 ;
21768 int result;
21769 void *argp1 = 0 ;
21770 int res1 = 0 ;
21771 PyObject *swig_obj[1] ;
21772
21773 if (!args) SWIG_fail;
21774 swig_obj[0] = args;
21775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21776 if (!SWIG_IsOK(res1)) {
21777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21778 }
21779 arg1 = reinterpret_cast< wxDC * >(argp1);
21780 {
21781 PyThreadState* __tstate = wxPyBeginAllowThreads();
21782 result = (int)((wxDC const *)arg1)->GetMapMode();
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 resultobj = SWIG_From_int(static_cast< int >(result));
21787 return resultobj;
21788 fail:
21789 return NULL;
21790 }
21791
21792
21793 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21794 PyObject *resultobj = 0;
21795 wxDC *arg1 = (wxDC *) 0 ;
21796 int arg2 ;
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 *) "mode", NULL
21805 };
21806
21807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",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_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
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_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21816 }
21817 arg2 = static_cast< int >(val2);
21818 {
21819 PyThreadState* __tstate = wxPyBeginAllowThreads();
21820 (arg1)->SetMapMode(arg2);
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 resultobj = SWIG_Py_Void();
21825 return resultobj;
21826 fail:
21827 return NULL;
21828 }
21829
21830
21831 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21832 PyObject *resultobj = 0;
21833 wxDC *arg1 = (wxDC *) 0 ;
21834 double *arg2 = (double *) 0 ;
21835 double *arg3 = (double *) 0 ;
21836 void *argp1 = 0 ;
21837 int res1 = 0 ;
21838 double temp2 ;
21839 int res2 = SWIG_TMPOBJ ;
21840 double temp3 ;
21841 int res3 = SWIG_TMPOBJ ;
21842 PyObject *swig_obj[1] ;
21843
21844 arg2 = &temp2;
21845 arg3 = &temp3;
21846 if (!args) SWIG_fail;
21847 swig_obj[0] = args;
21848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21849 if (!SWIG_IsOK(res1)) {
21850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21851 }
21852 arg1 = reinterpret_cast< wxDC * >(argp1);
21853 {
21854 PyThreadState* __tstate = wxPyBeginAllowThreads();
21855 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21856 wxPyEndAllowThreads(__tstate);
21857 if (PyErr_Occurred()) SWIG_fail;
21858 }
21859 resultobj = SWIG_Py_Void();
21860 if (SWIG_IsTmpObj(res2)) {
21861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21862 } else {
21863 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21865 }
21866 if (SWIG_IsTmpObj(res3)) {
21867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21868 } else {
21869 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21871 }
21872 return resultobj;
21873 fail:
21874 return NULL;
21875 }
21876
21877
21878 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj = 0;
21880 wxDC *arg1 = (wxDC *) 0 ;
21881 double arg2 ;
21882 double arg3 ;
21883 void *argp1 = 0 ;
21884 int res1 = 0 ;
21885 double val2 ;
21886 int ecode2 = 0 ;
21887 double val3 ;
21888 int ecode3 = 0 ;
21889 PyObject * obj0 = 0 ;
21890 PyObject * obj1 = 0 ;
21891 PyObject * obj2 = 0 ;
21892 char * kwnames[] = {
21893 (char *) "self",(char *) "x",(char *) "y", NULL
21894 };
21895
21896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21900 }
21901 arg1 = reinterpret_cast< wxDC * >(argp1);
21902 ecode2 = SWIG_AsVal_double(obj1, &val2);
21903 if (!SWIG_IsOK(ecode2)) {
21904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21905 }
21906 arg2 = static_cast< double >(val2);
21907 ecode3 = SWIG_AsVal_double(obj2, &val3);
21908 if (!SWIG_IsOK(ecode3)) {
21909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21910 }
21911 arg3 = static_cast< double >(val3);
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 (arg1)->SetUserScale(arg2,arg3);
21915 wxPyEndAllowThreads(__tstate);
21916 if (PyErr_Occurred()) SWIG_fail;
21917 }
21918 resultobj = SWIG_Py_Void();
21919 return resultobj;
21920 fail:
21921 return NULL;
21922 }
21923
21924
21925 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21926 PyObject *resultobj = 0;
21927 wxDC *arg1 = (wxDC *) 0 ;
21928 double *arg2 = (double *) 0 ;
21929 double *arg3 = (double *) 0 ;
21930 void *argp1 = 0 ;
21931 int res1 = 0 ;
21932 double temp2 ;
21933 int res2 = SWIG_TMPOBJ ;
21934 double temp3 ;
21935 int res3 = SWIG_TMPOBJ ;
21936 PyObject *swig_obj[1] ;
21937
21938 arg2 = &temp2;
21939 arg3 = &temp3;
21940 if (!args) SWIG_fail;
21941 swig_obj[0] = args;
21942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21943 if (!SWIG_IsOK(res1)) {
21944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21945 }
21946 arg1 = reinterpret_cast< wxDC * >(argp1);
21947 {
21948 PyThreadState* __tstate = wxPyBeginAllowThreads();
21949 (arg1)->GetLogicalScale(arg2,arg3);
21950 wxPyEndAllowThreads(__tstate);
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 resultobj = SWIG_Py_Void();
21954 if (SWIG_IsTmpObj(res2)) {
21955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21956 } else {
21957 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21959 }
21960 if (SWIG_IsTmpObj(res3)) {
21961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21962 } else {
21963 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21965 }
21966 return resultobj;
21967 fail:
21968 return NULL;
21969 }
21970
21971
21972 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21973 PyObject *resultobj = 0;
21974 wxDC *arg1 = (wxDC *) 0 ;
21975 double arg2 ;
21976 double arg3 ;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 double val2 ;
21980 int ecode2 = 0 ;
21981 double val3 ;
21982 int ecode3 = 0 ;
21983 PyObject * obj0 = 0 ;
21984 PyObject * obj1 = 0 ;
21985 PyObject * obj2 = 0 ;
21986 char * kwnames[] = {
21987 (char *) "self",(char *) "x",(char *) "y", NULL
21988 };
21989
21990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21992 if (!SWIG_IsOK(res1)) {
21993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21994 }
21995 arg1 = reinterpret_cast< wxDC * >(argp1);
21996 ecode2 = SWIG_AsVal_double(obj1, &val2);
21997 if (!SWIG_IsOK(ecode2)) {
21998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21999 }
22000 arg2 = static_cast< double >(val2);
22001 ecode3 = SWIG_AsVal_double(obj2, &val3);
22002 if (!SWIG_IsOK(ecode3)) {
22003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22004 }
22005 arg3 = static_cast< double >(val3);
22006 {
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
22008 (arg1)->SetLogicalScale(arg2,arg3);
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 resultobj = SWIG_Py_Void();
22013 return resultobj;
22014 fail:
22015 return NULL;
22016 }
22017
22018
22019 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22020 PyObject *resultobj = 0;
22021 wxDC *arg1 = (wxDC *) 0 ;
22022 wxPoint result;
22023 void *argp1 = 0 ;
22024 int res1 = 0 ;
22025 PyObject *swig_obj[1] ;
22026
22027 if (!args) SWIG_fail;
22028 swig_obj[0] = args;
22029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22030 if (!SWIG_IsOK(res1)) {
22031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22032 }
22033 arg1 = reinterpret_cast< wxDC * >(argp1);
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048 PyObject *resultobj = 0;
22049 wxDC *arg1 = (wxDC *) 0 ;
22050 int *arg2 = (int *) 0 ;
22051 int *arg3 = (int *) 0 ;
22052 void *argp1 = 0 ;
22053 int res1 = 0 ;
22054 int temp2 ;
22055 int res2 = SWIG_TMPOBJ ;
22056 int temp3 ;
22057 int res3 = SWIG_TMPOBJ ;
22058 PyObject *swig_obj[1] ;
22059
22060 arg2 = &temp2;
22061 arg3 = &temp3;
22062 if (!args) SWIG_fail;
22063 swig_obj[0] = args;
22064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22065 if (!SWIG_IsOK(res1)) {
22066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22067 }
22068 arg1 = reinterpret_cast< wxDC * >(argp1);
22069 {
22070 PyThreadState* __tstate = wxPyBeginAllowThreads();
22071 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22072 wxPyEndAllowThreads(__tstate);
22073 if (PyErr_Occurred()) SWIG_fail;
22074 }
22075 resultobj = SWIG_Py_Void();
22076 if (SWIG_IsTmpObj(res2)) {
22077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22078 } else {
22079 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22081 }
22082 if (SWIG_IsTmpObj(res3)) {
22083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22084 } else {
22085 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22087 }
22088 return resultobj;
22089 fail:
22090 return NULL;
22091 }
22092
22093
22094 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj = 0;
22096 wxDC *arg1 = (wxDC *) 0 ;
22097 int arg2 ;
22098 int arg3 ;
22099 void *argp1 = 0 ;
22100 int res1 = 0 ;
22101 int val2 ;
22102 int ecode2 = 0 ;
22103 int val3 ;
22104 int ecode3 = 0 ;
22105 PyObject * obj0 = 0 ;
22106 PyObject * obj1 = 0 ;
22107 PyObject * obj2 = 0 ;
22108 char * kwnames[] = {
22109 (char *) "self",(char *) "x",(char *) "y", NULL
22110 };
22111
22112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22114 if (!SWIG_IsOK(res1)) {
22115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22116 }
22117 arg1 = reinterpret_cast< wxDC * >(argp1);
22118 ecode2 = SWIG_AsVal_int(obj1, &val2);
22119 if (!SWIG_IsOK(ecode2)) {
22120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22121 }
22122 arg2 = static_cast< int >(val2);
22123 ecode3 = SWIG_AsVal_int(obj2, &val3);
22124 if (!SWIG_IsOK(ecode3)) {
22125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22126 }
22127 arg3 = static_cast< int >(val3);
22128 {
22129 PyThreadState* __tstate = wxPyBeginAllowThreads();
22130 (arg1)->SetLogicalOrigin(arg2,arg3);
22131 wxPyEndAllowThreads(__tstate);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 resultobj = SWIG_Py_Void();
22135 return resultobj;
22136 fail:
22137 return NULL;
22138 }
22139
22140
22141 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22142 PyObject *resultobj = 0;
22143 wxDC *arg1 = (wxDC *) 0 ;
22144 wxPoint *arg2 = 0 ;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 wxPoint temp2 ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 char * kwnames[] = {
22151 (char *) "self",(char *) "point", NULL
22152 };
22153
22154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22156 if (!SWIG_IsOK(res1)) {
22157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22158 }
22159 arg1 = reinterpret_cast< wxDC * >(argp1);
22160 {
22161 arg2 = &temp2;
22162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22163 }
22164 {
22165 PyThreadState* __tstate = wxPyBeginAllowThreads();
22166 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22167 wxPyEndAllowThreads(__tstate);
22168 if (PyErr_Occurred()) SWIG_fail;
22169 }
22170 resultobj = SWIG_Py_Void();
22171 return resultobj;
22172 fail:
22173 return NULL;
22174 }
22175
22176
22177 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22178 PyObject *resultobj = 0;
22179 wxDC *arg1 = (wxDC *) 0 ;
22180 wxPoint result;
22181 void *argp1 = 0 ;
22182 int res1 = 0 ;
22183 PyObject *swig_obj[1] ;
22184
22185 if (!args) SWIG_fail;
22186 swig_obj[0] = args;
22187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22188 if (!SWIG_IsOK(res1)) {
22189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22190 }
22191 arg1 = reinterpret_cast< wxDC * >(argp1);
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22199 return resultobj;
22200 fail:
22201 return NULL;
22202 }
22203
22204
22205 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22206 PyObject *resultobj = 0;
22207 wxDC *arg1 = (wxDC *) 0 ;
22208 int *arg2 = (int *) 0 ;
22209 int *arg3 = (int *) 0 ;
22210 void *argp1 = 0 ;
22211 int res1 = 0 ;
22212 int temp2 ;
22213 int res2 = SWIG_TMPOBJ ;
22214 int temp3 ;
22215 int res3 = SWIG_TMPOBJ ;
22216 PyObject *swig_obj[1] ;
22217
22218 arg2 = &temp2;
22219 arg3 = &temp3;
22220 if (!args) SWIG_fail;
22221 swig_obj[0] = args;
22222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22223 if (!SWIG_IsOK(res1)) {
22224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22225 }
22226 arg1 = reinterpret_cast< wxDC * >(argp1);
22227 {
22228 PyThreadState* __tstate = wxPyBeginAllowThreads();
22229 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22230 wxPyEndAllowThreads(__tstate);
22231 if (PyErr_Occurred()) SWIG_fail;
22232 }
22233 resultobj = SWIG_Py_Void();
22234 if (SWIG_IsTmpObj(res2)) {
22235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22236 } else {
22237 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22239 }
22240 if (SWIG_IsTmpObj(res3)) {
22241 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22242 } else {
22243 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22245 }
22246 return resultobj;
22247 fail:
22248 return NULL;
22249 }
22250
22251
22252 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22253 PyObject *resultobj = 0;
22254 wxDC *arg1 = (wxDC *) 0 ;
22255 int arg2 ;
22256 int arg3 ;
22257 void *argp1 = 0 ;
22258 int res1 = 0 ;
22259 int val2 ;
22260 int ecode2 = 0 ;
22261 int val3 ;
22262 int ecode3 = 0 ;
22263 PyObject * obj0 = 0 ;
22264 PyObject * obj1 = 0 ;
22265 PyObject * obj2 = 0 ;
22266 char * kwnames[] = {
22267 (char *) "self",(char *) "x",(char *) "y", NULL
22268 };
22269
22270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22274 }
22275 arg1 = reinterpret_cast< wxDC * >(argp1);
22276 ecode2 = SWIG_AsVal_int(obj1, &val2);
22277 if (!SWIG_IsOK(ecode2)) {
22278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22279 }
22280 arg2 = static_cast< int >(val2);
22281 ecode3 = SWIG_AsVal_int(obj2, &val3);
22282 if (!SWIG_IsOK(ecode3)) {
22283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22284 }
22285 arg3 = static_cast< int >(val3);
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 (arg1)->SetDeviceOrigin(arg2,arg3);
22289 wxPyEndAllowThreads(__tstate);
22290 if (PyErr_Occurred()) SWIG_fail;
22291 }
22292 resultobj = SWIG_Py_Void();
22293 return resultobj;
22294 fail:
22295 return NULL;
22296 }
22297
22298
22299 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22300 PyObject *resultobj = 0;
22301 wxDC *arg1 = (wxDC *) 0 ;
22302 wxPoint *arg2 = 0 ;
22303 void *argp1 = 0 ;
22304 int res1 = 0 ;
22305 wxPoint temp2 ;
22306 PyObject * obj0 = 0 ;
22307 PyObject * obj1 = 0 ;
22308 char * kwnames[] = {
22309 (char *) "self",(char *) "point", NULL
22310 };
22311
22312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22314 if (!SWIG_IsOK(res1)) {
22315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22316 }
22317 arg1 = reinterpret_cast< wxDC * >(argp1);
22318 {
22319 arg2 = &temp2;
22320 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22321 }
22322 {
22323 PyThreadState* __tstate = wxPyBeginAllowThreads();
22324 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22325 wxPyEndAllowThreads(__tstate);
22326 if (PyErr_Occurred()) SWIG_fail;
22327 }
22328 resultobj = SWIG_Py_Void();
22329 return resultobj;
22330 fail:
22331 return NULL;
22332 }
22333
22334
22335 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj = 0;
22337 wxDC *arg1 = (wxDC *) 0 ;
22338 bool arg2 ;
22339 bool arg3 ;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 bool val2 ;
22343 int ecode2 = 0 ;
22344 bool val3 ;
22345 int ecode3 = 0 ;
22346 PyObject * obj0 = 0 ;
22347 PyObject * obj1 = 0 ;
22348 PyObject * obj2 = 0 ;
22349 char * kwnames[] = {
22350 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22351 };
22352
22353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22355 if (!SWIG_IsOK(res1)) {
22356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22357 }
22358 arg1 = reinterpret_cast< wxDC * >(argp1);
22359 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22360 if (!SWIG_IsOK(ecode2)) {
22361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22362 }
22363 arg2 = static_cast< bool >(val2);
22364 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22365 if (!SWIG_IsOK(ecode3)) {
22366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22367 }
22368 arg3 = static_cast< bool >(val3);
22369 {
22370 PyThreadState* __tstate = wxPyBeginAllowThreads();
22371 (arg1)->SetAxisOrientation(arg2,arg3);
22372 wxPyEndAllowThreads(__tstate);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 }
22375 resultobj = SWIG_Py_Void();
22376 return resultobj;
22377 fail:
22378 return NULL;
22379 }
22380
22381
22382 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22383 PyObject *resultobj = 0;
22384 wxDC *arg1 = (wxDC *) 0 ;
22385 int result;
22386 void *argp1 = 0 ;
22387 int res1 = 0 ;
22388 PyObject *swig_obj[1] ;
22389
22390 if (!args) SWIG_fail;
22391 swig_obj[0] = args;
22392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22393 if (!SWIG_IsOK(res1)) {
22394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22395 }
22396 arg1 = reinterpret_cast< wxDC * >(argp1);
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_From_int(static_cast< int >(result));
22404 return resultobj;
22405 fail:
22406 return NULL;
22407 }
22408
22409
22410 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22411 PyObject *resultobj = 0;
22412 wxDC *arg1 = (wxDC *) 0 ;
22413 int arg2 ;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 int val2 ;
22417 int ecode2 = 0 ;
22418 PyObject * obj0 = 0 ;
22419 PyObject * obj1 = 0 ;
22420 char * kwnames[] = {
22421 (char *) "self",(char *) "function", NULL
22422 };
22423
22424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22426 if (!SWIG_IsOK(res1)) {
22427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22428 }
22429 arg1 = reinterpret_cast< wxDC * >(argp1);
22430 ecode2 = SWIG_AsVal_int(obj1, &val2);
22431 if (!SWIG_IsOK(ecode2)) {
22432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22433 }
22434 arg2 = static_cast< int >(val2);
22435 {
22436 PyThreadState* __tstate = wxPyBeginAllowThreads();
22437 (arg1)->SetLogicalFunction(arg2);
22438 wxPyEndAllowThreads(__tstate);
22439 if (PyErr_Occurred()) SWIG_fail;
22440 }
22441 resultobj = SWIG_Py_Void();
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22449 PyObject *resultobj = 0;
22450 wxDC *arg1 = (wxDC *) 0 ;
22451 void *argp1 = 0 ;
22452 int res1 = 0 ;
22453 PyObject *swig_obj[1] ;
22454
22455 if (!args) SWIG_fail;
22456 swig_obj[0] = args;
22457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22458 if (!SWIG_IsOK(res1)) {
22459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22460 }
22461 arg1 = reinterpret_cast< wxDC * >(argp1);
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 (arg1)->ComputeScaleAndOrigin();
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 resultobj = SWIG_Py_Void();
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj = 0;
22477 wxDC *arg1 = (wxDC *) 0 ;
22478 int arg2 ;
22479 int arg3 ;
22480 void *argp1 = 0 ;
22481 int res1 = 0 ;
22482 int val2 ;
22483 int ecode2 = 0 ;
22484 int val3 ;
22485 int ecode3 = 0 ;
22486 PyObject * obj0 = 0 ;
22487 PyObject * obj1 = 0 ;
22488 PyObject * obj2 = 0 ;
22489 char * kwnames[] = {
22490 (char *) "self",(char *) "x",(char *) "y", NULL
22491 };
22492
22493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22495 if (!SWIG_IsOK(res1)) {
22496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22497 }
22498 arg1 = reinterpret_cast< wxDC * >(argp1);
22499 ecode2 = SWIG_AsVal_int(obj1, &val2);
22500 if (!SWIG_IsOK(ecode2)) {
22501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22502 }
22503 arg2 = static_cast< int >(val2);
22504 ecode3 = SWIG_AsVal_int(obj2, &val3);
22505 if (!SWIG_IsOK(ecode3)) {
22506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22507 }
22508 arg3 = static_cast< int >(val3);
22509 {
22510 PyThreadState* __tstate = wxPyBeginAllowThreads();
22511 (arg1)->CalcBoundingBox(arg2,arg3);
22512 wxPyEndAllowThreads(__tstate);
22513 if (PyErr_Occurred()) SWIG_fail;
22514 }
22515 resultobj = SWIG_Py_Void();
22516 return resultobj;
22517 fail:
22518 return NULL;
22519 }
22520
22521
22522 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22523 PyObject *resultobj = 0;
22524 wxDC *arg1 = (wxDC *) 0 ;
22525 wxPoint *arg2 = 0 ;
22526 void *argp1 = 0 ;
22527 int res1 = 0 ;
22528 wxPoint temp2 ;
22529 PyObject * obj0 = 0 ;
22530 PyObject * obj1 = 0 ;
22531 char * kwnames[] = {
22532 (char *) "self",(char *) "point", NULL
22533 };
22534
22535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22537 if (!SWIG_IsOK(res1)) {
22538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22539 }
22540 arg1 = reinterpret_cast< wxDC * >(argp1);
22541 {
22542 arg2 = &temp2;
22543 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22544 }
22545 {
22546 PyThreadState* __tstate = wxPyBeginAllowThreads();
22547 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22548 wxPyEndAllowThreads(__tstate);
22549 if (PyErr_Occurred()) SWIG_fail;
22550 }
22551 resultobj = SWIG_Py_Void();
22552 return resultobj;
22553 fail:
22554 return NULL;
22555 }
22556
22557
22558 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22559 PyObject *resultobj = 0;
22560 wxDC *arg1 = (wxDC *) 0 ;
22561 void *argp1 = 0 ;
22562 int res1 = 0 ;
22563 PyObject *swig_obj[1] ;
22564
22565 if (!args) SWIG_fail;
22566 swig_obj[0] = args;
22567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22568 if (!SWIG_IsOK(res1)) {
22569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22570 }
22571 arg1 = reinterpret_cast< wxDC * >(argp1);
22572 {
22573 PyThreadState* __tstate = wxPyBeginAllowThreads();
22574 (arg1)->ResetBoundingBox();
22575 wxPyEndAllowThreads(__tstate);
22576 if (PyErr_Occurred()) SWIG_fail;
22577 }
22578 resultobj = SWIG_Py_Void();
22579 return resultobj;
22580 fail:
22581 return NULL;
22582 }
22583
22584
22585 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22586 PyObject *resultobj = 0;
22587 wxDC *arg1 = (wxDC *) 0 ;
22588 int result;
22589 void *argp1 = 0 ;
22590 int res1 = 0 ;
22591 PyObject *swig_obj[1] ;
22592
22593 if (!args) SWIG_fail;
22594 swig_obj[0] = args;
22595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22596 if (!SWIG_IsOK(res1)) {
22597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22598 }
22599 arg1 = reinterpret_cast< wxDC * >(argp1);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 result = (int)((wxDC const *)arg1)->MinX();
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_From_int(static_cast< int >(result));
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *resultobj = 0;
22615 wxDC *arg1 = (wxDC *) 0 ;
22616 int result;
22617 void *argp1 = 0 ;
22618 int res1 = 0 ;
22619 PyObject *swig_obj[1] ;
22620
22621 if (!args) SWIG_fail;
22622 swig_obj[0] = args;
22623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22624 if (!SWIG_IsOK(res1)) {
22625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22626 }
22627 arg1 = reinterpret_cast< wxDC * >(argp1);
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
22630 result = (int)((wxDC const *)arg1)->MaxX();
22631 wxPyEndAllowThreads(__tstate);
22632 if (PyErr_Occurred()) SWIG_fail;
22633 }
22634 resultobj = SWIG_From_int(static_cast< int >(result));
22635 return resultobj;
22636 fail:
22637 return NULL;
22638 }
22639
22640
22641 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22642 PyObject *resultobj = 0;
22643 wxDC *arg1 = (wxDC *) 0 ;
22644 int result;
22645 void *argp1 = 0 ;
22646 int res1 = 0 ;
22647 PyObject *swig_obj[1] ;
22648
22649 if (!args) SWIG_fail;
22650 swig_obj[0] = args;
22651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22652 if (!SWIG_IsOK(res1)) {
22653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22654 }
22655 arg1 = reinterpret_cast< wxDC * >(argp1);
22656 {
22657 PyThreadState* __tstate = wxPyBeginAllowThreads();
22658 result = (int)((wxDC const *)arg1)->MinY();
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 resultobj = SWIG_From_int(static_cast< int >(result));
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22670 PyObject *resultobj = 0;
22671 wxDC *arg1 = (wxDC *) 0 ;
22672 int result;
22673 void *argp1 = 0 ;
22674 int res1 = 0 ;
22675 PyObject *swig_obj[1] ;
22676
22677 if (!args) SWIG_fail;
22678 swig_obj[0] = args;
22679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22680 if (!SWIG_IsOK(res1)) {
22681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22682 }
22683 arg1 = reinterpret_cast< wxDC * >(argp1);
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (int)((wxDC const *)arg1)->MaxY();
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 resultobj = SWIG_From_int(static_cast< int >(result));
22691 return resultobj;
22692 fail:
22693 return NULL;
22694 }
22695
22696
22697 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22698 PyObject *resultobj = 0;
22699 wxDC *arg1 = (wxDC *) 0 ;
22700 int *arg2 = (int *) 0 ;
22701 int *arg3 = (int *) 0 ;
22702 int *arg4 = (int *) 0 ;
22703 int *arg5 = (int *) 0 ;
22704 void *argp1 = 0 ;
22705 int res1 = 0 ;
22706 int temp2 ;
22707 int res2 = SWIG_TMPOBJ ;
22708 int temp3 ;
22709 int res3 = SWIG_TMPOBJ ;
22710 int temp4 ;
22711 int res4 = SWIG_TMPOBJ ;
22712 int temp5 ;
22713 int res5 = SWIG_TMPOBJ ;
22714 PyObject *swig_obj[1] ;
22715
22716 arg2 = &temp2;
22717 arg3 = &temp3;
22718 arg4 = &temp4;
22719 arg5 = &temp5;
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22725 }
22726 arg1 = reinterpret_cast< wxDC * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_Py_Void();
22734 if (SWIG_IsTmpObj(res2)) {
22735 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22736 } else {
22737 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22738 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22739 }
22740 if (SWIG_IsTmpObj(res3)) {
22741 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22742 } else {
22743 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22745 }
22746 if (SWIG_IsTmpObj(res4)) {
22747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22748 } else {
22749 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22751 }
22752 if (SWIG_IsTmpObj(res5)) {
22753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22754 } else {
22755 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22757 }
22758 return resultobj;
22759 fail:
22760 return NULL;
22761 }
22762
22763
22764 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22765 PyObject *resultobj = 0;
22766 wxDC *arg1 = (wxDC *) 0 ;
22767 PyObject *arg2 = (PyObject *) 0 ;
22768 PyObject *arg3 = (PyObject *) 0 ;
22769 PyObject *arg4 = (PyObject *) 0 ;
22770 PyObject *result = 0 ;
22771 void *argp1 = 0 ;
22772 int res1 = 0 ;
22773 PyObject * obj0 = 0 ;
22774 PyObject * obj1 = 0 ;
22775 PyObject * obj2 = 0 ;
22776 PyObject * obj3 = 0 ;
22777 char * kwnames[] = {
22778 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22779 };
22780
22781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22783 if (!SWIG_IsOK(res1)) {
22784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22785 }
22786 arg1 = reinterpret_cast< wxDC * >(argp1);
22787 arg2 = obj1;
22788 arg3 = obj2;
22789 arg4 = obj3;
22790 {
22791 PyThreadState* __tstate = wxPyBeginAllowThreads();
22792 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22793 wxPyEndAllowThreads(__tstate);
22794 if (PyErr_Occurred()) SWIG_fail;
22795 }
22796 resultobj = result;
22797 return resultobj;
22798 fail:
22799 return NULL;
22800 }
22801
22802
22803 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22804 PyObject *resultobj = 0;
22805 wxDC *arg1 = (wxDC *) 0 ;
22806 PyObject *arg2 = (PyObject *) 0 ;
22807 PyObject *arg3 = (PyObject *) 0 ;
22808 PyObject *arg4 = (PyObject *) 0 ;
22809 PyObject *result = 0 ;
22810 void *argp1 = 0 ;
22811 int res1 = 0 ;
22812 PyObject * obj0 = 0 ;
22813 PyObject * obj1 = 0 ;
22814 PyObject * obj2 = 0 ;
22815 PyObject * obj3 = 0 ;
22816 char * kwnames[] = {
22817 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22818 };
22819
22820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22822 if (!SWIG_IsOK(res1)) {
22823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22824 }
22825 arg1 = reinterpret_cast< wxDC * >(argp1);
22826 arg2 = obj1;
22827 arg3 = obj2;
22828 arg4 = obj3;
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 resultobj = result;
22836 return resultobj;
22837 fail:
22838 return NULL;
22839 }
22840
22841
22842 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22843 PyObject *resultobj = 0;
22844 wxDC *arg1 = (wxDC *) 0 ;
22845 PyObject *arg2 = (PyObject *) 0 ;
22846 PyObject *arg3 = (PyObject *) 0 ;
22847 PyObject *arg4 = (PyObject *) 0 ;
22848 PyObject *result = 0 ;
22849 void *argp1 = 0 ;
22850 int res1 = 0 ;
22851 PyObject * obj0 = 0 ;
22852 PyObject * obj1 = 0 ;
22853 PyObject * obj2 = 0 ;
22854 PyObject * obj3 = 0 ;
22855 char * kwnames[] = {
22856 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22857 };
22858
22859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) 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__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22863 }
22864 arg1 = reinterpret_cast< wxDC * >(argp1);
22865 arg2 = obj1;
22866 arg3 = obj2;
22867 arg4 = obj3;
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 resultobj = result;
22875 return resultobj;
22876 fail:
22877 return NULL;
22878 }
22879
22880
22881 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22882 PyObject *resultobj = 0;
22883 wxDC *arg1 = (wxDC *) 0 ;
22884 PyObject *arg2 = (PyObject *) 0 ;
22885 PyObject *arg3 = (PyObject *) 0 ;
22886 PyObject *arg4 = (PyObject *) 0 ;
22887 PyObject *result = 0 ;
22888 void *argp1 = 0 ;
22889 int res1 = 0 ;
22890 PyObject * obj0 = 0 ;
22891 PyObject * obj1 = 0 ;
22892 PyObject * obj2 = 0 ;
22893 PyObject * obj3 = 0 ;
22894 char * kwnames[] = {
22895 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22896 };
22897
22898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22902 }
22903 arg1 = reinterpret_cast< wxDC * >(argp1);
22904 arg2 = obj1;
22905 arg3 = obj2;
22906 arg4 = obj3;
22907 {
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 resultobj = result;
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj = 0;
22922 wxDC *arg1 = (wxDC *) 0 ;
22923 PyObject *arg2 = (PyObject *) 0 ;
22924 PyObject *arg3 = (PyObject *) 0 ;
22925 PyObject *arg4 = (PyObject *) 0 ;
22926 PyObject *result = 0 ;
22927 void *argp1 = 0 ;
22928 int res1 = 0 ;
22929 PyObject * obj0 = 0 ;
22930 PyObject * obj1 = 0 ;
22931 PyObject * obj2 = 0 ;
22932 PyObject * obj3 = 0 ;
22933 char * kwnames[] = {
22934 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22935 };
22936
22937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22939 if (!SWIG_IsOK(res1)) {
22940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22941 }
22942 arg1 = reinterpret_cast< wxDC * >(argp1);
22943 arg2 = obj1;
22944 arg3 = obj2;
22945 arg4 = obj3;
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 resultobj = result;
22953 return resultobj;
22954 fail:
22955 return NULL;
22956 }
22957
22958
22959 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22960 PyObject *resultobj = 0;
22961 wxDC *arg1 = (wxDC *) 0 ;
22962 PyObject *arg2 = (PyObject *) 0 ;
22963 PyObject *arg3 = (PyObject *) 0 ;
22964 PyObject *arg4 = (PyObject *) 0 ;
22965 PyObject *arg5 = (PyObject *) 0 ;
22966 PyObject *result = 0 ;
22967 void *argp1 = 0 ;
22968 int res1 = 0 ;
22969 PyObject * obj0 = 0 ;
22970 PyObject * obj1 = 0 ;
22971 PyObject * obj2 = 0 ;
22972 PyObject * obj3 = 0 ;
22973 PyObject * obj4 = 0 ;
22974 char * kwnames[] = {
22975 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22976 };
22977
22978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22982 }
22983 arg1 = reinterpret_cast< wxDC * >(argp1);
22984 arg2 = obj1;
22985 arg3 = obj2;
22986 arg4 = obj3;
22987 arg5 = obj4;
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = result;
22995 return resultobj;
22996 fail:
22997 return NULL;
22998 }
22999
23000
23001 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *obj;
23003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23004 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23005 return SWIG_Py_Void();
23006 }
23007
23008 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *resultobj = 0;
23010 wxMemoryDC *result = 0 ;
23011
23012 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23013 {
23014 if (!wxPyCheckForApp()) SWIG_fail;
23015 PyThreadState* __tstate = wxPyBeginAllowThreads();
23016 result = (wxMemoryDC *)new wxMemoryDC();
23017 wxPyEndAllowThreads(__tstate);
23018 if (PyErr_Occurred()) SWIG_fail;
23019 }
23020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23021 return resultobj;
23022 fail:
23023 return NULL;
23024 }
23025
23026
23027 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23028 PyObject *resultobj = 0;
23029 wxDC *arg1 = (wxDC *) 0 ;
23030 wxMemoryDC *result = 0 ;
23031 void *argp1 = 0 ;
23032 int res1 = 0 ;
23033 PyObject * obj0 = 0 ;
23034 char * kwnames[] = {
23035 (char *) "oldDC", NULL
23036 };
23037
23038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23042 }
23043 arg1 = reinterpret_cast< wxDC * >(argp1);
23044 {
23045 if (!wxPyCheckForApp()) SWIG_fail;
23046 PyThreadState* __tstate = wxPyBeginAllowThreads();
23047 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23052 return resultobj;
23053 fail:
23054 return NULL;
23055 }
23056
23057
23058 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj = 0;
23060 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23061 wxBitmap *arg2 = 0 ;
23062 void *argp1 = 0 ;
23063 int res1 = 0 ;
23064 void *argp2 = 0 ;
23065 int res2 = 0 ;
23066 PyObject * obj0 = 0 ;
23067 PyObject * obj1 = 0 ;
23068 char * kwnames[] = {
23069 (char *) "self",(char *) "bitmap", NULL
23070 };
23071
23072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23074 if (!SWIG_IsOK(res1)) {
23075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23076 }
23077 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23079 if (!SWIG_IsOK(res2)) {
23080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23081 }
23082 if (!argp2) {
23083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23084 }
23085 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 (arg1)->SelectObject((wxBitmap const &)*arg2);
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 resultobj = SWIG_Py_Void();
23093 return resultobj;
23094 fail:
23095 return NULL;
23096 }
23097
23098
23099 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23100 PyObject *obj;
23101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23102 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23103 return SWIG_Py_Void();
23104 }
23105
23106 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23107 return SWIG_Python_InitShadowInstance(args);
23108 }
23109
23110 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23111 PyObject *resultobj = 0;
23112 wxDC *arg1 = (wxDC *) 0 ;
23113 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23114 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23115 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23116 wxBufferedDC *result = 0 ;
23117 void *argp1 = 0 ;
23118 int res1 = 0 ;
23119 void *argp2 = 0 ;
23120 int res2 = 0 ;
23121 int val3 ;
23122 int ecode3 = 0 ;
23123
23124 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23126 if (!SWIG_IsOK(res1)) {
23127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23128 }
23129 arg1 = reinterpret_cast< wxDC * >(argp1);
23130 if (swig_obj[1]) {
23131 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23132 if (!SWIG_IsOK(res2)) {
23133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23134 }
23135 if (!argp2) {
23136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23137 }
23138 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23139 }
23140 if (swig_obj[2]) {
23141 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23142 if (!SWIG_IsOK(ecode3)) {
23143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23144 }
23145 arg3 = static_cast< int >(val3);
23146 }
23147 {
23148 if (!wxPyCheckForApp()) SWIG_fail;
23149 PyThreadState* __tstate = wxPyBeginAllowThreads();
23150 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23151 wxPyEndAllowThreads(__tstate);
23152 if (PyErr_Occurred()) SWIG_fail;
23153 }
23154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23155 return resultobj;
23156 fail:
23157 return NULL;
23158 }
23159
23160
23161 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23162 PyObject *resultobj = 0;
23163 wxDC *arg1 = (wxDC *) 0 ;
23164 wxSize *arg2 = 0 ;
23165 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23166 wxBufferedDC *result = 0 ;
23167 void *argp1 = 0 ;
23168 int res1 = 0 ;
23169 wxSize temp2 ;
23170 int val3 ;
23171 int ecode3 = 0 ;
23172
23173 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23175 if (!SWIG_IsOK(res1)) {
23176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23177 }
23178 arg1 = reinterpret_cast< wxDC * >(argp1);
23179 {
23180 arg2 = &temp2;
23181 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23182 }
23183 if (swig_obj[2]) {
23184 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23185 if (!SWIG_IsOK(ecode3)) {
23186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23187 }
23188 arg3 = static_cast< int >(val3);
23189 }
23190 {
23191 if (!wxPyCheckForApp()) SWIG_fail;
23192 PyThreadState* __tstate = wxPyBeginAllowThreads();
23193 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23194 wxPyEndAllowThreads(__tstate);
23195 if (PyErr_Occurred()) SWIG_fail;
23196 }
23197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23198 return resultobj;
23199 fail:
23200 return NULL;
23201 }
23202
23203
23204 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23205 int argc;
23206 PyObject *argv[4];
23207
23208 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23209 --argc;
23210 if ((argc >= 1) && (argc <= 3)) {
23211 int _v = 0;
23212 if (argc > 1) {
23213 {
23214 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23215 _v = SWIG_CheckState(res);
23216 }
23217 if (!_v) goto check_1;
23218 }
23219 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23220 }
23221 check_1:
23222
23223 if ((argc >= 2) && (argc <= 3)) {
23224 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23225 }
23226
23227 fail:
23228 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23229 return NULL;
23230 }
23231
23232
23233 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23234 PyObject *resultobj = 0;
23235 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 PyObject *swig_obj[1] ;
23239
23240 if (!args) SWIG_fail;
23241 swig_obj[0] = args;
23242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23243 if (!SWIG_IsOK(res1)) {
23244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23245 }
23246 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 delete arg1;
23250
23251 wxPyEndAllowThreads(__tstate);
23252 if (PyErr_Occurred()) SWIG_fail;
23253 }
23254 resultobj = SWIG_Py_Void();
23255 return resultobj;
23256 fail:
23257 return NULL;
23258 }
23259
23260
23261 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23262 PyObject *resultobj = 0;
23263 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23264 void *argp1 = 0 ;
23265 int res1 = 0 ;
23266 PyObject *swig_obj[1] ;
23267
23268 if (!args) SWIG_fail;
23269 swig_obj[0] = args;
23270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23271 if (!SWIG_IsOK(res1)) {
23272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23273 }
23274 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23275 {
23276 PyThreadState* __tstate = wxPyBeginAllowThreads();
23277 (arg1)->UnMask();
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = SWIG_Py_Void();
23282 return resultobj;
23283 fail:
23284 return NULL;
23285 }
23286
23287
23288 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23289 PyObject *obj;
23290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23291 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23292 return SWIG_Py_Void();
23293 }
23294
23295 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23296 return SWIG_Python_InitShadowInstance(args);
23297 }
23298
23299 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj = 0;
23301 wxWindow *arg1 = (wxWindow *) 0 ;
23302 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23303 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23304 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23305 wxBufferedPaintDC *result = 0 ;
23306 void *argp1 = 0 ;
23307 int res1 = 0 ;
23308 void *argp2 = 0 ;
23309 int res2 = 0 ;
23310 int val3 ;
23311 int ecode3 = 0 ;
23312 PyObject * obj0 = 0 ;
23313 PyObject * obj1 = 0 ;
23314 PyObject * obj2 = 0 ;
23315 char * kwnames[] = {
23316 (char *) "window",(char *) "buffer",(char *) "style", NULL
23317 };
23318
23319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23321 if (!SWIG_IsOK(res1)) {
23322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23323 }
23324 arg1 = reinterpret_cast< wxWindow * >(argp1);
23325 if (obj1) {
23326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23327 if (!SWIG_IsOK(res2)) {
23328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23329 }
23330 if (!argp2) {
23331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23332 }
23333 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23334 }
23335 if (obj2) {
23336 ecode3 = SWIG_AsVal_int(obj2, &val3);
23337 if (!SWIG_IsOK(ecode3)) {
23338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23339 }
23340 arg3 = static_cast< int >(val3);
23341 }
23342 {
23343 if (!wxPyCheckForApp()) SWIG_fail;
23344 PyThreadState* __tstate = wxPyBeginAllowThreads();
23345 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23346 wxPyEndAllowThreads(__tstate);
23347 if (PyErr_Occurred()) SWIG_fail;
23348 }
23349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23350 return resultobj;
23351 fail:
23352 return NULL;
23353 }
23354
23355
23356 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23357 PyObject *obj;
23358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23359 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23360 return SWIG_Py_Void();
23361 }
23362
23363 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23364 return SWIG_Python_InitShadowInstance(args);
23365 }
23366
23367 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23368 PyObject *resultobj = 0;
23369 wxScreenDC *result = 0 ;
23370
23371 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23372 {
23373 if (!wxPyCheckForApp()) SWIG_fail;
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 result = (wxScreenDC *)new wxScreenDC();
23376 wxPyEndAllowThreads(__tstate);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 }
23379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj = 0;
23388 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23389 wxWindow *arg2 = (wxWindow *) 0 ;
23390 bool result;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 void *argp2 = 0 ;
23394 int res2 = 0 ;
23395 PyObject * obj0 = 0 ;
23396 PyObject * obj1 = 0 ;
23397 char * kwnames[] = {
23398 (char *) "self",(char *) "window", NULL
23399 };
23400
23401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23403 if (!SWIG_IsOK(res1)) {
23404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23405 }
23406 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23408 if (!SWIG_IsOK(res2)) {
23409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23410 }
23411 arg2 = reinterpret_cast< wxWindow * >(argp2);
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 {
23419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23420 }
23421 return resultobj;
23422 fail:
23423 return NULL;
23424 }
23425
23426
23427 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23428 PyObject *resultobj = 0;
23429 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23430 wxRect *arg2 = (wxRect *) NULL ;
23431 bool result;
23432 void *argp1 = 0 ;
23433 int res1 = 0 ;
23434 void *argp2 = 0 ;
23435 int res2 = 0 ;
23436 PyObject * obj0 = 0 ;
23437 PyObject * obj1 = 0 ;
23438 char * kwnames[] = {
23439 (char *) "self",(char *) "rect", NULL
23440 };
23441
23442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23444 if (!SWIG_IsOK(res1)) {
23445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23446 }
23447 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23448 if (obj1) {
23449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23450 if (!SWIG_IsOK(res2)) {
23451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23452 }
23453 arg2 = reinterpret_cast< wxRect * >(argp2);
23454 }
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 {
23462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23463 }
23464 return resultobj;
23465 fail:
23466 return NULL;
23467 }
23468
23469
23470 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23471 PyObject *resultobj = 0;
23472 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23473 bool result;
23474 void *argp1 = 0 ;
23475 int res1 = 0 ;
23476 PyObject *swig_obj[1] ;
23477
23478 if (!args) SWIG_fail;
23479 swig_obj[0] = args;
23480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23483 }
23484 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23485 {
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 result = (bool)(arg1)->EndDrawingOnTop();
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 {
23492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23493 }
23494 return resultobj;
23495 fail:
23496 return NULL;
23497 }
23498
23499
23500 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23501 PyObject *obj;
23502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23503 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23504 return SWIG_Py_Void();
23505 }
23506
23507 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23508 return SWIG_Python_InitShadowInstance(args);
23509 }
23510
23511 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23512 PyObject *resultobj = 0;
23513 wxWindow *arg1 = (wxWindow *) 0 ;
23514 wxWindowDC *result = 0 ;
23515 void *argp1 = 0 ;
23516 int res1 = 0 ;
23517 PyObject * obj0 = 0 ;
23518 char * kwnames[] = {
23519 (char *) "win", NULL
23520 };
23521
23522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23524 if (!SWIG_IsOK(res1)) {
23525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23526 }
23527 arg1 = reinterpret_cast< wxWindow * >(argp1);
23528 {
23529 if (!wxPyCheckForApp()) SWIG_fail;
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 result = (wxWindowDC *)new wxWindowDC(arg1);
23532 wxPyEndAllowThreads(__tstate);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23536 return resultobj;
23537 fail:
23538 return NULL;
23539 }
23540
23541
23542 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23543 PyObject *obj;
23544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23545 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23546 return SWIG_Py_Void();
23547 }
23548
23549 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23550 return SWIG_Python_InitShadowInstance(args);
23551 }
23552
23553 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23554 PyObject *resultobj = 0;
23555 wxWindow *arg1 = (wxWindow *) 0 ;
23556 wxClientDC *result = 0 ;
23557 void *argp1 = 0 ;
23558 int res1 = 0 ;
23559 PyObject * obj0 = 0 ;
23560 char * kwnames[] = {
23561 (char *) "win", NULL
23562 };
23563
23564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23566 if (!SWIG_IsOK(res1)) {
23567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23568 }
23569 arg1 = reinterpret_cast< wxWindow * >(argp1);
23570 {
23571 if (!wxPyCheckForApp()) SWIG_fail;
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (wxClientDC *)new wxClientDC(arg1);
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23578 return resultobj;
23579 fail:
23580 return NULL;
23581 }
23582
23583
23584 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23585 PyObject *obj;
23586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23587 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23588 return SWIG_Py_Void();
23589 }
23590
23591 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23592 return SWIG_Python_InitShadowInstance(args);
23593 }
23594
23595 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23596 PyObject *resultobj = 0;
23597 wxWindow *arg1 = (wxWindow *) 0 ;
23598 wxPaintDC *result = 0 ;
23599 void *argp1 = 0 ;
23600 int res1 = 0 ;
23601 PyObject * obj0 = 0 ;
23602 char * kwnames[] = {
23603 (char *) "win", NULL
23604 };
23605
23606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23608 if (!SWIG_IsOK(res1)) {
23609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23610 }
23611 arg1 = reinterpret_cast< wxWindow * >(argp1);
23612 {
23613 if (!wxPyCheckForApp()) SWIG_fail;
23614 PyThreadState* __tstate = wxPyBeginAllowThreads();
23615 result = (wxPaintDC *)new wxPaintDC(arg1);
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23620 return resultobj;
23621 fail:
23622 return NULL;
23623 }
23624
23625
23626 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23627 PyObject *obj;
23628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23629 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23630 return SWIG_Py_Void();
23631 }
23632
23633 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23634 return SWIG_Python_InitShadowInstance(args);
23635 }
23636
23637 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj = 0;
23639 wxDC *arg1 = 0 ;
23640 bool arg2 ;
23641 wxMirrorDC *result = 0 ;
23642 void *argp1 = 0 ;
23643 int res1 = 0 ;
23644 bool val2 ;
23645 int ecode2 = 0 ;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23648 char * kwnames[] = {
23649 (char *) "dc",(char *) "mirror", NULL
23650 };
23651
23652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23653 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23654 if (!SWIG_IsOK(res1)) {
23655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23656 }
23657 if (!argp1) {
23658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23659 }
23660 arg1 = reinterpret_cast< wxDC * >(argp1);
23661 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23662 if (!SWIG_IsOK(ecode2)) {
23663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23664 }
23665 arg2 = static_cast< bool >(val2);
23666 {
23667 if (!wxPyCheckForApp()) SWIG_fail;
23668 PyThreadState* __tstate = wxPyBeginAllowThreads();
23669 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23670 wxPyEndAllowThreads(__tstate);
23671 if (PyErr_Occurred()) SWIG_fail;
23672 }
23673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23674 return resultobj;
23675 fail:
23676 return NULL;
23677 }
23678
23679
23680 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23681 PyObject *obj;
23682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23683 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23684 return SWIG_Py_Void();
23685 }
23686
23687 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23688 return SWIG_Python_InitShadowInstance(args);
23689 }
23690
23691 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23692 PyObject *resultobj = 0;
23693 wxPrintData *arg1 = 0 ;
23694 wxPostScriptDC *result = 0 ;
23695 void *argp1 = 0 ;
23696 int res1 = 0 ;
23697 PyObject * obj0 = 0 ;
23698 char * kwnames[] = {
23699 (char *) "printData", NULL
23700 };
23701
23702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23703 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23704 if (!SWIG_IsOK(res1)) {
23705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23706 }
23707 if (!argp1) {
23708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23709 }
23710 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23711 {
23712 if (!wxPyCheckForApp()) SWIG_fail;
23713 PyThreadState* __tstate = wxPyBeginAllowThreads();
23714 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23715 wxPyEndAllowThreads(__tstate);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 }
23718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23719 return resultobj;
23720 fail:
23721 return NULL;
23722 }
23723
23724
23725 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23726 PyObject *resultobj = 0;
23727 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23728 wxPrintData *result = 0 ;
23729 void *argp1 = 0 ;
23730 int res1 = 0 ;
23731 PyObject *swig_obj[1] ;
23732
23733 if (!args) SWIG_fail;
23734 swig_obj[0] = args;
23735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23736 if (!SWIG_IsOK(res1)) {
23737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23738 }
23739 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23740 {
23741 PyThreadState* __tstate = wxPyBeginAllowThreads();
23742 {
23743 wxPrintData &_result_ref = (arg1)->GetPrintData();
23744 result = (wxPrintData *) &_result_ref;
23745 }
23746 wxPyEndAllowThreads(__tstate);
23747 if (PyErr_Occurred()) SWIG_fail;
23748 }
23749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23750 return resultobj;
23751 fail:
23752 return NULL;
23753 }
23754
23755
23756 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23757 PyObject *resultobj = 0;
23758 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23759 wxPrintData *arg2 = 0 ;
23760 void *argp1 = 0 ;
23761 int res1 = 0 ;
23762 void *argp2 = 0 ;
23763 int res2 = 0 ;
23764 PyObject * obj0 = 0 ;
23765 PyObject * obj1 = 0 ;
23766 char * kwnames[] = {
23767 (char *) "self",(char *) "data", NULL
23768 };
23769
23770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23772 if (!SWIG_IsOK(res1)) {
23773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23774 }
23775 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23777 if (!SWIG_IsOK(res2)) {
23778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23779 }
23780 if (!argp2) {
23781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23782 }
23783 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23784 {
23785 PyThreadState* __tstate = wxPyBeginAllowThreads();
23786 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23787 wxPyEndAllowThreads(__tstate);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 resultobj = SWIG_Py_Void();
23791 return resultobj;
23792 fail:
23793 return NULL;
23794 }
23795
23796
23797 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23798 PyObject *resultobj = 0;
23799 int arg1 ;
23800 int val1 ;
23801 int ecode1 = 0 ;
23802 PyObject * obj0 = 0 ;
23803 char * kwnames[] = {
23804 (char *) "ppi", NULL
23805 };
23806
23807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23808 ecode1 = SWIG_AsVal_int(obj0, &val1);
23809 if (!SWIG_IsOK(ecode1)) {
23810 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23811 }
23812 arg1 = static_cast< int >(val1);
23813 {
23814 PyThreadState* __tstate = wxPyBeginAllowThreads();
23815 wxPostScriptDC::SetResolution(arg1);
23816 wxPyEndAllowThreads(__tstate);
23817 if (PyErr_Occurred()) SWIG_fail;
23818 }
23819 resultobj = SWIG_Py_Void();
23820 return resultobj;
23821 fail:
23822 return NULL;
23823 }
23824
23825
23826 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23827 PyObject *resultobj = 0;
23828 int result;
23829
23830 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23831 {
23832 PyThreadState* __tstate = wxPyBeginAllowThreads();
23833 result = (int)wxPostScriptDC::GetResolution();
23834 wxPyEndAllowThreads(__tstate);
23835 if (PyErr_Occurred()) SWIG_fail;
23836 }
23837 resultobj = SWIG_From_int(static_cast< int >(result));
23838 return resultobj;
23839 fail:
23840 return NULL;
23841 }
23842
23843
23844 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23845 PyObject *obj;
23846 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23847 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23848 return SWIG_Py_Void();
23849 }
23850
23851 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23852 return SWIG_Python_InitShadowInstance(args);
23853 }
23854
23855 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23856 PyObject *resultobj = 0;
23857 wxString const &arg1_defvalue = wxPyEmptyString ;
23858 wxString *arg1 = (wxString *) &arg1_defvalue ;
23859 wxMetaFile *result = 0 ;
23860 bool temp1 = false ;
23861 PyObject * obj0 = 0 ;
23862 char * kwnames[] = {
23863 (char *) "filename", NULL
23864 };
23865
23866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23867 if (obj0) {
23868 {
23869 arg1 = wxString_in_helper(obj0);
23870 if (arg1 == NULL) SWIG_fail;
23871 temp1 = true;
23872 }
23873 }
23874 {
23875 if (!wxPyCheckForApp()) SWIG_fail;
23876 PyThreadState* __tstate = wxPyBeginAllowThreads();
23877 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23882 {
23883 if (temp1)
23884 delete arg1;
23885 }
23886 return resultobj;
23887 fail:
23888 {
23889 if (temp1)
23890 delete arg1;
23891 }
23892 return NULL;
23893 }
23894
23895
23896 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23897 PyObject *resultobj = 0;
23898 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23899 void *argp1 = 0 ;
23900 int res1 = 0 ;
23901 PyObject *swig_obj[1] ;
23902
23903 if (!args) SWIG_fail;
23904 swig_obj[0] = args;
23905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
23906 if (!SWIG_IsOK(res1)) {
23907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23908 }
23909 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 delete arg1;
23913
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 resultobj = SWIG_Py_Void();
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23925 PyObject *resultobj = 0;
23926 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23927 bool result;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 PyObject *swig_obj[1] ;
23931
23932 if (!args) SWIG_fail;
23933 swig_obj[0] = args;
23934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23935 if (!SWIG_IsOK(res1)) {
23936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23937 }
23938 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 result = (bool)(arg1)->Ok();
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 {
23946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23947 }
23948 return resultobj;
23949 fail:
23950 return NULL;
23951 }
23952
23953
23954 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23955 PyObject *resultobj = 0;
23956 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
23957 int arg2 = (int) 0 ;
23958 int arg3 = (int) 0 ;
23959 bool result;
23960 void *argp1 = 0 ;
23961 int res1 = 0 ;
23962 int val2 ;
23963 int ecode2 = 0 ;
23964 int val3 ;
23965 int ecode3 = 0 ;
23966 PyObject * obj0 = 0 ;
23967 PyObject * obj1 = 0 ;
23968 PyObject * obj2 = 0 ;
23969 char * kwnames[] = {
23970 (char *) "self",(char *) "width",(char *) "height", NULL
23971 };
23972
23973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
23975 if (!SWIG_IsOK(res1)) {
23976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
23977 }
23978 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
23979 if (obj1) {
23980 ecode2 = SWIG_AsVal_int(obj1, &val2);
23981 if (!SWIG_IsOK(ecode2)) {
23982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
23983 }
23984 arg2 = static_cast< int >(val2);
23985 }
23986 if (obj2) {
23987 ecode3 = SWIG_AsVal_int(obj2, &val3);
23988 if (!SWIG_IsOK(ecode3)) {
23989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
23990 }
23991 arg3 = static_cast< int >(val3);
23992 }
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (bool)(arg1)->SetClipboard(arg2,arg3);
23996 wxPyEndAllowThreads(__tstate);
23997 if (PyErr_Occurred()) SWIG_fail;
23998 }
23999 {
24000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24001 }
24002 return resultobj;
24003 fail:
24004 return NULL;
24005 }
24006
24007
24008 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24009 PyObject *resultobj = 0;
24010 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24011 wxSize result;
24012 void *argp1 = 0 ;
24013 int res1 = 0 ;
24014 PyObject *swig_obj[1] ;
24015
24016 if (!args) SWIG_fail;
24017 swig_obj[0] = args;
24018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24019 if (!SWIG_IsOK(res1)) {
24020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24021 }
24022 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (arg1)->GetSize();
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24030 return resultobj;
24031 fail:
24032 return NULL;
24033 }
24034
24035
24036 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24037 PyObject *resultobj = 0;
24038 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24039 int result;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 PyObject *swig_obj[1] ;
24043
24044 if (!args) SWIG_fail;
24045 swig_obj[0] = args;
24046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24047 if (!SWIG_IsOK(res1)) {
24048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24049 }
24050 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (int)(arg1)->GetWidth();
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 resultobj = SWIG_From_int(static_cast< int >(result));
24058 return resultobj;
24059 fail:
24060 return NULL;
24061 }
24062
24063
24064 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24065 PyObject *resultobj = 0;
24066 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24067 int result;
24068 void *argp1 = 0 ;
24069 int res1 = 0 ;
24070 PyObject *swig_obj[1] ;
24071
24072 if (!args) SWIG_fail;
24073 swig_obj[0] = args;
24074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24075 if (!SWIG_IsOK(res1)) {
24076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24077 }
24078 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24079 {
24080 PyThreadState* __tstate = wxPyBeginAllowThreads();
24081 result = (int)(arg1)->GetHeight();
24082 wxPyEndAllowThreads(__tstate);
24083 if (PyErr_Occurred()) SWIG_fail;
24084 }
24085 resultobj = SWIG_From_int(static_cast< int >(result));
24086 return resultobj;
24087 fail:
24088 return NULL;
24089 }
24090
24091
24092 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24093 PyObject *obj;
24094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24095 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24096 return SWIG_Py_Void();
24097 }
24098
24099 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24100 return SWIG_Python_InitShadowInstance(args);
24101 }
24102
24103 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24104 PyObject *resultobj = 0;
24105 wxString const &arg1_defvalue = wxPyEmptyString ;
24106 wxString *arg1 = (wxString *) &arg1_defvalue ;
24107 int arg2 = (int) 0 ;
24108 int arg3 = (int) 0 ;
24109 wxString const &arg4_defvalue = wxPyEmptyString ;
24110 wxString *arg4 = (wxString *) &arg4_defvalue ;
24111 wxMetaFileDC *result = 0 ;
24112 bool temp1 = false ;
24113 int val2 ;
24114 int ecode2 = 0 ;
24115 int val3 ;
24116 int ecode3 = 0 ;
24117 bool temp4 = false ;
24118 PyObject * obj0 = 0 ;
24119 PyObject * obj1 = 0 ;
24120 PyObject * obj2 = 0 ;
24121 PyObject * obj3 = 0 ;
24122 char * kwnames[] = {
24123 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24124 };
24125
24126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24127 if (obj0) {
24128 {
24129 arg1 = wxString_in_helper(obj0);
24130 if (arg1 == NULL) SWIG_fail;
24131 temp1 = true;
24132 }
24133 }
24134 if (obj1) {
24135 ecode2 = SWIG_AsVal_int(obj1, &val2);
24136 if (!SWIG_IsOK(ecode2)) {
24137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24138 }
24139 arg2 = static_cast< int >(val2);
24140 }
24141 if (obj2) {
24142 ecode3 = SWIG_AsVal_int(obj2, &val3);
24143 if (!SWIG_IsOK(ecode3)) {
24144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24145 }
24146 arg3 = static_cast< int >(val3);
24147 }
24148 if (obj3) {
24149 {
24150 arg4 = wxString_in_helper(obj3);
24151 if (arg4 == NULL) SWIG_fail;
24152 temp4 = true;
24153 }
24154 }
24155 {
24156 if (!wxPyCheckForApp()) SWIG_fail;
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24163 {
24164 if (temp1)
24165 delete arg1;
24166 }
24167 {
24168 if (temp4)
24169 delete arg4;
24170 }
24171 return resultobj;
24172 fail:
24173 {
24174 if (temp1)
24175 delete arg1;
24176 }
24177 {
24178 if (temp4)
24179 delete arg4;
24180 }
24181 return NULL;
24182 }
24183
24184
24185 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24186 PyObject *resultobj = 0;
24187 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24188 wxMetaFile *result = 0 ;
24189 void *argp1 = 0 ;
24190 int res1 = 0 ;
24191 PyObject *swig_obj[1] ;
24192
24193 if (!args) SWIG_fail;
24194 swig_obj[0] = args;
24195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24196 if (!SWIG_IsOK(res1)) {
24197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24198 }
24199 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24200 {
24201 PyThreadState* __tstate = wxPyBeginAllowThreads();
24202 result = (wxMetaFile *)(arg1)->Close();
24203 wxPyEndAllowThreads(__tstate);
24204 if (PyErr_Occurred()) SWIG_fail;
24205 }
24206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24207 return resultobj;
24208 fail:
24209 return NULL;
24210 }
24211
24212
24213 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24214 PyObject *obj;
24215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24216 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24217 return SWIG_Py_Void();
24218 }
24219
24220 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24221 return SWIG_Python_InitShadowInstance(args);
24222 }
24223
24224 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24225 PyObject *resultobj = 0;
24226 wxPrintData *arg1 = 0 ;
24227 wxPrinterDC *result = 0 ;
24228 void *argp1 = 0 ;
24229 int res1 = 0 ;
24230 PyObject * obj0 = 0 ;
24231 char * kwnames[] = {
24232 (char *) "printData", NULL
24233 };
24234
24235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24236 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24237 if (!SWIG_IsOK(res1)) {
24238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24239 }
24240 if (!argp1) {
24241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24242 }
24243 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24244 {
24245 if (!wxPyCheckForApp()) SWIG_fail;
24246 PyThreadState* __tstate = wxPyBeginAllowThreads();
24247 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24248 wxPyEndAllowThreads(__tstate);
24249 if (PyErr_Occurred()) SWIG_fail;
24250 }
24251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24252 return resultobj;
24253 fail:
24254 return NULL;
24255 }
24256
24257
24258 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24259 PyObject *obj;
24260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24261 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24262 return SWIG_Py_Void();
24263 }
24264
24265 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24266 return SWIG_Python_InitShadowInstance(args);
24267 }
24268
24269 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24270 PyObject *resultobj = 0;
24271 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24272 void *argp1 = 0 ;
24273 int res1 = 0 ;
24274 PyObject *swig_obj[1] ;
24275
24276 if (!args) SWIG_fail;
24277 swig_obj[0] = args;
24278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24279 if (!SWIG_IsOK(res1)) {
24280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24281 }
24282 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24283 {
24284 PyThreadState* __tstate = wxPyBeginAllowThreads();
24285 delete arg1;
24286
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 resultobj = SWIG_Py_Void();
24291 return resultobj;
24292 fail:
24293 return NULL;
24294 }
24295
24296
24297 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj = 0;
24299 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24300 wxDouble arg2 ;
24301 wxDouble arg3 ;
24302 void *argp1 = 0 ;
24303 int res1 = 0 ;
24304 double val2 ;
24305 int ecode2 = 0 ;
24306 double val3 ;
24307 int ecode3 = 0 ;
24308 PyObject * obj0 = 0 ;
24309 PyObject * obj1 = 0 ;
24310 PyObject * obj2 = 0 ;
24311 char * kwnames[] = {
24312 (char *) "self",(char *) "x",(char *) "y", NULL
24313 };
24314
24315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24317 if (!SWIG_IsOK(res1)) {
24318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24319 }
24320 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24321 ecode2 = SWIG_AsVal_double(obj1, &val2);
24322 if (!SWIG_IsOK(ecode2)) {
24323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24324 }
24325 arg2 = static_cast< wxDouble >(val2);
24326 ecode3 = SWIG_AsVal_double(obj2, &val3);
24327 if (!SWIG_IsOK(ecode3)) {
24328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24329 }
24330 arg3 = static_cast< wxDouble >(val3);
24331 {
24332 PyThreadState* __tstate = wxPyBeginAllowThreads();
24333 (arg1)->MoveToPoint(arg2,arg3);
24334 wxPyEndAllowThreads(__tstate);
24335 if (PyErr_Occurred()) SWIG_fail;
24336 }
24337 resultobj = SWIG_Py_Void();
24338 return resultobj;
24339 fail:
24340 return NULL;
24341 }
24342
24343
24344 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24345 PyObject *resultobj = 0;
24346 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24347 wxDouble arg2 ;
24348 wxDouble arg3 ;
24349 void *argp1 = 0 ;
24350 int res1 = 0 ;
24351 double val2 ;
24352 int ecode2 = 0 ;
24353 double val3 ;
24354 int ecode3 = 0 ;
24355 PyObject * obj0 = 0 ;
24356 PyObject * obj1 = 0 ;
24357 PyObject * obj2 = 0 ;
24358 char * kwnames[] = {
24359 (char *) "self",(char *) "x",(char *) "y", NULL
24360 };
24361
24362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24364 if (!SWIG_IsOK(res1)) {
24365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24366 }
24367 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24368 ecode2 = SWIG_AsVal_double(obj1, &val2);
24369 if (!SWIG_IsOK(ecode2)) {
24370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24371 }
24372 arg2 = static_cast< wxDouble >(val2);
24373 ecode3 = SWIG_AsVal_double(obj2, &val3);
24374 if (!SWIG_IsOK(ecode3)) {
24375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24376 }
24377 arg3 = static_cast< wxDouble >(val3);
24378 {
24379 PyThreadState* __tstate = wxPyBeginAllowThreads();
24380 (arg1)->AddLineToPoint(arg2,arg3);
24381 wxPyEndAllowThreads(__tstate);
24382 if (PyErr_Occurred()) SWIG_fail;
24383 }
24384 resultobj = SWIG_Py_Void();
24385 return resultobj;
24386 fail:
24387 return NULL;
24388 }
24389
24390
24391 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24392 PyObject *resultobj = 0;
24393 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24394 wxDouble arg2 ;
24395 wxDouble arg3 ;
24396 wxDouble arg4 ;
24397 wxDouble arg5 ;
24398 wxDouble arg6 ;
24399 wxDouble arg7 ;
24400 void *argp1 = 0 ;
24401 int res1 = 0 ;
24402 double val2 ;
24403 int ecode2 = 0 ;
24404 double val3 ;
24405 int ecode3 = 0 ;
24406 double val4 ;
24407 int ecode4 = 0 ;
24408 double val5 ;
24409 int ecode5 = 0 ;
24410 double val6 ;
24411 int ecode6 = 0 ;
24412 double val7 ;
24413 int ecode7 = 0 ;
24414 PyObject * obj0 = 0 ;
24415 PyObject * obj1 = 0 ;
24416 PyObject * obj2 = 0 ;
24417 PyObject * obj3 = 0 ;
24418 PyObject * obj4 = 0 ;
24419 PyObject * obj5 = 0 ;
24420 PyObject * obj6 = 0 ;
24421 char * kwnames[] = {
24422 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24423 };
24424
24425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24427 if (!SWIG_IsOK(res1)) {
24428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24429 }
24430 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24431 ecode2 = SWIG_AsVal_double(obj1, &val2);
24432 if (!SWIG_IsOK(ecode2)) {
24433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24434 }
24435 arg2 = static_cast< wxDouble >(val2);
24436 ecode3 = SWIG_AsVal_double(obj2, &val3);
24437 if (!SWIG_IsOK(ecode3)) {
24438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24439 }
24440 arg3 = static_cast< wxDouble >(val3);
24441 ecode4 = SWIG_AsVal_double(obj3, &val4);
24442 if (!SWIG_IsOK(ecode4)) {
24443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24444 }
24445 arg4 = static_cast< wxDouble >(val4);
24446 ecode5 = SWIG_AsVal_double(obj4, &val5);
24447 if (!SWIG_IsOK(ecode5)) {
24448 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24449 }
24450 arg5 = static_cast< wxDouble >(val5);
24451 ecode6 = SWIG_AsVal_double(obj5, &val6);
24452 if (!SWIG_IsOK(ecode6)) {
24453 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24454 }
24455 arg6 = static_cast< wxDouble >(val6);
24456 ecode7 = SWIG_AsVal_double(obj6, &val7);
24457 if (!SWIG_IsOK(ecode7)) {
24458 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24459 }
24460 arg7 = static_cast< wxDouble >(val7);
24461 {
24462 PyThreadState* __tstate = wxPyBeginAllowThreads();
24463 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24464 wxPyEndAllowThreads(__tstate);
24465 if (PyErr_Occurred()) SWIG_fail;
24466 }
24467 resultobj = SWIG_Py_Void();
24468 return resultobj;
24469 fail:
24470 return NULL;
24471 }
24472
24473
24474 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24475 PyObject *resultobj = 0;
24476 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24477 void *argp1 = 0 ;
24478 int res1 = 0 ;
24479 PyObject *swig_obj[1] ;
24480
24481 if (!args) SWIG_fail;
24482 swig_obj[0] = args;
24483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24484 if (!SWIG_IsOK(res1)) {
24485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24486 }
24487 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24488 {
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 (arg1)->CloseSubpath();
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 resultobj = SWIG_Py_Void();
24495 return resultobj;
24496 fail:
24497 return NULL;
24498 }
24499
24500
24501 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24502 PyObject *resultobj = 0;
24503 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24504 wxPoint2D result;
24505 void *argp1 = 0 ;
24506 int res1 = 0 ;
24507 PyObject *swig_obj[1] ;
24508
24509 if (!args) SWIG_fail;
24510 swig_obj[0] = args;
24511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24512 if (!SWIG_IsOK(res1)) {
24513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24514 }
24515 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24516 {
24517 PyThreadState* __tstate = wxPyBeginAllowThreads();
24518 result = (arg1)->GetCurrentPoint();
24519 wxPyEndAllowThreads(__tstate);
24520 if (PyErr_Occurred()) SWIG_fail;
24521 }
24522 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24523 return resultobj;
24524 fail:
24525 return NULL;
24526 }
24527
24528
24529 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24530 PyObject *resultobj = 0;
24531 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24532 wxDouble arg2 ;
24533 wxDouble arg3 ;
24534 wxDouble arg4 ;
24535 wxDouble arg5 ;
24536 wxDouble arg6 ;
24537 bool arg7 ;
24538 void *argp1 = 0 ;
24539 int res1 = 0 ;
24540 double val2 ;
24541 int ecode2 = 0 ;
24542 double val3 ;
24543 int ecode3 = 0 ;
24544 double val4 ;
24545 int ecode4 = 0 ;
24546 double val5 ;
24547 int ecode5 = 0 ;
24548 double val6 ;
24549 int ecode6 = 0 ;
24550 bool val7 ;
24551 int ecode7 = 0 ;
24552 PyObject * obj0 = 0 ;
24553 PyObject * obj1 = 0 ;
24554 PyObject * obj2 = 0 ;
24555 PyObject * obj3 = 0 ;
24556 PyObject * obj4 = 0 ;
24557 PyObject * obj5 = 0 ;
24558 PyObject * obj6 = 0 ;
24559 char * kwnames[] = {
24560 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24561 };
24562
24563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24565 if (!SWIG_IsOK(res1)) {
24566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24567 }
24568 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24569 ecode2 = SWIG_AsVal_double(obj1, &val2);
24570 if (!SWIG_IsOK(ecode2)) {
24571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24572 }
24573 arg2 = static_cast< wxDouble >(val2);
24574 ecode3 = SWIG_AsVal_double(obj2, &val3);
24575 if (!SWIG_IsOK(ecode3)) {
24576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24577 }
24578 arg3 = static_cast< wxDouble >(val3);
24579 ecode4 = SWIG_AsVal_double(obj3, &val4);
24580 if (!SWIG_IsOK(ecode4)) {
24581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24582 }
24583 arg4 = static_cast< wxDouble >(val4);
24584 ecode5 = SWIG_AsVal_double(obj4, &val5);
24585 if (!SWIG_IsOK(ecode5)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24587 }
24588 arg5 = static_cast< wxDouble >(val5);
24589 ecode6 = SWIG_AsVal_double(obj5, &val6);
24590 if (!SWIG_IsOK(ecode6)) {
24591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24592 }
24593 arg6 = static_cast< wxDouble >(val6);
24594 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24595 if (!SWIG_IsOK(ecode7)) {
24596 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24597 }
24598 arg7 = static_cast< bool >(val7);
24599 {
24600 PyThreadState* __tstate = wxPyBeginAllowThreads();
24601 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24602 wxPyEndAllowThreads(__tstate);
24603 if (PyErr_Occurred()) SWIG_fail;
24604 }
24605 resultobj = SWIG_Py_Void();
24606 return resultobj;
24607 fail:
24608 return NULL;
24609 }
24610
24611
24612 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24613 PyObject *resultobj = 0;
24614 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24615 wxDouble arg2 ;
24616 wxDouble arg3 ;
24617 wxDouble arg4 ;
24618 wxDouble arg5 ;
24619 void *argp1 = 0 ;
24620 int res1 = 0 ;
24621 double val2 ;
24622 int ecode2 = 0 ;
24623 double val3 ;
24624 int ecode3 = 0 ;
24625 double val4 ;
24626 int ecode4 = 0 ;
24627 double val5 ;
24628 int ecode5 = 0 ;
24629 PyObject * obj0 = 0 ;
24630 PyObject * obj1 = 0 ;
24631 PyObject * obj2 = 0 ;
24632 PyObject * obj3 = 0 ;
24633 PyObject * obj4 = 0 ;
24634 char * kwnames[] = {
24635 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24636 };
24637
24638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24640 if (!SWIG_IsOK(res1)) {
24641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24642 }
24643 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24644 ecode2 = SWIG_AsVal_double(obj1, &val2);
24645 if (!SWIG_IsOK(ecode2)) {
24646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24647 }
24648 arg2 = static_cast< wxDouble >(val2);
24649 ecode3 = SWIG_AsVal_double(obj2, &val3);
24650 if (!SWIG_IsOK(ecode3)) {
24651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24652 }
24653 arg3 = static_cast< wxDouble >(val3);
24654 ecode4 = SWIG_AsVal_double(obj3, &val4);
24655 if (!SWIG_IsOK(ecode4)) {
24656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24657 }
24658 arg4 = static_cast< wxDouble >(val4);
24659 ecode5 = SWIG_AsVal_double(obj4, &val5);
24660 if (!SWIG_IsOK(ecode5)) {
24661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24662 }
24663 arg5 = static_cast< wxDouble >(val5);
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
24666 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24667 wxPyEndAllowThreads(__tstate);
24668 if (PyErr_Occurred()) SWIG_fail;
24669 }
24670 resultobj = SWIG_Py_Void();
24671 return resultobj;
24672 fail:
24673 return NULL;
24674 }
24675
24676
24677 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24678 PyObject *resultobj = 0;
24679 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24680 wxDouble arg2 ;
24681 wxDouble arg3 ;
24682 wxDouble arg4 ;
24683 wxDouble arg5 ;
24684 void *argp1 = 0 ;
24685 int res1 = 0 ;
24686 double val2 ;
24687 int ecode2 = 0 ;
24688 double val3 ;
24689 int ecode3 = 0 ;
24690 double val4 ;
24691 int ecode4 = 0 ;
24692 double val5 ;
24693 int ecode5 = 0 ;
24694 PyObject * obj0 = 0 ;
24695 PyObject * obj1 = 0 ;
24696 PyObject * obj2 = 0 ;
24697 PyObject * obj3 = 0 ;
24698 PyObject * obj4 = 0 ;
24699 char * kwnames[] = {
24700 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24701 };
24702
24703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24705 if (!SWIG_IsOK(res1)) {
24706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24707 }
24708 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24709 ecode2 = SWIG_AsVal_double(obj1, &val2);
24710 if (!SWIG_IsOK(ecode2)) {
24711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24712 }
24713 arg2 = static_cast< wxDouble >(val2);
24714 ecode3 = SWIG_AsVal_double(obj2, &val3);
24715 if (!SWIG_IsOK(ecode3)) {
24716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24717 }
24718 arg3 = static_cast< wxDouble >(val3);
24719 ecode4 = SWIG_AsVal_double(obj3, &val4);
24720 if (!SWIG_IsOK(ecode4)) {
24721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24722 }
24723 arg4 = static_cast< wxDouble >(val4);
24724 ecode5 = SWIG_AsVal_double(obj4, &val5);
24725 if (!SWIG_IsOK(ecode5)) {
24726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24727 }
24728 arg5 = static_cast< wxDouble >(val5);
24729 {
24730 PyThreadState* __tstate = wxPyBeginAllowThreads();
24731 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24732 wxPyEndAllowThreads(__tstate);
24733 if (PyErr_Occurred()) SWIG_fail;
24734 }
24735 resultobj = SWIG_Py_Void();
24736 return resultobj;
24737 fail:
24738 return NULL;
24739 }
24740
24741
24742 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24743 PyObject *resultobj = 0;
24744 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24745 wxDouble arg2 ;
24746 wxDouble arg3 ;
24747 wxDouble arg4 ;
24748 void *argp1 = 0 ;
24749 int res1 = 0 ;
24750 double val2 ;
24751 int ecode2 = 0 ;
24752 double val3 ;
24753 int ecode3 = 0 ;
24754 double val4 ;
24755 int ecode4 = 0 ;
24756 PyObject * obj0 = 0 ;
24757 PyObject * obj1 = 0 ;
24758 PyObject * obj2 = 0 ;
24759 PyObject * obj3 = 0 ;
24760 char * kwnames[] = {
24761 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24762 };
24763
24764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24766 if (!SWIG_IsOK(res1)) {
24767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24768 }
24769 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24770 ecode2 = SWIG_AsVal_double(obj1, &val2);
24771 if (!SWIG_IsOK(ecode2)) {
24772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24773 }
24774 arg2 = static_cast< wxDouble >(val2);
24775 ecode3 = SWIG_AsVal_double(obj2, &val3);
24776 if (!SWIG_IsOK(ecode3)) {
24777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24778 }
24779 arg3 = static_cast< wxDouble >(val3);
24780 ecode4 = SWIG_AsVal_double(obj3, &val4);
24781 if (!SWIG_IsOK(ecode4)) {
24782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24783 }
24784 arg4 = static_cast< wxDouble >(val4);
24785 {
24786 PyThreadState* __tstate = wxPyBeginAllowThreads();
24787 (arg1)->AddCircle(arg2,arg3,arg4);
24788 wxPyEndAllowThreads(__tstate);
24789 if (PyErr_Occurred()) SWIG_fail;
24790 }
24791 resultobj = SWIG_Py_Void();
24792 return resultobj;
24793 fail:
24794 return NULL;
24795 }
24796
24797
24798 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24799 PyObject *resultobj = 0;
24800 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24801 wxDouble arg2 ;
24802 wxDouble arg3 ;
24803 wxDouble arg4 ;
24804 wxDouble arg5 ;
24805 wxDouble arg6 ;
24806 void *argp1 = 0 ;
24807 int res1 = 0 ;
24808 double val2 ;
24809 int ecode2 = 0 ;
24810 double val3 ;
24811 int ecode3 = 0 ;
24812 double val4 ;
24813 int ecode4 = 0 ;
24814 double val5 ;
24815 int ecode5 = 0 ;
24816 double val6 ;
24817 int ecode6 = 0 ;
24818 PyObject * obj0 = 0 ;
24819 PyObject * obj1 = 0 ;
24820 PyObject * obj2 = 0 ;
24821 PyObject * obj3 = 0 ;
24822 PyObject * obj4 = 0 ;
24823 PyObject * obj5 = 0 ;
24824 char * kwnames[] = {
24825 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24826 };
24827
24828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24830 if (!SWIG_IsOK(res1)) {
24831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24832 }
24833 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24834 ecode2 = SWIG_AsVal_double(obj1, &val2);
24835 if (!SWIG_IsOK(ecode2)) {
24836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24837 }
24838 arg2 = static_cast< wxDouble >(val2);
24839 ecode3 = SWIG_AsVal_double(obj2, &val3);
24840 if (!SWIG_IsOK(ecode3)) {
24841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24842 }
24843 arg3 = static_cast< wxDouble >(val3);
24844 ecode4 = SWIG_AsVal_double(obj3, &val4);
24845 if (!SWIG_IsOK(ecode4)) {
24846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24847 }
24848 arg4 = static_cast< wxDouble >(val4);
24849 ecode5 = SWIG_AsVal_double(obj4, &val5);
24850 if (!SWIG_IsOK(ecode5)) {
24851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24852 }
24853 arg5 = static_cast< wxDouble >(val5);
24854 ecode6 = SWIG_AsVal_double(obj5, &val6);
24855 if (!SWIG_IsOK(ecode6)) {
24856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24857 }
24858 arg6 = static_cast< wxDouble >(val6);
24859 {
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
24861 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
24862 wxPyEndAllowThreads(__tstate);
24863 if (PyErr_Occurred()) SWIG_fail;
24864 }
24865 resultobj = SWIG_Py_Void();
24866 return resultobj;
24867 fail:
24868 return NULL;
24869 }
24870
24871
24872 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24873 PyObject *obj;
24874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24875 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24876 return SWIG_Py_Void();
24877 }
24878
24879 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24880 PyObject *resultobj = 0;
24881 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24882 void *argp1 = 0 ;
24883 int res1 = 0 ;
24884 PyObject *swig_obj[1] ;
24885
24886 if (!args) SWIG_fail;
24887 swig_obj[0] = args;
24888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24891 }
24892 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 delete arg1;
24896
24897 wxPyEndAllowThreads(__tstate);
24898 if (PyErr_Occurred()) SWIG_fail;
24899 }
24900 resultobj = SWIG_Py_Void();
24901 return resultobj;
24902 fail:
24903 return NULL;
24904 }
24905
24906
24907 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24908 PyObject *resultobj = 0;
24909 wxWindowDC *arg1 = 0 ;
24910 wxGraphicsContext *result = 0 ;
24911 void *argp1 = 0 ;
24912 int res1 = 0 ;
24913 PyObject * obj0 = 0 ;
24914 char * kwnames[] = {
24915 (char *) "dc", NULL
24916 };
24917
24918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
24919 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24920 if (!SWIG_IsOK(res1)) {
24921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24922 }
24923 if (!argp1) {
24924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24925 }
24926 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24927 {
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24934 return resultobj;
24935 fail:
24936 return NULL;
24937 }
24938
24939
24940 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24941 PyObject *resultobj = 0;
24942 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24943 wxGraphicsPath *result = 0 ;
24944 void *argp1 = 0 ;
24945 int res1 = 0 ;
24946 PyObject *swig_obj[1] ;
24947
24948 if (!args) SWIG_fail;
24949 swig_obj[0] = args;
24950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24951 if (!SWIG_IsOK(res1)) {
24952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24953 }
24954 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 result = (wxGraphicsPath *)(arg1)->CreatePath();
24958 wxPyEndAllowThreads(__tstate);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24962 return resultobj;
24963 fail:
24964 return NULL;
24965 }
24966
24967
24968 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24969 PyObject *resultobj = 0;
24970 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24971 void *argp1 = 0 ;
24972 int res1 = 0 ;
24973 PyObject *swig_obj[1] ;
24974
24975 if (!args) SWIG_fail;
24976 swig_obj[0] = args;
24977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24978 if (!SWIG_IsOK(res1)) {
24979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24980 }
24981 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 (arg1)->PushState();
24985 wxPyEndAllowThreads(__tstate);
24986 if (PyErr_Occurred()) SWIG_fail;
24987 }
24988 resultobj = SWIG_Py_Void();
24989 return resultobj;
24990 fail:
24991 return NULL;
24992 }
24993
24994
24995 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24996 PyObject *resultobj = 0;
24997 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24998 void *argp1 = 0 ;
24999 int res1 = 0 ;
25000 PyObject *swig_obj[1] ;
25001
25002 if (!args) SWIG_fail;
25003 swig_obj[0] = args;
25004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25005 if (!SWIG_IsOK(res1)) {
25006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25007 }
25008 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25009 {
25010 PyThreadState* __tstate = wxPyBeginAllowThreads();
25011 (arg1)->PopState();
25012 wxPyEndAllowThreads(__tstate);
25013 if (PyErr_Occurred()) SWIG_fail;
25014 }
25015 resultobj = SWIG_Py_Void();
25016 return resultobj;
25017 fail:
25018 return NULL;
25019 }
25020
25021
25022 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25023 PyObject *resultobj = 0;
25024 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25025 wxRegion *arg2 = 0 ;
25026 void *argp1 = 0 ;
25027 int res1 = 0 ;
25028 void *argp2 = 0 ;
25029 int res2 = 0 ;
25030 PyObject * obj0 = 0 ;
25031 PyObject * obj1 = 0 ;
25032 char * kwnames[] = {
25033 (char *) "self",(char *) "region", NULL
25034 };
25035
25036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25038 if (!SWIG_IsOK(res1)) {
25039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25040 }
25041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25043 if (!SWIG_IsOK(res2)) {
25044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25045 }
25046 if (!argp2) {
25047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25048 }
25049 arg2 = reinterpret_cast< wxRegion * >(argp2);
25050 {
25051 PyThreadState* __tstate = wxPyBeginAllowThreads();
25052 (arg1)->Clip((wxRegion const &)*arg2);
25053 wxPyEndAllowThreads(__tstate);
25054 if (PyErr_Occurred()) SWIG_fail;
25055 }
25056 resultobj = SWIG_Py_Void();
25057 return resultobj;
25058 fail:
25059 return NULL;
25060 }
25061
25062
25063 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25064 PyObject *resultobj = 0;
25065 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25066 wxDouble arg2 ;
25067 wxDouble arg3 ;
25068 void *argp1 = 0 ;
25069 int res1 = 0 ;
25070 double val2 ;
25071 int ecode2 = 0 ;
25072 double val3 ;
25073 int ecode3 = 0 ;
25074 PyObject * obj0 = 0 ;
25075 PyObject * obj1 = 0 ;
25076 PyObject * obj2 = 0 ;
25077 char * kwnames[] = {
25078 (char *) "self",(char *) "dx",(char *) "dy", NULL
25079 };
25080
25081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25083 if (!SWIG_IsOK(res1)) {
25084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25085 }
25086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25087 ecode2 = SWIG_AsVal_double(obj1, &val2);
25088 if (!SWIG_IsOK(ecode2)) {
25089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25090 }
25091 arg2 = static_cast< wxDouble >(val2);
25092 ecode3 = SWIG_AsVal_double(obj2, &val3);
25093 if (!SWIG_IsOK(ecode3)) {
25094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25095 }
25096 arg3 = static_cast< wxDouble >(val3);
25097 {
25098 PyThreadState* __tstate = wxPyBeginAllowThreads();
25099 (arg1)->Translate(arg2,arg3);
25100 wxPyEndAllowThreads(__tstate);
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
25103 resultobj = SWIG_Py_Void();
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj = 0;
25112 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25113 wxDouble arg2 ;
25114 wxDouble arg3 ;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 double val2 ;
25118 int ecode2 = 0 ;
25119 double val3 ;
25120 int ecode3 = 0 ;
25121 PyObject * obj0 = 0 ;
25122 PyObject * obj1 = 0 ;
25123 PyObject * obj2 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25132 }
25133 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25134 ecode2 = SWIG_AsVal_double(obj1, &val2);
25135 if (!SWIG_IsOK(ecode2)) {
25136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25137 }
25138 arg2 = static_cast< wxDouble >(val2);
25139 ecode3 = SWIG_AsVal_double(obj2, &val3);
25140 if (!SWIG_IsOK(ecode3)) {
25141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25142 }
25143 arg3 = static_cast< wxDouble >(val3);
25144 {
25145 PyThreadState* __tstate = wxPyBeginAllowThreads();
25146 (arg1)->Scale(arg2,arg3);
25147 wxPyEndAllowThreads(__tstate);
25148 if (PyErr_Occurred()) SWIG_fail;
25149 }
25150 resultobj = SWIG_Py_Void();
25151 return resultobj;
25152 fail:
25153 return NULL;
25154 }
25155
25156
25157 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25158 PyObject *resultobj = 0;
25159 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25160 wxDouble arg2 ;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 double val2 ;
25164 int ecode2 = 0 ;
25165 PyObject * obj0 = 0 ;
25166 PyObject * obj1 = 0 ;
25167 char * kwnames[] = {
25168 (char *) "self",(char *) "angle", NULL
25169 };
25170
25171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25173 if (!SWIG_IsOK(res1)) {
25174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25175 }
25176 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25177 ecode2 = SWIG_AsVal_double(obj1, &val2);
25178 if (!SWIG_IsOK(ecode2)) {
25179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25180 }
25181 arg2 = static_cast< wxDouble >(val2);
25182 {
25183 PyThreadState* __tstate = wxPyBeginAllowThreads();
25184 (arg1)->Rotate(arg2);
25185 wxPyEndAllowThreads(__tstate);
25186 if (PyErr_Occurred()) SWIG_fail;
25187 }
25188 resultobj = SWIG_Py_Void();
25189 return resultobj;
25190 fail:
25191 return NULL;
25192 }
25193
25194
25195 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25196 PyObject *resultobj = 0;
25197 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25198 wxPen *arg2 = 0 ;
25199 void *argp1 = 0 ;
25200 int res1 = 0 ;
25201 void *argp2 = 0 ;
25202 int res2 = 0 ;
25203 PyObject * obj0 = 0 ;
25204 PyObject * obj1 = 0 ;
25205 char * kwnames[] = {
25206 (char *) "self",(char *) "pen", NULL
25207 };
25208
25209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25211 if (!SWIG_IsOK(res1)) {
25212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25213 }
25214 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25216 if (!SWIG_IsOK(res2)) {
25217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25218 }
25219 if (!argp2) {
25220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25221 }
25222 arg2 = reinterpret_cast< wxPen * >(argp2);
25223 {
25224 PyThreadState* __tstate = wxPyBeginAllowThreads();
25225 (arg1)->SetPen((wxPen const &)*arg2);
25226 wxPyEndAllowThreads(__tstate);
25227 if (PyErr_Occurred()) SWIG_fail;
25228 }
25229 resultobj = SWIG_Py_Void();
25230 return resultobj;
25231 fail:
25232 return NULL;
25233 }
25234
25235
25236 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25237 PyObject *resultobj = 0;
25238 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25239 wxBrush *arg2 = 0 ;
25240 void *argp1 = 0 ;
25241 int res1 = 0 ;
25242 void *argp2 = 0 ;
25243 int res2 = 0 ;
25244 PyObject * obj0 = 0 ;
25245 PyObject * obj1 = 0 ;
25246 char * kwnames[] = {
25247 (char *) "self",(char *) "brush", NULL
25248 };
25249
25250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25252 if (!SWIG_IsOK(res1)) {
25253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25254 }
25255 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25257 if (!SWIG_IsOK(res2)) {
25258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25259 }
25260 if (!argp2) {
25261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25262 }
25263 arg2 = reinterpret_cast< wxBrush * >(argp2);
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 (arg1)->SetBrush((wxBrush const &)*arg2);
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 resultobj = SWIG_Py_Void();
25271 return resultobj;
25272 fail:
25273 return NULL;
25274 }
25275
25276
25277 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25278 PyObject *resultobj = 0;
25279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25280 wxDouble arg2 ;
25281 wxDouble arg3 ;
25282 wxDouble arg4 ;
25283 wxDouble arg5 ;
25284 wxColour *arg6 = 0 ;
25285 wxColour *arg7 = 0 ;
25286 void *argp1 = 0 ;
25287 int res1 = 0 ;
25288 double val2 ;
25289 int ecode2 = 0 ;
25290 double val3 ;
25291 int ecode3 = 0 ;
25292 double val4 ;
25293 int ecode4 = 0 ;
25294 double val5 ;
25295 int ecode5 = 0 ;
25296 wxColour temp6 ;
25297 wxColour temp7 ;
25298 PyObject * obj0 = 0 ;
25299 PyObject * obj1 = 0 ;
25300 PyObject * obj2 = 0 ;
25301 PyObject * obj3 = 0 ;
25302 PyObject * obj4 = 0 ;
25303 PyObject * obj5 = 0 ;
25304 PyObject * obj6 = 0 ;
25305 char * kwnames[] = {
25306 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25307 };
25308
25309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25313 }
25314 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25315 ecode2 = SWIG_AsVal_double(obj1, &val2);
25316 if (!SWIG_IsOK(ecode2)) {
25317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25318 }
25319 arg2 = static_cast< wxDouble >(val2);
25320 ecode3 = SWIG_AsVal_double(obj2, &val3);
25321 if (!SWIG_IsOK(ecode3)) {
25322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25323 }
25324 arg3 = static_cast< wxDouble >(val3);
25325 ecode4 = SWIG_AsVal_double(obj3, &val4);
25326 if (!SWIG_IsOK(ecode4)) {
25327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25328 }
25329 arg4 = static_cast< wxDouble >(val4);
25330 ecode5 = SWIG_AsVal_double(obj4, &val5);
25331 if (!SWIG_IsOK(ecode5)) {
25332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25333 }
25334 arg5 = static_cast< wxDouble >(val5);
25335 {
25336 arg6 = &temp6;
25337 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25338 }
25339 {
25340 arg7 = &temp7;
25341 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25342 }
25343 {
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 resultobj = SWIG_Py_Void();
25350 return resultobj;
25351 fail:
25352 return NULL;
25353 }
25354
25355
25356 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25357 PyObject *resultobj = 0;
25358 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25359 wxDouble arg2 ;
25360 wxDouble arg3 ;
25361 wxDouble arg4 ;
25362 wxDouble arg5 ;
25363 wxDouble arg6 ;
25364 wxColour *arg7 = 0 ;
25365 wxColour *arg8 = 0 ;
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 double val2 ;
25369 int ecode2 = 0 ;
25370 double val3 ;
25371 int ecode3 = 0 ;
25372 double val4 ;
25373 int ecode4 = 0 ;
25374 double val5 ;
25375 int ecode5 = 0 ;
25376 double val6 ;
25377 int ecode6 = 0 ;
25378 wxColour temp7 ;
25379 wxColour temp8 ;
25380 PyObject * obj0 = 0 ;
25381 PyObject * obj1 = 0 ;
25382 PyObject * obj2 = 0 ;
25383 PyObject * obj3 = 0 ;
25384 PyObject * obj4 = 0 ;
25385 PyObject * obj5 = 0 ;
25386 PyObject * obj6 = 0 ;
25387 PyObject * obj7 = 0 ;
25388 char * kwnames[] = {
25389 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25390 };
25391
25392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25394 if (!SWIG_IsOK(res1)) {
25395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25396 }
25397 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25398 ecode2 = SWIG_AsVal_double(obj1, &val2);
25399 if (!SWIG_IsOK(ecode2)) {
25400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25401 }
25402 arg2 = static_cast< wxDouble >(val2);
25403 ecode3 = SWIG_AsVal_double(obj2, &val3);
25404 if (!SWIG_IsOK(ecode3)) {
25405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25406 }
25407 arg3 = static_cast< wxDouble >(val3);
25408 ecode4 = SWIG_AsVal_double(obj3, &val4);
25409 if (!SWIG_IsOK(ecode4)) {
25410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25411 }
25412 arg4 = static_cast< wxDouble >(val4);
25413 ecode5 = SWIG_AsVal_double(obj4, &val5);
25414 if (!SWIG_IsOK(ecode5)) {
25415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25416 }
25417 arg5 = static_cast< wxDouble >(val5);
25418 ecode6 = SWIG_AsVal_double(obj5, &val6);
25419 if (!SWIG_IsOK(ecode6)) {
25420 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25421 }
25422 arg6 = static_cast< wxDouble >(val6);
25423 {
25424 arg7 = &temp7;
25425 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25426 }
25427 {
25428 arg8 = &temp8;
25429 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25430 }
25431 {
25432 PyThreadState* __tstate = wxPyBeginAllowThreads();
25433 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25434 wxPyEndAllowThreads(__tstate);
25435 if (PyErr_Occurred()) SWIG_fail;
25436 }
25437 resultobj = SWIG_Py_Void();
25438 return resultobj;
25439 fail:
25440 return NULL;
25441 }
25442
25443
25444 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25445 PyObject *resultobj = 0;
25446 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25447 wxFont *arg2 = 0 ;
25448 void *argp1 = 0 ;
25449 int res1 = 0 ;
25450 void *argp2 = 0 ;
25451 int res2 = 0 ;
25452 PyObject * obj0 = 0 ;
25453 PyObject * obj1 = 0 ;
25454 char * kwnames[] = {
25455 (char *) "self",(char *) "font", NULL
25456 };
25457
25458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25460 if (!SWIG_IsOK(res1)) {
25461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25462 }
25463 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25465 if (!SWIG_IsOK(res2)) {
25466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25467 }
25468 if (!argp2) {
25469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25470 }
25471 arg2 = reinterpret_cast< wxFont * >(argp2);
25472 {
25473 PyThreadState* __tstate = wxPyBeginAllowThreads();
25474 (arg1)->SetFont((wxFont const &)*arg2);
25475 wxPyEndAllowThreads(__tstate);
25476 if (PyErr_Occurred()) SWIG_fail;
25477 }
25478 resultobj = SWIG_Py_Void();
25479 return resultobj;
25480 fail:
25481 return NULL;
25482 }
25483
25484
25485 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25486 PyObject *resultobj = 0;
25487 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25488 wxColour *arg2 = 0 ;
25489 void *argp1 = 0 ;
25490 int res1 = 0 ;
25491 wxColour temp2 ;
25492 PyObject * obj0 = 0 ;
25493 PyObject * obj1 = 0 ;
25494 char * kwnames[] = {
25495 (char *) "self",(char *) "col", NULL
25496 };
25497
25498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25500 if (!SWIG_IsOK(res1)) {
25501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25502 }
25503 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25504 {
25505 arg2 = &temp2;
25506 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25507 }
25508 {
25509 PyThreadState* __tstate = wxPyBeginAllowThreads();
25510 (arg1)->SetTextColor((wxColour const &)*arg2);
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 resultobj = SWIG_Py_Void();
25515 return resultobj;
25516 fail:
25517 return NULL;
25518 }
25519
25520
25521 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25522 PyObject *resultobj = 0;
25523 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25524 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25525 void *argp1 = 0 ;
25526 int res1 = 0 ;
25527 void *argp2 = 0 ;
25528 int res2 = 0 ;
25529 PyObject * obj0 = 0 ;
25530 PyObject * obj1 = 0 ;
25531 char * kwnames[] = {
25532 (char *) "self",(char *) "path", NULL
25533 };
25534
25535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25537 if (!SWIG_IsOK(res1)) {
25538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25539 }
25540 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25542 if (!SWIG_IsOK(res2)) {
25543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25544 }
25545 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25546 {
25547 PyThreadState* __tstate = wxPyBeginAllowThreads();
25548 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25549 wxPyEndAllowThreads(__tstate);
25550 if (PyErr_Occurred()) SWIG_fail;
25551 }
25552 resultobj = SWIG_Py_Void();
25553 return resultobj;
25554 fail:
25555 return NULL;
25556 }
25557
25558
25559 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25560 PyObject *resultobj = 0;
25561 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25562 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25563 int arg3 = (int) wxWINDING_RULE ;
25564 void *argp1 = 0 ;
25565 int res1 = 0 ;
25566 void *argp2 = 0 ;
25567 int res2 = 0 ;
25568 int val3 ;
25569 int ecode3 = 0 ;
25570 PyObject * obj0 = 0 ;
25571 PyObject * obj1 = 0 ;
25572 PyObject * obj2 = 0 ;
25573 char * kwnames[] = {
25574 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25575 };
25576
25577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25579 if (!SWIG_IsOK(res1)) {
25580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25581 }
25582 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25584 if (!SWIG_IsOK(res2)) {
25585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25586 }
25587 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25588 if (obj2) {
25589 ecode3 = SWIG_AsVal_int(obj2, &val3);
25590 if (!SWIG_IsOK(ecode3)) {
25591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25592 }
25593 arg3 = static_cast< int >(val3);
25594 }
25595 {
25596 PyThreadState* __tstate = wxPyBeginAllowThreads();
25597 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25598 wxPyEndAllowThreads(__tstate);
25599 if (PyErr_Occurred()) SWIG_fail;
25600 }
25601 resultobj = SWIG_Py_Void();
25602 return resultobj;
25603 fail:
25604 return NULL;
25605 }
25606
25607
25608 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25609 PyObject *resultobj = 0;
25610 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25611 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25612 int arg3 = (int) wxWINDING_RULE ;
25613 void *argp1 = 0 ;
25614 int res1 = 0 ;
25615 void *argp2 = 0 ;
25616 int res2 = 0 ;
25617 int val3 ;
25618 int ecode3 = 0 ;
25619 PyObject * obj0 = 0 ;
25620 PyObject * obj1 = 0 ;
25621 PyObject * obj2 = 0 ;
25622 char * kwnames[] = {
25623 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25624 };
25625
25626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25628 if (!SWIG_IsOK(res1)) {
25629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25630 }
25631 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25632 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25633 if (!SWIG_IsOK(res2)) {
25634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25635 }
25636 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25637 if (obj2) {
25638 ecode3 = SWIG_AsVal_int(obj2, &val3);
25639 if (!SWIG_IsOK(ecode3)) {
25640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25641 }
25642 arg3 = static_cast< int >(val3);
25643 }
25644 {
25645 PyThreadState* __tstate = wxPyBeginAllowThreads();
25646 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25647 wxPyEndAllowThreads(__tstate);
25648 if (PyErr_Occurred()) SWIG_fail;
25649 }
25650 resultobj = SWIG_Py_Void();
25651 return resultobj;
25652 fail:
25653 return NULL;
25654 }
25655
25656
25657 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25658 PyObject *resultobj = 0;
25659 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25660 wxString *arg2 = 0 ;
25661 wxDouble arg3 ;
25662 wxDouble arg4 ;
25663 void *argp1 = 0 ;
25664 int res1 = 0 ;
25665 bool temp2 = false ;
25666 double val3 ;
25667 int ecode3 = 0 ;
25668 double val4 ;
25669 int ecode4 = 0 ;
25670
25671 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
25672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25673 if (!SWIG_IsOK(res1)) {
25674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25675 }
25676 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25677 {
25678 arg2 = wxString_in_helper(swig_obj[1]);
25679 if (arg2 == NULL) SWIG_fail;
25680 temp2 = true;
25681 }
25682 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25683 if (!SWIG_IsOK(ecode3)) {
25684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25685 }
25686 arg3 = static_cast< wxDouble >(val3);
25687 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25688 if (!SWIG_IsOK(ecode4)) {
25689 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25690 }
25691 arg4 = static_cast< wxDouble >(val4);
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_Py_Void();
25699 {
25700 if (temp2)
25701 delete arg2;
25702 }
25703 return resultobj;
25704 fail:
25705 {
25706 if (temp2)
25707 delete arg2;
25708 }
25709 return NULL;
25710 }
25711
25712
25713 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25714 PyObject *resultobj = 0;
25715 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25716 wxString *arg2 = 0 ;
25717 wxDouble arg3 ;
25718 wxDouble arg4 ;
25719 wxDouble arg5 ;
25720 void *argp1 = 0 ;
25721 int res1 = 0 ;
25722 bool temp2 = false ;
25723 double val3 ;
25724 int ecode3 = 0 ;
25725 double val4 ;
25726 int ecode4 = 0 ;
25727 double val5 ;
25728 int ecode5 = 0 ;
25729
25730 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
25731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25732 if (!SWIG_IsOK(res1)) {
25733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25734 }
25735 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25736 {
25737 arg2 = wxString_in_helper(swig_obj[1]);
25738 if (arg2 == NULL) SWIG_fail;
25739 temp2 = true;
25740 }
25741 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25742 if (!SWIG_IsOK(ecode3)) {
25743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25744 }
25745 arg3 = static_cast< wxDouble >(val3);
25746 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25747 if (!SWIG_IsOK(ecode4)) {
25748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25749 }
25750 arg4 = static_cast< wxDouble >(val4);
25751 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25752 if (!SWIG_IsOK(ecode5)) {
25753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxDouble""'");
25754 }
25755 arg5 = static_cast< wxDouble >(val5);
25756 {
25757 PyThreadState* __tstate = wxPyBeginAllowThreads();
25758 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25759 wxPyEndAllowThreads(__tstate);
25760 if (PyErr_Occurred()) SWIG_fail;
25761 }
25762 resultobj = SWIG_Py_Void();
25763 {
25764 if (temp2)
25765 delete arg2;
25766 }
25767 return resultobj;
25768 fail:
25769 {
25770 if (temp2)
25771 delete arg2;
25772 }
25773 return NULL;
25774 }
25775
25776
25777 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *self, PyObject *args) {
25778 int argc;
25779 PyObject *argv[6];
25780
25781 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_DrawText",0,5,argv))) SWIG_fail;
25782 --argc;
25783 if (argc == 4) {
25784 return _wrap_GraphicsContext_DrawText__SWIG_0(self, argc, argv);
25785 }
25786 if (argc == 5) {
25787 return _wrap_GraphicsContext_DrawText__SWIG_1(self, argc, argv);
25788 }
25789
25790 fail:
25791 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_DrawText'");
25792 return NULL;
25793 }
25794
25795
25796 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25797 PyObject *resultobj = 0;
25798 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25799 wxString *arg2 = 0 ;
25800 wxDouble *arg3 = (wxDouble *) 0 ;
25801 wxDouble *arg4 = (wxDouble *) 0 ;
25802 wxDouble *arg5 = (wxDouble *) 0 ;
25803 wxDouble *arg6 = (wxDouble *) 0 ;
25804 void *argp1 = 0 ;
25805 int res1 = 0 ;
25806 bool temp2 = false ;
25807 wxDouble temp3 ;
25808 int res3 = SWIG_TMPOBJ ;
25809 wxDouble temp4 ;
25810 int res4 = SWIG_TMPOBJ ;
25811 wxDouble temp5 ;
25812 int res5 = SWIG_TMPOBJ ;
25813 wxDouble temp6 ;
25814 int res6 = SWIG_TMPOBJ ;
25815 PyObject * obj0 = 0 ;
25816 PyObject * obj1 = 0 ;
25817 char * kwnames[] = {
25818 (char *) "self",(char *) "text", NULL
25819 };
25820
25821 arg3 = &temp3;
25822 arg4 = &temp4;
25823 arg5 = &temp5;
25824 arg6 = &temp6;
25825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25827 if (!SWIG_IsOK(res1)) {
25828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25829 }
25830 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25831 {
25832 arg2 = wxString_in_helper(obj1);
25833 if (arg2 == NULL) SWIG_fail;
25834 temp2 = true;
25835 }
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25839 wxPyEndAllowThreads(__tstate);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 resultobj = SWIG_Py_Void();
25843 if (SWIG_IsTmpObj(res3)) {
25844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25845 } else {
25846 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25848 }
25849 if (SWIG_IsTmpObj(res4)) {
25850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25851 } else {
25852 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25854 }
25855 if (SWIG_IsTmpObj(res5)) {
25856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25857 } else {
25858 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25860 }
25861 if (SWIG_IsTmpObj(res6)) {
25862 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25863 } else {
25864 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25865 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25866 }
25867 {
25868 if (temp2)
25869 delete arg2;
25870 }
25871 return resultobj;
25872 fail:
25873 {
25874 if (temp2)
25875 delete arg2;
25876 }
25877 return NULL;
25878 }
25879
25880
25881 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25882 PyObject *resultobj = 0;
25883 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25884 wxString *arg2 = 0 ;
25885 wxArrayDouble *arg3 = 0 ;
25886 void *argp1 = 0 ;
25887 int res1 = 0 ;
25888 bool temp2 = false ;
25889 void *argp3 = 0 ;
25890 int res3 = 0 ;
25891 PyObject * obj0 = 0 ;
25892 PyObject * obj1 = 0 ;
25893 PyObject * obj2 = 0 ;
25894 char * kwnames[] = {
25895 (char *) "self",(char *) "text",(char *) "widths", NULL
25896 };
25897
25898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25900 if (!SWIG_IsOK(res1)) {
25901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25902 }
25903 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25904 {
25905 arg2 = wxString_in_helper(obj1);
25906 if (arg2 == NULL) SWIG_fail;
25907 temp2 = true;
25908 }
25909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArrayDouble, 0 );
25910 if (!SWIG_IsOK(res3)) {
25911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'");
25912 }
25913 if (!argp3) {
25914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'");
25915 }
25916 arg3 = reinterpret_cast< wxArrayDouble * >(argp3);
25917 {
25918 PyThreadState* __tstate = wxPyBeginAllowThreads();
25919 ((wxGraphicsContext const *)arg1)->GetPartialTextExtents((wxString const &)*arg2,*arg3);
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 resultobj = SWIG_Py_Void();
25924 {
25925 if (temp2)
25926 delete arg2;
25927 }
25928 return resultobj;
25929 fail:
25930 {
25931 if (temp2)
25932 delete arg2;
25933 }
25934 return NULL;
25935 }
25936
25937
25938 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25939 PyObject *resultobj = 0;
25940 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25941 wxBitmap *arg2 = 0 ;
25942 wxDouble arg3 ;
25943 wxDouble arg4 ;
25944 wxDouble arg5 ;
25945 wxDouble arg6 ;
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
25948 void *argp2 = 0 ;
25949 int res2 = 0 ;
25950 double val3 ;
25951 int ecode3 = 0 ;
25952 double val4 ;
25953 int ecode4 = 0 ;
25954 double val5 ;
25955 int ecode5 = 0 ;
25956 double val6 ;
25957 int ecode6 = 0 ;
25958 PyObject * obj0 = 0 ;
25959 PyObject * obj1 = 0 ;
25960 PyObject * obj2 = 0 ;
25961 PyObject * obj3 = 0 ;
25962 PyObject * obj4 = 0 ;
25963 PyObject * obj5 = 0 ;
25964 char * kwnames[] = {
25965 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25966 };
25967
25968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25972 }
25973 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25975 if (!SWIG_IsOK(res2)) {
25976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25977 }
25978 if (!argp2) {
25979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25980 }
25981 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25982 ecode3 = SWIG_AsVal_double(obj2, &val3);
25983 if (!SWIG_IsOK(ecode3)) {
25984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
25985 }
25986 arg3 = static_cast< wxDouble >(val3);
25987 ecode4 = SWIG_AsVal_double(obj3, &val4);
25988 if (!SWIG_IsOK(ecode4)) {
25989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
25990 }
25991 arg4 = static_cast< wxDouble >(val4);
25992 ecode5 = SWIG_AsVal_double(obj4, &val5);
25993 if (!SWIG_IsOK(ecode5)) {
25994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
25995 }
25996 arg5 = static_cast< wxDouble >(val5);
25997 ecode6 = SWIG_AsVal_double(obj5, &val6);
25998 if (!SWIG_IsOK(ecode6)) {
25999 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26000 }
26001 arg6 = static_cast< wxDouble >(val6);
26002 {
26003 PyThreadState* __tstate = wxPyBeginAllowThreads();
26004 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26005 wxPyEndAllowThreads(__tstate);
26006 if (PyErr_Occurred()) SWIG_fail;
26007 }
26008 resultobj = SWIG_Py_Void();
26009 return resultobj;
26010 fail:
26011 return NULL;
26012 }
26013
26014
26015 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26016 PyObject *resultobj = 0;
26017 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26018 wxIcon *arg2 = 0 ;
26019 wxDouble arg3 ;
26020 wxDouble arg4 ;
26021 wxDouble arg5 ;
26022 wxDouble arg6 ;
26023 void *argp1 = 0 ;
26024 int res1 = 0 ;
26025 void *argp2 = 0 ;
26026 int res2 = 0 ;
26027 double val3 ;
26028 int ecode3 = 0 ;
26029 double val4 ;
26030 int ecode4 = 0 ;
26031 double val5 ;
26032 int ecode5 = 0 ;
26033 double val6 ;
26034 int ecode6 = 0 ;
26035 PyObject * obj0 = 0 ;
26036 PyObject * obj1 = 0 ;
26037 PyObject * obj2 = 0 ;
26038 PyObject * obj3 = 0 ;
26039 PyObject * obj4 = 0 ;
26040 PyObject * obj5 = 0 ;
26041 char * kwnames[] = {
26042 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26043 };
26044
26045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26047 if (!SWIG_IsOK(res1)) {
26048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26049 }
26050 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26052 if (!SWIG_IsOK(res2)) {
26053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26054 }
26055 if (!argp2) {
26056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26057 }
26058 arg2 = reinterpret_cast< wxIcon * >(argp2);
26059 ecode3 = SWIG_AsVal_double(obj2, &val3);
26060 if (!SWIG_IsOK(ecode3)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26062 }
26063 arg3 = static_cast< wxDouble >(val3);
26064 ecode4 = SWIG_AsVal_double(obj3, &val4);
26065 if (!SWIG_IsOK(ecode4)) {
26066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26067 }
26068 arg4 = static_cast< wxDouble >(val4);
26069 ecode5 = SWIG_AsVal_double(obj4, &val5);
26070 if (!SWIG_IsOK(ecode5)) {
26071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26072 }
26073 arg5 = static_cast< wxDouble >(val5);
26074 ecode6 = SWIG_AsVal_double(obj5, &val6);
26075 if (!SWIG_IsOK(ecode6)) {
26076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26077 }
26078 arg6 = static_cast< wxDouble >(val6);
26079 {
26080 PyThreadState* __tstate = wxPyBeginAllowThreads();
26081 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26082 wxPyEndAllowThreads(__tstate);
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_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26093 PyObject *resultobj = 0;
26094 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26095 wxDouble arg2 ;
26096 wxDouble arg3 ;
26097 wxDouble arg4 ;
26098 wxDouble arg5 ;
26099 void *argp1 = 0 ;
26100 int res1 = 0 ;
26101 double val2 ;
26102 int ecode2 = 0 ;
26103 double val3 ;
26104 int ecode3 = 0 ;
26105 double val4 ;
26106 int ecode4 = 0 ;
26107 double val5 ;
26108 int ecode5 = 0 ;
26109 PyObject * obj0 = 0 ;
26110 PyObject * obj1 = 0 ;
26111 PyObject * obj2 = 0 ;
26112 PyObject * obj3 = 0 ;
26113 PyObject * obj4 = 0 ;
26114 char * kwnames[] = {
26115 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26116 };
26117
26118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26120 if (!SWIG_IsOK(res1)) {
26121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26122 }
26123 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26124 ecode2 = SWIG_AsVal_double(obj1, &val2);
26125 if (!SWIG_IsOK(ecode2)) {
26126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26127 }
26128 arg2 = static_cast< wxDouble >(val2);
26129 ecode3 = SWIG_AsVal_double(obj2, &val3);
26130 if (!SWIG_IsOK(ecode3)) {
26131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26132 }
26133 arg3 = static_cast< wxDouble >(val3);
26134 ecode4 = SWIG_AsVal_double(obj3, &val4);
26135 if (!SWIG_IsOK(ecode4)) {
26136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26137 }
26138 arg4 = static_cast< wxDouble >(val4);
26139 ecode5 = SWIG_AsVal_double(obj4, &val5);
26140 if (!SWIG_IsOK(ecode5)) {
26141 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26142 }
26143 arg5 = static_cast< wxDouble >(val5);
26144 {
26145 PyThreadState* __tstate = wxPyBeginAllowThreads();
26146 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26147 wxPyEndAllowThreads(__tstate);
26148 if (PyErr_Occurred()) SWIG_fail;
26149 }
26150 resultobj = SWIG_Py_Void();
26151 return resultobj;
26152 fail:
26153 return NULL;
26154 }
26155
26156
26157 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26158 PyObject *resultobj = 0;
26159 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26160 size_t arg2 ;
26161 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26162 void *argp1 = 0 ;
26163 int res1 = 0 ;
26164 size_t val2 ;
26165 int ecode2 = 0 ;
26166 void *argp3 = 0 ;
26167 int res3 = 0 ;
26168
26169 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26171 if (!SWIG_IsOK(res1)) {
26172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26173 }
26174 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26175 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
26176 if (!SWIG_IsOK(ecode2)) {
26177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'");
26178 }
26179 arg2 = static_cast< size_t >(val2);
26180 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26181 if (!SWIG_IsOK(res3)) {
26182 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26183 }
26184 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26185 {
26186 PyThreadState* __tstate = wxPyBeginAllowThreads();
26187 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26188 wxPyEndAllowThreads(__tstate);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 return resultobj;
26193 fail:
26194 return NULL;
26195 }
26196
26197
26198 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26199 PyObject *resultobj = 0;
26200 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26201 size_t arg2 ;
26202 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26203 wxPoint2D *arg4 = (wxPoint2D *) 0 ;
26204 void *argp1 = 0 ;
26205 int res1 = 0 ;
26206 size_t val2 ;
26207 int ecode2 = 0 ;
26208 void *argp3 = 0 ;
26209 int res3 = 0 ;
26210 void *argp4 = 0 ;
26211 int res4 = 0 ;
26212
26213 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26215 if (!SWIG_IsOK(res1)) {
26216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26217 }
26218 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26219 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
26220 if (!SWIG_IsOK(ecode2)) {
26221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'");
26222 }
26223 arg2 = static_cast< size_t >(val2);
26224 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26225 if (!SWIG_IsOK(res3)) {
26226 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26227 }
26228 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26229 res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26230 if (!SWIG_IsOK(res4)) {
26231 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "4"" of type '" "wxPoint2D const *""'");
26232 }
26233 arg4 = reinterpret_cast< wxPoint2D * >(argp4);
26234 {
26235 PyThreadState* __tstate = wxPyBeginAllowThreads();
26236 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3,(wxPoint2D const *)arg4);
26237 wxPyEndAllowThreads(__tstate);
26238 if (PyErr_Occurred()) SWIG_fail;
26239 }
26240 resultobj = SWIG_Py_Void();
26241 return resultobj;
26242 fail:
26243 return NULL;
26244 }
26245
26246
26247 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *self, PyObject *args) {
26248 int argc;
26249 PyObject *argv[5];
26250
26251 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_StrokeLines",0,4,argv))) SWIG_fail;
26252 --argc;
26253 if (argc == 3) {
26254 return _wrap_GraphicsContext_StrokeLines__SWIG_0(self, argc, argv);
26255 }
26256 if (argc == 4) {
26257 return _wrap_GraphicsContext_StrokeLines__SWIG_1(self, argc, argv);
26258 }
26259
26260 fail:
26261 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_StrokeLines'");
26262 return NULL;
26263 }
26264
26265
26266 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26267 PyObject *resultobj = 0;
26268 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26269 size_t arg2 ;
26270 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26271 int arg4 = (int) wxWINDING_RULE ;
26272 void *argp1 = 0 ;
26273 int res1 = 0 ;
26274 size_t val2 ;
26275 int ecode2 = 0 ;
26276 void *argp3 = 0 ;
26277 int res3 = 0 ;
26278 int val4 ;
26279 int ecode4 = 0 ;
26280 PyObject * obj0 = 0 ;
26281 PyObject * obj1 = 0 ;
26282 PyObject * obj2 = 0 ;
26283 PyObject * obj3 = 0 ;
26284 char * kwnames[] = {
26285 (char *) "self",(char *) "n",(char *) "points",(char *) "fillStyle", NULL
26286 };
26287
26288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26290 if (!SWIG_IsOK(res1)) {
26291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26292 }
26293 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26294 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
26295 if (!SWIG_IsOK(ecode2)) {
26296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawLines" "', expected argument " "2"" of type '" "size_t""'");
26297 }
26298 arg2 = static_cast< size_t >(val2);
26299 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26300 if (!SWIG_IsOK(res3)) {
26301 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_DrawLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26302 }
26303 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26304 if (obj3) {
26305 ecode4 = SWIG_AsVal_int(obj3, &val4);
26306 if (!SWIG_IsOK(ecode4)) {
26307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26308 }
26309 arg4 = static_cast< int >(val4);
26310 }
26311 {
26312 PyThreadState* __tstate = wxPyBeginAllowThreads();
26313 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26314 wxPyEndAllowThreads(__tstate);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 resultobj = SWIG_Py_Void();
26318 return resultobj;
26319 fail:
26320 return NULL;
26321 }
26322
26323
26324 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26325 PyObject *resultobj = 0;
26326 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26327 wxDouble arg2 ;
26328 wxDouble arg3 ;
26329 wxDouble arg4 ;
26330 wxDouble arg5 ;
26331 void *argp1 = 0 ;
26332 int res1 = 0 ;
26333 double val2 ;
26334 int ecode2 = 0 ;
26335 double val3 ;
26336 int ecode3 = 0 ;
26337 double val4 ;
26338 int ecode4 = 0 ;
26339 double val5 ;
26340 int ecode5 = 0 ;
26341 PyObject * obj0 = 0 ;
26342 PyObject * obj1 = 0 ;
26343 PyObject * obj2 = 0 ;
26344 PyObject * obj3 = 0 ;
26345 PyObject * obj4 = 0 ;
26346 char * kwnames[] = {
26347 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26348 };
26349
26350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26352 if (!SWIG_IsOK(res1)) {
26353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26354 }
26355 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26356 ecode2 = SWIG_AsVal_double(obj1, &val2);
26357 if (!SWIG_IsOK(ecode2)) {
26358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26359 }
26360 arg2 = static_cast< wxDouble >(val2);
26361 ecode3 = SWIG_AsVal_double(obj2, &val3);
26362 if (!SWIG_IsOK(ecode3)) {
26363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26364 }
26365 arg3 = static_cast< wxDouble >(val3);
26366 ecode4 = SWIG_AsVal_double(obj3, &val4);
26367 if (!SWIG_IsOK(ecode4)) {
26368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26369 }
26370 arg4 = static_cast< wxDouble >(val4);
26371 ecode5 = SWIG_AsVal_double(obj4, &val5);
26372 if (!SWIG_IsOK(ecode5)) {
26373 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26374 }
26375 arg5 = static_cast< wxDouble >(val5);
26376 {
26377 PyThreadState* __tstate = wxPyBeginAllowThreads();
26378 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26379 wxPyEndAllowThreads(__tstate);
26380 if (PyErr_Occurred()) SWIG_fail;
26381 }
26382 resultobj = SWIG_Py_Void();
26383 return resultobj;
26384 fail:
26385 return NULL;
26386 }
26387
26388
26389 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26390 PyObject *resultobj = 0;
26391 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26392 wxDouble arg2 ;
26393 wxDouble arg3 ;
26394 wxDouble arg4 ;
26395 wxDouble arg5 ;
26396 void *argp1 = 0 ;
26397 int res1 = 0 ;
26398 double val2 ;
26399 int ecode2 = 0 ;
26400 double val3 ;
26401 int ecode3 = 0 ;
26402 double val4 ;
26403 int ecode4 = 0 ;
26404 double val5 ;
26405 int ecode5 = 0 ;
26406 PyObject * obj0 = 0 ;
26407 PyObject * obj1 = 0 ;
26408 PyObject * obj2 = 0 ;
26409 PyObject * obj3 = 0 ;
26410 PyObject * obj4 = 0 ;
26411 char * kwnames[] = {
26412 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26413 };
26414
26415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26417 if (!SWIG_IsOK(res1)) {
26418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26419 }
26420 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26421 ecode2 = SWIG_AsVal_double(obj1, &val2);
26422 if (!SWIG_IsOK(ecode2)) {
26423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26424 }
26425 arg2 = static_cast< wxDouble >(val2);
26426 ecode3 = SWIG_AsVal_double(obj2, &val3);
26427 if (!SWIG_IsOK(ecode3)) {
26428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26429 }
26430 arg3 = static_cast< wxDouble >(val3);
26431 ecode4 = SWIG_AsVal_double(obj3, &val4);
26432 if (!SWIG_IsOK(ecode4)) {
26433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26434 }
26435 arg4 = static_cast< wxDouble >(val4);
26436 ecode5 = SWIG_AsVal_double(obj4, &val5);
26437 if (!SWIG_IsOK(ecode5)) {
26438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26439 }
26440 arg5 = static_cast< wxDouble >(val5);
26441 {
26442 PyThreadState* __tstate = wxPyBeginAllowThreads();
26443 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26444 wxPyEndAllowThreads(__tstate);
26445 if (PyErr_Occurred()) SWIG_fail;
26446 }
26447 resultobj = SWIG_Py_Void();
26448 return resultobj;
26449 fail:
26450 return NULL;
26451 }
26452
26453
26454 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26455 PyObject *resultobj = 0;
26456 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26457 wxDouble arg2 ;
26458 wxDouble arg3 ;
26459 wxDouble arg4 ;
26460 wxDouble arg5 ;
26461 wxDouble arg6 ;
26462 void *argp1 = 0 ;
26463 int res1 = 0 ;
26464 double val2 ;
26465 int ecode2 = 0 ;
26466 double val3 ;
26467 int ecode3 = 0 ;
26468 double val4 ;
26469 int ecode4 = 0 ;
26470 double val5 ;
26471 int ecode5 = 0 ;
26472 double val6 ;
26473 int ecode6 = 0 ;
26474 PyObject * obj0 = 0 ;
26475 PyObject * obj1 = 0 ;
26476 PyObject * obj2 = 0 ;
26477 PyObject * obj3 = 0 ;
26478 PyObject * obj4 = 0 ;
26479 PyObject * obj5 = 0 ;
26480 char * kwnames[] = {
26481 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26482 };
26483
26484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26486 if (!SWIG_IsOK(res1)) {
26487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26488 }
26489 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26490 ecode2 = SWIG_AsVal_double(obj1, &val2);
26491 if (!SWIG_IsOK(ecode2)) {
26492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26493 }
26494 arg2 = static_cast< wxDouble >(val2);
26495 ecode3 = SWIG_AsVal_double(obj2, &val3);
26496 if (!SWIG_IsOK(ecode3)) {
26497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26498 }
26499 arg3 = static_cast< wxDouble >(val3);
26500 ecode4 = SWIG_AsVal_double(obj3, &val4);
26501 if (!SWIG_IsOK(ecode4)) {
26502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26503 }
26504 arg4 = static_cast< wxDouble >(val4);
26505 ecode5 = SWIG_AsVal_double(obj4, &val5);
26506 if (!SWIG_IsOK(ecode5)) {
26507 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26508 }
26509 arg5 = static_cast< wxDouble >(val5);
26510 ecode6 = SWIG_AsVal_double(obj5, &val6);
26511 if (!SWIG_IsOK(ecode6)) {
26512 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26513 }
26514 arg6 = static_cast< wxDouble >(val6);
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_Py_Void();
26522 return resultobj;
26523 fail:
26524 return NULL;
26525 }
26526
26527
26528 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26529 PyObject *obj;
26530 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26531 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26532 return SWIG_Py_Void();
26533 }
26534
26535 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj = 0;
26537 wxWindowDC *arg1 = 0 ;
26538 wxGCDC *result = 0 ;
26539 void *argp1 = 0 ;
26540 int res1 = 0 ;
26541 PyObject * obj0 = 0 ;
26542 char * kwnames[] = {
26543 (char *) "dc", NULL
26544 };
26545
26546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26547 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26548 if (!SWIG_IsOK(res1)) {
26549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26550 }
26551 if (!argp1) {
26552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26553 }
26554 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26555 {
26556 if (!wxPyCheckForApp()) SWIG_fail;
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26559 wxPyEndAllowThreads(__tstate);
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26563 return resultobj;
26564 fail:
26565 return NULL;
26566 }
26567
26568
26569 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26570 PyObject *resultobj = 0;
26571 wxGCDC *arg1 = (wxGCDC *) 0 ;
26572 void *argp1 = 0 ;
26573 int res1 = 0 ;
26574 PyObject *swig_obj[1] ;
26575
26576 if (!args) SWIG_fail;
26577 swig_obj[0] = args;
26578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26581 }
26582 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26583 {
26584 PyThreadState* __tstate = wxPyBeginAllowThreads();
26585 delete arg1;
26586
26587 wxPyEndAllowThreads(__tstate);
26588 if (PyErr_Occurred()) SWIG_fail;
26589 }
26590 resultobj = SWIG_Py_Void();
26591 return resultobj;
26592 fail:
26593 return NULL;
26594 }
26595
26596
26597 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26598 PyObject *resultobj = 0;
26599 wxGCDC *arg1 = (wxGCDC *) 0 ;
26600 wxGraphicsContext *result = 0 ;
26601 void *argp1 = 0 ;
26602 int res1 = 0 ;
26603 PyObject *swig_obj[1] ;
26604
26605 if (!args) SWIG_fail;
26606 swig_obj[0] = args;
26607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26608 if (!SWIG_IsOK(res1)) {
26609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26610 }
26611 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26612 {
26613 PyThreadState* __tstate = wxPyBeginAllowThreads();
26614 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26619 return resultobj;
26620 fail:
26621 return NULL;
26622 }
26623
26624
26625 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26626 PyObject *obj;
26627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26628 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26629 return SWIG_Py_Void();
26630 }
26631
26632 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26633 return SWIG_Python_InitShadowInstance(args);
26634 }
26635
26636 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26637 PyObject *resultobj = 0;
26638 int arg1 ;
26639 int arg2 ;
26640 int arg3 = (int) true ;
26641 int arg4 = (int) 1 ;
26642 wxImageList *result = 0 ;
26643 int val1 ;
26644 int ecode1 = 0 ;
26645 int val2 ;
26646 int ecode2 = 0 ;
26647 int val3 ;
26648 int ecode3 = 0 ;
26649 int val4 ;
26650 int ecode4 = 0 ;
26651 PyObject * obj0 = 0 ;
26652 PyObject * obj1 = 0 ;
26653 PyObject * obj2 = 0 ;
26654 PyObject * obj3 = 0 ;
26655 char * kwnames[] = {
26656 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26657 };
26658
26659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26660 ecode1 = SWIG_AsVal_int(obj0, &val1);
26661 if (!SWIG_IsOK(ecode1)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26663 }
26664 arg1 = static_cast< int >(val1);
26665 ecode2 = SWIG_AsVal_int(obj1, &val2);
26666 if (!SWIG_IsOK(ecode2)) {
26667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26668 }
26669 arg2 = static_cast< int >(val2);
26670 if (obj2) {
26671 ecode3 = SWIG_AsVal_int(obj2, &val3);
26672 if (!SWIG_IsOK(ecode3)) {
26673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26674 }
26675 arg3 = static_cast< int >(val3);
26676 }
26677 if (obj3) {
26678 ecode4 = SWIG_AsVal_int(obj3, &val4);
26679 if (!SWIG_IsOK(ecode4)) {
26680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26681 }
26682 arg4 = static_cast< int >(val4);
26683 }
26684 {
26685 if (!wxPyCheckForApp()) SWIG_fail;
26686 PyThreadState* __tstate = wxPyBeginAllowThreads();
26687 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 {
26692 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26693 }
26694 return resultobj;
26695 fail:
26696 return NULL;
26697 }
26698
26699
26700 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26701 PyObject *resultobj = 0;
26702 wxImageList *arg1 = (wxImageList *) 0 ;
26703 void *argp1 = 0 ;
26704 int res1 = 0 ;
26705 PyObject *swig_obj[1] ;
26706
26707 if (!args) SWIG_fail;
26708 swig_obj[0] = args;
26709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
26710 if (!SWIG_IsOK(res1)) {
26711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
26712 }
26713 arg1 = reinterpret_cast< wxImageList * >(argp1);
26714 {
26715 PyThreadState* __tstate = wxPyBeginAllowThreads();
26716 delete arg1;
26717
26718 wxPyEndAllowThreads(__tstate);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 resultobj = SWIG_Py_Void();
26722 return resultobj;
26723 fail:
26724 return NULL;
26725 }
26726
26727
26728 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26729 PyObject *resultobj = 0;
26730 wxImageList *arg1 = (wxImageList *) 0 ;
26731 wxBitmap *arg2 = 0 ;
26732 wxBitmap const &arg3_defvalue = wxNullBitmap ;
26733 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
26734 int result;
26735 void *argp1 = 0 ;
26736 int res1 = 0 ;
26737 void *argp2 = 0 ;
26738 int res2 = 0 ;
26739 void *argp3 = 0 ;
26740 int res3 = 0 ;
26741 PyObject * obj0 = 0 ;
26742 PyObject * obj1 = 0 ;
26743 PyObject * obj2 = 0 ;
26744 char * kwnames[] = {
26745 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
26746 };
26747
26748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26750 if (!SWIG_IsOK(res1)) {
26751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
26752 }
26753 arg1 = reinterpret_cast< wxImageList * >(argp1);
26754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26755 if (!SWIG_IsOK(res2)) {
26756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26757 }
26758 if (!argp2) {
26759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26760 }
26761 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26762 if (obj2) {
26763 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26764 if (!SWIG_IsOK(res3)) {
26765 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26766 }
26767 if (!argp3) {
26768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26769 }
26770 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26771 }
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
26775 wxPyEndAllowThreads(__tstate);
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_From_int(static_cast< int >(result));
26779 return resultobj;
26780 fail:
26781 return NULL;
26782 }
26783
26784
26785 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26786 PyObject *resultobj = 0;
26787 wxImageList *arg1 = (wxImageList *) 0 ;
26788 wxBitmap *arg2 = 0 ;
26789 wxColour *arg3 = 0 ;
26790 int result;
26791 void *argp1 = 0 ;
26792 int res1 = 0 ;
26793 void *argp2 = 0 ;
26794 int res2 = 0 ;
26795 wxColour temp3 ;
26796 PyObject * obj0 = 0 ;
26797 PyObject * obj1 = 0 ;
26798 PyObject * obj2 = 0 ;
26799 char * kwnames[] = {
26800 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
26801 };
26802
26803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26805 if (!SWIG_IsOK(res1)) {
26806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
26807 }
26808 arg1 = reinterpret_cast< wxImageList * >(argp1);
26809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26810 if (!SWIG_IsOK(res2)) {
26811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26812 }
26813 if (!argp2) {
26814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26815 }
26816 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26817 {
26818 arg3 = &temp3;
26819 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26820 }
26821 {
26822 PyThreadState* __tstate = wxPyBeginAllowThreads();
26823 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
26824 wxPyEndAllowThreads(__tstate);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 resultobj = SWIG_From_int(static_cast< int >(result));
26828 return resultobj;
26829 fail:
26830 return NULL;
26831 }
26832
26833
26834 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26835 PyObject *resultobj = 0;
26836 wxImageList *arg1 = (wxImageList *) 0 ;
26837 wxIcon *arg2 = 0 ;
26838 int result;
26839 void *argp1 = 0 ;
26840 int res1 = 0 ;
26841 void *argp2 = 0 ;
26842 int res2 = 0 ;
26843 PyObject * obj0 = 0 ;
26844 PyObject * obj1 = 0 ;
26845 char * kwnames[] = {
26846 (char *) "self",(char *) "icon", NULL
26847 };
26848
26849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26851 if (!SWIG_IsOK(res1)) {
26852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
26853 }
26854 arg1 = reinterpret_cast< wxImageList * >(argp1);
26855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26856 if (!SWIG_IsOK(res2)) {
26857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26858 }
26859 if (!argp2) {
26860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26861 }
26862 arg2 = reinterpret_cast< wxIcon * >(argp2);
26863 {
26864 PyThreadState* __tstate = wxPyBeginAllowThreads();
26865 result = (int)(arg1)->Add((wxIcon const &)*arg2);
26866 wxPyEndAllowThreads(__tstate);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 resultobj = SWIG_From_int(static_cast< int >(result));
26870 return resultobj;
26871 fail:
26872 return NULL;
26873 }
26874
26875
26876 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26877 PyObject *resultobj = 0;
26878 wxImageList *arg1 = (wxImageList *) 0 ;
26879 int arg2 ;
26880 SwigValueWrapper<wxBitmap > result;
26881 void *argp1 = 0 ;
26882 int res1 = 0 ;
26883 int val2 ;
26884 int ecode2 = 0 ;
26885 PyObject * obj0 = 0 ;
26886 PyObject * obj1 = 0 ;
26887 char * kwnames[] = {
26888 (char *) "self",(char *) "index", NULL
26889 };
26890
26891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
26892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26893 if (!SWIG_IsOK(res1)) {
26894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
26895 }
26896 arg1 = reinterpret_cast< wxImageList * >(argp1);
26897 ecode2 = SWIG_AsVal_int(obj1, &val2);
26898 if (!SWIG_IsOK(ecode2)) {
26899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
26900 }
26901 arg2 = static_cast< int >(val2);
26902 {
26903 PyThreadState* __tstate = wxPyBeginAllowThreads();
26904 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
26905 wxPyEndAllowThreads(__tstate);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
26909 return resultobj;
26910 fail:
26911 return NULL;
26912 }
26913
26914
26915 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26916 PyObject *resultobj = 0;
26917 wxImageList *arg1 = (wxImageList *) 0 ;
26918 int arg2 ;
26919 wxIcon result;
26920 void *argp1 = 0 ;
26921 int res1 = 0 ;
26922 int val2 ;
26923 int ecode2 = 0 ;
26924 PyObject * obj0 = 0 ;
26925 PyObject * obj1 = 0 ;
26926 char * kwnames[] = {
26927 (char *) "self",(char *) "index", NULL
26928 };
26929
26930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26932 if (!SWIG_IsOK(res1)) {
26933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
26934 }
26935 arg1 = reinterpret_cast< wxImageList * >(argp1);
26936 ecode2 = SWIG_AsVal_int(obj1, &val2);
26937 if (!SWIG_IsOK(ecode2)) {
26938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
26939 }
26940 arg2 = static_cast< int >(val2);
26941 {
26942 PyThreadState* __tstate = wxPyBeginAllowThreads();
26943 result = ((wxImageList const *)arg1)->GetIcon(arg2);
26944 wxPyEndAllowThreads(__tstate);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
26948 return resultobj;
26949 fail:
26950 return NULL;
26951 }
26952
26953
26954 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26955 PyObject *resultobj = 0;
26956 wxImageList *arg1 = (wxImageList *) 0 ;
26957 int arg2 ;
26958 wxBitmap *arg3 = 0 ;
26959 wxBitmap const &arg4_defvalue = wxNullBitmap ;
26960 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
26961 bool result;
26962 void *argp1 = 0 ;
26963 int res1 = 0 ;
26964 int val2 ;
26965 int ecode2 = 0 ;
26966 void *argp3 = 0 ;
26967 int res3 = 0 ;
26968 void *argp4 = 0 ;
26969 int res4 = 0 ;
26970 PyObject * obj0 = 0 ;
26971 PyObject * obj1 = 0 ;
26972 PyObject * obj2 = 0 ;
26973 PyObject * obj3 = 0 ;
26974 char * kwnames[] = {
26975 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
26976 };
26977
26978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26980 if (!SWIG_IsOK(res1)) {
26981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
26982 }
26983 arg1 = reinterpret_cast< wxImageList * >(argp1);
26984 ecode2 = SWIG_AsVal_int(obj1, &val2);
26985 if (!SWIG_IsOK(ecode2)) {
26986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
26987 }
26988 arg2 = static_cast< int >(val2);
26989 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26990 if (!SWIG_IsOK(res3)) {
26991 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26992 }
26993 if (!argp3) {
26994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26995 }
26996 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26997 if (obj3) {
26998 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
26999 if (!SWIG_IsOK(res4)) {
27000 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27001 }
27002 if (!argp4) {
27003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27004 }
27005 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27006 }
27007 {
27008 PyThreadState* __tstate = wxPyBeginAllowThreads();
27009 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27010 wxPyEndAllowThreads(__tstate);
27011 if (PyErr_Occurred()) SWIG_fail;
27012 }
27013 {
27014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27015 }
27016 return resultobj;
27017 fail:
27018 return NULL;
27019 }
27020
27021
27022 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27023 PyObject *resultobj = 0;
27024 wxImageList *arg1 = (wxImageList *) 0 ;
27025 int arg2 ;
27026 wxDC *arg3 = 0 ;
27027 int arg4 ;
27028 int arg5 ;
27029 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27030 bool arg7 = (bool) (bool)false ;
27031 bool result;
27032 void *argp1 = 0 ;
27033 int res1 = 0 ;
27034 int val2 ;
27035 int ecode2 = 0 ;
27036 void *argp3 = 0 ;
27037 int res3 = 0 ;
27038 int val4 ;
27039 int ecode4 = 0 ;
27040 int val5 ;
27041 int ecode5 = 0 ;
27042 int val6 ;
27043 int ecode6 = 0 ;
27044 bool val7 ;
27045 int ecode7 = 0 ;
27046 PyObject * obj0 = 0 ;
27047 PyObject * obj1 = 0 ;
27048 PyObject * obj2 = 0 ;
27049 PyObject * obj3 = 0 ;
27050 PyObject * obj4 = 0 ;
27051 PyObject * obj5 = 0 ;
27052 PyObject * obj6 = 0 ;
27053 char * kwnames[] = {
27054 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27055 };
27056
27057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27059 if (!SWIG_IsOK(res1)) {
27060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27061 }
27062 arg1 = reinterpret_cast< wxImageList * >(argp1);
27063 ecode2 = SWIG_AsVal_int(obj1, &val2);
27064 if (!SWIG_IsOK(ecode2)) {
27065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27066 }
27067 arg2 = static_cast< int >(val2);
27068 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27069 if (!SWIG_IsOK(res3)) {
27070 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27071 }
27072 if (!argp3) {
27073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27074 }
27075 arg3 = reinterpret_cast< wxDC * >(argp3);
27076 ecode4 = SWIG_AsVal_int(obj3, &val4);
27077 if (!SWIG_IsOK(ecode4)) {
27078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27079 }
27080 arg4 = static_cast< int >(val4);
27081 ecode5 = SWIG_AsVal_int(obj4, &val5);
27082 if (!SWIG_IsOK(ecode5)) {
27083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27084 }
27085 arg5 = static_cast< int >(val5);
27086 if (obj5) {
27087 ecode6 = SWIG_AsVal_int(obj5, &val6);
27088 if (!SWIG_IsOK(ecode6)) {
27089 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27090 }
27091 arg6 = static_cast< int >(val6);
27092 }
27093 if (obj6) {
27094 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27095 if (!SWIG_IsOK(ecode7)) {
27096 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27097 }
27098 arg7 = static_cast< bool >(val7);
27099 }
27100 {
27101 PyThreadState* __tstate = wxPyBeginAllowThreads();
27102 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27103 wxPyEndAllowThreads(__tstate);
27104 if (PyErr_Occurred()) SWIG_fail;
27105 }
27106 {
27107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27108 }
27109 return resultobj;
27110 fail:
27111 return NULL;
27112 }
27113
27114
27115 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27116 PyObject *resultobj = 0;
27117 wxImageList *arg1 = (wxImageList *) 0 ;
27118 int result;
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
27121 PyObject *swig_obj[1] ;
27122
27123 if (!args) SWIG_fail;
27124 swig_obj[0] = args;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27126 if (!SWIG_IsOK(res1)) {
27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27128 }
27129 arg1 = reinterpret_cast< wxImageList * >(argp1);
27130 {
27131 PyThreadState* __tstate = wxPyBeginAllowThreads();
27132 result = (int)(arg1)->GetImageCount();
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 resultobj = SWIG_From_int(static_cast< int >(result));
27137 return resultobj;
27138 fail:
27139 return NULL;
27140 }
27141
27142
27143 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27144 PyObject *resultobj = 0;
27145 wxImageList *arg1 = (wxImageList *) 0 ;
27146 int arg2 ;
27147 bool result;
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
27150 int val2 ;
27151 int ecode2 = 0 ;
27152 PyObject * obj0 = 0 ;
27153 PyObject * obj1 = 0 ;
27154 char * kwnames[] = {
27155 (char *) "self",(char *) "index", NULL
27156 };
27157
27158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27160 if (!SWIG_IsOK(res1)) {
27161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27162 }
27163 arg1 = reinterpret_cast< wxImageList * >(argp1);
27164 ecode2 = SWIG_AsVal_int(obj1, &val2);
27165 if (!SWIG_IsOK(ecode2)) {
27166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27167 }
27168 arg2 = static_cast< int >(val2);
27169 {
27170 PyThreadState* __tstate = wxPyBeginAllowThreads();
27171 result = (bool)(arg1)->Remove(arg2);
27172 wxPyEndAllowThreads(__tstate);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 }
27175 {
27176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27177 }
27178 return resultobj;
27179 fail:
27180 return NULL;
27181 }
27182
27183
27184 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27185 PyObject *resultobj = 0;
27186 wxImageList *arg1 = (wxImageList *) 0 ;
27187 bool result;
27188 void *argp1 = 0 ;
27189 int res1 = 0 ;
27190 PyObject *swig_obj[1] ;
27191
27192 if (!args) SWIG_fail;
27193 swig_obj[0] = args;
27194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27195 if (!SWIG_IsOK(res1)) {
27196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27197 }
27198 arg1 = reinterpret_cast< wxImageList * >(argp1);
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (bool)(arg1)->RemoveAll();
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 {
27206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27207 }
27208 return resultobj;
27209 fail:
27210 return NULL;
27211 }
27212
27213
27214 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27215 PyObject *resultobj = 0;
27216 wxImageList *arg1 = (wxImageList *) 0 ;
27217 int arg2 ;
27218 int *arg3 = 0 ;
27219 int *arg4 = 0 ;
27220 void *argp1 = 0 ;
27221 int res1 = 0 ;
27222 int val2 ;
27223 int ecode2 = 0 ;
27224 int temp3 ;
27225 int res3 = SWIG_TMPOBJ ;
27226 int temp4 ;
27227 int res4 = SWIG_TMPOBJ ;
27228 PyObject * obj0 = 0 ;
27229 PyObject * obj1 = 0 ;
27230 char * kwnames[] = {
27231 (char *) "self",(char *) "index", NULL
27232 };
27233
27234 arg3 = &temp3;
27235 arg4 = &temp4;
27236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27238 if (!SWIG_IsOK(res1)) {
27239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27240 }
27241 arg1 = reinterpret_cast< wxImageList * >(argp1);
27242 ecode2 = SWIG_AsVal_int(obj1, &val2);
27243 if (!SWIG_IsOK(ecode2)) {
27244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27245 }
27246 arg2 = static_cast< int >(val2);
27247 {
27248 PyThreadState* __tstate = wxPyBeginAllowThreads();
27249 (arg1)->GetSize(arg2,*arg3,*arg4);
27250 wxPyEndAllowThreads(__tstate);
27251 if (PyErr_Occurred()) SWIG_fail;
27252 }
27253 resultobj = SWIG_Py_Void();
27254 if (SWIG_IsTmpObj(res3)) {
27255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27256 } else {
27257 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27259 }
27260 if (SWIG_IsTmpObj(res4)) {
27261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27262 } else {
27263 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27265 }
27266 return resultobj;
27267 fail:
27268 return NULL;
27269 }
27270
27271
27272 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *obj;
27274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27275 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27276 return SWIG_Py_Void();
27277 }
27278
27279 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27280 return SWIG_Python_InitShadowInstance(args);
27281 }
27282
27283 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27284 PyObject *resultobj = 0;
27285 wxStockGDI *result = 0 ;
27286
27287 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27288 {
27289 PyThreadState* __tstate = wxPyBeginAllowThreads();
27290 result = (wxStockGDI *)new wxStockGDI();
27291 wxPyEndAllowThreads(__tstate);
27292 if (PyErr_Occurred()) SWIG_fail;
27293 }
27294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27295 return resultobj;
27296 fail:
27297 return NULL;
27298 }
27299
27300
27301 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27302 PyObject *resultobj = 0;
27303 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 PyObject *swig_obj[1] ;
27307
27308 if (!args) SWIG_fail;
27309 swig_obj[0] = args;
27310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27313 }
27314 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 delete arg1;
27318
27319 wxPyEndAllowThreads(__tstate);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 resultobj = SWIG_Py_Void();
27323 return resultobj;
27324 fail:
27325 return NULL;
27326 }
27327
27328
27329 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27330 PyObject *resultobj = 0;
27331
27332 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27333 {
27334 PyThreadState* __tstate = wxPyBeginAllowThreads();
27335 wxStockGDI::DeleteAll();
27336 wxPyEndAllowThreads(__tstate);
27337 if (PyErr_Occurred()) SWIG_fail;
27338 }
27339 resultobj = SWIG_Py_Void();
27340 return resultobj;
27341 fail:
27342 return NULL;
27343 }
27344
27345
27346 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27347 PyObject *resultobj = 0;
27348 wxStockGDI *result = 0 ;
27349
27350 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27351 {
27352 PyThreadState* __tstate = wxPyBeginAllowThreads();
27353 {
27354 wxStockGDI &_result_ref = wxStockGDI::instance();
27355 result = (wxStockGDI *) &_result_ref;
27356 }
27357 wxPyEndAllowThreads(__tstate);
27358 if (PyErr_Occurred()) SWIG_fail;
27359 }
27360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27361 return resultobj;
27362 fail:
27363 return NULL;
27364 }
27365
27366
27367 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27368 PyObject *resultobj = 0;
27369 wxStockGDI::Item arg1 ;
27370 wxBrush *result = 0 ;
27371 int val1 ;
27372 int ecode1 = 0 ;
27373 PyObject * obj0 = 0 ;
27374 char * kwnames[] = {
27375 (char *) "item", NULL
27376 };
27377
27378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27379 ecode1 = SWIG_AsVal_int(obj0, &val1);
27380 if (!SWIG_IsOK(ecode1)) {
27381 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27382 }
27383 arg1 = static_cast< wxStockGDI::Item >(val1);
27384 {
27385 PyThreadState* __tstate = wxPyBeginAllowThreads();
27386 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27387 wxPyEndAllowThreads(__tstate);
27388 if (PyErr_Occurred()) SWIG_fail;
27389 }
27390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27391 return resultobj;
27392 fail:
27393 return NULL;
27394 }
27395
27396
27397 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27398 PyObject *resultobj = 0;
27399 wxStockGDI::Item arg1 ;
27400 wxColour *result = 0 ;
27401 int val1 ;
27402 int ecode1 = 0 ;
27403 PyObject * obj0 = 0 ;
27404 char * kwnames[] = {
27405 (char *) "item", NULL
27406 };
27407
27408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27409 ecode1 = SWIG_AsVal_int(obj0, &val1);
27410 if (!SWIG_IsOK(ecode1)) {
27411 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27412 }
27413 arg1 = static_cast< wxStockGDI::Item >(val1);
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 result = (wxColour *)wxStockGDI::GetColour(arg1);
27417 wxPyEndAllowThreads(__tstate);
27418 if (PyErr_Occurred()) SWIG_fail;
27419 }
27420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27421 return resultobj;
27422 fail:
27423 return NULL;
27424 }
27425
27426
27427 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27428 PyObject *resultobj = 0;
27429 wxStockGDI::Item arg1 ;
27430 wxCursor *result = 0 ;
27431 int val1 ;
27432 int ecode1 = 0 ;
27433 PyObject * obj0 = 0 ;
27434 char * kwnames[] = {
27435 (char *) "item", NULL
27436 };
27437
27438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27439 ecode1 = SWIG_AsVal_int(obj0, &val1);
27440 if (!SWIG_IsOK(ecode1)) {
27441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27442 }
27443 arg1 = static_cast< wxStockGDI::Item >(val1);
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27447 wxPyEndAllowThreads(__tstate);
27448 if (PyErr_Occurred()) SWIG_fail;
27449 }
27450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27451 return resultobj;
27452 fail:
27453 return NULL;
27454 }
27455
27456
27457 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27458 PyObject *resultobj = 0;
27459 wxStockGDI::Item arg1 ;
27460 wxPen *result = 0 ;
27461 int val1 ;
27462 int ecode1 = 0 ;
27463 PyObject * obj0 = 0 ;
27464 char * kwnames[] = {
27465 (char *) "item", NULL
27466 };
27467
27468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27469 ecode1 = SWIG_AsVal_int(obj0, &val1);
27470 if (!SWIG_IsOK(ecode1)) {
27471 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27472 }
27473 arg1 = static_cast< wxStockGDI::Item >(val1);
27474 {
27475 PyThreadState* __tstate = wxPyBeginAllowThreads();
27476 result = (wxPen *)wxStockGDI::GetPen(arg1);
27477 wxPyEndAllowThreads(__tstate);
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
27480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27481 return resultobj;
27482 fail:
27483 return NULL;
27484 }
27485
27486
27487 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27488 PyObject *resultobj = 0;
27489 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27490 wxStockGDI::Item arg2 ;
27491 wxFont *result = 0 ;
27492 void *argp1 = 0 ;
27493 int res1 = 0 ;
27494 int val2 ;
27495 int ecode2 = 0 ;
27496 PyObject * obj0 = 0 ;
27497 PyObject * obj1 = 0 ;
27498 char * kwnames[] = {
27499 (char *) "self",(char *) "item", NULL
27500 };
27501
27502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27504 if (!SWIG_IsOK(res1)) {
27505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27506 }
27507 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27508 ecode2 = SWIG_AsVal_int(obj1, &val2);
27509 if (!SWIG_IsOK(ecode2)) {
27510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27511 }
27512 arg2 = static_cast< wxStockGDI::Item >(val2);
27513 {
27514 PyThreadState* __tstate = wxPyBeginAllowThreads();
27515 result = (wxFont *)(arg1)->GetFont(arg2);
27516 wxPyEndAllowThreads(__tstate);
27517 if (PyErr_Occurred()) SWIG_fail;
27518 }
27519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27527 PyObject *obj;
27528 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27529 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27530 return SWIG_Py_Void();
27531 }
27532
27533 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27534 return SWIG_Python_InitShadowInstance(args);
27535 }
27536
27537 SWIGINTERN int NullBitmap_set(PyObject *) {
27538 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27539 return 1;
27540 }
27541
27542
27543 SWIGINTERN PyObject *NullBitmap_get(void) {
27544 PyObject *pyobj = 0;
27545
27546 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27547 return pyobj;
27548 }
27549
27550
27551 SWIGINTERN int NullIcon_set(PyObject *) {
27552 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27553 return 1;
27554 }
27555
27556
27557 SWIGINTERN PyObject *NullIcon_get(void) {
27558 PyObject *pyobj = 0;
27559
27560 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27561 return pyobj;
27562 }
27563
27564
27565 SWIGINTERN int NullCursor_set(PyObject *) {
27566 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27567 return 1;
27568 }
27569
27570
27571 SWIGINTERN PyObject *NullCursor_get(void) {
27572 PyObject *pyobj = 0;
27573
27574 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27575 return pyobj;
27576 }
27577
27578
27579 SWIGINTERN int NullPen_set(PyObject *) {
27580 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27581 return 1;
27582 }
27583
27584
27585 SWIGINTERN PyObject *NullPen_get(void) {
27586 PyObject *pyobj = 0;
27587
27588 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27589 return pyobj;
27590 }
27591
27592
27593 SWIGINTERN int NullBrush_set(PyObject *) {
27594 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27595 return 1;
27596 }
27597
27598
27599 SWIGINTERN PyObject *NullBrush_get(void) {
27600 PyObject *pyobj = 0;
27601
27602 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27603 return pyobj;
27604 }
27605
27606
27607 SWIGINTERN int NullPalette_set(PyObject *) {
27608 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27609 return 1;
27610 }
27611
27612
27613 SWIGINTERN PyObject *NullPalette_get(void) {
27614 PyObject *pyobj = 0;
27615
27616 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27617 return pyobj;
27618 }
27619
27620
27621 SWIGINTERN int NullFont_set(PyObject *) {
27622 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27623 return 1;
27624 }
27625
27626
27627 SWIGINTERN PyObject *NullFont_get(void) {
27628 PyObject *pyobj = 0;
27629
27630 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27631 return pyobj;
27632 }
27633
27634
27635 SWIGINTERN int NullColour_set(PyObject *) {
27636 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27637 return 1;
27638 }
27639
27640
27641 SWIGINTERN PyObject *NullColour_get(void) {
27642 PyObject *pyobj = 0;
27643
27644 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27645 return pyobj;
27646 }
27647
27648
27649 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27650 PyObject *resultobj = 0;
27651 wxGDIObjListBase *result = 0 ;
27652
27653 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27654 {
27655 PyThreadState* __tstate = wxPyBeginAllowThreads();
27656 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27657 wxPyEndAllowThreads(__tstate);
27658 if (PyErr_Occurred()) SWIG_fail;
27659 }
27660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27661 return resultobj;
27662 fail:
27663 return NULL;
27664 }
27665
27666
27667 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27668 PyObject *resultobj = 0;
27669 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
27670 void *argp1 = 0 ;
27671 int res1 = 0 ;
27672 PyObject *swig_obj[1] ;
27673
27674 if (!args) SWIG_fail;
27675 swig_obj[0] = args;
27676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
27677 if (!SWIG_IsOK(res1)) {
27678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
27679 }
27680 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
27681 {
27682 PyThreadState* __tstate = wxPyBeginAllowThreads();
27683 delete arg1;
27684
27685 wxPyEndAllowThreads(__tstate);
27686 if (PyErr_Occurred()) SWIG_fail;
27687 }
27688 resultobj = SWIG_Py_Void();
27689 return resultobj;
27690 fail:
27691 return NULL;
27692 }
27693
27694
27695 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27696 PyObject *obj;
27697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27698 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
27699 return SWIG_Py_Void();
27700 }
27701
27702 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27703 return SWIG_Python_InitShadowInstance(args);
27704 }
27705
27706 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27707 PyObject *resultobj = 0;
27708 wxPenList *arg1 = (wxPenList *) 0 ;
27709 wxColour *arg2 = 0 ;
27710 int arg3 ;
27711 int arg4 ;
27712 wxPen *result = 0 ;
27713 void *argp1 = 0 ;
27714 int res1 = 0 ;
27715 wxColour temp2 ;
27716 int val3 ;
27717 int ecode3 = 0 ;
27718 int val4 ;
27719 int ecode4 = 0 ;
27720 PyObject * obj0 = 0 ;
27721 PyObject * obj1 = 0 ;
27722 PyObject * obj2 = 0 ;
27723 PyObject * obj3 = 0 ;
27724 char * kwnames[] = {
27725 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
27726 };
27727
27728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27730 if (!SWIG_IsOK(res1)) {
27731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27732 }
27733 arg1 = reinterpret_cast< wxPenList * >(argp1);
27734 {
27735 arg2 = &temp2;
27736 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27737 }
27738 ecode3 = SWIG_AsVal_int(obj2, &val3);
27739 if (!SWIG_IsOK(ecode3)) {
27740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
27741 }
27742 arg3 = static_cast< int >(val3);
27743 ecode4 = SWIG_AsVal_int(obj3, &val4);
27744 if (!SWIG_IsOK(ecode4)) {
27745 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
27746 }
27747 arg4 = static_cast< int >(val4);
27748 {
27749 PyThreadState* __tstate = wxPyBeginAllowThreads();
27750 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
27751 wxPyEndAllowThreads(__tstate);
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
27754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27755 return resultobj;
27756 fail:
27757 return NULL;
27758 }
27759
27760
27761 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27762 PyObject *resultobj = 0;
27763 wxPenList *arg1 = (wxPenList *) 0 ;
27764 wxPen *arg2 = (wxPen *) 0 ;
27765 void *argp1 = 0 ;
27766 int res1 = 0 ;
27767 void *argp2 = 0 ;
27768 int res2 = 0 ;
27769 PyObject * obj0 = 0 ;
27770 PyObject * obj1 = 0 ;
27771 char * kwnames[] = {
27772 (char *) "self",(char *) "pen", NULL
27773 };
27774
27775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
27776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27777 if (!SWIG_IsOK(res1)) {
27778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
27779 }
27780 arg1 = reinterpret_cast< wxPenList * >(argp1);
27781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27782 if (!SWIG_IsOK(res2)) {
27783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
27784 }
27785 arg2 = reinterpret_cast< wxPen * >(argp2);
27786 {
27787 PyThreadState* __tstate = wxPyBeginAllowThreads();
27788 (arg1)->AddPen(arg2);
27789 wxPyEndAllowThreads(__tstate);
27790 if (PyErr_Occurred()) SWIG_fail;
27791 }
27792 resultobj = SWIG_Py_Void();
27793 return resultobj;
27794 fail:
27795 return NULL;
27796 }
27797
27798
27799 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27800 PyObject *resultobj = 0;
27801 wxPenList *arg1 = (wxPenList *) 0 ;
27802 wxPen *arg2 = (wxPen *) 0 ;
27803 void *argp1 = 0 ;
27804 int res1 = 0 ;
27805 void *argp2 = 0 ;
27806 int res2 = 0 ;
27807 PyObject * obj0 = 0 ;
27808 PyObject * obj1 = 0 ;
27809 char * kwnames[] = {
27810 (char *) "self",(char *) "pen", NULL
27811 };
27812
27813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
27814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27815 if (!SWIG_IsOK(res1)) {
27816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27817 }
27818 arg1 = reinterpret_cast< wxPenList * >(argp1);
27819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27820 if (!SWIG_IsOK(res2)) {
27821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
27822 }
27823 arg2 = reinterpret_cast< wxPen * >(argp2);
27824 {
27825 PyThreadState* __tstate = wxPyBeginAllowThreads();
27826 (arg1)->RemovePen(arg2);
27827 wxPyEndAllowThreads(__tstate);
27828 if (PyErr_Occurred()) SWIG_fail;
27829 }
27830 resultobj = SWIG_Py_Void();
27831 return resultobj;
27832 fail:
27833 return NULL;
27834 }
27835
27836
27837 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27838 PyObject *obj;
27839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27840 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
27841 return SWIG_Py_Void();
27842 }
27843
27844 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27845 PyObject *resultobj = 0;
27846 wxBrushList *arg1 = (wxBrushList *) 0 ;
27847 wxColour *arg2 = 0 ;
27848 int arg3 = (int) wxSOLID ;
27849 wxBrush *result = 0 ;
27850 void *argp1 = 0 ;
27851 int res1 = 0 ;
27852 wxColour temp2 ;
27853 int val3 ;
27854 int ecode3 = 0 ;
27855 PyObject * obj0 = 0 ;
27856 PyObject * obj1 = 0 ;
27857 PyObject * obj2 = 0 ;
27858 char * kwnames[] = {
27859 (char *) "self",(char *) "colour",(char *) "style", NULL
27860 };
27861
27862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27864 if (!SWIG_IsOK(res1)) {
27865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27866 }
27867 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27868 {
27869 arg2 = &temp2;
27870 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27871 }
27872 if (obj2) {
27873 ecode3 = SWIG_AsVal_int(obj2, &val3);
27874 if (!SWIG_IsOK(ecode3)) {
27875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
27876 }
27877 arg3 = static_cast< int >(val3);
27878 }
27879 {
27880 PyThreadState* __tstate = wxPyBeginAllowThreads();
27881 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
27882 wxPyEndAllowThreads(__tstate);
27883 if (PyErr_Occurred()) SWIG_fail;
27884 }
27885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27886 return resultobj;
27887 fail:
27888 return NULL;
27889 }
27890
27891
27892 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27893 PyObject *resultobj = 0;
27894 wxBrushList *arg1 = (wxBrushList *) 0 ;
27895 wxBrush *arg2 = (wxBrush *) 0 ;
27896 void *argp1 = 0 ;
27897 int res1 = 0 ;
27898 void *argp2 = 0 ;
27899 int res2 = 0 ;
27900 PyObject * obj0 = 0 ;
27901 PyObject * obj1 = 0 ;
27902 char * kwnames[] = {
27903 (char *) "self",(char *) "brush", NULL
27904 };
27905
27906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27908 if (!SWIG_IsOK(res1)) {
27909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27910 }
27911 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
27913 if (!SWIG_IsOK(res2)) {
27914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
27915 }
27916 arg2 = reinterpret_cast< wxBrush * >(argp2);
27917 {
27918 PyThreadState* __tstate = wxPyBeginAllowThreads();
27919 (arg1)->AddBrush(arg2);
27920 wxPyEndAllowThreads(__tstate);
27921 if (PyErr_Occurred()) SWIG_fail;
27922 }
27923 resultobj = SWIG_Py_Void();
27924 return resultobj;
27925 fail:
27926 return NULL;
27927 }
27928
27929
27930 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27931 PyObject *resultobj = 0;
27932 wxBrushList *arg1 = (wxBrushList *) 0 ;
27933 wxBrush *arg2 = (wxBrush *) 0 ;
27934 void *argp1 = 0 ;
27935 int res1 = 0 ;
27936 void *argp2 = 0 ;
27937 int res2 = 0 ;
27938 PyObject * obj0 = 0 ;
27939 PyObject * obj1 = 0 ;
27940 char * kwnames[] = {
27941 (char *) "self",(char *) "brush", NULL
27942 };
27943
27944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27946 if (!SWIG_IsOK(res1)) {
27947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27948 }
27949 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
27951 if (!SWIG_IsOK(res2)) {
27952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
27953 }
27954 arg2 = reinterpret_cast< wxBrush * >(argp2);
27955 {
27956 PyThreadState* __tstate = wxPyBeginAllowThreads();
27957 (arg1)->RemoveBrush(arg2);
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 resultobj = SWIG_Py_Void();
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27969 PyObject *obj;
27970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27971 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
27972 return SWIG_Py_Void();
27973 }
27974
27975 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27976 PyObject *resultobj = 0;
27977 wxFontList *arg1 = (wxFontList *) 0 ;
27978 int arg2 ;
27979 int arg3 ;
27980 int arg4 ;
27981 int arg5 ;
27982 bool arg6 = (bool) false ;
27983 wxString const &arg7_defvalue = wxPyEmptyString ;
27984 wxString *arg7 = (wxString *) &arg7_defvalue ;
27985 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
27986 wxFont *result = 0 ;
27987 void *argp1 = 0 ;
27988 int res1 = 0 ;
27989 int val2 ;
27990 int ecode2 = 0 ;
27991 int val3 ;
27992 int ecode3 = 0 ;
27993 int val4 ;
27994 int ecode4 = 0 ;
27995 int val5 ;
27996 int ecode5 = 0 ;
27997 bool val6 ;
27998 int ecode6 = 0 ;
27999 bool temp7 = false ;
28000 int val8 ;
28001 int ecode8 = 0 ;
28002 PyObject * obj0 = 0 ;
28003 PyObject * obj1 = 0 ;
28004 PyObject * obj2 = 0 ;
28005 PyObject * obj3 = 0 ;
28006 PyObject * obj4 = 0 ;
28007 PyObject * obj5 = 0 ;
28008 PyObject * obj6 = 0 ;
28009 PyObject * obj7 = 0 ;
28010 char * kwnames[] = {
28011 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28012 };
28013
28014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28016 if (!SWIG_IsOK(res1)) {
28017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28018 }
28019 arg1 = reinterpret_cast< wxFontList * >(argp1);
28020 ecode2 = SWIG_AsVal_int(obj1, &val2);
28021 if (!SWIG_IsOK(ecode2)) {
28022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28023 }
28024 arg2 = static_cast< int >(val2);
28025 ecode3 = SWIG_AsVal_int(obj2, &val3);
28026 if (!SWIG_IsOK(ecode3)) {
28027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28028 }
28029 arg3 = static_cast< int >(val3);
28030 ecode4 = SWIG_AsVal_int(obj3, &val4);
28031 if (!SWIG_IsOK(ecode4)) {
28032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28033 }
28034 arg4 = static_cast< int >(val4);
28035 ecode5 = SWIG_AsVal_int(obj4, &val5);
28036 if (!SWIG_IsOK(ecode5)) {
28037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28038 }
28039 arg5 = static_cast< int >(val5);
28040 if (obj5) {
28041 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28042 if (!SWIG_IsOK(ecode6)) {
28043 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28044 }
28045 arg6 = static_cast< bool >(val6);
28046 }
28047 if (obj6) {
28048 {
28049 arg7 = wxString_in_helper(obj6);
28050 if (arg7 == NULL) SWIG_fail;
28051 temp7 = true;
28052 }
28053 }
28054 if (obj7) {
28055 ecode8 = SWIG_AsVal_int(obj7, &val8);
28056 if (!SWIG_IsOK(ecode8)) {
28057 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28058 }
28059 arg8 = static_cast< wxFontEncoding >(val8);
28060 }
28061 {
28062 PyThreadState* __tstate = wxPyBeginAllowThreads();
28063 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28064 wxPyEndAllowThreads(__tstate);
28065 if (PyErr_Occurred()) SWIG_fail;
28066 }
28067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28068 {
28069 if (temp7)
28070 delete arg7;
28071 }
28072 return resultobj;
28073 fail:
28074 {
28075 if (temp7)
28076 delete arg7;
28077 }
28078 return NULL;
28079 }
28080
28081
28082 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28083 PyObject *resultobj = 0;
28084 wxFontList *arg1 = (wxFontList *) 0 ;
28085 wxFont *arg2 = (wxFont *) 0 ;
28086 void *argp1 = 0 ;
28087 int res1 = 0 ;
28088 void *argp2 = 0 ;
28089 int res2 = 0 ;
28090 PyObject * obj0 = 0 ;
28091 PyObject * obj1 = 0 ;
28092 char * kwnames[] = {
28093 (char *) "self",(char *) "font", NULL
28094 };
28095
28096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28098 if (!SWIG_IsOK(res1)) {
28099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28100 }
28101 arg1 = reinterpret_cast< wxFontList * >(argp1);
28102 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28103 if (!SWIG_IsOK(res2)) {
28104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28105 }
28106 arg2 = reinterpret_cast< wxFont * >(argp2);
28107 {
28108 PyThreadState* __tstate = wxPyBeginAllowThreads();
28109 (arg1)->AddFont(arg2);
28110 wxPyEndAllowThreads(__tstate);
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 resultobj = SWIG_Py_Void();
28114 return resultobj;
28115 fail:
28116 return NULL;
28117 }
28118
28119
28120 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28121 PyObject *resultobj = 0;
28122 wxFontList *arg1 = (wxFontList *) 0 ;
28123 wxFont *arg2 = (wxFont *) 0 ;
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 *) "font", NULL
28132 };
28133
28134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28136 if (!SWIG_IsOK(res1)) {
28137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28138 }
28139 arg1 = reinterpret_cast< wxFontList * >(argp1);
28140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28141 if (!SWIG_IsOK(res2)) {
28142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28143 }
28144 arg2 = reinterpret_cast< wxFont * >(argp2);
28145 {
28146 PyThreadState* __tstate = wxPyBeginAllowThreads();
28147 (arg1)->RemoveFont(arg2);
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 resultobj = SWIG_Py_Void();
28152 return resultobj;
28153 fail:
28154 return NULL;
28155 }
28156
28157
28158 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28159 PyObject *obj;
28160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28161 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28162 return SWIG_Py_Void();
28163 }
28164
28165 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28166 PyObject *resultobj = 0;
28167 wxColourDatabase *result = 0 ;
28168
28169 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28170 {
28171 if (!wxPyCheckForApp()) SWIG_fail;
28172 PyThreadState* __tstate = wxPyBeginAllowThreads();
28173 result = (wxColourDatabase *)new wxColourDatabase();
28174 wxPyEndAllowThreads(__tstate);
28175 if (PyErr_Occurred()) SWIG_fail;
28176 }
28177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28178 return resultobj;
28179 fail:
28180 return NULL;
28181 }
28182
28183
28184 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28185 PyObject *resultobj = 0;
28186 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 PyObject *swig_obj[1] ;
28190
28191 if (!args) SWIG_fail;
28192 swig_obj[0] = args;
28193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28194 if (!SWIG_IsOK(res1)) {
28195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28196 }
28197 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28198 {
28199 PyThreadState* __tstate = wxPyBeginAllowThreads();
28200 delete arg1;
28201
28202 wxPyEndAllowThreads(__tstate);
28203 if (PyErr_Occurred()) SWIG_fail;
28204 }
28205 resultobj = SWIG_Py_Void();
28206 return resultobj;
28207 fail:
28208 return NULL;
28209 }
28210
28211
28212 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28213 PyObject *resultobj = 0;
28214 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28215 wxString *arg2 = 0 ;
28216 wxColour result;
28217 void *argp1 = 0 ;
28218 int res1 = 0 ;
28219 bool temp2 = false ;
28220 PyObject * obj0 = 0 ;
28221 PyObject * obj1 = 0 ;
28222 char * kwnames[] = {
28223 (char *) "self",(char *) "name", NULL
28224 };
28225
28226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28228 if (!SWIG_IsOK(res1)) {
28229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28230 }
28231 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28232 {
28233 arg2 = wxString_in_helper(obj1);
28234 if (arg2 == NULL) SWIG_fail;
28235 temp2 = true;
28236 }
28237 {
28238 PyThreadState* __tstate = wxPyBeginAllowThreads();
28239 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28240 wxPyEndAllowThreads(__tstate);
28241 if (PyErr_Occurred()) SWIG_fail;
28242 }
28243 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28244 {
28245 if (temp2)
28246 delete arg2;
28247 }
28248 return resultobj;
28249 fail:
28250 {
28251 if (temp2)
28252 delete arg2;
28253 }
28254 return NULL;
28255 }
28256
28257
28258 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28259 PyObject *resultobj = 0;
28260 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28261 wxColour *arg2 = 0 ;
28262 wxString result;
28263 void *argp1 = 0 ;
28264 int res1 = 0 ;
28265 wxColour temp2 ;
28266 PyObject * obj0 = 0 ;
28267 PyObject * obj1 = 0 ;
28268 char * kwnames[] = {
28269 (char *) "self",(char *) "colour", NULL
28270 };
28271
28272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28274 if (!SWIG_IsOK(res1)) {
28275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28276 }
28277 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28278 {
28279 arg2 = &temp2;
28280 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28281 }
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
28284 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28285 wxPyEndAllowThreads(__tstate);
28286 if (PyErr_Occurred()) SWIG_fail;
28287 }
28288 {
28289 #if wxUSE_UNICODE
28290 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28291 #else
28292 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28293 #endif
28294 }
28295 return resultobj;
28296 fail:
28297 return NULL;
28298 }
28299
28300
28301 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28302 PyObject *resultobj = 0;
28303 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28304 wxString *arg2 = 0 ;
28305 wxColour *arg3 = 0 ;
28306 void *argp1 = 0 ;
28307 int res1 = 0 ;
28308 bool temp2 = false ;
28309 wxColour temp3 ;
28310 PyObject * obj0 = 0 ;
28311 PyObject * obj1 = 0 ;
28312 PyObject * obj2 = 0 ;
28313 char * kwnames[] = {
28314 (char *) "self",(char *) "name",(char *) "colour", NULL
28315 };
28316
28317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28319 if (!SWIG_IsOK(res1)) {
28320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28321 }
28322 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28323 {
28324 arg2 = wxString_in_helper(obj1);
28325 if (arg2 == NULL) SWIG_fail;
28326 temp2 = true;
28327 }
28328 {
28329 arg3 = &temp3;
28330 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28331 }
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
28334 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28335 wxPyEndAllowThreads(__tstate);
28336 if (PyErr_Occurred()) SWIG_fail;
28337 }
28338 resultobj = SWIG_Py_Void();
28339 {
28340 if (temp2)
28341 delete arg2;
28342 }
28343 return resultobj;
28344 fail:
28345 {
28346 if (temp2)
28347 delete arg2;
28348 }
28349 return NULL;
28350 }
28351
28352
28353 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28354 PyObject *resultobj = 0;
28355 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28356 wxString *arg2 = 0 ;
28357 int arg3 ;
28358 int arg4 ;
28359 int arg5 ;
28360 void *argp1 = 0 ;
28361 int res1 = 0 ;
28362 bool temp2 = false ;
28363 int val3 ;
28364 int ecode3 = 0 ;
28365 int val4 ;
28366 int ecode4 = 0 ;
28367 int val5 ;
28368 int ecode5 = 0 ;
28369 PyObject * obj0 = 0 ;
28370 PyObject * obj1 = 0 ;
28371 PyObject * obj2 = 0 ;
28372 PyObject * obj3 = 0 ;
28373 PyObject * obj4 = 0 ;
28374 char * kwnames[] = {
28375 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28376 };
28377
28378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28380 if (!SWIG_IsOK(res1)) {
28381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28382 }
28383 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28384 {
28385 arg2 = wxString_in_helper(obj1);
28386 if (arg2 == NULL) SWIG_fail;
28387 temp2 = true;
28388 }
28389 ecode3 = SWIG_AsVal_int(obj2, &val3);
28390 if (!SWIG_IsOK(ecode3)) {
28391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28392 }
28393 arg3 = static_cast< int >(val3);
28394 ecode4 = SWIG_AsVal_int(obj3, &val4);
28395 if (!SWIG_IsOK(ecode4)) {
28396 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28397 }
28398 arg4 = static_cast< int >(val4);
28399 ecode5 = SWIG_AsVal_int(obj4, &val5);
28400 if (!SWIG_IsOK(ecode5)) {
28401 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28402 }
28403 arg5 = static_cast< int >(val5);
28404 {
28405 PyThreadState* __tstate = wxPyBeginAllowThreads();
28406 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28407 wxPyEndAllowThreads(__tstate);
28408 if (PyErr_Occurred()) SWIG_fail;
28409 }
28410 resultobj = SWIG_Py_Void();
28411 {
28412 if (temp2)
28413 delete arg2;
28414 }
28415 return resultobj;
28416 fail:
28417 {
28418 if (temp2)
28419 delete arg2;
28420 }
28421 return NULL;
28422 }
28423
28424
28425 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28426 PyObject *obj;
28427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28428 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28429 return SWIG_Py_Void();
28430 }
28431
28432 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28433 return SWIG_Python_InitShadowInstance(args);
28434 }
28435
28436 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28437 PyObject *resultobj = 0;
28438 wxFontList *result = 0 ;
28439
28440 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28441 {
28442 PyThreadState* __tstate = wxPyBeginAllowThreads();
28443 result = (wxFontList *)_wxPyInitTheFontList();
28444 wxPyEndAllowThreads(__tstate);
28445 if (PyErr_Occurred()) SWIG_fail;
28446 }
28447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28448 return resultobj;
28449 fail:
28450 return NULL;
28451 }
28452
28453
28454 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28455 PyObject *resultobj = 0;
28456 wxPenList *result = 0 ;
28457
28458 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28459 {
28460 PyThreadState* __tstate = wxPyBeginAllowThreads();
28461 result = (wxPenList *)_wxPyInitThePenList();
28462 wxPyEndAllowThreads(__tstate);
28463 if (PyErr_Occurred()) SWIG_fail;
28464 }
28465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28466 return resultobj;
28467 fail:
28468 return NULL;
28469 }
28470
28471
28472 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28473 PyObject *resultobj = 0;
28474 wxBrushList *result = 0 ;
28475
28476 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28477 {
28478 PyThreadState* __tstate = wxPyBeginAllowThreads();
28479 result = (wxBrushList *)_wxPyInitTheBrushList();
28480 wxPyEndAllowThreads(__tstate);
28481 if (PyErr_Occurred()) SWIG_fail;
28482 }
28483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28484 return resultobj;
28485 fail:
28486 return NULL;
28487 }
28488
28489
28490 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28491 PyObject *resultobj = 0;
28492 wxColourDatabase *result = 0 ;
28493
28494 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28495 {
28496 PyThreadState* __tstate = wxPyBeginAllowThreads();
28497 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28498 wxPyEndAllowThreads(__tstate);
28499 if (PyErr_Occurred()) SWIG_fail;
28500 }
28501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28502 return resultobj;
28503 fail:
28504 return NULL;
28505 }
28506
28507
28508 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28509 PyObject *resultobj = 0;
28510 wxEffects *result = 0 ;
28511
28512 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28513 {
28514 PyThreadState* __tstate = wxPyBeginAllowThreads();
28515 result = (wxEffects *)new wxEffects();
28516 wxPyEndAllowThreads(__tstate);
28517 if (PyErr_Occurred()) SWIG_fail;
28518 }
28519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28520 return resultobj;
28521 fail:
28522 return NULL;
28523 }
28524
28525
28526 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28527 PyObject *resultobj = 0;
28528 wxEffects *arg1 = (wxEffects *) 0 ;
28529 wxColour result;
28530 void *argp1 = 0 ;
28531 int res1 = 0 ;
28532 PyObject *swig_obj[1] ;
28533
28534 if (!args) SWIG_fail;
28535 swig_obj[0] = args;
28536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28537 if (!SWIG_IsOK(res1)) {
28538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28539 }
28540 arg1 = reinterpret_cast< wxEffects * >(argp1);
28541 {
28542 PyThreadState* __tstate = wxPyBeginAllowThreads();
28543 result = ((wxEffects const *)arg1)->GetHighlightColour();
28544 wxPyEndAllowThreads(__tstate);
28545 if (PyErr_Occurred()) SWIG_fail;
28546 }
28547 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28548 return resultobj;
28549 fail:
28550 return NULL;
28551 }
28552
28553
28554 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28555 PyObject *resultobj = 0;
28556 wxEffects *arg1 = (wxEffects *) 0 ;
28557 wxColour result;
28558 void *argp1 = 0 ;
28559 int res1 = 0 ;
28560 PyObject *swig_obj[1] ;
28561
28562 if (!args) SWIG_fail;
28563 swig_obj[0] = args;
28564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28565 if (!SWIG_IsOK(res1)) {
28566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28567 }
28568 arg1 = reinterpret_cast< wxEffects * >(argp1);
28569 {
28570 PyThreadState* __tstate = wxPyBeginAllowThreads();
28571 result = ((wxEffects const *)arg1)->GetLightShadow();
28572 wxPyEndAllowThreads(__tstate);
28573 if (PyErr_Occurred()) SWIG_fail;
28574 }
28575 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28576 return resultobj;
28577 fail:
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28583 PyObject *resultobj = 0;
28584 wxEffects *arg1 = (wxEffects *) 0 ;
28585 wxColour result;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 PyObject *swig_obj[1] ;
28589
28590 if (!args) SWIG_fail;
28591 swig_obj[0] = args;
28592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28593 if (!SWIG_IsOK(res1)) {
28594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28595 }
28596 arg1 = reinterpret_cast< wxEffects * >(argp1);
28597 {
28598 PyThreadState* __tstate = wxPyBeginAllowThreads();
28599 result = ((wxEffects const *)arg1)->GetFaceColour();
28600 wxPyEndAllowThreads(__tstate);
28601 if (PyErr_Occurred()) SWIG_fail;
28602 }
28603 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28604 return resultobj;
28605 fail:
28606 return NULL;
28607 }
28608
28609
28610 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28611 PyObject *resultobj = 0;
28612 wxEffects *arg1 = (wxEffects *) 0 ;
28613 wxColour result;
28614 void *argp1 = 0 ;
28615 int res1 = 0 ;
28616 PyObject *swig_obj[1] ;
28617
28618 if (!args) SWIG_fail;
28619 swig_obj[0] = args;
28620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28621 if (!SWIG_IsOK(res1)) {
28622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28623 }
28624 arg1 = reinterpret_cast< wxEffects * >(argp1);
28625 {
28626 PyThreadState* __tstate = wxPyBeginAllowThreads();
28627 result = ((wxEffects const *)arg1)->GetMediumShadow();
28628 wxPyEndAllowThreads(__tstate);
28629 if (PyErr_Occurred()) SWIG_fail;
28630 }
28631 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28632 return resultobj;
28633 fail:
28634 return NULL;
28635 }
28636
28637
28638 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28639 PyObject *resultobj = 0;
28640 wxEffects *arg1 = (wxEffects *) 0 ;
28641 wxColour result;
28642 void *argp1 = 0 ;
28643 int res1 = 0 ;
28644 PyObject *swig_obj[1] ;
28645
28646 if (!args) SWIG_fail;
28647 swig_obj[0] = args;
28648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28649 if (!SWIG_IsOK(res1)) {
28650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28651 }
28652 arg1 = reinterpret_cast< wxEffects * >(argp1);
28653 {
28654 PyThreadState* __tstate = wxPyBeginAllowThreads();
28655 result = ((wxEffects const *)arg1)->GetDarkShadow();
28656 wxPyEndAllowThreads(__tstate);
28657 if (PyErr_Occurred()) SWIG_fail;
28658 }
28659 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28660 return resultobj;
28661 fail:
28662 return NULL;
28663 }
28664
28665
28666 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28667 PyObject *resultobj = 0;
28668 wxEffects *arg1 = (wxEffects *) 0 ;
28669 wxColour *arg2 = 0 ;
28670 void *argp1 = 0 ;
28671 int res1 = 0 ;
28672 wxColour temp2 ;
28673 PyObject * obj0 = 0 ;
28674 PyObject * obj1 = 0 ;
28675 char * kwnames[] = {
28676 (char *) "self",(char *) "c", NULL
28677 };
28678
28679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28681 if (!SWIG_IsOK(res1)) {
28682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28683 }
28684 arg1 = reinterpret_cast< wxEffects * >(argp1);
28685 {
28686 arg2 = &temp2;
28687 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28688 }
28689 {
28690 PyThreadState* __tstate = wxPyBeginAllowThreads();
28691 (arg1)->SetHighlightColour((wxColour const &)*arg2);
28692 wxPyEndAllowThreads(__tstate);
28693 if (PyErr_Occurred()) SWIG_fail;
28694 }
28695 resultobj = SWIG_Py_Void();
28696 return resultobj;
28697 fail:
28698 return NULL;
28699 }
28700
28701
28702 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28703 PyObject *resultobj = 0;
28704 wxEffects *arg1 = (wxEffects *) 0 ;
28705 wxColour *arg2 = 0 ;
28706 void *argp1 = 0 ;
28707 int res1 = 0 ;
28708 wxColour temp2 ;
28709 PyObject * obj0 = 0 ;
28710 PyObject * obj1 = 0 ;
28711 char * kwnames[] = {
28712 (char *) "self",(char *) "c", NULL
28713 };
28714
28715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28717 if (!SWIG_IsOK(res1)) {
28718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28719 }
28720 arg1 = reinterpret_cast< wxEffects * >(argp1);
28721 {
28722 arg2 = &temp2;
28723 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28724 }
28725 {
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
28727 (arg1)->SetLightShadow((wxColour const &)*arg2);
28728 wxPyEndAllowThreads(__tstate);
28729 if (PyErr_Occurred()) SWIG_fail;
28730 }
28731 resultobj = SWIG_Py_Void();
28732 return resultobj;
28733 fail:
28734 return NULL;
28735 }
28736
28737
28738 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28739 PyObject *resultobj = 0;
28740 wxEffects *arg1 = (wxEffects *) 0 ;
28741 wxColour *arg2 = 0 ;
28742 void *argp1 = 0 ;
28743 int res1 = 0 ;
28744 wxColour temp2 ;
28745 PyObject * obj0 = 0 ;
28746 PyObject * obj1 = 0 ;
28747 char * kwnames[] = {
28748 (char *) "self",(char *) "c", NULL
28749 };
28750
28751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
28752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28753 if (!SWIG_IsOK(res1)) {
28754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28755 }
28756 arg1 = reinterpret_cast< wxEffects * >(argp1);
28757 {
28758 arg2 = &temp2;
28759 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28760 }
28761 {
28762 PyThreadState* __tstate = wxPyBeginAllowThreads();
28763 (arg1)->SetFaceColour((wxColour const &)*arg2);
28764 wxPyEndAllowThreads(__tstate);
28765 if (PyErr_Occurred()) SWIG_fail;
28766 }
28767 resultobj = SWIG_Py_Void();
28768 return resultobj;
28769 fail:
28770 return NULL;
28771 }
28772
28773
28774 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28775 PyObject *resultobj = 0;
28776 wxEffects *arg1 = (wxEffects *) 0 ;
28777 wxColour *arg2 = 0 ;
28778 void *argp1 = 0 ;
28779 int res1 = 0 ;
28780 wxColour temp2 ;
28781 PyObject * obj0 = 0 ;
28782 PyObject * obj1 = 0 ;
28783 char * kwnames[] = {
28784 (char *) "self",(char *) "c", NULL
28785 };
28786
28787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28789 if (!SWIG_IsOK(res1)) {
28790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28791 }
28792 arg1 = reinterpret_cast< wxEffects * >(argp1);
28793 {
28794 arg2 = &temp2;
28795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28796 }
28797 {
28798 PyThreadState* __tstate = wxPyBeginAllowThreads();
28799 (arg1)->SetMediumShadow((wxColour const &)*arg2);
28800 wxPyEndAllowThreads(__tstate);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_Py_Void();
28804 return resultobj;
28805 fail:
28806 return NULL;
28807 }
28808
28809
28810 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28811 PyObject *resultobj = 0;
28812 wxEffects *arg1 = (wxEffects *) 0 ;
28813 wxColour *arg2 = 0 ;
28814 void *argp1 = 0 ;
28815 int res1 = 0 ;
28816 wxColour temp2 ;
28817 PyObject * obj0 = 0 ;
28818 PyObject * obj1 = 0 ;
28819 char * kwnames[] = {
28820 (char *) "self",(char *) "c", NULL
28821 };
28822
28823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28825 if (!SWIG_IsOK(res1)) {
28826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28827 }
28828 arg1 = reinterpret_cast< wxEffects * >(argp1);
28829 {
28830 arg2 = &temp2;
28831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28832 }
28833 {
28834 PyThreadState* __tstate = wxPyBeginAllowThreads();
28835 (arg1)->SetDarkShadow((wxColour const &)*arg2);
28836 wxPyEndAllowThreads(__tstate);
28837 if (PyErr_Occurred()) SWIG_fail;
28838 }
28839 resultobj = SWIG_Py_Void();
28840 return resultobj;
28841 fail:
28842 return NULL;
28843 }
28844
28845
28846 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28847 PyObject *resultobj = 0;
28848 wxEffects *arg1 = (wxEffects *) 0 ;
28849 wxColour *arg2 = 0 ;
28850 wxColour *arg3 = 0 ;
28851 wxColour *arg4 = 0 ;
28852 wxColour *arg5 = 0 ;
28853 wxColour *arg6 = 0 ;
28854 void *argp1 = 0 ;
28855 int res1 = 0 ;
28856 wxColour temp2 ;
28857 wxColour temp3 ;
28858 wxColour temp4 ;
28859 wxColour temp5 ;
28860 wxColour temp6 ;
28861 PyObject * obj0 = 0 ;
28862 PyObject * obj1 = 0 ;
28863 PyObject * obj2 = 0 ;
28864 PyObject * obj3 = 0 ;
28865 PyObject * obj4 = 0 ;
28866 PyObject * obj5 = 0 ;
28867 char * kwnames[] = {
28868 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
28869 };
28870
28871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28873 if (!SWIG_IsOK(res1)) {
28874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
28875 }
28876 arg1 = reinterpret_cast< wxEffects * >(argp1);
28877 {
28878 arg2 = &temp2;
28879 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28880 }
28881 {
28882 arg3 = &temp3;
28883 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28884 }
28885 {
28886 arg4 = &temp4;
28887 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28888 }
28889 {
28890 arg5 = &temp5;
28891 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
28892 }
28893 {
28894 arg6 = &temp6;
28895 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28896 }
28897 {
28898 PyThreadState* __tstate = wxPyBeginAllowThreads();
28899 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
28900 wxPyEndAllowThreads(__tstate);
28901 if (PyErr_Occurred()) SWIG_fail;
28902 }
28903 resultobj = SWIG_Py_Void();
28904 return resultobj;
28905 fail:
28906 return NULL;
28907 }
28908
28909
28910 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj = 0;
28912 wxEffects *arg1 = (wxEffects *) 0 ;
28913 wxDC *arg2 = 0 ;
28914 wxRect *arg3 = 0 ;
28915 int arg4 = (int) 1 ;
28916 void *argp1 = 0 ;
28917 int res1 = 0 ;
28918 void *argp2 = 0 ;
28919 int res2 = 0 ;
28920 wxRect temp3 ;
28921 int val4 ;
28922 int ecode4 = 0 ;
28923 PyObject * obj0 = 0 ;
28924 PyObject * obj1 = 0 ;
28925 PyObject * obj2 = 0 ;
28926 PyObject * obj3 = 0 ;
28927 char * kwnames[] = {
28928 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
28929 };
28930
28931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28933 if (!SWIG_IsOK(res1)) {
28934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
28935 }
28936 arg1 = reinterpret_cast< wxEffects * >(argp1);
28937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
28938 if (!SWIG_IsOK(res2)) {
28939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
28940 }
28941 if (!argp2) {
28942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
28943 }
28944 arg2 = reinterpret_cast< wxDC * >(argp2);
28945 {
28946 arg3 = &temp3;
28947 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28948 }
28949 if (obj3) {
28950 ecode4 = SWIG_AsVal_int(obj3, &val4);
28951 if (!SWIG_IsOK(ecode4)) {
28952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
28953 }
28954 arg4 = static_cast< int >(val4);
28955 }
28956 {
28957 PyThreadState* __tstate = wxPyBeginAllowThreads();
28958 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
28959 wxPyEndAllowThreads(__tstate);
28960 if (PyErr_Occurred()) SWIG_fail;
28961 }
28962 resultobj = SWIG_Py_Void();
28963 return resultobj;
28964 fail:
28965 return NULL;
28966 }
28967
28968
28969 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28970 PyObject *resultobj = 0;
28971 wxEffects *arg1 = (wxEffects *) 0 ;
28972 wxRect *arg2 = 0 ;
28973 wxDC *arg3 = 0 ;
28974 wxBitmap *arg4 = 0 ;
28975 bool result;
28976 void *argp1 = 0 ;
28977 int res1 = 0 ;
28978 wxRect temp2 ;
28979 void *argp3 = 0 ;
28980 int res3 = 0 ;
28981 void *argp4 = 0 ;
28982 int res4 = 0 ;
28983 PyObject * obj0 = 0 ;
28984 PyObject * obj1 = 0 ;
28985 PyObject * obj2 = 0 ;
28986 PyObject * obj3 = 0 ;
28987 char * kwnames[] = {
28988 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
28989 };
28990
28991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28993 if (!SWIG_IsOK(res1)) {
28994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
28995 }
28996 arg1 = reinterpret_cast< wxEffects * >(argp1);
28997 {
28998 arg2 = &temp2;
28999 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29000 }
29001 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29002 if (!SWIG_IsOK(res3)) {
29003 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29004 }
29005 if (!argp3) {
29006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29007 }
29008 arg3 = reinterpret_cast< wxDC * >(argp3);
29009 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29010 if (!SWIG_IsOK(res4)) {
29011 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29012 }
29013 if (!argp4) {
29014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29015 }
29016 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29017 {
29018 PyThreadState* __tstate = wxPyBeginAllowThreads();
29019 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29020 wxPyEndAllowThreads(__tstate);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 }
29023 {
29024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29025 }
29026 return resultobj;
29027 fail:
29028 return NULL;
29029 }
29030
29031
29032 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29033 PyObject *obj;
29034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29035 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29036 return SWIG_Py_Void();
29037 }
29038
29039 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29040 return SWIG_Python_InitShadowInstance(args);
29041 }
29042
29043 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29044 PyObject *resultobj = 0;
29045 int arg1 ;
29046 int arg2 ;
29047 bool arg3 ;
29048 wxSplitterRenderParams *result = 0 ;
29049 int val1 ;
29050 int ecode1 = 0 ;
29051 int val2 ;
29052 int ecode2 = 0 ;
29053 bool val3 ;
29054 int ecode3 = 0 ;
29055 PyObject * obj0 = 0 ;
29056 PyObject * obj1 = 0 ;
29057 PyObject * obj2 = 0 ;
29058 char * kwnames[] = {
29059 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29060 };
29061
29062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29063 ecode1 = SWIG_AsVal_int(obj0, &val1);
29064 if (!SWIG_IsOK(ecode1)) {
29065 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29066 }
29067 arg1 = static_cast< int >(val1);
29068 ecode2 = SWIG_AsVal_int(obj1, &val2);
29069 if (!SWIG_IsOK(ecode2)) {
29070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29071 }
29072 arg2 = static_cast< int >(val2);
29073 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29074 if (!SWIG_IsOK(ecode3)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29076 }
29077 arg3 = static_cast< bool >(val3);
29078 {
29079 PyThreadState* __tstate = wxPyBeginAllowThreads();
29080 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29081 wxPyEndAllowThreads(__tstate);
29082 if (PyErr_Occurred()) SWIG_fail;
29083 }
29084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29085 return resultobj;
29086 fail:
29087 return NULL;
29088 }
29089
29090
29091 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29092 PyObject *resultobj = 0;
29093 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29094 void *argp1 = 0 ;
29095 int res1 = 0 ;
29096 PyObject *swig_obj[1] ;
29097
29098 if (!args) SWIG_fail;
29099 swig_obj[0] = args;
29100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29101 if (!SWIG_IsOK(res1)) {
29102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29103 }
29104 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29105 {
29106 PyThreadState* __tstate = wxPyBeginAllowThreads();
29107 delete arg1;
29108
29109 wxPyEndAllowThreads(__tstate);
29110 if (PyErr_Occurred()) SWIG_fail;
29111 }
29112 resultobj = SWIG_Py_Void();
29113 return resultobj;
29114 fail:
29115 return NULL;
29116 }
29117
29118
29119 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29120 PyObject *resultobj = 0;
29121 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29122 int result;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 PyObject *swig_obj[1] ;
29126
29127 if (!args) SWIG_fail;
29128 swig_obj[0] = args;
29129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29130 if (!SWIG_IsOK(res1)) {
29131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29132 }
29133 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29134 result = (int)(int) ((arg1)->widthSash);
29135 resultobj = SWIG_From_int(static_cast< int >(result));
29136 return resultobj;
29137 fail:
29138 return NULL;
29139 }
29140
29141
29142 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29143 PyObject *resultobj = 0;
29144 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29145 int result;
29146 void *argp1 = 0 ;
29147 int res1 = 0 ;
29148 PyObject *swig_obj[1] ;
29149
29150 if (!args) SWIG_fail;
29151 swig_obj[0] = args;
29152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29153 if (!SWIG_IsOK(res1)) {
29154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29155 }
29156 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29157 result = (int)(int) ((arg1)->border);
29158 resultobj = SWIG_From_int(static_cast< int >(result));
29159 return resultobj;
29160 fail:
29161 return NULL;
29162 }
29163
29164
29165 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29166 PyObject *resultobj = 0;
29167 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29168 bool result;
29169 void *argp1 = 0 ;
29170 int res1 = 0 ;
29171 PyObject *swig_obj[1] ;
29172
29173 if (!args) SWIG_fail;
29174 swig_obj[0] = args;
29175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29176 if (!SWIG_IsOK(res1)) {
29177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29178 }
29179 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29180 result = (bool)(bool) ((arg1)->isHotSensitive);
29181 resultobj = SWIG_From_bool(static_cast< bool >(result));
29182 return resultobj;
29183 fail:
29184 return NULL;
29185 }
29186
29187
29188 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29189 PyObject *obj;
29190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29191 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29192 return SWIG_Py_Void();
29193 }
29194
29195 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29196 return SWIG_Python_InitShadowInstance(args);
29197 }
29198
29199 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29200 PyObject *resultobj = 0;
29201 wxHeaderButtonParams *result = 0 ;
29202
29203 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29204 {
29205 PyThreadState* __tstate = wxPyBeginAllowThreads();
29206 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29207 wxPyEndAllowThreads(__tstate);
29208 if (PyErr_Occurred()) SWIG_fail;
29209 }
29210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29211 return resultobj;
29212 fail:
29213 return NULL;
29214 }
29215
29216
29217 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29218 PyObject *resultobj = 0;
29219 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29220 void *argp1 = 0 ;
29221 int res1 = 0 ;
29222 PyObject *swig_obj[1] ;
29223
29224 if (!args) SWIG_fail;
29225 swig_obj[0] = args;
29226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29227 if (!SWIG_IsOK(res1)) {
29228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29229 }
29230 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29231 {
29232 PyThreadState* __tstate = wxPyBeginAllowThreads();
29233 delete arg1;
29234
29235 wxPyEndAllowThreads(__tstate);
29236 if (PyErr_Occurred()) SWIG_fail;
29237 }
29238 resultobj = SWIG_Py_Void();
29239 return resultobj;
29240 fail:
29241 return NULL;
29242 }
29243
29244
29245 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29246 PyObject *resultobj = 0;
29247 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29248 wxColour *arg2 = (wxColour *) 0 ;
29249 void *argp1 = 0 ;
29250 int res1 = 0 ;
29251 wxColour temp2 ;
29252 PyObject *swig_obj[2] ;
29253
29254 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29256 if (!SWIG_IsOK(res1)) {
29257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29258 }
29259 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29260 {
29261 arg2 = &temp2;
29262 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29263 }
29264 if (arg1) (arg1)->m_arrowColour = *arg2;
29265
29266 resultobj = SWIG_Py_Void();
29267 return resultobj;
29268 fail:
29269 return NULL;
29270 }
29271
29272
29273 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29274 PyObject *resultobj = 0;
29275 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29276 wxColour *result = 0 ;
29277 void *argp1 = 0 ;
29278 int res1 = 0 ;
29279 PyObject *swig_obj[1] ;
29280
29281 if (!args) SWIG_fail;
29282 swig_obj[0] = args;
29283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29284 if (!SWIG_IsOK(res1)) {
29285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29286 }
29287 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29288 result = (wxColour *)& ((arg1)->m_arrowColour);
29289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29290 return resultobj;
29291 fail:
29292 return NULL;
29293 }
29294
29295
29296 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29297 PyObject *resultobj = 0;
29298 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29299 wxColour *arg2 = (wxColour *) 0 ;
29300 void *argp1 = 0 ;
29301 int res1 = 0 ;
29302 wxColour temp2 ;
29303 PyObject *swig_obj[2] ;
29304
29305 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29307 if (!SWIG_IsOK(res1)) {
29308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29309 }
29310 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29311 {
29312 arg2 = &temp2;
29313 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29314 }
29315 if (arg1) (arg1)->m_selectionColour = *arg2;
29316
29317 resultobj = SWIG_Py_Void();
29318 return resultobj;
29319 fail:
29320 return NULL;
29321 }
29322
29323
29324 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29325 PyObject *resultobj = 0;
29326 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29327 wxColour *result = 0 ;
29328 void *argp1 = 0 ;
29329 int res1 = 0 ;
29330 PyObject *swig_obj[1] ;
29331
29332 if (!args) SWIG_fail;
29333 swig_obj[0] = args;
29334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29335 if (!SWIG_IsOK(res1)) {
29336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29337 }
29338 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29339 result = (wxColour *)& ((arg1)->m_selectionColour);
29340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29341 return resultobj;
29342 fail:
29343 return NULL;
29344 }
29345
29346
29347 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29348 PyObject *resultobj = 0;
29349 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29350 wxString *arg2 = (wxString *) 0 ;
29351 void *argp1 = 0 ;
29352 int res1 = 0 ;
29353 bool temp2 = false ;
29354 PyObject *swig_obj[2] ;
29355
29356 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29358 if (!SWIG_IsOK(res1)) {
29359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29360 }
29361 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29362 {
29363 arg2 = wxString_in_helper(swig_obj[1]);
29364 if (arg2 == NULL) SWIG_fail;
29365 temp2 = true;
29366 }
29367 if (arg1) (arg1)->m_labelText = *arg2;
29368
29369 resultobj = SWIG_Py_Void();
29370 {
29371 if (temp2)
29372 delete arg2;
29373 }
29374 return resultobj;
29375 fail:
29376 {
29377 if (temp2)
29378 delete arg2;
29379 }
29380 return NULL;
29381 }
29382
29383
29384 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29385 PyObject *resultobj = 0;
29386 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29387 wxString *result = 0 ;
29388 void *argp1 = 0 ;
29389 int res1 = 0 ;
29390 PyObject *swig_obj[1] ;
29391
29392 if (!args) SWIG_fail;
29393 swig_obj[0] = args;
29394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29395 if (!SWIG_IsOK(res1)) {
29396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29397 }
29398 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29399 result = (wxString *)& ((arg1)->m_labelText);
29400 {
29401 #if wxUSE_UNICODE
29402 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29403 #else
29404 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29405 #endif
29406 }
29407 return resultobj;
29408 fail:
29409 return NULL;
29410 }
29411
29412
29413 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29414 PyObject *resultobj = 0;
29415 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29416 wxFont *arg2 = (wxFont *) 0 ;
29417 void *argp1 = 0 ;
29418 int res1 = 0 ;
29419 void *argp2 = 0 ;
29420 int res2 = 0 ;
29421 PyObject *swig_obj[2] ;
29422
29423 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29425 if (!SWIG_IsOK(res1)) {
29426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29427 }
29428 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29429 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29430 if (!SWIG_IsOK(res2)) {
29431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29432 }
29433 arg2 = reinterpret_cast< wxFont * >(argp2);
29434 if (arg1) (arg1)->m_labelFont = *arg2;
29435
29436 resultobj = SWIG_Py_Void();
29437 return resultobj;
29438 fail:
29439 return NULL;
29440 }
29441
29442
29443 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29444 PyObject *resultobj = 0;
29445 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29446 wxFont *result = 0 ;
29447 void *argp1 = 0 ;
29448 int res1 = 0 ;
29449 PyObject *swig_obj[1] ;
29450
29451 if (!args) SWIG_fail;
29452 swig_obj[0] = args;
29453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29454 if (!SWIG_IsOK(res1)) {
29455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29456 }
29457 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29458 result = (wxFont *)& ((arg1)->m_labelFont);
29459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29460 return resultobj;
29461 fail:
29462 return NULL;
29463 }
29464
29465
29466 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29467 PyObject *resultobj = 0;
29468 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29469 wxColour *arg2 = (wxColour *) 0 ;
29470 void *argp1 = 0 ;
29471 int res1 = 0 ;
29472 wxColour temp2 ;
29473 PyObject *swig_obj[2] ;
29474
29475 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29477 if (!SWIG_IsOK(res1)) {
29478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29479 }
29480 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29481 {
29482 arg2 = &temp2;
29483 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29484 }
29485 if (arg1) (arg1)->m_labelColour = *arg2;
29486
29487 resultobj = SWIG_Py_Void();
29488 return resultobj;
29489 fail:
29490 return NULL;
29491 }
29492
29493
29494 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29495 PyObject *resultobj = 0;
29496 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29497 wxColour *result = 0 ;
29498 void *argp1 = 0 ;
29499 int res1 = 0 ;
29500 PyObject *swig_obj[1] ;
29501
29502 if (!args) SWIG_fail;
29503 swig_obj[0] = args;
29504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29505 if (!SWIG_IsOK(res1)) {
29506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29507 }
29508 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29509 result = (wxColour *)& ((arg1)->m_labelColour);
29510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29511 return resultobj;
29512 fail:
29513 return NULL;
29514 }
29515
29516
29517 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29518 PyObject *resultobj = 0;
29519 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29520 wxBitmap *arg2 = (wxBitmap *) 0 ;
29521 void *argp1 = 0 ;
29522 int res1 = 0 ;
29523 void *argp2 = 0 ;
29524 int res2 = 0 ;
29525 PyObject *swig_obj[2] ;
29526
29527 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29529 if (!SWIG_IsOK(res1)) {
29530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29531 }
29532 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29533 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29534 if (!SWIG_IsOK(res2)) {
29535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29536 }
29537 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29538 if (arg1) (arg1)->m_labelBitmap = *arg2;
29539
29540 resultobj = SWIG_Py_Void();
29541 return resultobj;
29542 fail:
29543 return NULL;
29544 }
29545
29546
29547 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29548 PyObject *resultobj = 0;
29549 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29550 wxBitmap *result = 0 ;
29551 void *argp1 = 0 ;
29552 int res1 = 0 ;
29553 PyObject *swig_obj[1] ;
29554
29555 if (!args) SWIG_fail;
29556 swig_obj[0] = args;
29557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29558 if (!SWIG_IsOK(res1)) {
29559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29560 }
29561 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29562 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29564 return resultobj;
29565 fail:
29566 return NULL;
29567 }
29568
29569
29570 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29571 PyObject *resultobj = 0;
29572 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29573 int arg2 ;
29574 void *argp1 = 0 ;
29575 int res1 = 0 ;
29576 int val2 ;
29577 int ecode2 = 0 ;
29578 PyObject *swig_obj[2] ;
29579
29580 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29582 if (!SWIG_IsOK(res1)) {
29583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29584 }
29585 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29586 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29587 if (!SWIG_IsOK(ecode2)) {
29588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29589 }
29590 arg2 = static_cast< int >(val2);
29591 if (arg1) (arg1)->m_labelAlignment = arg2;
29592
29593 resultobj = SWIG_Py_Void();
29594 return resultobj;
29595 fail:
29596 return NULL;
29597 }
29598
29599
29600 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29601 PyObject *resultobj = 0;
29602 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29603 int result;
29604 void *argp1 = 0 ;
29605 int res1 = 0 ;
29606 PyObject *swig_obj[1] ;
29607
29608 if (!args) SWIG_fail;
29609 swig_obj[0] = args;
29610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29611 if (!SWIG_IsOK(res1)) {
29612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29613 }
29614 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29615 result = (int) ((arg1)->m_labelAlignment);
29616 resultobj = SWIG_From_int(static_cast< int >(result));
29617 return resultobj;
29618 fail:
29619 return NULL;
29620 }
29621
29622
29623 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29624 PyObject *obj;
29625 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29626 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29627 return SWIG_Py_Void();
29628 }
29629
29630 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29631 return SWIG_Python_InitShadowInstance(args);
29632 }
29633
29634 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29635 PyObject *resultobj = 0;
29636 int arg1 ;
29637 int arg2 ;
29638 wxRendererVersion *result = 0 ;
29639 int val1 ;
29640 int ecode1 = 0 ;
29641 int val2 ;
29642 int ecode2 = 0 ;
29643 PyObject * obj0 = 0 ;
29644 PyObject * obj1 = 0 ;
29645 char * kwnames[] = {
29646 (char *) "version_",(char *) "age_", NULL
29647 };
29648
29649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29650 ecode1 = SWIG_AsVal_int(obj0, &val1);
29651 if (!SWIG_IsOK(ecode1)) {
29652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29653 }
29654 arg1 = static_cast< int >(val1);
29655 ecode2 = SWIG_AsVal_int(obj1, &val2);
29656 if (!SWIG_IsOK(ecode2)) {
29657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29658 }
29659 arg2 = static_cast< int >(val2);
29660 {
29661 PyThreadState* __tstate = wxPyBeginAllowThreads();
29662 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29663 wxPyEndAllowThreads(__tstate);
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29667 return resultobj;
29668 fail:
29669 return NULL;
29670 }
29671
29672
29673 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29674 PyObject *resultobj = 0;
29675 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29676 void *argp1 = 0 ;
29677 int res1 = 0 ;
29678 PyObject *swig_obj[1] ;
29679
29680 if (!args) SWIG_fail;
29681 swig_obj[0] = args;
29682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29683 if (!SWIG_IsOK(res1)) {
29684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29685 }
29686 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29687 {
29688 PyThreadState* __tstate = wxPyBeginAllowThreads();
29689 delete arg1;
29690
29691 wxPyEndAllowThreads(__tstate);
29692 if (PyErr_Occurred()) SWIG_fail;
29693 }
29694 resultobj = SWIG_Py_Void();
29695 return resultobj;
29696 fail:
29697 return NULL;
29698 }
29699
29700
29701 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29702 PyObject *resultobj = 0;
29703 wxRendererVersion *arg1 = 0 ;
29704 bool result;
29705 void *argp1 = 0 ;
29706 int res1 = 0 ;
29707 PyObject * obj0 = 0 ;
29708 char * kwnames[] = {
29709 (char *) "ver", NULL
29710 };
29711
29712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
29713 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
29714 if (!SWIG_IsOK(res1)) {
29715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29716 }
29717 if (!argp1) {
29718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29719 }
29720 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29721 {
29722 PyThreadState* __tstate = wxPyBeginAllowThreads();
29723 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
29724 wxPyEndAllowThreads(__tstate);
29725 if (PyErr_Occurred()) SWIG_fail;
29726 }
29727 {
29728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29729 }
29730 return resultobj;
29731 fail:
29732 return NULL;
29733 }
29734
29735
29736 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29737 PyObject *resultobj = 0;
29738 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29739 int result;
29740 void *argp1 = 0 ;
29741 int res1 = 0 ;
29742 PyObject *swig_obj[1] ;
29743
29744 if (!args) SWIG_fail;
29745 swig_obj[0] = args;
29746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29747 if (!SWIG_IsOK(res1)) {
29748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29749 }
29750 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29751 result = (int)(int) ((arg1)->version);
29752 resultobj = SWIG_From_int(static_cast< int >(result));
29753 return resultobj;
29754 fail:
29755 return NULL;
29756 }
29757
29758
29759 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29760 PyObject *resultobj = 0;
29761 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29762 int result;
29763 void *argp1 = 0 ;
29764 int res1 = 0 ;
29765 PyObject *swig_obj[1] ;
29766
29767 if (!args) SWIG_fail;
29768 swig_obj[0] = args;
29769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29770 if (!SWIG_IsOK(res1)) {
29771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29772 }
29773 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29774 result = (int)(int) ((arg1)->age);
29775 resultobj = SWIG_From_int(static_cast< int >(result));
29776 return resultobj;
29777 fail:
29778 return NULL;
29779 }
29780
29781
29782 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29783 PyObject *obj;
29784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29785 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
29786 return SWIG_Py_Void();
29787 }
29788
29789 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29790 return SWIG_Python_InitShadowInstance(args);
29791 }
29792
29793 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29794 PyObject *resultobj = 0;
29795 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29796 wxWindow *arg2 = (wxWindow *) 0 ;
29797 wxDC *arg3 = 0 ;
29798 wxRect *arg4 = 0 ;
29799 int arg5 = (int) 0 ;
29800 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29801 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 void *argp2 = 0 ;
29805 int res2 = 0 ;
29806 void *argp3 = 0 ;
29807 int res3 = 0 ;
29808 wxRect temp4 ;
29809 int val5 ;
29810 int ecode5 = 0 ;
29811 int val6 ;
29812 int ecode6 = 0 ;
29813 void *argp7 = 0 ;
29814 int res7 = 0 ;
29815 PyObject * obj0 = 0 ;
29816 PyObject * obj1 = 0 ;
29817 PyObject * obj2 = 0 ;
29818 PyObject * obj3 = 0 ;
29819 PyObject * obj4 = 0 ;
29820 PyObject * obj5 = 0 ;
29821 PyObject * obj6 = 0 ;
29822 char * kwnames[] = {
29823 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
29824 };
29825
29826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29828 if (!SWIG_IsOK(res1)) {
29829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29830 }
29831 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29833 if (!SWIG_IsOK(res2)) {
29834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
29835 }
29836 arg2 = reinterpret_cast< wxWindow * >(argp2);
29837 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29838 if (!SWIG_IsOK(res3)) {
29839 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29840 }
29841 if (!argp3) {
29842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29843 }
29844 arg3 = reinterpret_cast< wxDC * >(argp3);
29845 {
29846 arg4 = &temp4;
29847 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29848 }
29849 if (obj4) {
29850 ecode5 = SWIG_AsVal_int(obj4, &val5);
29851 if (!SWIG_IsOK(ecode5)) {
29852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
29853 }
29854 arg5 = static_cast< int >(val5);
29855 }
29856 if (obj5) {
29857 ecode6 = SWIG_AsVal_int(obj5, &val6);
29858 if (!SWIG_IsOK(ecode6)) {
29859 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29860 }
29861 arg6 = static_cast< wxHeaderSortIconType >(val6);
29862 }
29863 if (obj6) {
29864 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29865 if (!SWIG_IsOK(res7)) {
29866 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29867 }
29868 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29869 }
29870 {
29871 PyThreadState* __tstate = wxPyBeginAllowThreads();
29872 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
29873 wxPyEndAllowThreads(__tstate);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 resultobj = SWIG_Py_Void();
29877 return resultobj;
29878 fail:
29879 return NULL;
29880 }
29881
29882
29883 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29884 PyObject *resultobj = 0;
29885 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29886 wxWindow *arg2 = (wxWindow *) 0 ;
29887 wxDC *arg3 = 0 ;
29888 wxRect *arg4 = 0 ;
29889 int arg5 = (int) 0 ;
29890 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29891 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29892 void *argp1 = 0 ;
29893 int res1 = 0 ;
29894 void *argp2 = 0 ;
29895 int res2 = 0 ;
29896 void *argp3 = 0 ;
29897 int res3 = 0 ;
29898 wxRect temp4 ;
29899 int val5 ;
29900 int ecode5 = 0 ;
29901 int val6 ;
29902 int ecode6 = 0 ;
29903 void *argp7 = 0 ;
29904 int res7 = 0 ;
29905 PyObject * obj0 = 0 ;
29906 PyObject * obj1 = 0 ;
29907 PyObject * obj2 = 0 ;
29908 PyObject * obj3 = 0 ;
29909 PyObject * obj4 = 0 ;
29910 PyObject * obj5 = 0 ;
29911 PyObject * obj6 = 0 ;
29912 char * kwnames[] = {
29913 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
29914 };
29915
29916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29918 if (!SWIG_IsOK(res1)) {
29919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29920 }
29921 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29922 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29923 if (!SWIG_IsOK(res2)) {
29924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
29925 }
29926 arg2 = reinterpret_cast< wxWindow * >(argp2);
29927 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29928 if (!SWIG_IsOK(res3)) {
29929 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
29930 }
29931 if (!argp3) {
29932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
29933 }
29934 arg3 = reinterpret_cast< wxDC * >(argp3);
29935 {
29936 arg4 = &temp4;
29937 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29938 }
29939 if (obj4) {
29940 ecode5 = SWIG_AsVal_int(obj4, &val5);
29941 if (!SWIG_IsOK(ecode5)) {
29942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
29943 }
29944 arg5 = static_cast< int >(val5);
29945 }
29946 if (obj5) {
29947 ecode6 = SWIG_AsVal_int(obj5, &val6);
29948 if (!SWIG_IsOK(ecode6)) {
29949 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29950 }
29951 arg6 = static_cast< wxHeaderSortIconType >(val6);
29952 }
29953 if (obj6) {
29954 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29955 if (!SWIG_IsOK(res7)) {
29956 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29957 }
29958 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29959 }
29960 {
29961 PyThreadState* __tstate = wxPyBeginAllowThreads();
29962 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
29963 wxPyEndAllowThreads(__tstate);
29964 if (PyErr_Occurred()) SWIG_fail;
29965 }
29966 resultobj = SWIG_Py_Void();
29967 return resultobj;
29968 fail:
29969 return NULL;
29970 }
29971
29972
29973 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29974 PyObject *resultobj = 0;
29975 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29976 wxWindow *arg2 = (wxWindow *) 0 ;
29977 int result;
29978 void *argp1 = 0 ;
29979 int res1 = 0 ;
29980 void *argp2 = 0 ;
29981 int res2 = 0 ;
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 char * kwnames[] = {
29985 (char *) "self",(char *) "win", NULL
29986 };
29987
29988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
29989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29990 if (!SWIG_IsOK(res1)) {
29991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29992 }
29993 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29995 if (!SWIG_IsOK(res2)) {
29996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
29997 }
29998 arg2 = reinterpret_cast< wxWindow * >(argp2);
29999 {
30000 PyThreadState* __tstate = wxPyBeginAllowThreads();
30001 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30002 wxPyEndAllowThreads(__tstate);
30003 if (PyErr_Occurred()) SWIG_fail;
30004 }
30005 resultobj = SWIG_From_int(static_cast< int >(result));
30006 return resultobj;
30007 fail:
30008 return NULL;
30009 }
30010
30011
30012 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30013 PyObject *resultobj = 0;
30014 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30015 wxWindow *arg2 = (wxWindow *) 0 ;
30016 wxDC *arg3 = 0 ;
30017 wxRect *arg4 = 0 ;
30018 int arg5 = (int) 0 ;
30019 void *argp1 = 0 ;
30020 int res1 = 0 ;
30021 void *argp2 = 0 ;
30022 int res2 = 0 ;
30023 void *argp3 = 0 ;
30024 int res3 = 0 ;
30025 wxRect temp4 ;
30026 int val5 ;
30027 int ecode5 = 0 ;
30028 PyObject * obj0 = 0 ;
30029 PyObject * obj1 = 0 ;
30030 PyObject * obj2 = 0 ;
30031 PyObject * obj3 = 0 ;
30032 PyObject * obj4 = 0 ;
30033 char * kwnames[] = {
30034 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30035 };
30036
30037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30039 if (!SWIG_IsOK(res1)) {
30040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30041 }
30042 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30044 if (!SWIG_IsOK(res2)) {
30045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30046 }
30047 arg2 = reinterpret_cast< wxWindow * >(argp2);
30048 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30049 if (!SWIG_IsOK(res3)) {
30050 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30051 }
30052 if (!argp3) {
30053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30054 }
30055 arg3 = reinterpret_cast< wxDC * >(argp3);
30056 {
30057 arg4 = &temp4;
30058 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30059 }
30060 if (obj4) {
30061 ecode5 = SWIG_AsVal_int(obj4, &val5);
30062 if (!SWIG_IsOK(ecode5)) {
30063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30064 }
30065 arg5 = static_cast< int >(val5);
30066 }
30067 {
30068 PyThreadState* __tstate = wxPyBeginAllowThreads();
30069 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30070 wxPyEndAllowThreads(__tstate);
30071 if (PyErr_Occurred()) SWIG_fail;
30072 }
30073 resultobj = SWIG_Py_Void();
30074 return resultobj;
30075 fail:
30076 return NULL;
30077 }
30078
30079
30080 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30081 PyObject *resultobj = 0;
30082 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30083 wxWindow *arg2 = (wxWindow *) 0 ;
30084 wxDC *arg3 = 0 ;
30085 wxRect *arg4 = 0 ;
30086 int arg5 = (int) 0 ;
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 void *argp2 = 0 ;
30090 int res2 = 0 ;
30091 void *argp3 = 0 ;
30092 int res3 = 0 ;
30093 wxRect temp4 ;
30094 int val5 ;
30095 int ecode5 = 0 ;
30096 PyObject * obj0 = 0 ;
30097 PyObject * obj1 = 0 ;
30098 PyObject * obj2 = 0 ;
30099 PyObject * obj3 = 0 ;
30100 PyObject * obj4 = 0 ;
30101 char * kwnames[] = {
30102 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30103 };
30104
30105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30109 }
30110 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30111 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30112 if (!SWIG_IsOK(res2)) {
30113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30114 }
30115 arg2 = reinterpret_cast< wxWindow * >(argp2);
30116 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30117 if (!SWIG_IsOK(res3)) {
30118 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30119 }
30120 if (!argp3) {
30121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30122 }
30123 arg3 = reinterpret_cast< wxDC * >(argp3);
30124 {
30125 arg4 = &temp4;
30126 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30127 }
30128 if (obj4) {
30129 ecode5 = SWIG_AsVal_int(obj4, &val5);
30130 if (!SWIG_IsOK(ecode5)) {
30131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30132 }
30133 arg5 = static_cast< int >(val5);
30134 }
30135 {
30136 PyThreadState* __tstate = wxPyBeginAllowThreads();
30137 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30138 wxPyEndAllowThreads(__tstate);
30139 if (PyErr_Occurred()) SWIG_fail;
30140 }
30141 resultobj = SWIG_Py_Void();
30142 return resultobj;
30143 fail:
30144 return NULL;
30145 }
30146
30147
30148 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30149 PyObject *resultobj = 0;
30150 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30151 wxWindow *arg2 = (wxWindow *) 0 ;
30152 wxDC *arg3 = 0 ;
30153 wxSize *arg4 = 0 ;
30154 int arg5 ;
30155 wxOrientation arg6 ;
30156 int arg7 = (int) 0 ;
30157 void *argp1 = 0 ;
30158 int res1 = 0 ;
30159 void *argp2 = 0 ;
30160 int res2 = 0 ;
30161 void *argp3 = 0 ;
30162 int res3 = 0 ;
30163 wxSize temp4 ;
30164 int val5 ;
30165 int ecode5 = 0 ;
30166 int val6 ;
30167 int ecode6 = 0 ;
30168 int val7 ;
30169 int ecode7 = 0 ;
30170 PyObject * obj0 = 0 ;
30171 PyObject * obj1 = 0 ;
30172 PyObject * obj2 = 0 ;
30173 PyObject * obj3 = 0 ;
30174 PyObject * obj4 = 0 ;
30175 PyObject * obj5 = 0 ;
30176 PyObject * obj6 = 0 ;
30177 char * kwnames[] = {
30178 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30179 };
30180
30181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30183 if (!SWIG_IsOK(res1)) {
30184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30185 }
30186 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30187 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30188 if (!SWIG_IsOK(res2)) {
30189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30190 }
30191 arg2 = reinterpret_cast< wxWindow * >(argp2);
30192 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30193 if (!SWIG_IsOK(res3)) {
30194 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30195 }
30196 if (!argp3) {
30197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30198 }
30199 arg3 = reinterpret_cast< wxDC * >(argp3);
30200 {
30201 arg4 = &temp4;
30202 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30203 }
30204 ecode5 = SWIG_AsVal_int(obj4, &val5);
30205 if (!SWIG_IsOK(ecode5)) {
30206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30207 }
30208 arg5 = static_cast< int >(val5);
30209 ecode6 = SWIG_AsVal_int(obj5, &val6);
30210 if (!SWIG_IsOK(ecode6)) {
30211 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30212 }
30213 arg6 = static_cast< wxOrientation >(val6);
30214 if (obj6) {
30215 ecode7 = SWIG_AsVal_int(obj6, &val7);
30216 if (!SWIG_IsOK(ecode7)) {
30217 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30218 }
30219 arg7 = static_cast< int >(val7);
30220 }
30221 {
30222 PyThreadState* __tstate = wxPyBeginAllowThreads();
30223 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30224 wxPyEndAllowThreads(__tstate);
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 resultobj = SWIG_Py_Void();
30228 return resultobj;
30229 fail:
30230 return NULL;
30231 }
30232
30233
30234 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30235 PyObject *resultobj = 0;
30236 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30237 wxWindow *arg2 = (wxWindow *) 0 ;
30238 wxDC *arg3 = 0 ;
30239 wxRect *arg4 = 0 ;
30240 int arg5 = (int) 0 ;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 void *argp2 = 0 ;
30244 int res2 = 0 ;
30245 void *argp3 = 0 ;
30246 int res3 = 0 ;
30247 wxRect temp4 ;
30248 int val5 ;
30249 int ecode5 = 0 ;
30250 PyObject * obj0 = 0 ;
30251 PyObject * obj1 = 0 ;
30252 PyObject * obj2 = 0 ;
30253 PyObject * obj3 = 0 ;
30254 PyObject * obj4 = 0 ;
30255 char * kwnames[] = {
30256 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30257 };
30258
30259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30261 if (!SWIG_IsOK(res1)) {
30262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30263 }
30264 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30265 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30266 if (!SWIG_IsOK(res2)) {
30267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30268 }
30269 arg2 = reinterpret_cast< wxWindow * >(argp2);
30270 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30271 if (!SWIG_IsOK(res3)) {
30272 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30273 }
30274 if (!argp3) {
30275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30276 }
30277 arg3 = reinterpret_cast< wxDC * >(argp3);
30278 {
30279 arg4 = &temp4;
30280 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30281 }
30282 if (obj4) {
30283 ecode5 = SWIG_AsVal_int(obj4, &val5);
30284 if (!SWIG_IsOK(ecode5)) {
30285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30286 }
30287 arg5 = static_cast< int >(val5);
30288 }
30289 {
30290 PyThreadState* __tstate = wxPyBeginAllowThreads();
30291 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30292 wxPyEndAllowThreads(__tstate);
30293 if (PyErr_Occurred()) SWIG_fail;
30294 }
30295 resultobj = SWIG_Py_Void();
30296 return resultobj;
30297 fail:
30298 return NULL;
30299 }
30300
30301
30302 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30303 PyObject *resultobj = 0;
30304 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30305 wxWindow *arg2 = (wxWindow *) 0 ;
30306 wxDC *arg3 = 0 ;
30307 wxRect *arg4 = 0 ;
30308 int arg5 = (int) 0 ;
30309 void *argp1 = 0 ;
30310 int res1 = 0 ;
30311 void *argp2 = 0 ;
30312 int res2 = 0 ;
30313 void *argp3 = 0 ;
30314 int res3 = 0 ;
30315 wxRect temp4 ;
30316 int val5 ;
30317 int ecode5 = 0 ;
30318 PyObject * obj0 = 0 ;
30319 PyObject * obj1 = 0 ;
30320 PyObject * obj2 = 0 ;
30321 PyObject * obj3 = 0 ;
30322 PyObject * obj4 = 0 ;
30323 char * kwnames[] = {
30324 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30325 };
30326
30327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30329 if (!SWIG_IsOK(res1)) {
30330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30331 }
30332 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30333 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30334 if (!SWIG_IsOK(res2)) {
30335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30336 }
30337 arg2 = reinterpret_cast< wxWindow * >(argp2);
30338 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30339 if (!SWIG_IsOK(res3)) {
30340 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30341 }
30342 if (!argp3) {
30343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30344 }
30345 arg3 = reinterpret_cast< wxDC * >(argp3);
30346 {
30347 arg4 = &temp4;
30348 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30349 }
30350 if (obj4) {
30351 ecode5 = SWIG_AsVal_int(obj4, &val5);
30352 if (!SWIG_IsOK(ecode5)) {
30353 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30354 }
30355 arg5 = static_cast< int >(val5);
30356 }
30357 {
30358 PyThreadState* __tstate = wxPyBeginAllowThreads();
30359 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30360 wxPyEndAllowThreads(__tstate);
30361 if (PyErr_Occurred()) SWIG_fail;
30362 }
30363 resultobj = SWIG_Py_Void();
30364 return resultobj;
30365 fail:
30366 return NULL;
30367 }
30368
30369
30370 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30371 PyObject *resultobj = 0;
30372 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30373 wxWindow *arg2 = (wxWindow *) 0 ;
30374 wxDC *arg3 = 0 ;
30375 wxRect *arg4 = 0 ;
30376 int arg5 = (int) 0 ;
30377 void *argp1 = 0 ;
30378 int res1 = 0 ;
30379 void *argp2 = 0 ;
30380 int res2 = 0 ;
30381 void *argp3 = 0 ;
30382 int res3 = 0 ;
30383 wxRect temp4 ;
30384 int val5 ;
30385 int ecode5 = 0 ;
30386 PyObject * obj0 = 0 ;
30387 PyObject * obj1 = 0 ;
30388 PyObject * obj2 = 0 ;
30389 PyObject * obj3 = 0 ;
30390 PyObject * obj4 = 0 ;
30391 char * kwnames[] = {
30392 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30393 };
30394
30395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30397 if (!SWIG_IsOK(res1)) {
30398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30399 }
30400 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30402 if (!SWIG_IsOK(res2)) {
30403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30404 }
30405 arg2 = reinterpret_cast< wxWindow * >(argp2);
30406 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30407 if (!SWIG_IsOK(res3)) {
30408 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30409 }
30410 if (!argp3) {
30411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30412 }
30413 arg3 = reinterpret_cast< wxDC * >(argp3);
30414 {
30415 arg4 = &temp4;
30416 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30417 }
30418 if (obj4) {
30419 ecode5 = SWIG_AsVal_int(obj4, &val5);
30420 if (!SWIG_IsOK(ecode5)) {
30421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30422 }
30423 arg5 = static_cast< int >(val5);
30424 }
30425 {
30426 PyThreadState* __tstate = wxPyBeginAllowThreads();
30427 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30428 wxPyEndAllowThreads(__tstate);
30429 if (PyErr_Occurred()) SWIG_fail;
30430 }
30431 resultobj = SWIG_Py_Void();
30432 return resultobj;
30433 fail:
30434 return NULL;
30435 }
30436
30437
30438 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30439 PyObject *resultobj = 0;
30440 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30441 wxWindow *arg2 = (wxWindow *) 0 ;
30442 wxDC *arg3 = 0 ;
30443 wxRect *arg4 = 0 ;
30444 int arg5 = (int) 0 ;
30445 void *argp1 = 0 ;
30446 int res1 = 0 ;
30447 void *argp2 = 0 ;
30448 int res2 = 0 ;
30449 void *argp3 = 0 ;
30450 int res3 = 0 ;
30451 wxRect temp4 ;
30452 int val5 ;
30453 int ecode5 = 0 ;
30454 PyObject * obj0 = 0 ;
30455 PyObject * obj1 = 0 ;
30456 PyObject * obj2 = 0 ;
30457 PyObject * obj3 = 0 ;
30458 PyObject * obj4 = 0 ;
30459 char * kwnames[] = {
30460 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30461 };
30462
30463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30465 if (!SWIG_IsOK(res1)) {
30466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30467 }
30468 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30469 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30470 if (!SWIG_IsOK(res2)) {
30471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30472 }
30473 arg2 = reinterpret_cast< wxWindow * >(argp2);
30474 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30475 if (!SWIG_IsOK(res3)) {
30476 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30477 }
30478 if (!argp3) {
30479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30480 }
30481 arg3 = reinterpret_cast< wxDC * >(argp3);
30482 {
30483 arg4 = &temp4;
30484 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30485 }
30486 if (obj4) {
30487 ecode5 = SWIG_AsVal_int(obj4, &val5);
30488 if (!SWIG_IsOK(ecode5)) {
30489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30490 }
30491 arg5 = static_cast< int >(val5);
30492 }
30493 {
30494 PyThreadState* __tstate = wxPyBeginAllowThreads();
30495 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30496 wxPyEndAllowThreads(__tstate);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 resultobj = SWIG_Py_Void();
30500 return resultobj;
30501 fail:
30502 return NULL;
30503 }
30504
30505
30506 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30507 PyObject *resultobj = 0;
30508 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30509 wxWindow *arg2 = (wxWindow *) 0 ;
30510 wxDC *arg3 = 0 ;
30511 wxRect *arg4 = 0 ;
30512 int arg5 = (int) 0 ;
30513 void *argp1 = 0 ;
30514 int res1 = 0 ;
30515 void *argp2 = 0 ;
30516 int res2 = 0 ;
30517 void *argp3 = 0 ;
30518 int res3 = 0 ;
30519 wxRect temp4 ;
30520 int val5 ;
30521 int ecode5 = 0 ;
30522 PyObject * obj0 = 0 ;
30523 PyObject * obj1 = 0 ;
30524 PyObject * obj2 = 0 ;
30525 PyObject * obj3 = 0 ;
30526 PyObject * obj4 = 0 ;
30527 char * kwnames[] = {
30528 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30529 };
30530
30531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30533 if (!SWIG_IsOK(res1)) {
30534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30535 }
30536 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30537 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30538 if (!SWIG_IsOK(res2)) {
30539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30540 }
30541 arg2 = reinterpret_cast< wxWindow * >(argp2);
30542 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30543 if (!SWIG_IsOK(res3)) {
30544 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30545 }
30546 if (!argp3) {
30547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30548 }
30549 arg3 = reinterpret_cast< wxDC * >(argp3);
30550 {
30551 arg4 = &temp4;
30552 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30553 }
30554 if (obj4) {
30555 ecode5 = SWIG_AsVal_int(obj4, &val5);
30556 if (!SWIG_IsOK(ecode5)) {
30557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30558 }
30559 arg5 = static_cast< int >(val5);
30560 }
30561 {
30562 PyThreadState* __tstate = wxPyBeginAllowThreads();
30563 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
30564 wxPyEndAllowThreads(__tstate);
30565 if (PyErr_Occurred()) SWIG_fail;
30566 }
30567 resultobj = SWIG_Py_Void();
30568 return resultobj;
30569 fail:
30570 return NULL;
30571 }
30572
30573
30574 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30575 PyObject *resultobj = 0;
30576 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30577 wxWindow *arg2 = (wxWindow *) 0 ;
30578 SwigValueWrapper<wxSplitterRenderParams > result;
30579 void *argp1 = 0 ;
30580 int res1 = 0 ;
30581 void *argp2 = 0 ;
30582 int res2 = 0 ;
30583 PyObject * obj0 = 0 ;
30584 PyObject * obj1 = 0 ;
30585 char * kwnames[] = {
30586 (char *) "self",(char *) "win", NULL
30587 };
30588
30589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30591 if (!SWIG_IsOK(res1)) {
30592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30593 }
30594 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30596 if (!SWIG_IsOK(res2)) {
30597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30598 }
30599 arg2 = reinterpret_cast< wxWindow * >(argp2);
30600 {
30601 PyThreadState* __tstate = wxPyBeginAllowThreads();
30602 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30603 wxPyEndAllowThreads(__tstate);
30604 if (PyErr_Occurred()) SWIG_fail;
30605 }
30606 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30607 return resultobj;
30608 fail:
30609 return NULL;
30610 }
30611
30612
30613 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30614 PyObject *resultobj = 0;
30615 wxRendererNative *result = 0 ;
30616
30617 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30618 {
30619 if (!wxPyCheckForApp()) SWIG_fail;
30620 PyThreadState* __tstate = wxPyBeginAllowThreads();
30621 {
30622 wxRendererNative &_result_ref = wxRendererNative::Get();
30623 result = (wxRendererNative *) &_result_ref;
30624 }
30625 wxPyEndAllowThreads(__tstate);
30626 if (PyErr_Occurred()) SWIG_fail;
30627 }
30628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30629 return resultobj;
30630 fail:
30631 return NULL;
30632 }
30633
30634
30635 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30636 PyObject *resultobj = 0;
30637 wxRendererNative *result = 0 ;
30638
30639 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30640 {
30641 if (!wxPyCheckForApp()) SWIG_fail;
30642 PyThreadState* __tstate = wxPyBeginAllowThreads();
30643 {
30644 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30645 result = (wxRendererNative *) &_result_ref;
30646 }
30647 wxPyEndAllowThreads(__tstate);
30648 if (PyErr_Occurred()) SWIG_fail;
30649 }
30650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30651 return resultobj;
30652 fail:
30653 return NULL;
30654 }
30655
30656
30657 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30658 PyObject *resultobj = 0;
30659 wxRendererNative *result = 0 ;
30660
30661 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30662 {
30663 if (!wxPyCheckForApp()) SWIG_fail;
30664 PyThreadState* __tstate = wxPyBeginAllowThreads();
30665 {
30666 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30667 result = (wxRendererNative *) &_result_ref;
30668 }
30669 wxPyEndAllowThreads(__tstate);
30670 if (PyErr_Occurred()) SWIG_fail;
30671 }
30672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30673 return resultobj;
30674 fail:
30675 return NULL;
30676 }
30677
30678
30679 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30680 PyObject *resultobj = 0;
30681 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30682 wxRendererNative *result = 0 ;
30683 void *argp1 = 0 ;
30684 int res1 = 0 ;
30685 PyObject * obj0 = 0 ;
30686 char * kwnames[] = {
30687 (char *) "renderer", NULL
30688 };
30689
30690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30692 if (!SWIG_IsOK(res1)) {
30693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30694 }
30695 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30696 {
30697 if (!wxPyCheckForApp()) SWIG_fail;
30698 PyThreadState* __tstate = wxPyBeginAllowThreads();
30699 result = (wxRendererNative *)wxRendererNative::Set(arg1);
30700 wxPyEndAllowThreads(__tstate);
30701 if (PyErr_Occurred()) SWIG_fail;
30702 }
30703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30704 return resultobj;
30705 fail:
30706 return NULL;
30707 }
30708
30709
30710 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30711 PyObject *resultobj = 0;
30712 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30713 SwigValueWrapper<wxRendererVersion > result;
30714 void *argp1 = 0 ;
30715 int res1 = 0 ;
30716 PyObject *swig_obj[1] ;
30717
30718 if (!args) SWIG_fail;
30719 swig_obj[0] = args;
30720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30721 if (!SWIG_IsOK(res1)) {
30722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
30723 }
30724 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30725 {
30726 PyThreadState* __tstate = wxPyBeginAllowThreads();
30727 result = ((wxRendererNative const *)arg1)->GetVersion();
30728 wxPyEndAllowThreads(__tstate);
30729 if (PyErr_Occurred()) SWIG_fail;
30730 }
30731 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
30732 return resultobj;
30733 fail:
30734 return NULL;
30735 }
30736
30737
30738 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30739 PyObject *obj;
30740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30741 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
30742 return SWIG_Py_Void();
30743 }
30744
30745 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30746 PyObject *resultobj = 0;
30747 wxPseudoDC *result = 0 ;
30748
30749 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
30750 {
30751 PyThreadState* __tstate = wxPyBeginAllowThreads();
30752 result = (wxPseudoDC *)new wxPseudoDC();
30753 wxPyEndAllowThreads(__tstate);
30754 if (PyErr_Occurred()) SWIG_fail;
30755 }
30756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
30757 return resultobj;
30758 fail:
30759 return NULL;
30760 }
30761
30762
30763 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30764 PyObject *resultobj = 0;
30765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30766 void *argp1 = 0 ;
30767 int res1 = 0 ;
30768 PyObject *swig_obj[1] ;
30769
30770 if (!args) SWIG_fail;
30771 swig_obj[0] = args;
30772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30773 if (!SWIG_IsOK(res1)) {
30774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30775 }
30776 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30777 {
30778 PyThreadState* __tstate = wxPyBeginAllowThreads();
30779 (arg1)->BeginDrawing();
30780 wxPyEndAllowThreads(__tstate);
30781 if (PyErr_Occurred()) SWIG_fail;
30782 }
30783 resultobj = SWIG_Py_Void();
30784 return resultobj;
30785 fail:
30786 return NULL;
30787 }
30788
30789
30790 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30791 PyObject *resultobj = 0;
30792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 PyObject *swig_obj[1] ;
30796
30797 if (!args) SWIG_fail;
30798 swig_obj[0] = args;
30799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30800 if (!SWIG_IsOK(res1)) {
30801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30802 }
30803 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30804 {
30805 PyThreadState* __tstate = wxPyBeginAllowThreads();
30806 (arg1)->EndDrawing();
30807 wxPyEndAllowThreads(__tstate);
30808 if (PyErr_Occurred()) SWIG_fail;
30809 }
30810 resultobj = SWIG_Py_Void();
30811 return resultobj;
30812 fail:
30813 return NULL;
30814 }
30815
30816
30817 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30818 PyObject *resultobj = 0;
30819 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30820 void *argp1 = 0 ;
30821 int res1 = 0 ;
30822 PyObject *swig_obj[1] ;
30823
30824 if (!args) SWIG_fail;
30825 swig_obj[0] = args;
30826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
30827 if (!SWIG_IsOK(res1)) {
30828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30829 }
30830 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 delete arg1;
30834
30835 wxPyEndAllowThreads(__tstate);
30836 if (PyErr_Occurred()) SWIG_fail;
30837 }
30838 resultobj = SWIG_Py_Void();
30839 return resultobj;
30840 fail:
30841 return NULL;
30842 }
30843
30844
30845 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30846 PyObject *resultobj = 0;
30847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30848 void *argp1 = 0 ;
30849 int res1 = 0 ;
30850 PyObject *swig_obj[1] ;
30851
30852 if (!args) SWIG_fail;
30853 swig_obj[0] = args;
30854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30855 if (!SWIG_IsOK(res1)) {
30856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30857 }
30858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30859 {
30860 PyThreadState* __tstate = wxPyBeginAllowThreads();
30861 (arg1)->RemoveAll();
30862 wxPyEndAllowThreads(__tstate);
30863 if (PyErr_Occurred()) SWIG_fail;
30864 }
30865 resultobj = SWIG_Py_Void();
30866 return resultobj;
30867 fail:
30868 return NULL;
30869 }
30870
30871
30872 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30873 PyObject *resultobj = 0;
30874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30875 int result;
30876 void *argp1 = 0 ;
30877 int res1 = 0 ;
30878 PyObject *swig_obj[1] ;
30879
30880 if (!args) SWIG_fail;
30881 swig_obj[0] = args;
30882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30883 if (!SWIG_IsOK(res1)) {
30884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30885 }
30886 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 result = (int)(arg1)->GetLen();
30890 wxPyEndAllowThreads(__tstate);
30891 if (PyErr_Occurred()) SWIG_fail;
30892 }
30893 resultobj = SWIG_From_int(static_cast< int >(result));
30894 return resultobj;
30895 fail:
30896 return NULL;
30897 }
30898
30899
30900 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj = 0;
30902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30903 int arg2 ;
30904 void *argp1 = 0 ;
30905 int res1 = 0 ;
30906 int val2 ;
30907 int ecode2 = 0 ;
30908 PyObject * obj0 = 0 ;
30909 PyObject * obj1 = 0 ;
30910 char * kwnames[] = {
30911 (char *) "self",(char *) "id", NULL
30912 };
30913
30914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
30915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30916 if (!SWIG_IsOK(res1)) {
30917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30918 }
30919 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30920 ecode2 = SWIG_AsVal_int(obj1, &val2);
30921 if (!SWIG_IsOK(ecode2)) {
30922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
30923 }
30924 arg2 = static_cast< int >(val2);
30925 {
30926 PyThreadState* __tstate = wxPyBeginAllowThreads();
30927 (arg1)->SetId(arg2);
30928 wxPyEndAllowThreads(__tstate);
30929 if (PyErr_Occurred()) SWIG_fail;
30930 }
30931 resultobj = SWIG_Py_Void();
30932 return resultobj;
30933 fail:
30934 return NULL;
30935 }
30936
30937
30938 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30939 PyObject *resultobj = 0;
30940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30941 int arg2 ;
30942 void *argp1 = 0 ;
30943 int res1 = 0 ;
30944 int val2 ;
30945 int ecode2 = 0 ;
30946 PyObject * obj0 = 0 ;
30947 PyObject * obj1 = 0 ;
30948 char * kwnames[] = {
30949 (char *) "self",(char *) "id", NULL
30950 };
30951
30952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
30953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30954 if (!SWIG_IsOK(res1)) {
30955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30956 }
30957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30958 ecode2 = SWIG_AsVal_int(obj1, &val2);
30959 if (!SWIG_IsOK(ecode2)) {
30960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
30961 }
30962 arg2 = static_cast< int >(val2);
30963 {
30964 PyThreadState* __tstate = wxPyBeginAllowThreads();
30965 (arg1)->ClearId(arg2);
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 resultobj = SWIG_Py_Void();
30970 return resultobj;
30971 fail:
30972 return NULL;
30973 }
30974
30975
30976 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30977 PyObject *resultobj = 0;
30978 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30979 int arg2 ;
30980 void *argp1 = 0 ;
30981 int res1 = 0 ;
30982 int val2 ;
30983 int ecode2 = 0 ;
30984 PyObject * obj0 = 0 ;
30985 PyObject * obj1 = 0 ;
30986 char * kwnames[] = {
30987 (char *) "self",(char *) "id", NULL
30988 };
30989
30990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
30991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30992 if (!SWIG_IsOK(res1)) {
30993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30994 }
30995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30996 ecode2 = SWIG_AsVal_int(obj1, &val2);
30997 if (!SWIG_IsOK(ecode2)) {
30998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
30999 }
31000 arg2 = static_cast< int >(val2);
31001 {
31002 PyThreadState* __tstate = wxPyBeginAllowThreads();
31003 (arg1)->RemoveId(arg2);
31004 wxPyEndAllowThreads(__tstate);
31005 if (PyErr_Occurred()) SWIG_fail;
31006 }
31007 resultobj = SWIG_Py_Void();
31008 return resultobj;
31009 fail:
31010 return NULL;
31011 }
31012
31013
31014 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31015 PyObject *resultobj = 0;
31016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31017 int arg2 ;
31018 int arg3 ;
31019 int arg4 ;
31020 void *argp1 = 0 ;
31021 int res1 = 0 ;
31022 int val2 ;
31023 int ecode2 = 0 ;
31024 int val3 ;
31025 int ecode3 = 0 ;
31026 int val4 ;
31027 int ecode4 = 0 ;
31028 PyObject * obj0 = 0 ;
31029 PyObject * obj1 = 0 ;
31030 PyObject * obj2 = 0 ;
31031 PyObject * obj3 = 0 ;
31032 char * kwnames[] = {
31033 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31034 };
31035
31036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31038 if (!SWIG_IsOK(res1)) {
31039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31040 }
31041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31042 ecode2 = SWIG_AsVal_int(obj1, &val2);
31043 if (!SWIG_IsOK(ecode2)) {
31044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31045 }
31046 arg2 = static_cast< int >(val2);
31047 ecode3 = SWIG_AsVal_int(obj2, &val3);
31048 if (!SWIG_IsOK(ecode3)) {
31049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31050 }
31051 arg3 = static_cast< int >(val3);
31052 ecode4 = SWIG_AsVal_int(obj3, &val4);
31053 if (!SWIG_IsOK(ecode4)) {
31054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31055 }
31056 arg4 = static_cast< int >(val4);
31057 {
31058 PyThreadState* __tstate = wxPyBeginAllowThreads();
31059 (arg1)->TranslateId(arg2,arg3,arg4);
31060 wxPyEndAllowThreads(__tstate);
31061 if (PyErr_Occurred()) SWIG_fail;
31062 }
31063 resultobj = SWIG_Py_Void();
31064 return resultobj;
31065 fail:
31066 return NULL;
31067 }
31068
31069
31070 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31071 PyObject *resultobj = 0;
31072 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31073 int arg2 ;
31074 bool arg3 = (bool) true ;
31075 void *argp1 = 0 ;
31076 int res1 = 0 ;
31077 int val2 ;
31078 int ecode2 = 0 ;
31079 bool val3 ;
31080 int ecode3 = 0 ;
31081 PyObject * obj0 = 0 ;
31082 PyObject * obj1 = 0 ;
31083 PyObject * obj2 = 0 ;
31084 char * kwnames[] = {
31085 (char *) "self",(char *) "id",(char *) "greyout", NULL
31086 };
31087
31088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31090 if (!SWIG_IsOK(res1)) {
31091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31092 }
31093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31094 ecode2 = SWIG_AsVal_int(obj1, &val2);
31095 if (!SWIG_IsOK(ecode2)) {
31096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31097 }
31098 arg2 = static_cast< int >(val2);
31099 if (obj2) {
31100 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31101 if (!SWIG_IsOK(ecode3)) {
31102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31103 }
31104 arg3 = static_cast< bool >(val3);
31105 }
31106 {
31107 PyThreadState* __tstate = wxPyBeginAllowThreads();
31108 (arg1)->SetIdGreyedOut(arg2,arg3);
31109 wxPyEndAllowThreads(__tstate);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 }
31112 resultobj = SWIG_Py_Void();
31113 return resultobj;
31114 fail:
31115 return NULL;
31116 }
31117
31118
31119 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31120 PyObject *resultobj = 0;
31121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31122 int arg2 ;
31123 bool result;
31124 void *argp1 = 0 ;
31125 int res1 = 0 ;
31126 int val2 ;
31127 int ecode2 = 0 ;
31128 PyObject * obj0 = 0 ;
31129 PyObject * obj1 = 0 ;
31130 char * kwnames[] = {
31131 (char *) "self",(char *) "id", NULL
31132 };
31133
31134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31136 if (!SWIG_IsOK(res1)) {
31137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31138 }
31139 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31140 ecode2 = SWIG_AsVal_int(obj1, &val2);
31141 if (!SWIG_IsOK(ecode2)) {
31142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31143 }
31144 arg2 = static_cast< int >(val2);
31145 {
31146 PyThreadState* __tstate = wxPyBeginAllowThreads();
31147 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31148 wxPyEndAllowThreads(__tstate);
31149 if (PyErr_Occurred()) SWIG_fail;
31150 }
31151 {
31152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31153 }
31154 return resultobj;
31155 fail:
31156 return NULL;
31157 }
31158
31159
31160 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31161 PyObject *resultobj = 0;
31162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31163 int arg2 ;
31164 int arg3 ;
31165 int arg4 = (int) 1 ;
31166 wxColor const &arg5_defvalue = *wxWHITE ;
31167 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31168 PyObject *result = 0 ;
31169 void *argp1 = 0 ;
31170 int res1 = 0 ;
31171 int val2 ;
31172 int ecode2 = 0 ;
31173 int val3 ;
31174 int ecode3 = 0 ;
31175 int val4 ;
31176 int ecode4 = 0 ;
31177 void *argp5 = 0 ;
31178 int res5 = 0 ;
31179 PyObject * obj0 = 0 ;
31180 PyObject * obj1 = 0 ;
31181 PyObject * obj2 = 0 ;
31182 PyObject * obj3 = 0 ;
31183 PyObject * obj4 = 0 ;
31184 char * kwnames[] = {
31185 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31186 };
31187
31188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31190 if (!SWIG_IsOK(res1)) {
31191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31192 }
31193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31194 ecode2 = SWIG_AsVal_int(obj1, &val2);
31195 if (!SWIG_IsOK(ecode2)) {
31196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31197 }
31198 arg2 = static_cast< int >(val2);
31199 ecode3 = SWIG_AsVal_int(obj2, &val3);
31200 if (!SWIG_IsOK(ecode3)) {
31201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31202 }
31203 arg3 = static_cast< int >(val3);
31204 if (obj3) {
31205 ecode4 = SWIG_AsVal_int(obj3, &val4);
31206 if (!SWIG_IsOK(ecode4)) {
31207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31208 }
31209 arg4 = static_cast< int >(val4);
31210 }
31211 if (obj4) {
31212 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31213 if (!SWIG_IsOK(res5)) {
31214 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31215 }
31216 if (!argp5) {
31217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31218 }
31219 arg5 = reinterpret_cast< wxColor * >(argp5);
31220 }
31221 {
31222 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31223 if (PyErr_Occurred()) SWIG_fail;
31224 }
31225 resultobj = result;
31226 return resultobj;
31227 fail:
31228 return NULL;
31229 }
31230
31231
31232 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31233 PyObject *resultobj = 0;
31234 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31235 int arg2 ;
31236 int arg3 ;
31237 PyObject *result = 0 ;
31238 void *argp1 = 0 ;
31239 int res1 = 0 ;
31240 int val2 ;
31241 int ecode2 = 0 ;
31242 int val3 ;
31243 int ecode3 = 0 ;
31244 PyObject * obj0 = 0 ;
31245 PyObject * obj1 = 0 ;
31246 PyObject * obj2 = 0 ;
31247 char * kwnames[] = {
31248 (char *) "self",(char *) "x",(char *) "y", NULL
31249 };
31250
31251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31253 if (!SWIG_IsOK(res1)) {
31254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31255 }
31256 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31257 ecode2 = SWIG_AsVal_int(obj1, &val2);
31258 if (!SWIG_IsOK(ecode2)) {
31259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31260 }
31261 arg2 = static_cast< int >(val2);
31262 ecode3 = SWIG_AsVal_int(obj2, &val3);
31263 if (!SWIG_IsOK(ecode3)) {
31264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31265 }
31266 arg3 = static_cast< int >(val3);
31267 {
31268 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 resultobj = result;
31272 return resultobj;
31273 fail:
31274 return NULL;
31275 }
31276
31277
31278 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31279 PyObject *resultobj = 0;
31280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31281 int arg2 ;
31282 wxDC *arg3 = (wxDC *) 0 ;
31283 void *argp1 = 0 ;
31284 int res1 = 0 ;
31285 int val2 ;
31286 int ecode2 = 0 ;
31287 void *argp3 = 0 ;
31288 int res3 = 0 ;
31289 PyObject * obj0 = 0 ;
31290 PyObject * obj1 = 0 ;
31291 PyObject * obj2 = 0 ;
31292 char * kwnames[] = {
31293 (char *) "self",(char *) "id",(char *) "dc", NULL
31294 };
31295
31296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31298 if (!SWIG_IsOK(res1)) {
31299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31300 }
31301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31302 ecode2 = SWIG_AsVal_int(obj1, &val2);
31303 if (!SWIG_IsOK(ecode2)) {
31304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31305 }
31306 arg2 = static_cast< int >(val2);
31307 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31308 if (!SWIG_IsOK(res3)) {
31309 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31310 }
31311 arg3 = reinterpret_cast< wxDC * >(argp3);
31312 {
31313 PyThreadState* __tstate = wxPyBeginAllowThreads();
31314 (arg1)->DrawIdToDC(arg2,arg3);
31315 wxPyEndAllowThreads(__tstate);
31316 if (PyErr_Occurred()) SWIG_fail;
31317 }
31318 resultobj = SWIG_Py_Void();
31319 return resultobj;
31320 fail:
31321 return NULL;
31322 }
31323
31324
31325 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31326 PyObject *resultobj = 0;
31327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31328 int arg2 ;
31329 wxRect *arg3 = 0 ;
31330 void *argp1 = 0 ;
31331 int res1 = 0 ;
31332 int val2 ;
31333 int ecode2 = 0 ;
31334 wxRect temp3 ;
31335 PyObject * obj0 = 0 ;
31336 PyObject * obj1 = 0 ;
31337 PyObject * obj2 = 0 ;
31338 char * kwnames[] = {
31339 (char *) "self",(char *) "id",(char *) "rect", NULL
31340 };
31341
31342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31344 if (!SWIG_IsOK(res1)) {
31345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31346 }
31347 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31348 ecode2 = SWIG_AsVal_int(obj1, &val2);
31349 if (!SWIG_IsOK(ecode2)) {
31350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31351 }
31352 arg2 = static_cast< int >(val2);
31353 {
31354 arg3 = &temp3;
31355 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31356 }
31357 {
31358 PyThreadState* __tstate = wxPyBeginAllowThreads();
31359 (arg1)->SetIdBounds(arg2,*arg3);
31360 wxPyEndAllowThreads(__tstate);
31361 if (PyErr_Occurred()) SWIG_fail;
31362 }
31363 resultobj = SWIG_Py_Void();
31364 return resultobj;
31365 fail:
31366 return NULL;
31367 }
31368
31369
31370 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31371 PyObject *resultobj = 0;
31372 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31373 int arg2 ;
31374 wxRect result;
31375 void *argp1 = 0 ;
31376 int res1 = 0 ;
31377 int val2 ;
31378 int ecode2 = 0 ;
31379 PyObject * obj0 = 0 ;
31380 PyObject * obj1 = 0 ;
31381 char * kwnames[] = {
31382 (char *) "self",(char *) "id", NULL
31383 };
31384
31385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31387 if (!SWIG_IsOK(res1)) {
31388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31389 }
31390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31391 ecode2 = SWIG_AsVal_int(obj1, &val2);
31392 if (!SWIG_IsOK(ecode2)) {
31393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31394 }
31395 arg2 = static_cast< int >(val2);
31396 {
31397 PyThreadState* __tstate = wxPyBeginAllowThreads();
31398 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31399 wxPyEndAllowThreads(__tstate);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 }
31402 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31403 return resultobj;
31404 fail:
31405 return NULL;
31406 }
31407
31408
31409 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31410 PyObject *resultobj = 0;
31411 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31412 wxDC *arg2 = (wxDC *) 0 ;
31413 wxRect *arg3 = 0 ;
31414 void *argp1 = 0 ;
31415 int res1 = 0 ;
31416 void *argp2 = 0 ;
31417 int res2 = 0 ;
31418 wxRect temp3 ;
31419 PyObject * obj0 = 0 ;
31420 PyObject * obj1 = 0 ;
31421 PyObject * obj2 = 0 ;
31422 char * kwnames[] = {
31423 (char *) "self",(char *) "dc",(char *) "rect", NULL
31424 };
31425
31426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31428 if (!SWIG_IsOK(res1)) {
31429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31430 }
31431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31432 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31433 if (!SWIG_IsOK(res2)) {
31434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31435 }
31436 arg2 = reinterpret_cast< wxDC * >(argp2);
31437 {
31438 arg3 = &temp3;
31439 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31440 }
31441 {
31442 PyThreadState* __tstate = wxPyBeginAllowThreads();
31443 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31444 wxPyEndAllowThreads(__tstate);
31445 if (PyErr_Occurred()) SWIG_fail;
31446 }
31447 resultobj = SWIG_Py_Void();
31448 return resultobj;
31449 fail:
31450 return NULL;
31451 }
31452
31453
31454 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31455 PyObject *resultobj = 0;
31456 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31457 wxDC *arg2 = (wxDC *) 0 ;
31458 wxRegion *arg3 = 0 ;
31459 void *argp1 = 0 ;
31460 int res1 = 0 ;
31461 void *argp2 = 0 ;
31462 int res2 = 0 ;
31463 void *argp3 = 0 ;
31464 int res3 = 0 ;
31465 PyObject * obj0 = 0 ;
31466 PyObject * obj1 = 0 ;
31467 PyObject * obj2 = 0 ;
31468 char * kwnames[] = {
31469 (char *) "self",(char *) "dc",(char *) "region", NULL
31470 };
31471
31472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31474 if (!SWIG_IsOK(res1)) {
31475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31476 }
31477 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31478 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31479 if (!SWIG_IsOK(res2)) {
31480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31481 }
31482 arg2 = reinterpret_cast< wxDC * >(argp2);
31483 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31484 if (!SWIG_IsOK(res3)) {
31485 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31486 }
31487 if (!argp3) {
31488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31489 }
31490 arg3 = reinterpret_cast< wxRegion * >(argp3);
31491 {
31492 PyThreadState* __tstate = wxPyBeginAllowThreads();
31493 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31494 wxPyEndAllowThreads(__tstate);
31495 if (PyErr_Occurred()) SWIG_fail;
31496 }
31497 resultobj = SWIG_Py_Void();
31498 return resultobj;
31499 fail:
31500 return NULL;
31501 }
31502
31503
31504 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31505 PyObject *resultobj = 0;
31506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31507 wxDC *arg2 = (wxDC *) 0 ;
31508 void *argp1 = 0 ;
31509 int res1 = 0 ;
31510 void *argp2 = 0 ;
31511 int res2 = 0 ;
31512 PyObject * obj0 = 0 ;
31513 PyObject * obj1 = 0 ;
31514 char * kwnames[] = {
31515 (char *) "self",(char *) "dc", NULL
31516 };
31517
31518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31520 if (!SWIG_IsOK(res1)) {
31521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31522 }
31523 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31525 if (!SWIG_IsOK(res2)) {
31526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31527 }
31528 arg2 = reinterpret_cast< wxDC * >(argp2);
31529 {
31530 PyThreadState* __tstate = wxPyBeginAllowThreads();
31531 (arg1)->DrawToDC(arg2);
31532 wxPyEndAllowThreads(__tstate);
31533 if (PyErr_Occurred()) SWIG_fail;
31534 }
31535 resultobj = SWIG_Py_Void();
31536 return resultobj;
31537 fail:
31538 return NULL;
31539 }
31540
31541
31542 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31543 PyObject *resultobj = 0;
31544 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31545 int arg2 ;
31546 int arg3 ;
31547 wxColour *arg4 = 0 ;
31548 int arg5 = (int) wxFLOOD_SURFACE ;
31549 void *argp1 = 0 ;
31550 int res1 = 0 ;
31551 int val2 ;
31552 int ecode2 = 0 ;
31553 int val3 ;
31554 int ecode3 = 0 ;
31555 wxColour temp4 ;
31556 int val5 ;
31557 int ecode5 = 0 ;
31558 PyObject * obj0 = 0 ;
31559 PyObject * obj1 = 0 ;
31560 PyObject * obj2 = 0 ;
31561 PyObject * obj3 = 0 ;
31562 PyObject * obj4 = 0 ;
31563 char * kwnames[] = {
31564 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31565 };
31566
31567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31569 if (!SWIG_IsOK(res1)) {
31570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31571 }
31572 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31573 ecode2 = SWIG_AsVal_int(obj1, &val2);
31574 if (!SWIG_IsOK(ecode2)) {
31575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31576 }
31577 arg2 = static_cast< int >(val2);
31578 ecode3 = SWIG_AsVal_int(obj2, &val3);
31579 if (!SWIG_IsOK(ecode3)) {
31580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31581 }
31582 arg3 = static_cast< int >(val3);
31583 {
31584 arg4 = &temp4;
31585 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31586 }
31587 if (obj4) {
31588 ecode5 = SWIG_AsVal_int(obj4, &val5);
31589 if (!SWIG_IsOK(ecode5)) {
31590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31591 }
31592 arg5 = static_cast< int >(val5);
31593 }
31594 {
31595 PyThreadState* __tstate = wxPyBeginAllowThreads();
31596 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31597 wxPyEndAllowThreads(__tstate);
31598 if (PyErr_Occurred()) SWIG_fail;
31599 }
31600 resultobj = SWIG_Py_Void();
31601 return resultobj;
31602 fail:
31603 return NULL;
31604 }
31605
31606
31607 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31608 PyObject *resultobj = 0;
31609 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31610 wxPoint *arg2 = 0 ;
31611 wxColour *arg3 = 0 ;
31612 int arg4 = (int) wxFLOOD_SURFACE ;
31613 void *argp1 = 0 ;
31614 int res1 = 0 ;
31615 wxPoint temp2 ;
31616 wxColour temp3 ;
31617 int val4 ;
31618 int ecode4 = 0 ;
31619 PyObject * obj0 = 0 ;
31620 PyObject * obj1 = 0 ;
31621 PyObject * obj2 = 0 ;
31622 PyObject * obj3 = 0 ;
31623 char * kwnames[] = {
31624 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31625 };
31626
31627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31629 if (!SWIG_IsOK(res1)) {
31630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31631 }
31632 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31633 {
31634 arg2 = &temp2;
31635 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31636 }
31637 {
31638 arg3 = &temp3;
31639 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31640 }
31641 if (obj3) {
31642 ecode4 = SWIG_AsVal_int(obj3, &val4);
31643 if (!SWIG_IsOK(ecode4)) {
31644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31645 }
31646 arg4 = static_cast< int >(val4);
31647 }
31648 {
31649 PyThreadState* __tstate = wxPyBeginAllowThreads();
31650 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31651 wxPyEndAllowThreads(__tstate);
31652 if (PyErr_Occurred()) SWIG_fail;
31653 }
31654 resultobj = SWIG_Py_Void();
31655 return resultobj;
31656 fail:
31657 return NULL;
31658 }
31659
31660
31661 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31662 PyObject *resultobj = 0;
31663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31664 int arg2 ;
31665 int arg3 ;
31666 int arg4 ;
31667 int arg5 ;
31668 void *argp1 = 0 ;
31669 int res1 = 0 ;
31670 int val2 ;
31671 int ecode2 = 0 ;
31672 int val3 ;
31673 int ecode3 = 0 ;
31674 int val4 ;
31675 int ecode4 = 0 ;
31676 int val5 ;
31677 int ecode5 = 0 ;
31678 PyObject * obj0 = 0 ;
31679 PyObject * obj1 = 0 ;
31680 PyObject * obj2 = 0 ;
31681 PyObject * obj3 = 0 ;
31682 PyObject * obj4 = 0 ;
31683 char * kwnames[] = {
31684 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31685 };
31686
31687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31689 if (!SWIG_IsOK(res1)) {
31690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31691 }
31692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31693 ecode2 = SWIG_AsVal_int(obj1, &val2);
31694 if (!SWIG_IsOK(ecode2)) {
31695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
31696 }
31697 arg2 = static_cast< int >(val2);
31698 ecode3 = SWIG_AsVal_int(obj2, &val3);
31699 if (!SWIG_IsOK(ecode3)) {
31700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
31701 }
31702 arg3 = static_cast< int >(val3);
31703 ecode4 = SWIG_AsVal_int(obj3, &val4);
31704 if (!SWIG_IsOK(ecode4)) {
31705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
31706 }
31707 arg4 = static_cast< int >(val4);
31708 ecode5 = SWIG_AsVal_int(obj4, &val5);
31709 if (!SWIG_IsOK(ecode5)) {
31710 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
31711 }
31712 arg5 = static_cast< int >(val5);
31713 {
31714 PyThreadState* __tstate = wxPyBeginAllowThreads();
31715 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
31716 wxPyEndAllowThreads(__tstate);
31717 if (PyErr_Occurred()) SWIG_fail;
31718 }
31719 resultobj = SWIG_Py_Void();
31720 return resultobj;
31721 fail:
31722 return NULL;
31723 }
31724
31725
31726 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31727 PyObject *resultobj = 0;
31728 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31729 wxPoint *arg2 = 0 ;
31730 wxPoint *arg3 = 0 ;
31731 void *argp1 = 0 ;
31732 int res1 = 0 ;
31733 wxPoint temp2 ;
31734 wxPoint temp3 ;
31735 PyObject * obj0 = 0 ;
31736 PyObject * obj1 = 0 ;
31737 PyObject * obj2 = 0 ;
31738 char * kwnames[] = {
31739 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
31740 };
31741
31742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31744 if (!SWIG_IsOK(res1)) {
31745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31746 }
31747 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31748 {
31749 arg2 = &temp2;
31750 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31751 }
31752 {
31753 arg3 = &temp3;
31754 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31755 }
31756 {
31757 PyThreadState* __tstate = wxPyBeginAllowThreads();
31758 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
31759 wxPyEndAllowThreads(__tstate);
31760 if (PyErr_Occurred()) SWIG_fail;
31761 }
31762 resultobj = SWIG_Py_Void();
31763 return resultobj;
31764 fail:
31765 return NULL;
31766 }
31767
31768
31769 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31770 PyObject *resultobj = 0;
31771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31772 int arg2 ;
31773 int arg3 ;
31774 void *argp1 = 0 ;
31775 int res1 = 0 ;
31776 int val2 ;
31777 int ecode2 = 0 ;
31778 int val3 ;
31779 int ecode3 = 0 ;
31780 PyObject * obj0 = 0 ;
31781 PyObject * obj1 = 0 ;
31782 PyObject * obj2 = 0 ;
31783 char * kwnames[] = {
31784 (char *) "self",(char *) "x",(char *) "y", NULL
31785 };
31786
31787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31789 if (!SWIG_IsOK(res1)) {
31790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31791 }
31792 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31793 ecode2 = SWIG_AsVal_int(obj1, &val2);
31794 if (!SWIG_IsOK(ecode2)) {
31795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
31796 }
31797 arg2 = static_cast< int >(val2);
31798 ecode3 = SWIG_AsVal_int(obj2, &val3);
31799 if (!SWIG_IsOK(ecode3)) {
31800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
31801 }
31802 arg3 = static_cast< int >(val3);
31803 {
31804 PyThreadState* __tstate = wxPyBeginAllowThreads();
31805 (arg1)->CrossHair(arg2,arg3);
31806 wxPyEndAllowThreads(__tstate);
31807 if (PyErr_Occurred()) SWIG_fail;
31808 }
31809 resultobj = SWIG_Py_Void();
31810 return resultobj;
31811 fail:
31812 return NULL;
31813 }
31814
31815
31816 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31817 PyObject *resultobj = 0;
31818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31819 wxPoint *arg2 = 0 ;
31820 void *argp1 = 0 ;
31821 int res1 = 0 ;
31822 wxPoint temp2 ;
31823 PyObject * obj0 = 0 ;
31824 PyObject * obj1 = 0 ;
31825 char * kwnames[] = {
31826 (char *) "self",(char *) "pt", NULL
31827 };
31828
31829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
31830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31831 if (!SWIG_IsOK(res1)) {
31832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31833 }
31834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31835 {
31836 arg2 = &temp2;
31837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31838 }
31839 {
31840 PyThreadState* __tstate = wxPyBeginAllowThreads();
31841 (arg1)->CrossHair((wxPoint const &)*arg2);
31842 wxPyEndAllowThreads(__tstate);
31843 if (PyErr_Occurred()) SWIG_fail;
31844 }
31845 resultobj = SWIG_Py_Void();
31846 return resultobj;
31847 fail:
31848 return NULL;
31849 }
31850
31851
31852 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31853 PyObject *resultobj = 0;
31854 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31855 int arg2 ;
31856 int arg3 ;
31857 int arg4 ;
31858 int arg5 ;
31859 int arg6 ;
31860 int arg7 ;
31861 void *argp1 = 0 ;
31862 int res1 = 0 ;
31863 int val2 ;
31864 int ecode2 = 0 ;
31865 int val3 ;
31866 int ecode3 = 0 ;
31867 int val4 ;
31868 int ecode4 = 0 ;
31869 int val5 ;
31870 int ecode5 = 0 ;
31871 int val6 ;
31872 int ecode6 = 0 ;
31873 int val7 ;
31874 int ecode7 = 0 ;
31875 PyObject * obj0 = 0 ;
31876 PyObject * obj1 = 0 ;
31877 PyObject * obj2 = 0 ;
31878 PyObject * obj3 = 0 ;
31879 PyObject * obj4 = 0 ;
31880 PyObject * obj5 = 0 ;
31881 PyObject * obj6 = 0 ;
31882 char * kwnames[] = {
31883 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
31884 };
31885
31886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31890 }
31891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31892 ecode2 = SWIG_AsVal_int(obj1, &val2);
31893 if (!SWIG_IsOK(ecode2)) {
31894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
31895 }
31896 arg2 = static_cast< int >(val2);
31897 ecode3 = SWIG_AsVal_int(obj2, &val3);
31898 if (!SWIG_IsOK(ecode3)) {
31899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
31900 }
31901 arg3 = static_cast< int >(val3);
31902 ecode4 = SWIG_AsVal_int(obj3, &val4);
31903 if (!SWIG_IsOK(ecode4)) {
31904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
31905 }
31906 arg4 = static_cast< int >(val4);
31907 ecode5 = SWIG_AsVal_int(obj4, &val5);
31908 if (!SWIG_IsOK(ecode5)) {
31909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
31910 }
31911 arg5 = static_cast< int >(val5);
31912 ecode6 = SWIG_AsVal_int(obj5, &val6);
31913 if (!SWIG_IsOK(ecode6)) {
31914 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
31915 }
31916 arg6 = static_cast< int >(val6);
31917 ecode7 = SWIG_AsVal_int(obj6, &val7);
31918 if (!SWIG_IsOK(ecode7)) {
31919 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
31920 }
31921 arg7 = static_cast< int >(val7);
31922 {
31923 PyThreadState* __tstate = wxPyBeginAllowThreads();
31924 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
31925 wxPyEndAllowThreads(__tstate);
31926 if (PyErr_Occurred()) SWIG_fail;
31927 }
31928 resultobj = SWIG_Py_Void();
31929 return resultobj;
31930 fail:
31931 return NULL;
31932 }
31933
31934
31935 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31936 PyObject *resultobj = 0;
31937 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31938 wxPoint *arg2 = 0 ;
31939 wxPoint *arg3 = 0 ;
31940 wxPoint *arg4 = 0 ;
31941 void *argp1 = 0 ;
31942 int res1 = 0 ;
31943 wxPoint temp2 ;
31944 wxPoint temp3 ;
31945 wxPoint temp4 ;
31946 PyObject * obj0 = 0 ;
31947 PyObject * obj1 = 0 ;
31948 PyObject * obj2 = 0 ;
31949 PyObject * obj3 = 0 ;
31950 char * kwnames[] = {
31951 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
31952 };
31953
31954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31956 if (!SWIG_IsOK(res1)) {
31957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31958 }
31959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31960 {
31961 arg2 = &temp2;
31962 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31963 }
31964 {
31965 arg3 = &temp3;
31966 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31967 }
31968 {
31969 arg4 = &temp4;
31970 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31971 }
31972 {
31973 PyThreadState* __tstate = wxPyBeginAllowThreads();
31974 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
31975 wxPyEndAllowThreads(__tstate);
31976 if (PyErr_Occurred()) SWIG_fail;
31977 }
31978 resultobj = SWIG_Py_Void();
31979 return resultobj;
31980 fail:
31981 return NULL;
31982 }
31983
31984
31985 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31986 PyObject *resultobj = 0;
31987 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31988 int arg2 ;
31989 int arg3 ;
31990 int arg4 ;
31991 int arg5 ;
31992 void *argp1 = 0 ;
31993 int res1 = 0 ;
31994 int val2 ;
31995 int ecode2 = 0 ;
31996 int val3 ;
31997 int ecode3 = 0 ;
31998 int val4 ;
31999 int ecode4 = 0 ;
32000 int val5 ;
32001 int ecode5 = 0 ;
32002 PyObject * obj0 = 0 ;
32003 PyObject * obj1 = 0 ;
32004 PyObject * obj2 = 0 ;
32005 PyObject * obj3 = 0 ;
32006 PyObject * obj4 = 0 ;
32007 char * kwnames[] = {
32008 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32009 };
32010
32011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32015 }
32016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32017 ecode2 = SWIG_AsVal_int(obj1, &val2);
32018 if (!SWIG_IsOK(ecode2)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32020 }
32021 arg2 = static_cast< int >(val2);
32022 ecode3 = SWIG_AsVal_int(obj2, &val3);
32023 if (!SWIG_IsOK(ecode3)) {
32024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32025 }
32026 arg3 = static_cast< int >(val3);
32027 ecode4 = SWIG_AsVal_int(obj3, &val4);
32028 if (!SWIG_IsOK(ecode4)) {
32029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32030 }
32031 arg4 = static_cast< int >(val4);
32032 ecode5 = SWIG_AsVal_int(obj4, &val5);
32033 if (!SWIG_IsOK(ecode5)) {
32034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32035 }
32036 arg5 = static_cast< int >(val5);
32037 {
32038 PyThreadState* __tstate = wxPyBeginAllowThreads();
32039 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32040 wxPyEndAllowThreads(__tstate);
32041 if (PyErr_Occurred()) SWIG_fail;
32042 }
32043 resultobj = SWIG_Py_Void();
32044 return resultobj;
32045 fail:
32046 return NULL;
32047 }
32048
32049
32050 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32051 PyObject *resultobj = 0;
32052 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32053 wxRect *arg2 = 0 ;
32054 void *argp1 = 0 ;
32055 int res1 = 0 ;
32056 wxRect temp2 ;
32057 PyObject * obj0 = 0 ;
32058 PyObject * obj1 = 0 ;
32059 char * kwnames[] = {
32060 (char *) "self",(char *) "rect", NULL
32061 };
32062
32063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32065 if (!SWIG_IsOK(res1)) {
32066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32067 }
32068 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32069 {
32070 arg2 = &temp2;
32071 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32072 }
32073 {
32074 PyThreadState* __tstate = wxPyBeginAllowThreads();
32075 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32076 wxPyEndAllowThreads(__tstate);
32077 if (PyErr_Occurred()) SWIG_fail;
32078 }
32079 resultobj = SWIG_Py_Void();
32080 return resultobj;
32081 fail:
32082 return NULL;
32083 }
32084
32085
32086 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32087 PyObject *resultobj = 0;
32088 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32089 int arg2 ;
32090 int arg3 ;
32091 int arg4 ;
32092 int arg5 ;
32093 double arg6 ;
32094 double arg7 ;
32095 void *argp1 = 0 ;
32096 int res1 = 0 ;
32097 int val2 ;
32098 int ecode2 = 0 ;
32099 int val3 ;
32100 int ecode3 = 0 ;
32101 int val4 ;
32102 int ecode4 = 0 ;
32103 int val5 ;
32104 int ecode5 = 0 ;
32105 double val6 ;
32106 int ecode6 = 0 ;
32107 double val7 ;
32108 int ecode7 = 0 ;
32109 PyObject * obj0 = 0 ;
32110 PyObject * obj1 = 0 ;
32111 PyObject * obj2 = 0 ;
32112 PyObject * obj3 = 0 ;
32113 PyObject * obj4 = 0 ;
32114 PyObject * obj5 = 0 ;
32115 PyObject * obj6 = 0 ;
32116 char * kwnames[] = {
32117 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32118 };
32119
32120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32122 if (!SWIG_IsOK(res1)) {
32123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32124 }
32125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32126 ecode2 = SWIG_AsVal_int(obj1, &val2);
32127 if (!SWIG_IsOK(ecode2)) {
32128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32129 }
32130 arg2 = static_cast< int >(val2);
32131 ecode3 = SWIG_AsVal_int(obj2, &val3);
32132 if (!SWIG_IsOK(ecode3)) {
32133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32134 }
32135 arg3 = static_cast< int >(val3);
32136 ecode4 = SWIG_AsVal_int(obj3, &val4);
32137 if (!SWIG_IsOK(ecode4)) {
32138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32139 }
32140 arg4 = static_cast< int >(val4);
32141 ecode5 = SWIG_AsVal_int(obj4, &val5);
32142 if (!SWIG_IsOK(ecode5)) {
32143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32144 }
32145 arg5 = static_cast< int >(val5);
32146 ecode6 = SWIG_AsVal_double(obj5, &val6);
32147 if (!SWIG_IsOK(ecode6)) {
32148 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32149 }
32150 arg6 = static_cast< double >(val6);
32151 ecode7 = SWIG_AsVal_double(obj6, &val7);
32152 if (!SWIG_IsOK(ecode7)) {
32153 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32154 }
32155 arg7 = static_cast< double >(val7);
32156 {
32157 PyThreadState* __tstate = wxPyBeginAllowThreads();
32158 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32159 wxPyEndAllowThreads(__tstate);
32160 if (PyErr_Occurred()) SWIG_fail;
32161 }
32162 resultobj = SWIG_Py_Void();
32163 return resultobj;
32164 fail:
32165 return NULL;
32166 }
32167
32168
32169 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32170 PyObject *resultobj = 0;
32171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32172 wxPoint *arg2 = 0 ;
32173 wxSize *arg3 = 0 ;
32174 double arg4 ;
32175 double arg5 ;
32176 void *argp1 = 0 ;
32177 int res1 = 0 ;
32178 wxPoint temp2 ;
32179 wxSize temp3 ;
32180 double val4 ;
32181 int ecode4 = 0 ;
32182 double val5 ;
32183 int ecode5 = 0 ;
32184 PyObject * obj0 = 0 ;
32185 PyObject * obj1 = 0 ;
32186 PyObject * obj2 = 0 ;
32187 PyObject * obj3 = 0 ;
32188 PyObject * obj4 = 0 ;
32189 char * kwnames[] = {
32190 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32191 };
32192
32193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32195 if (!SWIG_IsOK(res1)) {
32196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32197 }
32198 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32199 {
32200 arg2 = &temp2;
32201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32202 }
32203 {
32204 arg3 = &temp3;
32205 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32206 }
32207 ecode4 = SWIG_AsVal_double(obj3, &val4);
32208 if (!SWIG_IsOK(ecode4)) {
32209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32210 }
32211 arg4 = static_cast< double >(val4);
32212 ecode5 = SWIG_AsVal_double(obj4, &val5);
32213 if (!SWIG_IsOK(ecode5)) {
32214 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32215 }
32216 arg5 = static_cast< double >(val5);
32217 {
32218 PyThreadState* __tstate = wxPyBeginAllowThreads();
32219 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32220 wxPyEndAllowThreads(__tstate);
32221 if (PyErr_Occurred()) SWIG_fail;
32222 }
32223 resultobj = SWIG_Py_Void();
32224 return resultobj;
32225 fail:
32226 return NULL;
32227 }
32228
32229
32230 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32231 PyObject *resultobj = 0;
32232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32233 int arg2 ;
32234 int arg3 ;
32235 void *argp1 = 0 ;
32236 int res1 = 0 ;
32237 int val2 ;
32238 int ecode2 = 0 ;
32239 int val3 ;
32240 int ecode3 = 0 ;
32241 PyObject * obj0 = 0 ;
32242 PyObject * obj1 = 0 ;
32243 PyObject * obj2 = 0 ;
32244 char * kwnames[] = {
32245 (char *) "self",(char *) "x",(char *) "y", NULL
32246 };
32247
32248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32250 if (!SWIG_IsOK(res1)) {
32251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32252 }
32253 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32254 ecode2 = SWIG_AsVal_int(obj1, &val2);
32255 if (!SWIG_IsOK(ecode2)) {
32256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32257 }
32258 arg2 = static_cast< int >(val2);
32259 ecode3 = SWIG_AsVal_int(obj2, &val3);
32260 if (!SWIG_IsOK(ecode3)) {
32261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32262 }
32263 arg3 = static_cast< int >(val3);
32264 {
32265 PyThreadState* __tstate = wxPyBeginAllowThreads();
32266 (arg1)->DrawPoint(arg2,arg3);
32267 wxPyEndAllowThreads(__tstate);
32268 if (PyErr_Occurred()) SWIG_fail;
32269 }
32270 resultobj = SWIG_Py_Void();
32271 return resultobj;
32272 fail:
32273 return NULL;
32274 }
32275
32276
32277 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32278 PyObject *resultobj = 0;
32279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32280 wxPoint *arg2 = 0 ;
32281 void *argp1 = 0 ;
32282 int res1 = 0 ;
32283 wxPoint temp2 ;
32284 PyObject * obj0 = 0 ;
32285 PyObject * obj1 = 0 ;
32286 char * kwnames[] = {
32287 (char *) "self",(char *) "pt", NULL
32288 };
32289
32290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32292 if (!SWIG_IsOK(res1)) {
32293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32294 }
32295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32296 {
32297 arg2 = &temp2;
32298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32299 }
32300 {
32301 PyThreadState* __tstate = wxPyBeginAllowThreads();
32302 (arg1)->DrawPoint((wxPoint const &)*arg2);
32303 wxPyEndAllowThreads(__tstate);
32304 if (PyErr_Occurred()) SWIG_fail;
32305 }
32306 resultobj = SWIG_Py_Void();
32307 return resultobj;
32308 fail:
32309 return NULL;
32310 }
32311
32312
32313 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32314 PyObject *resultobj = 0;
32315 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32316 int arg2 ;
32317 int arg3 ;
32318 int arg4 ;
32319 int arg5 ;
32320 void *argp1 = 0 ;
32321 int res1 = 0 ;
32322 int val2 ;
32323 int ecode2 = 0 ;
32324 int val3 ;
32325 int ecode3 = 0 ;
32326 int val4 ;
32327 int ecode4 = 0 ;
32328 int val5 ;
32329 int ecode5 = 0 ;
32330 PyObject * obj0 = 0 ;
32331 PyObject * obj1 = 0 ;
32332 PyObject * obj2 = 0 ;
32333 PyObject * obj3 = 0 ;
32334 PyObject * obj4 = 0 ;
32335 char * kwnames[] = {
32336 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32337 };
32338
32339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32341 if (!SWIG_IsOK(res1)) {
32342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32343 }
32344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32345 ecode2 = SWIG_AsVal_int(obj1, &val2);
32346 if (!SWIG_IsOK(ecode2)) {
32347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32348 }
32349 arg2 = static_cast< int >(val2);
32350 ecode3 = SWIG_AsVal_int(obj2, &val3);
32351 if (!SWIG_IsOK(ecode3)) {
32352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32353 }
32354 arg3 = static_cast< int >(val3);
32355 ecode4 = SWIG_AsVal_int(obj3, &val4);
32356 if (!SWIG_IsOK(ecode4)) {
32357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32358 }
32359 arg4 = static_cast< int >(val4);
32360 ecode5 = SWIG_AsVal_int(obj4, &val5);
32361 if (!SWIG_IsOK(ecode5)) {
32362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32363 }
32364 arg5 = static_cast< int >(val5);
32365 {
32366 PyThreadState* __tstate = wxPyBeginAllowThreads();
32367 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32368 wxPyEndAllowThreads(__tstate);
32369 if (PyErr_Occurred()) SWIG_fail;
32370 }
32371 resultobj = SWIG_Py_Void();
32372 return resultobj;
32373 fail:
32374 return NULL;
32375 }
32376
32377
32378 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32379 PyObject *resultobj = 0;
32380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32381 wxRect *arg2 = 0 ;
32382 void *argp1 = 0 ;
32383 int res1 = 0 ;
32384 wxRect temp2 ;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 char * kwnames[] = {
32388 (char *) "self",(char *) "rect", NULL
32389 };
32390
32391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32393 if (!SWIG_IsOK(res1)) {
32394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32395 }
32396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32397 {
32398 arg2 = &temp2;
32399 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32400 }
32401 {
32402 PyThreadState* __tstate = wxPyBeginAllowThreads();
32403 (arg1)->DrawRectangle((wxRect const &)*arg2);
32404 wxPyEndAllowThreads(__tstate);
32405 if (PyErr_Occurred()) SWIG_fail;
32406 }
32407 resultobj = SWIG_Py_Void();
32408 return resultobj;
32409 fail:
32410 return NULL;
32411 }
32412
32413
32414 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32415 PyObject *resultobj = 0;
32416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32417 wxPoint *arg2 = 0 ;
32418 wxSize *arg3 = 0 ;
32419 void *argp1 = 0 ;
32420 int res1 = 0 ;
32421 wxPoint temp2 ;
32422 wxSize temp3 ;
32423 PyObject * obj0 = 0 ;
32424 PyObject * obj1 = 0 ;
32425 PyObject * obj2 = 0 ;
32426 char * kwnames[] = {
32427 (char *) "self",(char *) "pt",(char *) "sz", NULL
32428 };
32429
32430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32432 if (!SWIG_IsOK(res1)) {
32433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32434 }
32435 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32436 {
32437 arg2 = &temp2;
32438 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32439 }
32440 {
32441 arg3 = &temp3;
32442 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32443 }
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_Py_Void();
32451 return resultobj;
32452 fail:
32453 return NULL;
32454 }
32455
32456
32457 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32458 PyObject *resultobj = 0;
32459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32460 int arg2 ;
32461 int arg3 ;
32462 int arg4 ;
32463 int arg5 ;
32464 double arg6 ;
32465 void *argp1 = 0 ;
32466 int res1 = 0 ;
32467 int val2 ;
32468 int ecode2 = 0 ;
32469 int val3 ;
32470 int ecode3 = 0 ;
32471 int val4 ;
32472 int ecode4 = 0 ;
32473 int val5 ;
32474 int ecode5 = 0 ;
32475 double val6 ;
32476 int ecode6 = 0 ;
32477 PyObject * obj0 = 0 ;
32478 PyObject * obj1 = 0 ;
32479 PyObject * obj2 = 0 ;
32480 PyObject * obj3 = 0 ;
32481 PyObject * obj4 = 0 ;
32482 PyObject * obj5 = 0 ;
32483 char * kwnames[] = {
32484 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32485 };
32486
32487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32489 if (!SWIG_IsOK(res1)) {
32490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32491 }
32492 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32493 ecode2 = SWIG_AsVal_int(obj1, &val2);
32494 if (!SWIG_IsOK(ecode2)) {
32495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32496 }
32497 arg2 = static_cast< int >(val2);
32498 ecode3 = SWIG_AsVal_int(obj2, &val3);
32499 if (!SWIG_IsOK(ecode3)) {
32500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32501 }
32502 arg3 = static_cast< int >(val3);
32503 ecode4 = SWIG_AsVal_int(obj3, &val4);
32504 if (!SWIG_IsOK(ecode4)) {
32505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32506 }
32507 arg4 = static_cast< int >(val4);
32508 ecode5 = SWIG_AsVal_int(obj4, &val5);
32509 if (!SWIG_IsOK(ecode5)) {
32510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32511 }
32512 arg5 = static_cast< int >(val5);
32513 ecode6 = SWIG_AsVal_double(obj5, &val6);
32514 if (!SWIG_IsOK(ecode6)) {
32515 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32516 }
32517 arg6 = static_cast< double >(val6);
32518 {
32519 PyThreadState* __tstate = wxPyBeginAllowThreads();
32520 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 resultobj = SWIG_Py_Void();
32525 return resultobj;
32526 fail:
32527 return NULL;
32528 }
32529
32530
32531 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32532 PyObject *resultobj = 0;
32533 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32534 wxRect *arg2 = 0 ;
32535 double arg3 ;
32536 void *argp1 = 0 ;
32537 int res1 = 0 ;
32538 wxRect temp2 ;
32539 double val3 ;
32540 int ecode3 = 0 ;
32541 PyObject * obj0 = 0 ;
32542 PyObject * obj1 = 0 ;
32543 PyObject * obj2 = 0 ;
32544 char * kwnames[] = {
32545 (char *) "self",(char *) "r",(char *) "radius", NULL
32546 };
32547
32548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32550 if (!SWIG_IsOK(res1)) {
32551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32552 }
32553 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32554 {
32555 arg2 = &temp2;
32556 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32557 }
32558 ecode3 = SWIG_AsVal_double(obj2, &val3);
32559 if (!SWIG_IsOK(ecode3)) {
32560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32561 }
32562 arg3 = static_cast< double >(val3);
32563 {
32564 PyThreadState* __tstate = wxPyBeginAllowThreads();
32565 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32566 wxPyEndAllowThreads(__tstate);
32567 if (PyErr_Occurred()) SWIG_fail;
32568 }
32569 resultobj = SWIG_Py_Void();
32570 return resultobj;
32571 fail:
32572 return NULL;
32573 }
32574
32575
32576 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32577 PyObject *resultobj = 0;
32578 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32579 wxPoint *arg2 = 0 ;
32580 wxSize *arg3 = 0 ;
32581 double arg4 ;
32582 void *argp1 = 0 ;
32583 int res1 = 0 ;
32584 wxPoint temp2 ;
32585 wxSize temp3 ;
32586 double val4 ;
32587 int ecode4 = 0 ;
32588 PyObject * obj0 = 0 ;
32589 PyObject * obj1 = 0 ;
32590 PyObject * obj2 = 0 ;
32591 PyObject * obj3 = 0 ;
32592 char * kwnames[] = {
32593 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32594 };
32595
32596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32598 if (!SWIG_IsOK(res1)) {
32599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32600 }
32601 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32602 {
32603 arg2 = &temp2;
32604 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32605 }
32606 {
32607 arg3 = &temp3;
32608 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32609 }
32610 ecode4 = SWIG_AsVal_double(obj3, &val4);
32611 if (!SWIG_IsOK(ecode4)) {
32612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32613 }
32614 arg4 = static_cast< double >(val4);
32615 {
32616 PyThreadState* __tstate = wxPyBeginAllowThreads();
32617 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32618 wxPyEndAllowThreads(__tstate);
32619 if (PyErr_Occurred()) SWIG_fail;
32620 }
32621 resultobj = SWIG_Py_Void();
32622 return resultobj;
32623 fail:
32624 return NULL;
32625 }
32626
32627
32628 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32629 PyObject *resultobj = 0;
32630 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32631 int arg2 ;
32632 int arg3 ;
32633 int arg4 ;
32634 void *argp1 = 0 ;
32635 int res1 = 0 ;
32636 int val2 ;
32637 int ecode2 = 0 ;
32638 int val3 ;
32639 int ecode3 = 0 ;
32640 int val4 ;
32641 int ecode4 = 0 ;
32642 PyObject * obj0 = 0 ;
32643 PyObject * obj1 = 0 ;
32644 PyObject * obj2 = 0 ;
32645 PyObject * obj3 = 0 ;
32646 char * kwnames[] = {
32647 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32648 };
32649
32650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32652 if (!SWIG_IsOK(res1)) {
32653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32654 }
32655 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32656 ecode2 = SWIG_AsVal_int(obj1, &val2);
32657 if (!SWIG_IsOK(ecode2)) {
32658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32659 }
32660 arg2 = static_cast< int >(val2);
32661 ecode3 = SWIG_AsVal_int(obj2, &val3);
32662 if (!SWIG_IsOK(ecode3)) {
32663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32664 }
32665 arg3 = static_cast< int >(val3);
32666 ecode4 = SWIG_AsVal_int(obj3, &val4);
32667 if (!SWIG_IsOK(ecode4)) {
32668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32669 }
32670 arg4 = static_cast< int >(val4);
32671 {
32672 PyThreadState* __tstate = wxPyBeginAllowThreads();
32673 (arg1)->DrawCircle(arg2,arg3,arg4);
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 resultobj = SWIG_Py_Void();
32678 return resultobj;
32679 fail:
32680 return NULL;
32681 }
32682
32683
32684 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32685 PyObject *resultobj = 0;
32686 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32687 wxPoint *arg2 = 0 ;
32688 int arg3 ;
32689 void *argp1 = 0 ;
32690 int res1 = 0 ;
32691 wxPoint temp2 ;
32692 int val3 ;
32693 int ecode3 = 0 ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 PyObject * obj2 = 0 ;
32697 char * kwnames[] = {
32698 (char *) "self",(char *) "pt",(char *) "radius", NULL
32699 };
32700
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32703 if (!SWIG_IsOK(res1)) {
32704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32705 }
32706 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32707 {
32708 arg2 = &temp2;
32709 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32710 }
32711 ecode3 = SWIG_AsVal_int(obj2, &val3);
32712 if (!SWIG_IsOK(ecode3)) {
32713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
32714 }
32715 arg3 = static_cast< int >(val3);
32716 {
32717 PyThreadState* __tstate = wxPyBeginAllowThreads();
32718 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
32719 wxPyEndAllowThreads(__tstate);
32720 if (PyErr_Occurred()) SWIG_fail;
32721 }
32722 resultobj = SWIG_Py_Void();
32723 return resultobj;
32724 fail:
32725 return NULL;
32726 }
32727
32728
32729 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32730 PyObject *resultobj = 0;
32731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32732 int arg2 ;
32733 int arg3 ;
32734 int arg4 ;
32735 int arg5 ;
32736 void *argp1 = 0 ;
32737 int res1 = 0 ;
32738 int val2 ;
32739 int ecode2 = 0 ;
32740 int val3 ;
32741 int ecode3 = 0 ;
32742 int val4 ;
32743 int ecode4 = 0 ;
32744 int val5 ;
32745 int ecode5 = 0 ;
32746 PyObject * obj0 = 0 ;
32747 PyObject * obj1 = 0 ;
32748 PyObject * obj2 = 0 ;
32749 PyObject * obj3 = 0 ;
32750 PyObject * obj4 = 0 ;
32751 char * kwnames[] = {
32752 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32753 };
32754
32755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32757 if (!SWIG_IsOK(res1)) {
32758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32759 }
32760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32761 ecode2 = SWIG_AsVal_int(obj1, &val2);
32762 if (!SWIG_IsOK(ecode2)) {
32763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
32764 }
32765 arg2 = static_cast< int >(val2);
32766 ecode3 = SWIG_AsVal_int(obj2, &val3);
32767 if (!SWIG_IsOK(ecode3)) {
32768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
32769 }
32770 arg3 = static_cast< int >(val3);
32771 ecode4 = SWIG_AsVal_int(obj3, &val4);
32772 if (!SWIG_IsOK(ecode4)) {
32773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
32774 }
32775 arg4 = static_cast< int >(val4);
32776 ecode5 = SWIG_AsVal_int(obj4, &val5);
32777 if (!SWIG_IsOK(ecode5)) {
32778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
32779 }
32780 arg5 = static_cast< int >(val5);
32781 {
32782 PyThreadState* __tstate = wxPyBeginAllowThreads();
32783 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
32784 wxPyEndAllowThreads(__tstate);
32785 if (PyErr_Occurred()) SWIG_fail;
32786 }
32787 resultobj = SWIG_Py_Void();
32788 return resultobj;
32789 fail:
32790 return NULL;
32791 }
32792
32793
32794 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32795 PyObject *resultobj = 0;
32796 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32797 wxRect *arg2 = 0 ;
32798 void *argp1 = 0 ;
32799 int res1 = 0 ;
32800 wxRect temp2 ;
32801 PyObject * obj0 = 0 ;
32802 PyObject * obj1 = 0 ;
32803 char * kwnames[] = {
32804 (char *) "self",(char *) "rect", NULL
32805 };
32806
32807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
32808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32809 if (!SWIG_IsOK(res1)) {
32810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32811 }
32812 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32813 {
32814 arg2 = &temp2;
32815 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32816 }
32817 {
32818 PyThreadState* __tstate = wxPyBeginAllowThreads();
32819 (arg1)->DrawEllipse((wxRect const &)*arg2);
32820 wxPyEndAllowThreads(__tstate);
32821 if (PyErr_Occurred()) SWIG_fail;
32822 }
32823 resultobj = SWIG_Py_Void();
32824 return resultobj;
32825 fail:
32826 return NULL;
32827 }
32828
32829
32830 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32831 PyObject *resultobj = 0;
32832 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32833 wxPoint *arg2 = 0 ;
32834 wxSize *arg3 = 0 ;
32835 void *argp1 = 0 ;
32836 int res1 = 0 ;
32837 wxPoint temp2 ;
32838 wxSize temp3 ;
32839 PyObject * obj0 = 0 ;
32840 PyObject * obj1 = 0 ;
32841 PyObject * obj2 = 0 ;
32842 char * kwnames[] = {
32843 (char *) "self",(char *) "pt",(char *) "sz", NULL
32844 };
32845
32846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32848 if (!SWIG_IsOK(res1)) {
32849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32850 }
32851 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32852 {
32853 arg2 = &temp2;
32854 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32855 }
32856 {
32857 arg3 = &temp3;
32858 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32859 }
32860 {
32861 PyThreadState* __tstate = wxPyBeginAllowThreads();
32862 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
32863 wxPyEndAllowThreads(__tstate);
32864 if (PyErr_Occurred()) SWIG_fail;
32865 }
32866 resultobj = SWIG_Py_Void();
32867 return resultobj;
32868 fail:
32869 return NULL;
32870 }
32871
32872
32873 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32874 PyObject *resultobj = 0;
32875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32876 wxIcon *arg2 = 0 ;
32877 int arg3 ;
32878 int arg4 ;
32879 void *argp1 = 0 ;
32880 int res1 = 0 ;
32881 void *argp2 = 0 ;
32882 int res2 = 0 ;
32883 int val3 ;
32884 int ecode3 = 0 ;
32885 int val4 ;
32886 int ecode4 = 0 ;
32887 PyObject * obj0 = 0 ;
32888 PyObject * obj1 = 0 ;
32889 PyObject * obj2 = 0 ;
32890 PyObject * obj3 = 0 ;
32891 char * kwnames[] = {
32892 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
32893 };
32894
32895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32897 if (!SWIG_IsOK(res1)) {
32898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32899 }
32900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32902 if (!SWIG_IsOK(res2)) {
32903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32904 }
32905 if (!argp2) {
32906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32907 }
32908 arg2 = reinterpret_cast< wxIcon * >(argp2);
32909 ecode3 = SWIG_AsVal_int(obj2, &val3);
32910 if (!SWIG_IsOK(ecode3)) {
32911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
32912 }
32913 arg3 = static_cast< int >(val3);
32914 ecode4 = SWIG_AsVal_int(obj3, &val4);
32915 if (!SWIG_IsOK(ecode4)) {
32916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
32917 }
32918 arg4 = static_cast< int >(val4);
32919 {
32920 PyThreadState* __tstate = wxPyBeginAllowThreads();
32921 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
32922 wxPyEndAllowThreads(__tstate);
32923 if (PyErr_Occurred()) SWIG_fail;
32924 }
32925 resultobj = SWIG_Py_Void();
32926 return resultobj;
32927 fail:
32928 return NULL;
32929 }
32930
32931
32932 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32933 PyObject *resultobj = 0;
32934 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32935 wxIcon *arg2 = 0 ;
32936 wxPoint *arg3 = 0 ;
32937 void *argp1 = 0 ;
32938 int res1 = 0 ;
32939 void *argp2 = 0 ;
32940 int res2 = 0 ;
32941 wxPoint temp3 ;
32942 PyObject * obj0 = 0 ;
32943 PyObject * obj1 = 0 ;
32944 PyObject * obj2 = 0 ;
32945 char * kwnames[] = {
32946 (char *) "self",(char *) "icon",(char *) "pt", NULL
32947 };
32948
32949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32951 if (!SWIG_IsOK(res1)) {
32952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32953 }
32954 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32955 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32956 if (!SWIG_IsOK(res2)) {
32957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
32958 }
32959 if (!argp2) {
32960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
32961 }
32962 arg2 = reinterpret_cast< wxIcon * >(argp2);
32963 {
32964 arg3 = &temp3;
32965 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32966 }
32967 {
32968 PyThreadState* __tstate = wxPyBeginAllowThreads();
32969 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
32970 wxPyEndAllowThreads(__tstate);
32971 if (PyErr_Occurred()) SWIG_fail;
32972 }
32973 resultobj = SWIG_Py_Void();
32974 return resultobj;
32975 fail:
32976 return NULL;
32977 }
32978
32979
32980 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32981 PyObject *resultobj = 0;
32982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32983 wxBitmap *arg2 = 0 ;
32984 int arg3 ;
32985 int arg4 ;
32986 bool arg5 = (bool) false ;
32987 void *argp1 = 0 ;
32988 int res1 = 0 ;
32989 void *argp2 = 0 ;
32990 int res2 = 0 ;
32991 int val3 ;
32992 int ecode3 = 0 ;
32993 int val4 ;
32994 int ecode4 = 0 ;
32995 bool val5 ;
32996 int ecode5 = 0 ;
32997 PyObject * obj0 = 0 ;
32998 PyObject * obj1 = 0 ;
32999 PyObject * obj2 = 0 ;
33000 PyObject * obj3 = 0 ;
33001 PyObject * obj4 = 0 ;
33002 char * kwnames[] = {
33003 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33004 };
33005
33006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33008 if (!SWIG_IsOK(res1)) {
33009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33010 }
33011 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33013 if (!SWIG_IsOK(res2)) {
33014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33015 }
33016 if (!argp2) {
33017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33018 }
33019 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33020 ecode3 = SWIG_AsVal_int(obj2, &val3);
33021 if (!SWIG_IsOK(ecode3)) {
33022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33023 }
33024 arg3 = static_cast< int >(val3);
33025 ecode4 = SWIG_AsVal_int(obj3, &val4);
33026 if (!SWIG_IsOK(ecode4)) {
33027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33028 }
33029 arg4 = static_cast< int >(val4);
33030 if (obj4) {
33031 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33032 if (!SWIG_IsOK(ecode5)) {
33033 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33034 }
33035 arg5 = static_cast< bool >(val5);
33036 }
33037 {
33038 PyThreadState* __tstate = wxPyBeginAllowThreads();
33039 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33040 wxPyEndAllowThreads(__tstate);
33041 if (PyErr_Occurred()) SWIG_fail;
33042 }
33043 resultobj = SWIG_Py_Void();
33044 return resultobj;
33045 fail:
33046 return NULL;
33047 }
33048
33049
33050 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33051 PyObject *resultobj = 0;
33052 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33053 wxBitmap *arg2 = 0 ;
33054 wxPoint *arg3 = 0 ;
33055 bool arg4 = (bool) false ;
33056 void *argp1 = 0 ;
33057 int res1 = 0 ;
33058 void *argp2 = 0 ;
33059 int res2 = 0 ;
33060 wxPoint temp3 ;
33061 bool val4 ;
33062 int ecode4 = 0 ;
33063 PyObject * obj0 = 0 ;
33064 PyObject * obj1 = 0 ;
33065 PyObject * obj2 = 0 ;
33066 PyObject * obj3 = 0 ;
33067 char * kwnames[] = {
33068 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33069 };
33070
33071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33073 if (!SWIG_IsOK(res1)) {
33074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33075 }
33076 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33078 if (!SWIG_IsOK(res2)) {
33079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33080 }
33081 if (!argp2) {
33082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33083 }
33084 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33085 {
33086 arg3 = &temp3;
33087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33088 }
33089 if (obj3) {
33090 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33091 if (!SWIG_IsOK(ecode4)) {
33092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33093 }
33094 arg4 = static_cast< bool >(val4);
33095 }
33096 {
33097 PyThreadState* __tstate = wxPyBeginAllowThreads();
33098 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33099 wxPyEndAllowThreads(__tstate);
33100 if (PyErr_Occurred()) SWIG_fail;
33101 }
33102 resultobj = SWIG_Py_Void();
33103 return resultobj;
33104 fail:
33105 return NULL;
33106 }
33107
33108
33109 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj = 0;
33111 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33112 wxString *arg2 = 0 ;
33113 int arg3 ;
33114 int arg4 ;
33115 void *argp1 = 0 ;
33116 int res1 = 0 ;
33117 bool temp2 = false ;
33118 int val3 ;
33119 int ecode3 = 0 ;
33120 int val4 ;
33121 int ecode4 = 0 ;
33122 PyObject * obj0 = 0 ;
33123 PyObject * obj1 = 0 ;
33124 PyObject * obj2 = 0 ;
33125 PyObject * obj3 = 0 ;
33126 char * kwnames[] = {
33127 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33128 };
33129
33130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33132 if (!SWIG_IsOK(res1)) {
33133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33134 }
33135 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33136 {
33137 arg2 = wxString_in_helper(obj1);
33138 if (arg2 == NULL) SWIG_fail;
33139 temp2 = true;
33140 }
33141 ecode3 = SWIG_AsVal_int(obj2, &val3);
33142 if (!SWIG_IsOK(ecode3)) {
33143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33144 }
33145 arg3 = static_cast< int >(val3);
33146 ecode4 = SWIG_AsVal_int(obj3, &val4);
33147 if (!SWIG_IsOK(ecode4)) {
33148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33149 }
33150 arg4 = static_cast< int >(val4);
33151 {
33152 PyThreadState* __tstate = wxPyBeginAllowThreads();
33153 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33154 wxPyEndAllowThreads(__tstate);
33155 if (PyErr_Occurred()) SWIG_fail;
33156 }
33157 resultobj = SWIG_Py_Void();
33158 {
33159 if (temp2)
33160 delete arg2;
33161 }
33162 return resultobj;
33163 fail:
33164 {
33165 if (temp2)
33166 delete arg2;
33167 }
33168 return NULL;
33169 }
33170
33171
33172 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33173 PyObject *resultobj = 0;
33174 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33175 wxString *arg2 = 0 ;
33176 wxPoint *arg3 = 0 ;
33177 void *argp1 = 0 ;
33178 int res1 = 0 ;
33179 bool temp2 = false ;
33180 wxPoint temp3 ;
33181 PyObject * obj0 = 0 ;
33182 PyObject * obj1 = 0 ;
33183 PyObject * obj2 = 0 ;
33184 char * kwnames[] = {
33185 (char *) "self",(char *) "text",(char *) "pt", NULL
33186 };
33187
33188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33190 if (!SWIG_IsOK(res1)) {
33191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33192 }
33193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33194 {
33195 arg2 = wxString_in_helper(obj1);
33196 if (arg2 == NULL) SWIG_fail;
33197 temp2 = true;
33198 }
33199 {
33200 arg3 = &temp3;
33201 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33202 }
33203 {
33204 PyThreadState* __tstate = wxPyBeginAllowThreads();
33205 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33206 wxPyEndAllowThreads(__tstate);
33207 if (PyErr_Occurred()) SWIG_fail;
33208 }
33209 resultobj = SWIG_Py_Void();
33210 {
33211 if (temp2)
33212 delete arg2;
33213 }
33214 return resultobj;
33215 fail:
33216 {
33217 if (temp2)
33218 delete arg2;
33219 }
33220 return NULL;
33221 }
33222
33223
33224 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33225 PyObject *resultobj = 0;
33226 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33227 wxString *arg2 = 0 ;
33228 int arg3 ;
33229 int arg4 ;
33230 double arg5 ;
33231 void *argp1 = 0 ;
33232 int res1 = 0 ;
33233 bool temp2 = false ;
33234 int val3 ;
33235 int ecode3 = 0 ;
33236 int val4 ;
33237 int ecode4 = 0 ;
33238 double val5 ;
33239 int ecode5 = 0 ;
33240 PyObject * obj0 = 0 ;
33241 PyObject * obj1 = 0 ;
33242 PyObject * obj2 = 0 ;
33243 PyObject * obj3 = 0 ;
33244 PyObject * obj4 = 0 ;
33245 char * kwnames[] = {
33246 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33247 };
33248
33249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33251 if (!SWIG_IsOK(res1)) {
33252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33253 }
33254 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33255 {
33256 arg2 = wxString_in_helper(obj1);
33257 if (arg2 == NULL) SWIG_fail;
33258 temp2 = true;
33259 }
33260 ecode3 = SWIG_AsVal_int(obj2, &val3);
33261 if (!SWIG_IsOK(ecode3)) {
33262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33263 }
33264 arg3 = static_cast< int >(val3);
33265 ecode4 = SWIG_AsVal_int(obj3, &val4);
33266 if (!SWIG_IsOK(ecode4)) {
33267 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33268 }
33269 arg4 = static_cast< int >(val4);
33270 ecode5 = SWIG_AsVal_double(obj4, &val5);
33271 if (!SWIG_IsOK(ecode5)) {
33272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33273 }
33274 arg5 = static_cast< double >(val5);
33275 {
33276 PyThreadState* __tstate = wxPyBeginAllowThreads();
33277 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33278 wxPyEndAllowThreads(__tstate);
33279 if (PyErr_Occurred()) SWIG_fail;
33280 }
33281 resultobj = SWIG_Py_Void();
33282 {
33283 if (temp2)
33284 delete arg2;
33285 }
33286 return resultobj;
33287 fail:
33288 {
33289 if (temp2)
33290 delete arg2;
33291 }
33292 return NULL;
33293 }
33294
33295
33296 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33297 PyObject *resultobj = 0;
33298 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33299 wxString *arg2 = 0 ;
33300 wxPoint *arg3 = 0 ;
33301 double arg4 ;
33302 void *argp1 = 0 ;
33303 int res1 = 0 ;
33304 bool temp2 = false ;
33305 wxPoint temp3 ;
33306 double val4 ;
33307 int ecode4 = 0 ;
33308 PyObject * obj0 = 0 ;
33309 PyObject * obj1 = 0 ;
33310 PyObject * obj2 = 0 ;
33311 PyObject * obj3 = 0 ;
33312 char * kwnames[] = {
33313 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33314 };
33315
33316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33318 if (!SWIG_IsOK(res1)) {
33319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33320 }
33321 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33322 {
33323 arg2 = wxString_in_helper(obj1);
33324 if (arg2 == NULL) SWIG_fail;
33325 temp2 = true;
33326 }
33327 {
33328 arg3 = &temp3;
33329 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33330 }
33331 ecode4 = SWIG_AsVal_double(obj3, &val4);
33332 if (!SWIG_IsOK(ecode4)) {
33333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33334 }
33335 arg4 = static_cast< double >(val4);
33336 {
33337 PyThreadState* __tstate = wxPyBeginAllowThreads();
33338 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33339 wxPyEndAllowThreads(__tstate);
33340 if (PyErr_Occurred()) SWIG_fail;
33341 }
33342 resultobj = SWIG_Py_Void();
33343 {
33344 if (temp2)
33345 delete arg2;
33346 }
33347 return resultobj;
33348 fail:
33349 {
33350 if (temp2)
33351 delete arg2;
33352 }
33353 return NULL;
33354 }
33355
33356
33357 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33358 PyObject *resultobj = 0;
33359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33360 int arg2 ;
33361 wxPoint *arg3 = (wxPoint *) 0 ;
33362 int arg4 = (int) 0 ;
33363 int arg5 = (int) 0 ;
33364 void *argp1 = 0 ;
33365 int res1 = 0 ;
33366 int val4 ;
33367 int ecode4 = 0 ;
33368 int val5 ;
33369 int ecode5 = 0 ;
33370 PyObject * obj0 = 0 ;
33371 PyObject * obj1 = 0 ;
33372 PyObject * obj2 = 0 ;
33373 PyObject * obj3 = 0 ;
33374 char * kwnames[] = {
33375 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33376 };
33377
33378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33380 if (!SWIG_IsOK(res1)) {
33381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33382 }
33383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33384 {
33385 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33386 if (arg3 == NULL) SWIG_fail;
33387 }
33388 if (obj2) {
33389 ecode4 = SWIG_AsVal_int(obj2, &val4);
33390 if (!SWIG_IsOK(ecode4)) {
33391 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33392 }
33393 arg4 = static_cast< int >(val4);
33394 }
33395 if (obj3) {
33396 ecode5 = SWIG_AsVal_int(obj3, &val5);
33397 if (!SWIG_IsOK(ecode5)) {
33398 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33399 }
33400 arg5 = static_cast< int >(val5);
33401 }
33402 {
33403 PyThreadState* __tstate = wxPyBeginAllowThreads();
33404 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33405 wxPyEndAllowThreads(__tstate);
33406 if (PyErr_Occurred()) SWIG_fail;
33407 }
33408 resultobj = SWIG_Py_Void();
33409 {
33410 if (arg3) delete [] arg3;
33411 }
33412 return resultobj;
33413 fail:
33414 {
33415 if (arg3) delete [] arg3;
33416 }
33417 return NULL;
33418 }
33419
33420
33421 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33422 PyObject *resultobj = 0;
33423 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33424 int arg2 ;
33425 wxPoint *arg3 = (wxPoint *) 0 ;
33426 int arg4 = (int) 0 ;
33427 int arg5 = (int) 0 ;
33428 int arg6 = (int) wxODDEVEN_RULE ;
33429 void *argp1 = 0 ;
33430 int res1 = 0 ;
33431 int val4 ;
33432 int ecode4 = 0 ;
33433 int val5 ;
33434 int ecode5 = 0 ;
33435 int val6 ;
33436 int ecode6 = 0 ;
33437 PyObject * obj0 = 0 ;
33438 PyObject * obj1 = 0 ;
33439 PyObject * obj2 = 0 ;
33440 PyObject * obj3 = 0 ;
33441 PyObject * obj4 = 0 ;
33442 char * kwnames[] = {
33443 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33444 };
33445
33446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33448 if (!SWIG_IsOK(res1)) {
33449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33450 }
33451 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33452 {
33453 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33454 if (arg3 == NULL) SWIG_fail;
33455 }
33456 if (obj2) {
33457 ecode4 = SWIG_AsVal_int(obj2, &val4);
33458 if (!SWIG_IsOK(ecode4)) {
33459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33460 }
33461 arg4 = static_cast< int >(val4);
33462 }
33463 if (obj3) {
33464 ecode5 = SWIG_AsVal_int(obj3, &val5);
33465 if (!SWIG_IsOK(ecode5)) {
33466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33467 }
33468 arg5 = static_cast< int >(val5);
33469 }
33470 if (obj4) {
33471 ecode6 = SWIG_AsVal_int(obj4, &val6);
33472 if (!SWIG_IsOK(ecode6)) {
33473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33474 }
33475 arg6 = static_cast< int >(val6);
33476 }
33477 {
33478 PyThreadState* __tstate = wxPyBeginAllowThreads();
33479 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33480 wxPyEndAllowThreads(__tstate);
33481 if (PyErr_Occurred()) SWIG_fail;
33482 }
33483 resultobj = SWIG_Py_Void();
33484 {
33485 if (arg3) delete [] arg3;
33486 }
33487 return resultobj;
33488 fail:
33489 {
33490 if (arg3) delete [] arg3;
33491 }
33492 return NULL;
33493 }
33494
33495
33496 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33497 PyObject *resultobj = 0;
33498 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33499 wxString *arg2 = 0 ;
33500 wxRect *arg3 = 0 ;
33501 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33502 int arg5 = (int) -1 ;
33503 void *argp1 = 0 ;
33504 int res1 = 0 ;
33505 bool temp2 = false ;
33506 wxRect temp3 ;
33507 int val4 ;
33508 int ecode4 = 0 ;
33509 int val5 ;
33510 int ecode5 = 0 ;
33511 PyObject * obj0 = 0 ;
33512 PyObject * obj1 = 0 ;
33513 PyObject * obj2 = 0 ;
33514 PyObject * obj3 = 0 ;
33515 PyObject * obj4 = 0 ;
33516 char * kwnames[] = {
33517 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33518 };
33519
33520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33522 if (!SWIG_IsOK(res1)) {
33523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33524 }
33525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33526 {
33527 arg2 = wxString_in_helper(obj1);
33528 if (arg2 == NULL) SWIG_fail;
33529 temp2 = true;
33530 }
33531 {
33532 arg3 = &temp3;
33533 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33534 }
33535 if (obj3) {
33536 ecode4 = SWIG_AsVal_int(obj3, &val4);
33537 if (!SWIG_IsOK(ecode4)) {
33538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33539 }
33540 arg4 = static_cast< int >(val4);
33541 }
33542 if (obj4) {
33543 ecode5 = SWIG_AsVal_int(obj4, &val5);
33544 if (!SWIG_IsOK(ecode5)) {
33545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33546 }
33547 arg5 = static_cast< int >(val5);
33548 }
33549 {
33550 PyThreadState* __tstate = wxPyBeginAllowThreads();
33551 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33552 wxPyEndAllowThreads(__tstate);
33553 if (PyErr_Occurred()) SWIG_fail;
33554 }
33555 resultobj = SWIG_Py_Void();
33556 {
33557 if (temp2)
33558 delete arg2;
33559 }
33560 return resultobj;
33561 fail:
33562 {
33563 if (temp2)
33564 delete arg2;
33565 }
33566 return NULL;
33567 }
33568
33569
33570 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33571 PyObject *resultobj = 0;
33572 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33573 wxString *arg2 = 0 ;
33574 wxBitmap *arg3 = 0 ;
33575 wxRect *arg4 = 0 ;
33576 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33577 int arg6 = (int) -1 ;
33578 void *argp1 = 0 ;
33579 int res1 = 0 ;
33580 bool temp2 = false ;
33581 void *argp3 = 0 ;
33582 int res3 = 0 ;
33583 wxRect temp4 ;
33584 int val5 ;
33585 int ecode5 = 0 ;
33586 int val6 ;
33587 int ecode6 = 0 ;
33588 PyObject * obj0 = 0 ;
33589 PyObject * obj1 = 0 ;
33590 PyObject * obj2 = 0 ;
33591 PyObject * obj3 = 0 ;
33592 PyObject * obj4 = 0 ;
33593 PyObject * obj5 = 0 ;
33594 char * kwnames[] = {
33595 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33596 };
33597
33598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33600 if (!SWIG_IsOK(res1)) {
33601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33602 }
33603 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33604 {
33605 arg2 = wxString_in_helper(obj1);
33606 if (arg2 == NULL) SWIG_fail;
33607 temp2 = true;
33608 }
33609 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33610 if (!SWIG_IsOK(res3)) {
33611 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33612 }
33613 if (!argp3) {
33614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33615 }
33616 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33617 {
33618 arg4 = &temp4;
33619 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33620 }
33621 if (obj4) {
33622 ecode5 = SWIG_AsVal_int(obj4, &val5);
33623 if (!SWIG_IsOK(ecode5)) {
33624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33625 }
33626 arg5 = static_cast< int >(val5);
33627 }
33628 if (obj5) {
33629 ecode6 = SWIG_AsVal_int(obj5, &val6);
33630 if (!SWIG_IsOK(ecode6)) {
33631 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33632 }
33633 arg6 = static_cast< int >(val6);
33634 }
33635 {
33636 PyThreadState* __tstate = wxPyBeginAllowThreads();
33637 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33638 wxPyEndAllowThreads(__tstate);
33639 if (PyErr_Occurred()) SWIG_fail;
33640 }
33641 resultobj = SWIG_Py_Void();
33642 {
33643 if (temp2)
33644 delete arg2;
33645 }
33646 return resultobj;
33647 fail:
33648 {
33649 if (temp2)
33650 delete arg2;
33651 }
33652 return NULL;
33653 }
33654
33655
33656 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33657 PyObject *resultobj = 0;
33658 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33659 int arg2 ;
33660 wxPoint *arg3 = (wxPoint *) 0 ;
33661 void *argp1 = 0 ;
33662 int res1 = 0 ;
33663 PyObject * obj0 = 0 ;
33664 PyObject * obj1 = 0 ;
33665 char * kwnames[] = {
33666 (char *) "self",(char *) "points", NULL
33667 };
33668
33669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33671 if (!SWIG_IsOK(res1)) {
33672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33673 }
33674 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33675 {
33676 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33677 if (arg3 == NULL) SWIG_fail;
33678 }
33679 {
33680 PyThreadState* __tstate = wxPyBeginAllowThreads();
33681 (arg1)->DrawSpline(arg2,arg3);
33682 wxPyEndAllowThreads(__tstate);
33683 if (PyErr_Occurred()) SWIG_fail;
33684 }
33685 resultobj = SWIG_Py_Void();
33686 {
33687 if (arg3) delete [] arg3;
33688 }
33689 return resultobj;
33690 fail:
33691 {
33692 if (arg3) delete [] arg3;
33693 }
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33699 PyObject *resultobj = 0;
33700 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33701 void *argp1 = 0 ;
33702 int res1 = 0 ;
33703 PyObject *swig_obj[1] ;
33704
33705 if (!args) SWIG_fail;
33706 swig_obj[0] = args;
33707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33708 if (!SWIG_IsOK(res1)) {
33709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33710 }
33711 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33712 {
33713 PyThreadState* __tstate = wxPyBeginAllowThreads();
33714 (arg1)->Clear();
33715 wxPyEndAllowThreads(__tstate);
33716 if (PyErr_Occurred()) SWIG_fail;
33717 }
33718 resultobj = SWIG_Py_Void();
33719 return resultobj;
33720 fail:
33721 return NULL;
33722 }
33723
33724
33725 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33726 PyObject *resultobj = 0;
33727 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33728 wxFont *arg2 = 0 ;
33729 void *argp1 = 0 ;
33730 int res1 = 0 ;
33731 void *argp2 = 0 ;
33732 int res2 = 0 ;
33733 PyObject * obj0 = 0 ;
33734 PyObject * obj1 = 0 ;
33735 char * kwnames[] = {
33736 (char *) "self",(char *) "font", NULL
33737 };
33738
33739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33741 if (!SWIG_IsOK(res1)) {
33742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33743 }
33744 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
33746 if (!SWIG_IsOK(res2)) {
33747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33748 }
33749 if (!argp2) {
33750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33751 }
33752 arg2 = reinterpret_cast< wxFont * >(argp2);
33753 {
33754 PyThreadState* __tstate = wxPyBeginAllowThreads();
33755 (arg1)->SetFont((wxFont const &)*arg2);
33756 wxPyEndAllowThreads(__tstate);
33757 if (PyErr_Occurred()) SWIG_fail;
33758 }
33759 resultobj = SWIG_Py_Void();
33760 return resultobj;
33761 fail:
33762 return NULL;
33763 }
33764
33765
33766 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33767 PyObject *resultobj = 0;
33768 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33769 wxPen *arg2 = 0 ;
33770 void *argp1 = 0 ;
33771 int res1 = 0 ;
33772 void *argp2 = 0 ;
33773 int res2 = 0 ;
33774 PyObject * obj0 = 0 ;
33775 PyObject * obj1 = 0 ;
33776 char * kwnames[] = {
33777 (char *) "self",(char *) "pen", NULL
33778 };
33779
33780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
33781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33782 if (!SWIG_IsOK(res1)) {
33783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33784 }
33785 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
33787 if (!SWIG_IsOK(res2)) {
33788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33789 }
33790 if (!argp2) {
33791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33792 }
33793 arg2 = reinterpret_cast< wxPen * >(argp2);
33794 {
33795 PyThreadState* __tstate = wxPyBeginAllowThreads();
33796 (arg1)->SetPen((wxPen const &)*arg2);
33797 wxPyEndAllowThreads(__tstate);
33798 if (PyErr_Occurred()) SWIG_fail;
33799 }
33800 resultobj = SWIG_Py_Void();
33801 return resultobj;
33802 fail:
33803 return NULL;
33804 }
33805
33806
33807 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33808 PyObject *resultobj = 0;
33809 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33810 wxBrush *arg2 = 0 ;
33811 void *argp1 = 0 ;
33812 int res1 = 0 ;
33813 void *argp2 = 0 ;
33814 int res2 = 0 ;
33815 PyObject * obj0 = 0 ;
33816 PyObject * obj1 = 0 ;
33817 char * kwnames[] = {
33818 (char *) "self",(char *) "brush", NULL
33819 };
33820
33821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33823 if (!SWIG_IsOK(res1)) {
33824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33825 }
33826 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33828 if (!SWIG_IsOK(res2)) {
33829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33830 }
33831 if (!argp2) {
33832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33833 }
33834 arg2 = reinterpret_cast< wxBrush * >(argp2);
33835 {
33836 PyThreadState* __tstate = wxPyBeginAllowThreads();
33837 (arg1)->SetBrush((wxBrush const &)*arg2);
33838 wxPyEndAllowThreads(__tstate);
33839 if (PyErr_Occurred()) SWIG_fail;
33840 }
33841 resultobj = SWIG_Py_Void();
33842 return resultobj;
33843 fail:
33844 return NULL;
33845 }
33846
33847
33848 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33849 PyObject *resultobj = 0;
33850 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33851 wxBrush *arg2 = 0 ;
33852 void *argp1 = 0 ;
33853 int res1 = 0 ;
33854 void *argp2 = 0 ;
33855 int res2 = 0 ;
33856 PyObject * obj0 = 0 ;
33857 PyObject * obj1 = 0 ;
33858 char * kwnames[] = {
33859 (char *) "self",(char *) "brush", NULL
33860 };
33861
33862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
33863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33864 if (!SWIG_IsOK(res1)) {
33865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33866 }
33867 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33869 if (!SWIG_IsOK(res2)) {
33870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33871 }
33872 if (!argp2) {
33873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33874 }
33875 arg2 = reinterpret_cast< wxBrush * >(argp2);
33876 {
33877 PyThreadState* __tstate = wxPyBeginAllowThreads();
33878 (arg1)->SetBackground((wxBrush const &)*arg2);
33879 wxPyEndAllowThreads(__tstate);
33880 if (PyErr_Occurred()) SWIG_fail;
33881 }
33882 resultobj = SWIG_Py_Void();
33883 return resultobj;
33884 fail:
33885 return NULL;
33886 }
33887
33888
33889 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33890 PyObject *resultobj = 0;
33891 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33892 int arg2 ;
33893 void *argp1 = 0 ;
33894 int res1 = 0 ;
33895 int val2 ;
33896 int ecode2 = 0 ;
33897 PyObject * obj0 = 0 ;
33898 PyObject * obj1 = 0 ;
33899 char * kwnames[] = {
33900 (char *) "self",(char *) "mode", NULL
33901 };
33902
33903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
33904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33905 if (!SWIG_IsOK(res1)) {
33906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33907 }
33908 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33909 ecode2 = SWIG_AsVal_int(obj1, &val2);
33910 if (!SWIG_IsOK(ecode2)) {
33911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
33912 }
33913 arg2 = static_cast< int >(val2);
33914 {
33915 PyThreadState* __tstate = wxPyBeginAllowThreads();
33916 (arg1)->SetBackgroundMode(arg2);
33917 wxPyEndAllowThreads(__tstate);
33918 if (PyErr_Occurred()) SWIG_fail;
33919 }
33920 resultobj = SWIG_Py_Void();
33921 return resultobj;
33922 fail:
33923 return NULL;
33924 }
33925
33926
33927 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33928 PyObject *resultobj = 0;
33929 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33930 wxPalette *arg2 = 0 ;
33931 void *argp1 = 0 ;
33932 int res1 = 0 ;
33933 void *argp2 = 0 ;
33934 int res2 = 0 ;
33935 PyObject * obj0 = 0 ;
33936 PyObject * obj1 = 0 ;
33937 char * kwnames[] = {
33938 (char *) "self",(char *) "palette", NULL
33939 };
33940
33941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
33942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33943 if (!SWIG_IsOK(res1)) {
33944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33945 }
33946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
33948 if (!SWIG_IsOK(res2)) {
33949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
33950 }
33951 if (!argp2) {
33952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
33953 }
33954 arg2 = reinterpret_cast< wxPalette * >(argp2);
33955 {
33956 PyThreadState* __tstate = wxPyBeginAllowThreads();
33957 (arg1)->SetPalette((wxPalette const &)*arg2);
33958 wxPyEndAllowThreads(__tstate);
33959 if (PyErr_Occurred()) SWIG_fail;
33960 }
33961 resultobj = SWIG_Py_Void();
33962 return resultobj;
33963 fail:
33964 return NULL;
33965 }
33966
33967
33968 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33969 PyObject *resultobj = 0;
33970 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33971 wxColour *arg2 = 0 ;
33972 void *argp1 = 0 ;
33973 int res1 = 0 ;
33974 wxColour temp2 ;
33975 PyObject * obj0 = 0 ;
33976 PyObject * obj1 = 0 ;
33977 char * kwnames[] = {
33978 (char *) "self",(char *) "colour", NULL
33979 };
33980
33981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
33982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33983 if (!SWIG_IsOK(res1)) {
33984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33985 }
33986 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33987 {
33988 arg2 = &temp2;
33989 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33990 }
33991 {
33992 PyThreadState* __tstate = wxPyBeginAllowThreads();
33993 (arg1)->SetTextForeground((wxColour const &)*arg2);
33994 wxPyEndAllowThreads(__tstate);
33995 if (PyErr_Occurred()) SWIG_fail;
33996 }
33997 resultobj = SWIG_Py_Void();
33998 return resultobj;
33999 fail:
34000 return NULL;
34001 }
34002
34003
34004 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34005 PyObject *resultobj = 0;
34006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34007 wxColour *arg2 = 0 ;
34008 void *argp1 = 0 ;
34009 int res1 = 0 ;
34010 wxColour temp2 ;
34011 PyObject * obj0 = 0 ;
34012 PyObject * obj1 = 0 ;
34013 char * kwnames[] = {
34014 (char *) "self",(char *) "colour", NULL
34015 };
34016
34017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34019 if (!SWIG_IsOK(res1)) {
34020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34021 }
34022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34023 {
34024 arg2 = &temp2;
34025 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34026 }
34027 {
34028 PyThreadState* __tstate = wxPyBeginAllowThreads();
34029 (arg1)->SetTextBackground((wxColour const &)*arg2);
34030 wxPyEndAllowThreads(__tstate);
34031 if (PyErr_Occurred()) SWIG_fail;
34032 }
34033 resultobj = SWIG_Py_Void();
34034 return resultobj;
34035 fail:
34036 return NULL;
34037 }
34038
34039
34040 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34041 PyObject *resultobj = 0;
34042 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34043 int arg2 ;
34044 void *argp1 = 0 ;
34045 int res1 = 0 ;
34046 int val2 ;
34047 int ecode2 = 0 ;
34048 PyObject * obj0 = 0 ;
34049 PyObject * obj1 = 0 ;
34050 char * kwnames[] = {
34051 (char *) "self",(char *) "function", NULL
34052 };
34053
34054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34056 if (!SWIG_IsOK(res1)) {
34057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34058 }
34059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34060 ecode2 = SWIG_AsVal_int(obj1, &val2);
34061 if (!SWIG_IsOK(ecode2)) {
34062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34063 }
34064 arg2 = static_cast< int >(val2);
34065 {
34066 PyThreadState* __tstate = wxPyBeginAllowThreads();
34067 (arg1)->SetLogicalFunction(arg2);
34068 wxPyEndAllowThreads(__tstate);
34069 if (PyErr_Occurred()) SWIG_fail;
34070 }
34071 resultobj = SWIG_Py_Void();
34072 return resultobj;
34073 fail:
34074 return NULL;
34075 }
34076
34077
34078 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34079 PyObject *obj;
34080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34081 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34082 return SWIG_Py_Void();
34083 }
34084
34085 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34086 return SWIG_Python_InitShadowInstance(args);
34087 }
34088
34089 static PyMethodDef SwigMethods[] = {
34090 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34091 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34092 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34093 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34094 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34095 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34096 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34097 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34098 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34099 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34100 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34101 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34102 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34103 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
34104 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34105 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34106 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34107 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34108 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34109 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34110 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34111 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34112 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34113 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34114 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34115 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34116 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34117 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34118 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34119 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34120 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
34121 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34122 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34123 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34124 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34125 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34126 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34127 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34128 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34129 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34130 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
34131 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34132 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34133 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34134 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34135 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34136 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34137 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34138 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34139 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34140 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34141 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34142 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34143 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34144 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34145 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34146 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34147 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34148 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34149 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34150 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34151 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34152 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34153 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
34154 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34155 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34156 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34157 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34158 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34159 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34160 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34161 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34162 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34163 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34164 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34165 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
34166 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34167 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34168 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34169 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34170 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34171 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34172 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34173 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34174 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34175 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34176 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34177 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34178 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34179 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34180 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34181 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34182 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34183 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34184 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34185 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34186 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34187 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34188 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34189 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34190 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34191 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34192 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34193 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34194 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34195 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34196 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34197 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34198 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34199 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34200 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34201 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34202 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34203 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34204 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34205 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34206 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34207 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34208 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34209 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34210 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34211 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34212 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34213 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34214 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34215 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34216 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34217 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34218 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34219 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34220 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34221 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34222 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34223 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34224 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34225 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34226 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34227 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34228 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34229 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34230 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34231 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34232 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34233 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34234 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34235 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34236 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34237 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34238 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34239 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34240 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34241 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34242 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34243 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34244 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34245 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34246 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
34247 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34248 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34249 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34250 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34251 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34252 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34253 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34254 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34255 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34256 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34257 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34258 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34259 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34260 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34261 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34262 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34263 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34264 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34265 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34266 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34267 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34268 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34269 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34270 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34271 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34272 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34273 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34274 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34275 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34276 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34277 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34278 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
34279 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34280 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34281 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34282 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34283 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34284 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34285 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34286 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34287 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34288 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34289 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34290 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34291 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34292 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34293 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34294 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34295 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34296 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34297 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34298 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34299 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34300 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34301 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34302 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34303 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34304 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34305 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34306 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34307 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34308 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34309 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34310 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34311 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34312 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34313 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34314 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34315 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34316 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34317 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34318 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34319 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34320 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34321 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34322 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34323 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34324 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34325 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34326 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34327 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34328 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34329 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34330 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34331 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34332 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34333 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34334 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34335 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34336 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34337 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34338 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34339 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34340 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34341 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34342 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34343 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34344 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34345 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34346 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34347 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34348 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34349 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34350 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34351 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34352 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34353 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34354 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34355 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34356 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34357 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34358 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34359 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34360 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34361 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34362 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34363 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34364 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34365 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34366 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34367 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34368 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34369 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34370 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34371 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34372 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34373 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34374 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34375 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34376 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34377 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34378 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34379 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34380 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34381 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34382 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34383 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34384 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34385 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34386 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34387 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34388 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34389 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
34390 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34391 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34392 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34393 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34394 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34395 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34396 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34397 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34398 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34399 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34400 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34401 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34402 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34403 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34404 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34405 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34407 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34408 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34409 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34410 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34411 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34412 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34413 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34414 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34415 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34416 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34417 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34418 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34419 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34420 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34421 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34422 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34423 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34424 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34425 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34426 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34427 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34428 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34429 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34430 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34431 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34432 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34433 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34434 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34435 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34436 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34437 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34438 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34439 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34440 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34441 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34442 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34444 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34446 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34447 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34448 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34449 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34450 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34451 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34452 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34453 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34454 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34455 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34456 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34457 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34458 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34459 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34460 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34461 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34462 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34463 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34464 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34465 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34466 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34467 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34468 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34472 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
34473 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34474 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34475 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34476 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34477 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34479 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34480 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34481 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34483 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34484 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34485 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34487 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34489 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34490 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34491 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34492 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34493 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34494 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34495 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34496 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34499 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34500 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34501 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34502 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34503 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34504 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34505 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34506 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34507 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34508 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34509 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34510 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34513 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34514 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34516 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34521 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34522 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34523 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34524 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34525 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34526 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34527 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34528 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34529 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34530 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34531 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34532 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34533 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34534 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34535 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34536 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34537 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34538 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34539 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34540 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34541 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34542 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34543 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34544 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34545 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34546 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34547 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34548 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34549 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34550 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34551 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34552 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34553 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34554 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34555 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34556 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34557 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34558 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34559 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34563 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34564 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34565 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34566 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34567 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34568 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34569 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
34570 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34571 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34572 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34573 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34574 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34575 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34576 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34577 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34578 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34580 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34582 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34583 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34584 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34585 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34586 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34587 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34588 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34589 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34590 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34591 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34594 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34595 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34597 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34600 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34601 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34602 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34603 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34604 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34605 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34612 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
34613 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34616 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34617 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34618 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34619 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34620 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34621 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34622 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34623 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34624 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34625 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34626 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34627 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34629 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34630 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
34631 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34632 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34633 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
34634 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34636 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34637 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34639 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
34640 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34642 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34643 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34644 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34645 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34646 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34647 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34648 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34649 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34650 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
34652 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
34653 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
34654 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
34655 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
34656 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
34657 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34658 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34659 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34660 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
34661 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34662 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34663 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34664 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34665 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
34666 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34667 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34668 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34669 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34670 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34671 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34672 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34674 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34675 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34676 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34678 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34679 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34681 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34682 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34683 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34684 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34686 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34687 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34689 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34690 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34691 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
34693 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
34696 { (char *)"GraphicsContext_DrawText", _wrap_GraphicsContext_DrawText, METH_VARARGS, NULL},
34697 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34699 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34700 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34701 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
34702 { (char *)"GraphicsContext_StrokeLines", _wrap_GraphicsContext_StrokeLines, METH_VARARGS, NULL},
34703 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34704 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34705 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34706 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
34708 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
34710 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
34711 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
34712 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
34713 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
34715 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34719 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34720 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
34723 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
34725 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34726 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
34727 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
34728 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
34729 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
34730 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
34731 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
34732 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34733 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34734 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34735 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34736 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
34738 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
34739 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
34740 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
34741 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
34742 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
34743 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
34744 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
34747 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34748 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34749 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34750 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
34751 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
34755 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
34756 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
34757 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
34758 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
34760 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
34761 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
34762 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
34763 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
34764 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
34765 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
34766 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
34767 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
34768 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
34769 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
34770 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
34771 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
34772 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
34773 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
34774 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
34776 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34777 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
34780 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
34782 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
34783 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
34785 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
34786 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
34787 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
34788 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
34789 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
34790 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
34791 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
34792 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
34793 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
34794 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
34795 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
34796 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
34797 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
34798 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
34799 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
34800 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
34801 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
34802 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
34803 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
34804 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
34805 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
34806 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
34807 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
34808 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
34809 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
34810 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
34811 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
34812 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
34813 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
34814 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
34815 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
34820 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
34828 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
34829 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
34830 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
34832 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
34833 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
34834 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
34835 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
34836 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
34837 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
34838 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
34839 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34854 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34857 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34861 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34862 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34863 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34865 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34866 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34870 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34871 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34873 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34875 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34878 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34880 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34881 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34883 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
34892 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34893 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34894 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34895 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34898 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34899 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34900 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
34902 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
34903 { NULL, NULL, 0, NULL }
34904 };
34905
34906
34907 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
34908
34909 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
34910 return (void *)((wxClientDC *) ((wxPaintDC *) x));
34911 }
34912 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
34913 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
34914 }
34915 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
34916 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
34917 }
34918 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
34919 return (void *)((wxWindowDC *) ((wxClientDC *) x));
34920 }
34921 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
34922 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
34923 }
34924 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
34925 return (void *)((wxLocale *) ((wxPyLocale *) x));
34926 }
34927 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
34928 return (void *)((wxGDIObject *) ((wxIcon *) x));
34929 }
34930 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
34931 return (void *)((wxGDIObject *) ((wxPalette *) x));
34932 }
34933 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
34934 return (void *)((wxGDIObject *) ((wxPen *) x));
34935 }
34936 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
34937 return (void *)((wxGDIObject *) ((wxFont *) x));
34938 }
34939 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
34940 return (void *)((wxGDIObject *) ((wxCursor *) x));
34941 }
34942 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
34943 return (void *)((wxGDIObject *) ((wxBitmap *) x));
34944 }
34945 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
34946 return (void *)((wxGDIObject *) ((wxRegion *) x));
34947 }
34948 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
34949 return (void *)((wxGDIObject *) ((wxBrush *) x));
34950 }
34951 static void *_p_wxGCDCTo_p_wxDC(void *x) {
34952 return (void *)((wxDC *) ((wxGCDC *) x));
34953 }
34954 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
34955 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
34956 }
34957 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
34958 return (void *)((wxDC *) ((wxScreenDC *) x));
34959 }
34960 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
34961 return (void *)((wxDC *) ((wxMirrorDC *) x));
34962 }
34963 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
34964 return (void *)((wxDC *) ((wxMemoryDC *) x));
34965 }
34966 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
34967 return (void *)((wxDC *) ((wxWindowDC *) x));
34968 }
34969 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
34970 return (void *)((wxDC *) ((wxMetaFileDC *) x));
34971 }
34972 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
34973 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
34974 }
34975 static void *_p_wxClientDCTo_p_wxDC(void *x) {
34976 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
34977 }
34978 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
34979 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
34980 }
34981 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
34982 return (void *)((wxDC *) ((wxPostScriptDC *) x));
34983 }
34984 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
34985 return (void *)((wxDC *) ((wxPrinterDC *) x));
34986 }
34987 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
34988 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
34989 }
34990 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
34991 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
34992 }
34993 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
34994 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
34995 }
34996 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
34997 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
34998 }
34999 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35000 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35001 }
35002 static void *_p_wxPenTo_p_wxObject(void *x) {
35003 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35004 }
35005 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35006 return (void *)((wxObject *) ((wxRegionIterator *) x));
35007 }
35008 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35009 return (void *)((wxObject *) ((wxSizerItem *) x));
35010 }
35011 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35012 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35013 }
35014 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35015 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35016 }
35017 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35018 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35019 }
35020 static void *_p_wxIconTo_p_wxObject(void *x) {
35021 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35022 }
35023 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35024 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35025 }
35026 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35027 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35028 }
35029 static void *_p_wxSizerTo_p_wxObject(void *x) {
35030 return (void *)((wxObject *) ((wxSizer *) x));
35031 }
35032 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35033 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35034 }
35035 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35036 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35037 }
35038 static void *_p_wxEventTo_p_wxObject(void *x) {
35039 return (void *)((wxObject *) ((wxEvent *) x));
35040 }
35041 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35042 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35043 }
35044 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35045 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35046 }
35047 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35048 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35049 }
35050 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35051 return (void *)((wxObject *) ((wxPseudoDC *) x));
35052 }
35053 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35054 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35055 }
35056 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35057 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35058 }
35059 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35060 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35061 }
35062 static void *_p_wxDCTo_p_wxObject(void *x) {
35063 return (void *)((wxObject *) ((wxDC *) x));
35064 }
35065 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35066 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35067 }
35068 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35069 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35070 }
35071 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35072 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35073 }
35074 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35075 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35076 }
35077 static void *_p_wxControlTo_p_wxObject(void *x) {
35078 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35079 }
35080 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35081 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35082 }
35083 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35084 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35085 }
35086 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35087 return (void *)((wxObject *) ((wxFSFile *) x));
35088 }
35089 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35090 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35091 }
35092 static void *_p_wxRegionTo_p_wxObject(void *x) {
35093 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35094 }
35095 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35096 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35097 }
35098 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35099 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35100 }
35101 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35102 return (void *)((wxObject *) ((wxGDIObject *) x));
35103 }
35104 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35105 return (void *)((wxObject *) ((wxEffects *) x));
35106 }
35107 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35108 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35109 }
35110 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35111 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35112 }
35113 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35114 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35115 }
35116 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35117 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35118 }
35119 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35120 return (void *)((wxObject *) ((wxMenuItem *) x));
35121 }
35122 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35123 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35124 }
35125 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35126 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35127 }
35128 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35129 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35130 }
35131 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35132 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35133 }
35134 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35135 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35136 }
35137 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35138 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35139 }
35140 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35141 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35142 }
35143 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35144 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35145 }
35146 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35147 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35148 }
35149 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35150 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35151 }
35152 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35153 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35154 }
35155 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35156 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35157 }
35158 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35159 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35160 }
35161 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35162 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35163 }
35164 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35165 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35166 }
35167 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35168 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35169 }
35170 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35171 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35172 }
35173 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35174 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35175 }
35176 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35177 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35178 }
35179 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35180 return (void *)((wxObject *) ((wxImageHandler *) x));
35181 }
35182 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35183 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35184 }
35185 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35186 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35187 }
35188 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35189 return (void *)((wxObject *) ((wxEvtHandler *) x));
35190 }
35191 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35192 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35193 }
35194 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35195 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35196 }
35197 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35198 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35199 }
35200 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35201 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35202 }
35203 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35204 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35205 }
35206 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35207 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35208 }
35209 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35210 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35211 }
35212 static void *_p_wxImageTo_p_wxObject(void *x) {
35213 return (void *)((wxObject *) ((wxImage *) x));
35214 }
35215 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35216 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35217 }
35218 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35219 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35220 }
35221 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35222 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35223 }
35224 static void *_p_wxImageListTo_p_wxObject(void *x) {
35225 return (void *)((wxObject *) ((wxImageList *) x));
35226 }
35227 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35228 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35229 }
35230 static void *_p_wxCursorTo_p_wxObject(void *x) {
35231 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35232 }
35233 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35234 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35235 }
35236 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35237 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35238 }
35239 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35240 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35241 }
35242 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35243 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35244 }
35245 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35246 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35247 }
35248 static void *_p_wxWindowTo_p_wxObject(void *x) {
35249 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35250 }
35251 static void *_p_wxMenuTo_p_wxObject(void *x) {
35252 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35253 }
35254 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35255 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35256 }
35257 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35258 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35259 }
35260 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35261 return (void *)((wxObject *) ((wxFileSystem *) x));
35262 }
35263 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35264 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35265 }
35266 static void *_p_wxMaskTo_p_wxObject(void *x) {
35267 return (void *)((wxObject *) ((wxMask *) x));
35268 }
35269 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35270 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35271 }
35272 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35273 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35274 }
35275 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35276 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35277 }
35278 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35279 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35280 }
35281 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35282 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35283 }
35284 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35285 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35286 }
35287 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35288 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35289 }
35290 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35291 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35292 }
35293 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35294 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35295 }
35296 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35297 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35298 }
35299 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35300 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35301 }
35302 static void *_p_wxFontTo_p_wxObject(void *x) {
35303 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35304 }
35305 static void *_p_wxBrushTo_p_wxObject(void *x) {
35306 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35307 }
35308 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35309 return (void *)((wxObject *) ((wxMetaFile *) x));
35310 }
35311 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35312 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35313 }
35314 static void *_p_wxColourTo_p_wxObject(void *x) {
35315 return (void *)((wxObject *) ((wxColour *) x));
35316 }
35317 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35318 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35319 }
35320 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35321 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35322 }
35323 static void *_p_wxControlTo_p_wxWindow(void *x) {
35324 return (void *)((wxWindow *) ((wxControl *) x));
35325 }
35326 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35327 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35328 }
35329 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35330 return (void *)((wxWindow *) ((wxMenuBar *) x));
35331 }
35332 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35333 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35334 }
35335 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35336 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35337 }
35338 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35339 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35340 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35341 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};
35342 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35343 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35344 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35345 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35346 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35347 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35348 static swig_type_info _swigt__p_wxArrayDouble = {"_p_wxArrayDouble", "wxArrayDouble *", 0, 0, (void*)0, 0};
35349 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35350 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35351 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35352 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35353 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35354 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35355 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35356 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35357 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35358 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35359 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35360 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35361 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35362 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35363 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35364 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35365 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35366 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35367 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35368 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35369 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35370 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35371 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35372 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35373 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35374 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35375 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35376 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35377 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35378 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35379 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35380 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35381 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35382 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35383 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35384 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35385 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35386 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35387 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35388 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35389 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35390 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35391 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35392 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35393 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35394 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35395 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35396 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35397 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35398 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35399 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35400 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35401 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35402 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35403 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35404 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35405 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35406 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35407 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35408 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35409 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35410 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35411 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35412 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35413 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35414 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35415 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35416 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35417 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35418 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35419 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35420 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35421 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35422 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35423 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35424 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35425 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35426 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35427 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35428 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35429 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35430 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35431 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35432 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35433 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35434 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35435 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35436 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35437 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
35438 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
35439 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
35440 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
35441 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35442 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35443 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
35444 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
35445 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35446 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35447 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35448 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35449 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35450 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35451 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35452 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35453 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35454 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35455 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35456 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35457 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35458 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35459 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35460 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35461 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35462 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35463 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35464 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35465 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35466 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35467 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35468 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35469 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35470 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35471 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
35472 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
35473 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
35474 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
35475 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35476 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35477 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
35478 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
35479 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
35480 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
35481 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35482 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35483 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35484 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35485 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35486 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35487 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35488 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
35489 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
35490 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35491 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35492 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35493
35494 static swig_type_info *swig_type_initial[] = {
35495 &_swigt__p_buffer,
35496 &_swigt__p_char,
35497 &_swigt__p_double,
35498 &_swigt__p_form_ops_t,
35499 &_swigt__p_int,
35500 &_swigt__p_unsigned_char,
35501 &_swigt__p_unsigned_int,
35502 &_swigt__p_unsigned_long,
35503 &_swigt__p_wxANIHandler,
35504 &_swigt__p_wxAcceleratorTable,
35505 &_swigt__p_wxActivateEvent,
35506 &_swigt__p_wxAlphaPixelData,
35507 &_swigt__p_wxAlphaPixelData_Accessor,
35508 &_swigt__p_wxArrayDouble,
35509 &_swigt__p_wxBMPHandler,
35510 &_swigt__p_wxBitmap,
35511 &_swigt__p_wxBoxSizer,
35512 &_swigt__p_wxBrush,
35513 &_swigt__p_wxBrushList,
35514 &_swigt__p_wxBufferedDC,
35515 &_swigt__p_wxBufferedPaintDC,
35516 &_swigt__p_wxCURHandler,
35517 &_swigt__p_wxChar,
35518 &_swigt__p_wxChildFocusEvent,
35519 &_swigt__p_wxClientDC,
35520 &_swigt__p_wxClipboardTextEvent,
35521 &_swigt__p_wxCloseEvent,
35522 &_swigt__p_wxColor,
35523 &_swigt__p_wxColour,
35524 &_swigt__p_wxColourDatabase,
35525 &_swigt__p_wxCommandEvent,
35526 &_swigt__p_wxContextMenuEvent,
35527 &_swigt__p_wxControl,
35528 &_swigt__p_wxControlWithItems,
35529 &_swigt__p_wxCursor,
35530 &_swigt__p_wxDC,
35531 &_swigt__p_wxDash,
35532 &_swigt__p_wxDateEvent,
35533 &_swigt__p_wxDisplayChangedEvent,
35534 &_swigt__p_wxDropFilesEvent,
35535 &_swigt__p_wxDuplexMode,
35536 &_swigt__p_wxEffects,
35537 &_swigt__p_wxEncodingConverter,
35538 &_swigt__p_wxEraseEvent,
35539 &_swigt__p_wxEvent,
35540 &_swigt__p_wxEvtHandler,
35541 &_swigt__p_wxFSFile,
35542 &_swigt__p_wxFileSystem,
35543 &_swigt__p_wxFlexGridSizer,
35544 &_swigt__p_wxFocusEvent,
35545 &_swigt__p_wxFont,
35546 &_swigt__p_wxFontList,
35547 &_swigt__p_wxFontMapper,
35548 &_swigt__p_wxGBSizerItem,
35549 &_swigt__p_wxGCDC,
35550 &_swigt__p_wxGDIObjListBase,
35551 &_swigt__p_wxGDIObject,
35552 &_swigt__p_wxGIFHandler,
35553 &_swigt__p_wxGraphicsContext,
35554 &_swigt__p_wxGraphicsPath,
35555 &_swigt__p_wxGridBagSizer,
35556 &_swigt__p_wxGridSizer,
35557 &_swigt__p_wxHeaderButtonParams,
35558 &_swigt__p_wxICOHandler,
35559 &_swigt__p_wxIcon,
35560 &_swigt__p_wxIconBundle,
35561 &_swigt__p_wxIconLocation,
35562 &_swigt__p_wxIconizeEvent,
35563 &_swigt__p_wxIdleEvent,
35564 &_swigt__p_wxImage,
35565 &_swigt__p_wxImageHandler,
35566 &_swigt__p_wxImageList,
35567 &_swigt__p_wxIndividualLayoutConstraint,
35568 &_swigt__p_wxInitDialogEvent,
35569 &_swigt__p_wxJPEGHandler,
35570 &_swigt__p_wxKeyEvent,
35571 &_swigt__p_wxLanguageInfo,
35572 &_swigt__p_wxLayoutConstraints,
35573 &_swigt__p_wxLocale,
35574 &_swigt__p_wxMask,
35575 &_swigt__p_wxMaximizeEvent,
35576 &_swigt__p_wxMemoryDC,
35577 &_swigt__p_wxMenu,
35578 &_swigt__p_wxMenuBar,
35579 &_swigt__p_wxMenuEvent,
35580 &_swigt__p_wxMenuItem,
35581 &_swigt__p_wxMetaFile,
35582 &_swigt__p_wxMetaFileDC,
35583 &_swigt__p_wxMirrorDC,
35584 &_swigt__p_wxMouseCaptureChangedEvent,
35585 &_swigt__p_wxMouseCaptureLostEvent,
35586 &_swigt__p_wxMouseEvent,
35587 &_swigt__p_wxMoveEvent,
35588 &_swigt__p_wxNativeEncodingInfo,
35589 &_swigt__p_wxNativeFontInfo,
35590 &_swigt__p_wxNativePixelData,
35591 &_swigt__p_wxNativePixelData_Accessor,
35592 &_swigt__p_wxNavigationKeyEvent,
35593 &_swigt__p_wxNcPaintEvent,
35594 &_swigt__p_wxNotifyEvent,
35595 &_swigt__p_wxObject,
35596 &_swigt__p_wxPCXHandler,
35597 &_swigt__p_wxPNGHandler,
35598 &_swigt__p_wxPNMHandler,
35599 &_swigt__p_wxPaintDC,
35600 &_swigt__p_wxPaintEvent,
35601 &_swigt__p_wxPalette,
35602 &_swigt__p_wxPaletteChangedEvent,
35603 &_swigt__p_wxPaperSize,
35604 &_swigt__p_wxPen,
35605 &_swigt__p_wxPenList,
35606 &_swigt__p_wxPixelDataBase,
35607 &_swigt__p_wxPoint,
35608 &_swigt__p_wxPoint2D,
35609 &_swigt__p_wxPostScriptDC,
35610 &_swigt__p_wxPrintData,
35611 &_swigt__p_wxPrinterDC,
35612 &_swigt__p_wxPseudoDC,
35613 &_swigt__p_wxPyApp,
35614 &_swigt__p_wxPyCommandEvent,
35615 &_swigt__p_wxPyEvent,
35616 &_swigt__p_wxPyFontEnumerator,
35617 &_swigt__p_wxPyImageHandler,
35618 &_swigt__p_wxPyLocale,
35619 &_swigt__p_wxPySizer,
35620 &_swigt__p_wxPyValidator,
35621 &_swigt__p_wxQueryNewPaletteEvent,
35622 &_swigt__p_wxRect,
35623 &_swigt__p_wxRegion,
35624 &_swigt__p_wxRegionIterator,
35625 &_swigt__p_wxRendererNative,
35626 &_swigt__p_wxRendererVersion,
35627 &_swigt__p_wxScreenDC,
35628 &_swigt__p_wxScrollEvent,
35629 &_swigt__p_wxScrollWinEvent,
35630 &_swigt__p_wxSetCursorEvent,
35631 &_swigt__p_wxShowEvent,
35632 &_swigt__p_wxSize,
35633 &_swigt__p_wxSizeEvent,
35634 &_swigt__p_wxSizer,
35635 &_swigt__p_wxSizerItem,
35636 &_swigt__p_wxSplitterRenderParams,
35637 &_swigt__p_wxStaticBoxSizer,
35638 &_swigt__p_wxStdDialogButtonSizer,
35639 &_swigt__p_wxStockGDI,
35640 &_swigt__p_wxString,
35641 &_swigt__p_wxSysColourChangedEvent,
35642 &_swigt__p_wxTIFFHandler,
35643 &_swigt__p_wxUpdateUIEvent,
35644 &_swigt__p_wxValidator,
35645 &_swigt__p_wxWindow,
35646 &_swigt__p_wxWindowCreateEvent,
35647 &_swigt__p_wxWindowDC,
35648 &_swigt__p_wxWindowDestroyEvent,
35649 &_swigt__p_wxXPMHandler,
35650 };
35651
35652 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
35653 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35654 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35655 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35656 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35657 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35658 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35659 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
35660 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35661 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35662 static swig_cast_info _swigc__p_wxArrayDouble[] = { {&_swigt__p_wxArrayDouble, 0, 0, 0},{0, 0, 0, 0}};
35663 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35664 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35665 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35666 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}};
35667 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35668 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
35669 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}};
35670 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
35671 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35672 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35673 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
35674 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
35675 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35676 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35677 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35678 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35679 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35680 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
35681 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
35682 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
35683 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}};
35684 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}};
35685 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
35686 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
35687 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
35688 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
35689 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
35690 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
35691 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
35692 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
35693 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
35694 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}};
35695 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
35696 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}};
35697 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
35698 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
35699 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
35700 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
35701 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
35702 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
35703 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35704 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
35705 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
35706 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
35707 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
35708 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
35709 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35710 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35711 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
35712 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
35713 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
35714 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
35715 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
35716 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35717 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35718 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
35719 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
35720 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35721 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35722 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35723 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35724 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35725 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35726 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
35727 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
35728 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
35729 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
35730 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
35731 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
35732 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
35733 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
35734 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
35735 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
35736 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
35737 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
35738 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35739 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35740 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35741 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
35742 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
35743 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
35744 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
35745 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
35746 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35747 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35748 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
35749 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
35750 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
35751 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
35752 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
35753 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
35754 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
35755 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
35756 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
35757 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
35758 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
35759 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
35760 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
35761 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
35762 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35763 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35764 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
35765 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
35766 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35767 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35768 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
35769 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
35770 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
35771 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
35772 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35773 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35774 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
35775 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35776 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35777 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
35778 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
35779 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
35780 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
35781 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35782 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
35783 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
35784 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
35785 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
35786 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}};
35787 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
35788 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
35789 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
35790 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
35791 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
35792 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
35793 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
35794 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
35795 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
35796 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
35797 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
35798 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
35799 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
35800 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
35801 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
35802 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
35803 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
35804 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
35805 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}};
35806 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}};
35807
35808 static swig_cast_info *swig_cast_initial[] = {
35809 _swigc__p_buffer,
35810 _swigc__p_char,
35811 _swigc__p_double,
35812 _swigc__p_form_ops_t,
35813 _swigc__p_int,
35814 _swigc__p_unsigned_char,
35815 _swigc__p_unsigned_int,
35816 _swigc__p_unsigned_long,
35817 _swigc__p_wxANIHandler,
35818 _swigc__p_wxAcceleratorTable,
35819 _swigc__p_wxActivateEvent,
35820 _swigc__p_wxAlphaPixelData,
35821 _swigc__p_wxAlphaPixelData_Accessor,
35822 _swigc__p_wxArrayDouble,
35823 _swigc__p_wxBMPHandler,
35824 _swigc__p_wxBitmap,
35825 _swigc__p_wxBoxSizer,
35826 _swigc__p_wxBrush,
35827 _swigc__p_wxBrushList,
35828 _swigc__p_wxBufferedDC,
35829 _swigc__p_wxBufferedPaintDC,
35830 _swigc__p_wxCURHandler,
35831 _swigc__p_wxChar,
35832 _swigc__p_wxChildFocusEvent,
35833 _swigc__p_wxClientDC,
35834 _swigc__p_wxClipboardTextEvent,
35835 _swigc__p_wxCloseEvent,
35836 _swigc__p_wxColor,
35837 _swigc__p_wxColour,
35838 _swigc__p_wxColourDatabase,
35839 _swigc__p_wxCommandEvent,
35840 _swigc__p_wxContextMenuEvent,
35841 _swigc__p_wxControl,
35842 _swigc__p_wxControlWithItems,
35843 _swigc__p_wxCursor,
35844 _swigc__p_wxDC,
35845 _swigc__p_wxDash,
35846 _swigc__p_wxDateEvent,
35847 _swigc__p_wxDisplayChangedEvent,
35848 _swigc__p_wxDropFilesEvent,
35849 _swigc__p_wxDuplexMode,
35850 _swigc__p_wxEffects,
35851 _swigc__p_wxEncodingConverter,
35852 _swigc__p_wxEraseEvent,
35853 _swigc__p_wxEvent,
35854 _swigc__p_wxEvtHandler,
35855 _swigc__p_wxFSFile,
35856 _swigc__p_wxFileSystem,
35857 _swigc__p_wxFlexGridSizer,
35858 _swigc__p_wxFocusEvent,
35859 _swigc__p_wxFont,
35860 _swigc__p_wxFontList,
35861 _swigc__p_wxFontMapper,
35862 _swigc__p_wxGBSizerItem,
35863 _swigc__p_wxGCDC,
35864 _swigc__p_wxGDIObjListBase,
35865 _swigc__p_wxGDIObject,
35866 _swigc__p_wxGIFHandler,
35867 _swigc__p_wxGraphicsContext,
35868 _swigc__p_wxGraphicsPath,
35869 _swigc__p_wxGridBagSizer,
35870 _swigc__p_wxGridSizer,
35871 _swigc__p_wxHeaderButtonParams,
35872 _swigc__p_wxICOHandler,
35873 _swigc__p_wxIcon,
35874 _swigc__p_wxIconBundle,
35875 _swigc__p_wxIconLocation,
35876 _swigc__p_wxIconizeEvent,
35877 _swigc__p_wxIdleEvent,
35878 _swigc__p_wxImage,
35879 _swigc__p_wxImageHandler,
35880 _swigc__p_wxImageList,
35881 _swigc__p_wxIndividualLayoutConstraint,
35882 _swigc__p_wxInitDialogEvent,
35883 _swigc__p_wxJPEGHandler,
35884 _swigc__p_wxKeyEvent,
35885 _swigc__p_wxLanguageInfo,
35886 _swigc__p_wxLayoutConstraints,
35887 _swigc__p_wxLocale,
35888 _swigc__p_wxMask,
35889 _swigc__p_wxMaximizeEvent,
35890 _swigc__p_wxMemoryDC,
35891 _swigc__p_wxMenu,
35892 _swigc__p_wxMenuBar,
35893 _swigc__p_wxMenuEvent,
35894 _swigc__p_wxMenuItem,
35895 _swigc__p_wxMetaFile,
35896 _swigc__p_wxMetaFileDC,
35897 _swigc__p_wxMirrorDC,
35898 _swigc__p_wxMouseCaptureChangedEvent,
35899 _swigc__p_wxMouseCaptureLostEvent,
35900 _swigc__p_wxMouseEvent,
35901 _swigc__p_wxMoveEvent,
35902 _swigc__p_wxNativeEncodingInfo,
35903 _swigc__p_wxNativeFontInfo,
35904 _swigc__p_wxNativePixelData,
35905 _swigc__p_wxNativePixelData_Accessor,
35906 _swigc__p_wxNavigationKeyEvent,
35907 _swigc__p_wxNcPaintEvent,
35908 _swigc__p_wxNotifyEvent,
35909 _swigc__p_wxObject,
35910 _swigc__p_wxPCXHandler,
35911 _swigc__p_wxPNGHandler,
35912 _swigc__p_wxPNMHandler,
35913 _swigc__p_wxPaintDC,
35914 _swigc__p_wxPaintEvent,
35915 _swigc__p_wxPalette,
35916 _swigc__p_wxPaletteChangedEvent,
35917 _swigc__p_wxPaperSize,
35918 _swigc__p_wxPen,
35919 _swigc__p_wxPenList,
35920 _swigc__p_wxPixelDataBase,
35921 _swigc__p_wxPoint,
35922 _swigc__p_wxPoint2D,
35923 _swigc__p_wxPostScriptDC,
35924 _swigc__p_wxPrintData,
35925 _swigc__p_wxPrinterDC,
35926 _swigc__p_wxPseudoDC,
35927 _swigc__p_wxPyApp,
35928 _swigc__p_wxPyCommandEvent,
35929 _swigc__p_wxPyEvent,
35930 _swigc__p_wxPyFontEnumerator,
35931 _swigc__p_wxPyImageHandler,
35932 _swigc__p_wxPyLocale,
35933 _swigc__p_wxPySizer,
35934 _swigc__p_wxPyValidator,
35935 _swigc__p_wxQueryNewPaletteEvent,
35936 _swigc__p_wxRect,
35937 _swigc__p_wxRegion,
35938 _swigc__p_wxRegionIterator,
35939 _swigc__p_wxRendererNative,
35940 _swigc__p_wxRendererVersion,
35941 _swigc__p_wxScreenDC,
35942 _swigc__p_wxScrollEvent,
35943 _swigc__p_wxScrollWinEvent,
35944 _swigc__p_wxSetCursorEvent,
35945 _swigc__p_wxShowEvent,
35946 _swigc__p_wxSize,
35947 _swigc__p_wxSizeEvent,
35948 _swigc__p_wxSizer,
35949 _swigc__p_wxSizerItem,
35950 _swigc__p_wxSplitterRenderParams,
35951 _swigc__p_wxStaticBoxSizer,
35952 _swigc__p_wxStdDialogButtonSizer,
35953 _swigc__p_wxStockGDI,
35954 _swigc__p_wxString,
35955 _swigc__p_wxSysColourChangedEvent,
35956 _swigc__p_wxTIFFHandler,
35957 _swigc__p_wxUpdateUIEvent,
35958 _swigc__p_wxValidator,
35959 _swigc__p_wxWindow,
35960 _swigc__p_wxWindowCreateEvent,
35961 _swigc__p_wxWindowDC,
35962 _swigc__p_wxWindowDestroyEvent,
35963 _swigc__p_wxXPMHandler,
35964 };
35965
35966
35967 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
35968
35969 static swig_const_info swig_const_table[] = {
35970 {0, 0, 0, 0.0, 0, 0}};
35971
35972 #ifdef __cplusplus
35973 }
35974 #endif
35975 /* -----------------------------------------------------------------------------
35976 * Type initialization:
35977 * This problem is tough by the requirement that no dynamic
35978 * memory is used. Also, since swig_type_info structures store pointers to
35979 * swig_cast_info structures and swig_cast_info structures store pointers back
35980 * to swig_type_info structures, we need some lookup code at initialization.
35981 * The idea is that swig generates all the structures that are needed.
35982 * The runtime then collects these partially filled structures.
35983 * The SWIG_InitializeModule function takes these initial arrays out of
35984 * swig_module, and does all the lookup, filling in the swig_module.types
35985 * array with the correct data and linking the correct swig_cast_info
35986 * structures together.
35987 *
35988 * The generated swig_type_info structures are assigned staticly to an initial
35989 * array. We just loop though that array, and handle each type individually.
35990 * First we lookup if this type has been already loaded, and if so, use the
35991 * loaded structure instead of the generated one. Then we have to fill in the
35992 * cast linked list. The cast data is initially stored in something like a
35993 * two-dimensional array. Each row corresponds to a type (there are the same
35994 * number of rows as there are in the swig_type_initial array). Each entry in
35995 * a column is one of the swig_cast_info structures for that type.
35996 * The cast_initial array is actually an array of arrays, because each row has
35997 * a variable number of columns. So to actually build the cast linked list,
35998 * we find the array of casts associated with the type, and loop through it
35999 * adding the casts to the list. The one last trick we need to do is making
36000 * sure the type pointer in the swig_cast_info struct is correct.
36001 *
36002 * First off, we lookup the cast->type name to see if it is already loaded.
36003 * There are three cases to handle:
36004 * 1) If the cast->type has already been loaded AND the type we are adding
36005 * casting info to has not been loaded (it is in this module), THEN we
36006 * replace the cast->type pointer with the type pointer that has already
36007 * been loaded.
36008 * 2) If BOTH types (the one we are adding casting info to, and the
36009 * cast->type) are loaded, THEN the cast info has already been loaded by
36010 * the previous module so we just ignore it.
36011 * 3) Finally, if cast->type has not already been loaded, then we add that
36012 * swig_cast_info to the linked list (because the cast->type) pointer will
36013 * be correct.
36014 * ----------------------------------------------------------------------------- */
36015
36016 #ifdef __cplusplus
36017 extern "C" {
36018 #if 0
36019 } /* c-mode */
36020 #endif
36021 #endif
36022
36023 #if 0
36024 #define SWIGRUNTIME_DEBUG
36025 #endif
36026
36027 SWIGRUNTIME void
36028 SWIG_InitializeModule(void *clientdata) {
36029 size_t i;
36030 swig_module_info *module_head;
36031 static int init_run = 0;
36032
36033 clientdata = clientdata;
36034
36035 if (init_run) return;
36036 init_run = 1;
36037
36038 /* Initialize the swig_module */
36039 swig_module.type_initial = swig_type_initial;
36040 swig_module.cast_initial = swig_cast_initial;
36041
36042 /* Try and load any already created modules */
36043 module_head = SWIG_GetModule(clientdata);
36044 if (module_head) {
36045 swig_module.next = module_head->next;
36046 module_head->next = &swig_module;
36047 } else {
36048 /* This is the first module loaded */
36049 swig_module.next = &swig_module;
36050 SWIG_SetModule(clientdata, &swig_module);
36051 }
36052
36053 /* Now work on filling in swig_module.types */
36054 #ifdef SWIGRUNTIME_DEBUG
36055 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36056 #endif
36057 for (i = 0; i < swig_module.size; ++i) {
36058 swig_type_info *type = 0;
36059 swig_type_info *ret;
36060 swig_cast_info *cast;
36061
36062 #ifdef SWIGRUNTIME_DEBUG
36063 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36064 #endif
36065
36066 /* if there is another module already loaded */
36067 if (swig_module.next != &swig_module) {
36068 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36069 }
36070 if (type) {
36071 /* Overwrite clientdata field */
36072 #ifdef SWIGRUNTIME_DEBUG
36073 printf("SWIG_InitializeModule: found type %s\n", type->name);
36074 #endif
36075 if (swig_module.type_initial[i]->clientdata) {
36076 type->clientdata = swig_module.type_initial[i]->clientdata;
36077 #ifdef SWIGRUNTIME_DEBUG
36078 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36079 #endif
36080 }
36081 } else {
36082 type = swig_module.type_initial[i];
36083 }
36084
36085 /* Insert casting types */
36086 cast = swig_module.cast_initial[i];
36087 while (cast->type) {
36088 /* Don't need to add information already in the list */
36089 ret = 0;
36090 #ifdef SWIGRUNTIME_DEBUG
36091 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36092 #endif
36093 if (swig_module.next != &swig_module) {
36094 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36095 #ifdef SWIGRUNTIME_DEBUG
36096 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36097 #endif
36098 }
36099 if (ret) {
36100 if (type == swig_module.type_initial[i]) {
36101 #ifdef SWIGRUNTIME_DEBUG
36102 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36103 #endif
36104 cast->type = ret;
36105 ret = 0;
36106 } else {
36107 /* Check for casting already in the list */
36108 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36109 #ifdef SWIGRUNTIME_DEBUG
36110 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36111 #endif
36112 if (!ocast) ret = 0;
36113 }
36114 }
36115
36116 if (!ret) {
36117 #ifdef SWIGRUNTIME_DEBUG
36118 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36119 #endif
36120 if (type->cast) {
36121 type->cast->prev = cast;
36122 cast->next = type->cast;
36123 }
36124 type->cast = cast;
36125 }
36126 cast++;
36127 }
36128 /* Set entry in modules->types array equal to the type */
36129 swig_module.types[i] = type;
36130 }
36131 swig_module.types[i] = 0;
36132
36133 #ifdef SWIGRUNTIME_DEBUG
36134 printf("**** SWIG_InitializeModule: Cast List ******\n");
36135 for (i = 0; i < swig_module.size; ++i) {
36136 int j = 0;
36137 swig_cast_info *cast = swig_module.cast_initial[i];
36138 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36139 while (cast->type) {
36140 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36141 cast++;
36142 ++j;
36143 }
36144 printf("---- Total casts: %d\n",j);
36145 }
36146 printf("**** SWIG_InitializeModule: Cast List ******\n");
36147 #endif
36148 }
36149
36150 /* This function will propagate the clientdata field of type to
36151 * any new swig_type_info structures that have been added into the list
36152 * of equivalent types. It is like calling
36153 * SWIG_TypeClientData(type, clientdata) a second time.
36154 */
36155 SWIGRUNTIME void
36156 SWIG_PropagateClientData(void) {
36157 size_t i;
36158 swig_cast_info *equiv;
36159 static int init_run = 0;
36160
36161 if (init_run) return;
36162 init_run = 1;
36163
36164 for (i = 0; i < swig_module.size; i++) {
36165 if (swig_module.types[i]->clientdata) {
36166 equiv = swig_module.types[i]->cast;
36167 while (equiv) {
36168 if (!equiv->converter) {
36169 if (equiv->type && !equiv->type->clientdata)
36170 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36171 }
36172 equiv = equiv->next;
36173 }
36174 }
36175 }
36176 }
36177
36178 #ifdef __cplusplus
36179 #if 0
36180 {
36181 /* c-mode */
36182 #endif
36183 }
36184 #endif
36185
36186
36187
36188 #ifdef __cplusplus
36189 extern "C" {
36190 #endif
36191
36192 /* Python-specific SWIG API */
36193 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36194 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36195 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36196
36197 /* -----------------------------------------------------------------------------
36198 * global variable support code.
36199 * ----------------------------------------------------------------------------- */
36200
36201 typedef struct swig_globalvar {
36202 char *name; /* Name of global variable */
36203 PyObject *(*get_attr)(void); /* Return the current value */
36204 int (*set_attr)(PyObject *); /* Set the value */
36205 struct swig_globalvar *next;
36206 } swig_globalvar;
36207
36208 typedef struct swig_varlinkobject {
36209 PyObject_HEAD
36210 swig_globalvar *vars;
36211 } swig_varlinkobject;
36212
36213 SWIGINTERN PyObject *
36214 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36215 return PyString_FromString("<Swig global variables>");
36216 }
36217
36218 SWIGINTERN PyObject *
36219 swig_varlink_str(swig_varlinkobject *v) {
36220 PyObject *str = PyString_FromString("(");
36221 swig_globalvar *var;
36222 for (var = v->vars; var; var=var->next) {
36223 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36224 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36225 }
36226 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36227 return str;
36228 }
36229
36230 SWIGINTERN int
36231 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36232 PyObject *str = swig_varlink_str(v);
36233 fprintf(fp,"Swig global variables ");
36234 fprintf(fp,"%s\n", PyString_AsString(str));
36235 Py_DECREF(str);
36236 return 0;
36237 }
36238
36239 SWIGINTERN void
36240 swig_varlink_dealloc(swig_varlinkobject *v) {
36241 swig_globalvar *var = v->vars;
36242 while (var) {
36243 swig_globalvar *n = var->next;
36244 free(var->name);
36245 free(var);
36246 var = n;
36247 }
36248 }
36249
36250 SWIGINTERN PyObject *
36251 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36252 PyObject *res = NULL;
36253 swig_globalvar *var = v->vars;
36254 while (var) {
36255 if (strcmp(var->name,n) == 0) {
36256 res = (*var->get_attr)();
36257 break;
36258 }
36259 var = var->next;
36260 }
36261 if (res == NULL && !PyErr_Occurred()) {
36262 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36263 }
36264 return res;
36265 }
36266
36267 SWIGINTERN int
36268 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36269 int res = 1;
36270 swig_globalvar *var = v->vars;
36271 while (var) {
36272 if (strcmp(var->name,n) == 0) {
36273 res = (*var->set_attr)(p);
36274 break;
36275 }
36276 var = var->next;
36277 }
36278 if (res == 1 && !PyErr_Occurred()) {
36279 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36280 }
36281 return res;
36282 }
36283
36284 SWIGINTERN PyTypeObject*
36285 swig_varlink_type(void) {
36286 static char varlink__doc__[] = "Swig var link object";
36287 static PyTypeObject varlink_type;
36288 static int type_init = 0;
36289 if (!type_init) {
36290 const PyTypeObject tmp
36291 = {
36292 PyObject_HEAD_INIT(NULL)
36293 0, /* Number of items in variable part (ob_size) */
36294 (char *)"swigvarlink", /* Type name (tp_name) */
36295 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36296 0, /* Itemsize (tp_itemsize) */
36297 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36298 (printfunc) swig_varlink_print, /* Print (tp_print) */
36299 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36300 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36301 0, /* tp_compare */
36302 (reprfunc) swig_varlink_repr, /* tp_repr */
36303 0, /* tp_as_number */
36304 0, /* tp_as_sequence */
36305 0, /* tp_as_mapping */
36306 0, /* tp_hash */
36307 0, /* tp_call */
36308 (reprfunc)swig_varlink_str, /* tp_str */
36309 0, /* tp_getattro */
36310 0, /* tp_setattro */
36311 0, /* tp_as_buffer */
36312 0, /* tp_flags */
36313 varlink__doc__, /* tp_doc */
36314 0, /* tp_traverse */
36315 0, /* tp_clear */
36316 0, /* tp_richcompare */
36317 0, /* tp_weaklistoffset */
36318 #if PY_VERSION_HEX >= 0x02020000
36319 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36320 #endif
36321 #if PY_VERSION_HEX >= 0x02030000
36322 0, /* tp_del */
36323 #endif
36324 #ifdef COUNT_ALLOCS
36325 0,0,0,0 /* tp_alloc -> tp_next */
36326 #endif
36327 };
36328 varlink_type = tmp;
36329 varlink_type.ob_type = &PyType_Type;
36330 type_init = 1;
36331 }
36332 return &varlink_type;
36333 }
36334
36335 /* Create a variable linking object for use later */
36336 SWIGINTERN PyObject *
36337 SWIG_Python_newvarlink(void) {
36338 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36339 if (result) {
36340 result->vars = 0;
36341 }
36342 return ((PyObject*) result);
36343 }
36344
36345 SWIGINTERN void
36346 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36347 swig_varlinkobject *v = (swig_varlinkobject *) p;
36348 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36349 if (gv) {
36350 size_t size = strlen(name)+1;
36351 gv->name = (char *)malloc(size);
36352 if (gv->name) {
36353 strncpy(gv->name,name,size);
36354 gv->get_attr = get_attr;
36355 gv->set_attr = set_attr;
36356 gv->next = v->vars;
36357 }
36358 }
36359 v->vars = gv;
36360 }
36361
36362 SWIGINTERN PyObject *
36363 SWIG_globals() {
36364 static PyObject *_SWIG_globals = 0;
36365 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36366 return _SWIG_globals;
36367 }
36368
36369 /* -----------------------------------------------------------------------------
36370 * constants/methods manipulation
36371 * ----------------------------------------------------------------------------- */
36372
36373 /* Install Constants */
36374 SWIGINTERN void
36375 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36376 PyObject *obj = 0;
36377 size_t i;
36378 for (i = 0; constants[i].type; ++i) {
36379 switch(constants[i].type) {
36380 case SWIG_PY_POINTER:
36381 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36382 break;
36383 case SWIG_PY_BINARY:
36384 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36385 break;
36386 default:
36387 obj = 0;
36388 break;
36389 }
36390 if (obj) {
36391 PyDict_SetItemString(d, constants[i].name, obj);
36392 Py_DECREF(obj);
36393 }
36394 }
36395 }
36396
36397 /* -----------------------------------------------------------------------------*/
36398 /* Fix SwigMethods to carry the callback ptrs when needed */
36399 /* -----------------------------------------------------------------------------*/
36400
36401 SWIGINTERN void
36402 SWIG_Python_FixMethods(PyMethodDef *methods,
36403 swig_const_info *const_table,
36404 swig_type_info **types,
36405 swig_type_info **types_initial) {
36406 size_t i;
36407 for (i = 0; methods[i].ml_name; ++i) {
36408 const char *c = methods[i].ml_doc;
36409 if (c && (c = strstr(c, "swig_ptr: "))) {
36410 int j;
36411 swig_const_info *ci = 0;
36412 const char *name = c + 10;
36413 for (j = 0; const_table[j].type; ++j) {
36414 if (strncmp(const_table[j].name, name,
36415 strlen(const_table[j].name)) == 0) {
36416 ci = &(const_table[j]);
36417 break;
36418 }
36419 }
36420 if (ci) {
36421 size_t shift = (ci->ptype) - types;
36422 swig_type_info *ty = types_initial[shift];
36423 size_t ldoc = (c - methods[i].ml_doc);
36424 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36425 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36426 if (ndoc) {
36427 char *buff = ndoc;
36428 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36429 if (ptr) {
36430 strncpy(buff, methods[i].ml_doc, ldoc);
36431 buff += ldoc;
36432 strncpy(buff, "swig_ptr: ", 10);
36433 buff += 10;
36434 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36435 methods[i].ml_doc = ndoc;
36436 }
36437 }
36438 }
36439 }
36440 }
36441 }
36442
36443 #ifdef __cplusplus
36444 }
36445 #endif
36446
36447 /* -----------------------------------------------------------------------------*
36448 * Partial Init method
36449 * -----------------------------------------------------------------------------*/
36450
36451 #ifdef __cplusplus
36452 extern "C"
36453 #endif
36454 SWIGEXPORT void SWIG_init(void) {
36455 PyObject *m, *d;
36456
36457 /* Fix SwigMethods to carry the callback ptrs when needed */
36458 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36459
36460 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36461 d = PyModule_GetDict(m);
36462
36463 SWIG_InitializeModule(0);
36464 SWIG_InstallConstants(d,swig_const_table);
36465
36466
36467 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36468 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36469 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
36470 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36471 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
36472 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36473 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36474 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36475 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36476 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36477 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36478 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36479 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36480 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36481 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36482 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36483 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36484 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36485 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36486 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36487 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36488 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36489 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36490 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36491 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36492 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36493 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36494 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36495 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36496 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36497 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36498 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36499 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36500 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36501 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36502 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36503 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36504 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36505 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36506 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36507 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36508 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36509 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36510 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36511 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36512 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36513 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36514 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36515 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36516 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36517 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36518 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36519 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36520 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36521 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36522 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36523 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36524 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36525 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36526 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36527 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36528 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36529 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36530 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36531 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36532 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36533 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36534 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36535 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36536 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36537 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36538 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36539 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36540 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36541 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36542 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36543 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36544 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36545 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36546 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36547 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36548 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36549 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36550 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36551 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36552 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36553 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36554 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36555 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36556 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36557 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36558 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36559 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36560 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36561 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36562 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36563 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36564 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36565 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36566 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36567 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36568 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36569 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36570 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36571 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36572 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36573 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36574 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36575 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36576 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36577 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36578 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36579 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36580 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36581 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36582 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36583 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36584 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36585 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36586 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36587 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36588 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36589 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36590 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36591 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36592 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36593 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36594 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36595 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36596 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36597 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36598 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36599
36600 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36601
36602 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36603 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36604 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36605 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36606 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36607 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36608 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36609 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36610 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36611 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36612 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36613 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36614 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36615 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36616 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36617 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36618 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36619 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36620 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36621 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36622 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36623 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36624 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36625 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36626 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36627 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36628 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36629 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36630 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36631 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36632 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36633 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36634 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36635 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36636 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36637 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36638 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36639 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36640 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36641 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36642 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36643 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36644 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36645 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36646 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36647 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36648 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36649 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36650 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36651 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36652 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36653 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36654 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36655 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36656 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36657 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36658 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36659 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36660 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36661 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36662 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36663 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36664 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36665 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36666 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36667 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36668 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36669 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36670 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36671 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36672 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36673 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36674 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36675 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36676 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36677 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36678 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
36679 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
36680 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
36681 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
36682 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
36683 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
36684 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
36685 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
36686 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
36687 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
36688 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
36689 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
36690 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
36691 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
36692 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
36693 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
36694 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
36695 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
36696 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
36697 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
36698 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
36699 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
36700 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
36701 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
36702 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
36703 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
36704 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
36705 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
36706 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
36707 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
36708 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
36709 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
36710 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
36711 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
36712 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
36713 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
36714 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
36715 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
36716 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
36717 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
36718 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
36719 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
36720 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
36721 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
36722 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
36723 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
36724 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
36725 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
36726 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
36727 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
36728 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
36729 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
36730 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
36731 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
36732 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
36733 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
36734 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
36735 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
36736 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
36737 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
36738 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
36739 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
36740 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
36741 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
36742 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
36743 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
36744 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
36745 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
36746 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
36747 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
36748 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
36749 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
36750 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
36751 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
36752 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
36753 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
36754 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
36755 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
36756 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
36757 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
36758 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
36759 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
36760 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
36761 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
36762 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
36763 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
36764 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
36765 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
36766 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
36767 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
36768 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
36769 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
36770 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
36771 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
36772 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
36773 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
36774 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
36775 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
36776 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
36777 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
36778 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
36779 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
36780 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
36781 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
36782 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
36783 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
36784 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
36785 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
36786 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
36787 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
36788 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
36789 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
36790 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
36791 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
36792 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
36793 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
36794 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
36795 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
36796 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
36797 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
36798 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
36799 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
36800 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
36801 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
36802 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
36803 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
36804 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
36805 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
36806 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
36807 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
36808 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
36809 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
36810 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
36811 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
36812 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
36813 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
36814 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
36815 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
36816 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
36817 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
36818 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
36819 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
36820 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
36821 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
36822 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
36823 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
36824 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
36825 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
36826 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
36827 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
36828 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
36829 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
36830 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
36831 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
36832 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
36833 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
36834 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
36835 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
36836 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
36837 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
36838 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
36839 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
36840 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
36841 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
36842 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
36843 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
36844 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
36845 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
36846 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
36847 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
36848 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
36849 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
36850 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
36851 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
36852 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
36853 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
36854 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
36855 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
36856 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
36857 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
36858 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
36859 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
36860 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
36861 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
36862 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
36863 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
36864 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
36865 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
36866 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
36867 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
36868 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
36869 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
36870 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
36871 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
36872 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
36873 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
36874 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
36875 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
36876 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
36877 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
36878 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
36879 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
36880 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
36881 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
36882 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
36883 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
36884 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
36885 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
36886 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
36887 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
36888 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
36889 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
36890 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
36891 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
36892 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
36893 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
36894 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
36895 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
36896 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
36897 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
36898 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
36899 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
36900 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
36901 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
36902 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
36903 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
36904 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
36905 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
36906 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
36907 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
36908 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
36909 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
36910 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
36911 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
36912 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
36913 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
36914 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
36915 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
36916 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
36917 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
36918 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
36919 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
36920 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
36921
36922 // Work around a chicken/egg problem in drawlist.cpp
36923 wxPyDrawList_SetAPIPtr();
36924
36925 }
36926