]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
some more updates about changes
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931 // appears to me that the other platforms are already doing it, so I'll just
2932 // automatically do it for wxMSW here.
2933 #ifdef __WXMSW__
2934 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936 #else
2937 #define wxPy_premultiply(p, a) (p)
2938 #define wxPy_unpremultiply(p, a) (p)
2939 #endif
2940
2941
2942 #include <wx/image.h>
2943
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
2960 }
2961
2962
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
2974 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
2980 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
2984 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
2988 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
2992 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
2995
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
3006
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
3202 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3203 if ( !colour.IsOk() )
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
3208
3209 #include <wx/iconbndl.h>
3210
3211 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
3216 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3217 char** cArray = NULL;
3218 wxIcon* icon;
3219
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
3227 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3228
3229
3230
3231 return new wxIconLocation(*filename);
3232
3233 }
3234 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3235
3236
3237
3238 // do nothing
3239
3240 }
3241 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3242
3243
3244
3245 return -1;
3246
3247 }
3248 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3249 #ifdef __WXGTK__
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
3254 #else
3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3256 #endif
3257 }
3258
3259
3260 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3261 (*self) ++;
3262 }
3263 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3264 return self->operator bool();
3265 }
3266
3267 #include <wx/fontutil.h>
3268 #include <wx/fontmap.h>
3269 #include <wx/fontenum.h>
3270
3271 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3272 return self->ToString();
3273 }
3274
3275 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3276 static wxNativeEncodingInfo info;
3277 if ( wxGetNativeFontEncoding(encoding, &info) )
3278 return &info;
3279 else
3280 return NULL;
3281 }
3282
3283
3284 SWIGINTERNINLINE PyObject *
3285 SWIG_From_size_t (size_t value)
3286 {
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288 }
3289
3290
3291 SWIGINTERNINLINE int
3292 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293 {
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298 }
3299
3300 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
3309 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
3314 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
3317 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
3322 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
3325 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3327
3328 class wxPyFontEnumerator : public wxFontEnumerator {
3329 public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337 };
3338
3339 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
3343 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3344 PyObject* ret;
3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3347 ret = wxArrayString2PyList_helper(arr);
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
3350 }
3351 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3352 PyObject* ret;
3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3355 ret = wxArrayString2PyList_helper(arr);
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
3358 }
3359
3360 #include <locale.h>
3361
3362 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370 #if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372 #endif
3373 return loc;
3374 }
3375 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379 #if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381 #endif
3382 return rc;
3383 }
3384 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388 #if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390 #endif
3391 return rc;
3392 }
3393
3394 class wxPyLocale : public wxLocale
3395 {
3396 public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423 private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425 };
3426
3427 wxPyLocale::wxPyLocale() : wxLocale()
3428 {
3429 }
3430
3431 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437 {
3438 }
3439
3440 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442 {
3443 }
3444
3445 wxPyLocale::~wxPyLocale()
3446 {
3447 }
3448
3449 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451 {
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454 }
3455
3456 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459 {
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462 }
3463
3464 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466 {
3467 bool found;
3468 static wxString str;
3469 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.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484 }
3485
3486 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 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.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509 }
3510
3511 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519 #if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521 #endif
3522 return loc;
3523 }
3524
3525 #include "wx/wxPython/pydrawxxx.h"
3526
3527 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
3532 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538 SWIGINTERN int
3539 SWIG_AsVal_double (PyObject *obj, double* val)
3540 {
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
3543 return SWIG_OK;
3544 }
3545 return SWIG_TypeError;
3546 }
3547
3548 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
3553 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
3558 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
3564 #define SWIG_From_double PyFloat_FromDouble
3565
3566 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
3569 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
3572 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
3575 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
3578 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
3581 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
3584 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
3587 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
3590 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599 }
3600
3601
3602 #include <wx/dcbuffer.h>
3603
3604
3605 #include <wx/dcps.h>
3606
3607
3608 class wxMetaFile : public wxObject {
3609 public:
3610 wxMetaFile(const wxString&)
3611 { wxPyRaiseNotImplemented(); }
3612 };
3613
3614 class wxMetaFileDC : public wxClientDC {
3615 public:
3616 wxMetaFileDC(const wxString&, int, int, const wxString&)
3617 { wxPyRaiseNotImplemented(); }
3618 };
3619
3620
3621
3622 class wxPrinterDC : public wxClientDC {
3623 public:
3624 wxPrinterDC(const wxPrintData&)
3625 { wxPyRaiseNotImplemented(); }
3626
3627 };
3628
3629
3630 #include <wx/graphics.h>
3631
3632
3633 #if !wxUSE_GRAPHICS_CONTEXT
3634 // C++ stub classes for platforms or build configurations that don't have
3635 // wxGraphicsContext yet.
3636
3637
3638 class wxGraphicsObject : public wxObject
3639 {
3640 public :
3641 wxGraphicsObject( wxGraphicsRenderer* ) {
3642 PyErr_SetString(PyExc_NotImplementedError,
3643 "wx.GraphicsObject is not available on this platform.");
3644 }
3645 wxGraphicsObject( const wxGraphicsObject& ) {}
3646 virtual ~wxGraphicsObject() {}
3647 bool IsNull() const { return false; }
3648 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3649 } ;
3650
3651
3652
3653 class wxGraphicsPen : public wxGraphicsObject
3654 {
3655 wxGraphicsPen() {}
3656 virtual ~wxGraphicsPen() {}
3657 } ;
3658 wxGraphicsPen wxNullGraphicsPen;
3659
3660
3661
3662 class wxGraphicsBrush : public wxGraphicsObject
3663 {
3664 public :
3665 wxGraphicsBrush() {}
3666 virtual ~wxGraphicsBrush() {}
3667 } ;
3668 wxGraphicsBrush wxNullGraphicsBrush;
3669
3670
3671
3672 class wxGraphicsFont : public wxGraphicsObject
3673 {
3674 public :
3675 wxGraphicsFont() {}
3676 virtual ~wxGraphicsFont() {}
3677 } ;
3678 wxGraphicsFont wxNullGraphicsFont;
3679
3680
3681
3682 class wxGraphicsPath : public wxGraphicsObject
3683 {
3684 public :
3685 wxGraphicsPath(wxGraphicsRenderer* ) {
3686 PyErr_SetString(PyExc_NotImplementedError,
3687 "wx.GraphicsPath is not available on this platform.");
3688 }
3689 virtual ~wxGraphicsPath() {}
3690
3691 void MoveToPoint( wxDouble, wxDouble ) {}
3692 void MoveToPoint( const wxPoint2DDouble& ) {}
3693 void AddLineToPoint( wxDouble, wxDouble ) {}
3694 void AddLineToPoint( const wxPoint2DDouble& ) {}
3695 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3696 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3697 void AddPath( const wxGraphicsPath* ) {}
3698 void CloseSubpath() {}
3699 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3700 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3701 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3702 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3703
3704 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3705 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3706 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3707 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3708
3709 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3710 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3711 void * GetNativePath() const { return NULL; }
3712 void UnGetNativePath(void *) {}
3713 void Transform( wxGraphicsMatrix* ) {}
3714 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3715 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3716
3717 bool Contains( wxDouble , wxDouble , int ) { return false; }
3718 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3719 };
3720 wxGraphicsPath wxNullGraphicsPath;
3721
3722
3723 class wxGraphicsMatrix : public wxGraphicsObject
3724 {
3725 public :
3726 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3727 PyErr_SetString(PyExc_NotImplementedError,
3728 "wx.GraphicsMatrix is not available on this platform.");
3729 }
3730 virtual ~wxGraphicsMatrix() {}
3731 virtual void Concat( const wxGraphicsMatrix * ) {}
3732 virtual void Copy( const wxGraphicsMatrix * ) {}
3733 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3734 wxDouble , wxDouble ) {}
3735 virtual void Invert() {}
3736 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3737 virtual bool IsIdentity() { return false; }
3738 virtual void Translate( wxDouble , wxDouble ) {}
3739 virtual void Scale( wxDouble , wxDouble ) {}
3740 virtual void Rotate( wxDouble ) {}
3741 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3742 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3743 virtual void * GetNativeMatrix() const { return NULL; }
3744 };
3745 wxGraphicsMatrix wxNullGraphicsMatrix;
3746
3747
3748 class wxGraphicsContext : public wxGraphicsObject
3749 {
3750 public:
3751
3752 wxGraphicsContext(wxGraphicsRenderer* ) {
3753 PyErr_SetString(PyExc_NotImplementedError,
3754 "wx.GraphicsContext is not available on this platform.");
3755 }
3756
3757 virtual ~wxGraphicsContext() {}
3758
3759 static wxGraphicsContext* Create( const wxWindowDC& ) {
3760 PyErr_SetString(PyExc_NotImplementedError,
3761 "wx.GraphicsContext is not available on this platform.");
3762 }
3763
3764 static wxGraphicsContext* CreateFromNative( void * ) {
3765 PyErr_SetString(PyExc_NotImplementedError,
3766 "wx.GraphicsContext is not available on this platform.");
3767 }
3768
3769 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 }
3778
3779 wxGraphicsPath * CreatePath() { return NULL; }
3780
3781 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3782
3783 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3784
3785 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3786 const wxColour&, const wxColour&) { return NULL; }
3787
3788 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3789 wxDouble xc, wxDouble yc, wxDouble radius,
3790 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3791
3792 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3793
3794 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3795 wxDouble, wxDouble) { return NULL; }
3796
3797 virtual void PushState() {}
3798 virtual void PopState() {}
3799 virtual void Clip( const wxRegion & ) {}
3800 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3801 virtual void ResetClip() {}
3802 virtual void * GetNativeContext() { return NULL; }
3803 virtual void Translate( wxDouble , wxDouble ) {}
3804 virtual void Scale( wxDouble , wxDouble ) {}
3805 virtual void Rotate( wxDouble ) {}
3806 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3807 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3808 virtual void GetTransform( wxGraphicsMatrix* ) {}
3809
3810 virtual void SetPen( const wxGraphicsPen& ) {}
3811 void SetPen( const wxPen& ) {}
3812
3813 virtual void SetBrush( const wxGraphicsBrush& ) {}
3814 void SetBrush( const wxBrush& ) {}
3815
3816 virtual void SetFont( const wxGraphicsFont& ) {}
3817 void SetFont( const wxFont&, const wxColour& ) {}
3818
3819 virtual void StrokePath( const wxGraphicsPath * ) {}
3820 virtual void FillPath( const wxGraphicsPath *, int ) {}
3821 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3822
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3825 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3826 wxDouble *, wxDouble * ) const {}
3827 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3828
3829 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3830 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3831
3832 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3834 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3835 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3836 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual bool ShouldOffset() const { return false; }
3840 };
3841
3842
3843 class wxGraphicsRenderer : public wxObject
3844 {
3845 public :
3846 wxGraphicsRenderer() {
3847 PyErr_SetString(PyExc_NotImplementedError,
3848 "wx.GraphicsRenderer is not available on this platform.");
3849 }
3850
3851 virtual ~wxGraphicsRenderer() {}
3852
3853 static wxGraphicsRenderer* GetDefaultRenderer(
3854 PyErr_SetString(PyExc_NotImplementedError,
3855 "wx.GraphicsRenderer is not available on this platform.");
3856 );
3857
3858 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3859 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3860 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3861 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3862
3863 virtual wxGraphicsPath * CreatePath() { return NULL; }
3864
3865 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3866 wxDouble , wxDouble ) { return NULL; }
3867
3868 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3869 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3870 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3871 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3872 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3873 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3875 };
3876
3877
3878
3879 class wxGCDC: public wxWindowDC
3880 {
3881 public:
3882 wxGCDC(const wxWindowDC&) {
3883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3884 PyErr_SetString(PyExc_NotImplementedError,
3885 "wxGCDC is not available on this platform.");
3886 wxPyEndBlockThreads(blocked);
3887 }
3888
3889 wxGCDC() {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
3895
3896 virtual ~wxGCDC() {}
3897
3898 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3899 void SetGraphicsContext( wxGraphicsContext* ) {}
3900 };
3901
3902 #endif
3903
3904 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3905 if ( !backgroundBrush.IsNull() )
3906 self->DrawText(str, x, y, backgroundBrush);
3907 else
3908 self->DrawText(str, x, y);
3909 }
3910 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3911 if ( !backgroundBrush.IsNull() )
3912 self->DrawText(str, x, y, angle, backgroundBrush);
3913 else
3914 self->DrawText(str, x, y, angle);
3915 }
3916 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3917 wxDouble width = 0.0,
3918 height = 0.0;
3919 self->GetTextExtent(text, &width, &height, NULL, NULL);
3920 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3921 PyObject* rv = PyTuple_New(2);
3922 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3923 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3924 return rv;
3925 }
3926 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3927 wxArrayDouble widths;
3928 self->GetPartialTextExtents(text, widths);
3929 return widths;
3930 }
3931 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3932 size_t c1, c2, count;
3933 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3934 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3935
3936 if ( beginP != NULL && endP != NULL )
3937 {
3938 count = wxMin(c1, c2);
3939 self->StrokeLines(count, beginP, endP);
3940 }
3941 delete [] beginP;
3942 delete [] endP;
3943 }
3944
3945 #include "wx/dcgraph.h"
3946
3947
3948 #include <wx/overlay.h>
3949
3950
3951
3952 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3953 self->AddColour(name, wxColour(red, green, blue));
3954 }
3955
3956 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3957 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3958 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3959 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3960
3961
3962 #include <wx/effects.h>
3963
3964
3965 #include "wx/renderer.h"
3966
3967
3968 SWIGINTERNINLINE PyObject*
3969 SWIG_From_bool (bool value)
3970 {
3971 return PyBool_FromLong(value ? 1 : 0);
3972 }
3973
3974
3975 #include "wx/wxPython/pseudodc.h"
3976
3977 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3978 wxRect rect;
3979 self->GetIdBounds(id, rect);
3980 return rect;
3981 }
3982 #ifdef __cplusplus
3983 extern "C" {
3984 #endif
3985 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3986 PyObject *resultobj = 0;
3987 wxGDIObject *result = 0 ;
3988
3989 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3990 {
3991 if (!wxPyCheckForApp()) SWIG_fail;
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (wxGDIObject *)new wxGDIObject();
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3998 return resultobj;
3999 fail:
4000 return NULL;
4001 }
4002
4003
4004 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4005 PyObject *resultobj = 0;
4006 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4007 void *argp1 = 0 ;
4008 int res1 = 0 ;
4009 PyObject *swig_obj[1] ;
4010
4011 if (!args) SWIG_fail;
4012 swig_obj[0] = args;
4013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4014 if (!SWIG_IsOK(res1)) {
4015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4016 }
4017 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 delete arg1;
4021
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 resultobj = SWIG_Py_Void();
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033 PyObject *resultobj = 0;
4034 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4035 bool result;
4036 void *argp1 = 0 ;
4037 int res1 = 0 ;
4038 PyObject *swig_obj[1] ;
4039
4040 if (!args) SWIG_fail;
4041 swig_obj[0] = args;
4042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4043 if (!SWIG_IsOK(res1)) {
4044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4045 }
4046 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4047 {
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 result = (bool)(arg1)->IsNull();
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 {
4054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4055 }
4056 return resultobj;
4057 fail:
4058 return NULL;
4059 }
4060
4061
4062 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4063 PyObject *obj;
4064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4065 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4066 return SWIG_Py_Void();
4067 }
4068
4069 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070 return SWIG_Python_InitShadowInstance(args);
4071 }
4072
4073 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj = 0;
4075 byte arg1 = (byte) 0 ;
4076 byte arg2 = (byte) 0 ;
4077 byte arg3 = (byte) 0 ;
4078 byte arg4 = (byte) wxALPHA_OPAQUE ;
4079 wxColour *result = 0 ;
4080 unsigned char val1 ;
4081 int ecode1 = 0 ;
4082 unsigned char val2 ;
4083 int ecode2 = 0 ;
4084 unsigned char val3 ;
4085 int ecode3 = 0 ;
4086 unsigned char val4 ;
4087 int ecode4 = 0 ;
4088 PyObject * obj0 = 0 ;
4089 PyObject * obj1 = 0 ;
4090 PyObject * obj2 = 0 ;
4091 PyObject * obj3 = 0 ;
4092 char * kwnames[] = {
4093 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4094 };
4095
4096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4097 if (obj0) {
4098 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4099 if (!SWIG_IsOK(ecode1)) {
4100 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4101 }
4102 arg1 = static_cast< byte >(val1);
4103 }
4104 if (obj1) {
4105 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4106 if (!SWIG_IsOK(ecode2)) {
4107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4108 }
4109 arg2 = static_cast< byte >(val2);
4110 }
4111 if (obj2) {
4112 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4113 if (!SWIG_IsOK(ecode3)) {
4114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4115 }
4116 arg3 = static_cast< byte >(val3);
4117 }
4118 if (obj3) {
4119 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4120 if (!SWIG_IsOK(ecode4)) {
4121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4122 }
4123 arg4 = static_cast< byte >(val4);
4124 }
4125 {
4126 PyThreadState* __tstate = wxPyBeginAllowThreads();
4127 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4128 wxPyEndAllowThreads(__tstate);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4132 return resultobj;
4133 fail:
4134 return NULL;
4135 }
4136
4137
4138 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4139 PyObject *resultobj = 0;
4140 wxString *arg1 = 0 ;
4141 wxColour *result = 0 ;
4142 bool temp1 = false ;
4143 PyObject * obj0 = 0 ;
4144 char * kwnames[] = {
4145 (char *) "colorName", NULL
4146 };
4147
4148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4149 {
4150 arg1 = wxString_in_helper(obj0);
4151 if (arg1 == NULL) SWIG_fail;
4152 temp1 = true;
4153 }
4154 {
4155 if (!wxPyCheckForApp()) SWIG_fail;
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 result = (wxColour *)new wxColour((wxString const &)*arg1);
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4162 {
4163 if (temp1)
4164 delete arg1;
4165 }
4166 return resultobj;
4167 fail:
4168 {
4169 if (temp1)
4170 delete arg1;
4171 }
4172 return NULL;
4173 }
4174
4175
4176 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4177 PyObject *resultobj = 0;
4178 unsigned long arg1 ;
4179 wxColour *result = 0 ;
4180 unsigned long val1 ;
4181 int ecode1 = 0 ;
4182 PyObject * obj0 = 0 ;
4183 char * kwnames[] = {
4184 (char *) "colRGB", NULL
4185 };
4186
4187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4188 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4189 if (!SWIG_IsOK(ecode1)) {
4190 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4191 }
4192 arg1 = static_cast< unsigned long >(val1);
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 result = (wxColour *)new wxColour(arg1);
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4200 return resultobj;
4201 fail:
4202 return NULL;
4203 }
4204
4205
4206 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4207 PyObject *resultobj = 0;
4208 wxColour *arg1 = (wxColour *) 0 ;
4209 void *argp1 = 0 ;
4210 int res1 = 0 ;
4211 PyObject *swig_obj[1] ;
4212
4213 if (!args) SWIG_fail;
4214 swig_obj[0] = args;
4215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4216 if (!SWIG_IsOK(res1)) {
4217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4218 }
4219 arg1 = reinterpret_cast< wxColour * >(argp1);
4220 {
4221 PyThreadState* __tstate = wxPyBeginAllowThreads();
4222 delete arg1;
4223
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_Py_Void();
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 PyObject *resultobj = 0;
4236 wxColour *arg1 = (wxColour *) 0 ;
4237 byte result;
4238 void *argp1 = 0 ;
4239 int res1 = 0 ;
4240 PyObject *swig_obj[1] ;
4241
4242 if (!args) SWIG_fail;
4243 swig_obj[0] = args;
4244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4245 if (!SWIG_IsOK(res1)) {
4246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4247 }
4248 arg1 = reinterpret_cast< wxColour * >(argp1);
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 result = (byte)(arg1)->Red();
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4263 PyObject *resultobj = 0;
4264 wxColour *arg1 = (wxColour *) 0 ;
4265 byte result;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 PyObject *swig_obj[1] ;
4269
4270 if (!args) SWIG_fail;
4271 swig_obj[0] = args;
4272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4273 if (!SWIG_IsOK(res1)) {
4274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4275 }
4276 arg1 = reinterpret_cast< wxColour * >(argp1);
4277 {
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (byte)(arg1)->Green();
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4284 return resultobj;
4285 fail:
4286 return NULL;
4287 }
4288
4289
4290 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4291 PyObject *resultobj = 0;
4292 wxColour *arg1 = (wxColour *) 0 ;
4293 byte result;
4294 void *argp1 = 0 ;
4295 int res1 = 0 ;
4296 PyObject *swig_obj[1] ;
4297
4298 if (!args) SWIG_fail;
4299 swig_obj[0] = args;
4300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4301 if (!SWIG_IsOK(res1)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4303 }
4304 arg1 = reinterpret_cast< wxColour * >(argp1);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (byte)(arg1)->Blue();
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4312 return resultobj;
4313 fail:
4314 return NULL;
4315 }
4316
4317
4318 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 PyObject *resultobj = 0;
4320 wxColour *arg1 = (wxColour *) 0 ;
4321 byte result;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 PyObject *swig_obj[1] ;
4325
4326 if (!args) SWIG_fail;
4327 swig_obj[0] = args;
4328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4331 }
4332 arg1 = reinterpret_cast< wxColour * >(argp1);
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 result = (byte)(arg1)->Alpha();
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4347 PyObject *resultobj = 0;
4348 wxColour *arg1 = (wxColour *) 0 ;
4349 bool result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject *swig_obj[1] ;
4353
4354 if (!args) SWIG_fail;
4355 swig_obj[0] = args;
4356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4359 }
4360 arg1 = reinterpret_cast< wxColour * >(argp1);
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (bool)(arg1)->IsOk();
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 {
4368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4369 }
4370 return resultobj;
4371 fail:
4372 return NULL;
4373 }
4374
4375
4376 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4377 PyObject *resultobj = 0;
4378 wxColour *arg1 = (wxColour *) 0 ;
4379 byte arg2 ;
4380 byte arg3 ;
4381 byte arg4 ;
4382 byte arg5 = (byte) wxALPHA_OPAQUE ;
4383 void *argp1 = 0 ;
4384 int res1 = 0 ;
4385 unsigned char val2 ;
4386 int ecode2 = 0 ;
4387 unsigned char val3 ;
4388 int ecode3 = 0 ;
4389 unsigned char val4 ;
4390 int ecode4 = 0 ;
4391 unsigned char val5 ;
4392 int ecode5 = 0 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 PyObject * obj2 = 0 ;
4396 PyObject * obj3 = 0 ;
4397 PyObject * obj4 = 0 ;
4398 char * kwnames[] = {
4399 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4400 };
4401
4402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4404 if (!SWIG_IsOK(res1)) {
4405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4406 }
4407 arg1 = reinterpret_cast< wxColour * >(argp1);
4408 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4409 if (!SWIG_IsOK(ecode2)) {
4410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4411 }
4412 arg2 = static_cast< byte >(val2);
4413 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4414 if (!SWIG_IsOK(ecode3)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4416 }
4417 arg3 = static_cast< byte >(val3);
4418 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4419 if (!SWIG_IsOK(ecode4)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4421 }
4422 arg4 = static_cast< byte >(val4);
4423 if (obj4) {
4424 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4425 if (!SWIG_IsOK(ecode5)) {
4426 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4427 }
4428 arg5 = static_cast< byte >(val5);
4429 }
4430 {
4431 PyThreadState* __tstate = wxPyBeginAllowThreads();
4432 (arg1)->Set(arg2,arg3,arg4,arg5);
4433 wxPyEndAllowThreads(__tstate);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 resultobj = SWIG_Py_Void();
4437 return resultobj;
4438 fail:
4439 return NULL;
4440 }
4441
4442
4443 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4444 PyObject *resultobj = 0;
4445 wxColour *arg1 = (wxColour *) 0 ;
4446 unsigned long arg2 ;
4447 void *argp1 = 0 ;
4448 int res1 = 0 ;
4449 unsigned long val2 ;
4450 int ecode2 = 0 ;
4451 PyObject * obj0 = 0 ;
4452 PyObject * obj1 = 0 ;
4453 char * kwnames[] = {
4454 (char *) "self",(char *) "colRGB", NULL
4455 };
4456
4457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4459 if (!SWIG_IsOK(res1)) {
4460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4461 }
4462 arg1 = reinterpret_cast< wxColour * >(argp1);
4463 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4464 if (!SWIG_IsOK(ecode2)) {
4465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4466 }
4467 arg2 = static_cast< unsigned long >(val2);
4468 {
4469 PyThreadState* __tstate = wxPyBeginAllowThreads();
4470 (arg1)->Set(arg2);
4471 wxPyEndAllowThreads(__tstate);
4472 if (PyErr_Occurred()) SWIG_fail;
4473 }
4474 resultobj = SWIG_Py_Void();
4475 return resultobj;
4476 fail:
4477 return NULL;
4478 }
4479
4480
4481 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj = 0;
4483 wxColour *arg1 = (wxColour *) 0 ;
4484 wxString *arg2 = 0 ;
4485 void *argp1 = 0 ;
4486 int res1 = 0 ;
4487 bool temp2 = false ;
4488 PyObject * obj0 = 0 ;
4489 PyObject * obj1 = 0 ;
4490 char * kwnames[] = {
4491 (char *) "self",(char *) "colourName", NULL
4492 };
4493
4494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4498 }
4499 arg1 = reinterpret_cast< wxColour * >(argp1);
4500 {
4501 arg2 = wxString_in_helper(obj1);
4502 if (arg2 == NULL) SWIG_fail;
4503 temp2 = true;
4504 }
4505 {
4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
4507 (arg1)->Set((wxString const &)*arg2);
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 resultobj = SWIG_Py_Void();
4512 {
4513 if (temp2)
4514 delete arg2;
4515 }
4516 return resultobj;
4517 fail:
4518 {
4519 if (temp2)
4520 delete arg2;
4521 }
4522 return NULL;
4523 }
4524
4525
4526 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj = 0;
4528 wxColour *arg1 = (wxColour *) 0 ;
4529 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4530 wxString result;
4531 void *argp1 = 0 ;
4532 int res1 = 0 ;
4533 long val2 ;
4534 int ecode2 = 0 ;
4535 PyObject * obj0 = 0 ;
4536 PyObject * obj1 = 0 ;
4537 char * kwnames[] = {
4538 (char *) "self",(char *) "flags", NULL
4539 };
4540
4541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4543 if (!SWIG_IsOK(res1)) {
4544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4545 }
4546 arg1 = reinterpret_cast< wxColour * >(argp1);
4547 if (obj1) {
4548 ecode2 = SWIG_AsVal_long(obj1, &val2);
4549 if (!SWIG_IsOK(ecode2)) {
4550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4551 }
4552 arg2 = static_cast< long >(val2);
4553 }
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 result = ((wxColour const *)arg1)->GetAsString(arg2);
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 {
4561 #if wxUSE_UNICODE
4562 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4563 #else
4564 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4565 #endif
4566 }
4567 return resultobj;
4568 fail:
4569 return NULL;
4570 }
4571
4572
4573 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4574 PyObject *resultobj = 0;
4575 wxColour *arg1 = (wxColour *) 0 ;
4576 long result;
4577 void *argp1 = 0 ;
4578 int res1 = 0 ;
4579 PyObject *swig_obj[1] ;
4580
4581 if (!args) SWIG_fail;
4582 swig_obj[0] = args;
4583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4584 if (!SWIG_IsOK(res1)) {
4585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4586 }
4587 arg1 = reinterpret_cast< wxColour * >(argp1);
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 result = (long)((wxColour const *)arg1)->GetPixel();
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 resultobj = SWIG_From_long(static_cast< long >(result));
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj = 0;
4603 wxColour *arg1 = (wxColour *) 0 ;
4604 PyObject *arg2 = (PyObject *) 0 ;
4605 bool result;
4606 void *argp1 = 0 ;
4607 int res1 = 0 ;
4608 PyObject * obj0 = 0 ;
4609 PyObject * obj1 = 0 ;
4610 char * kwnames[] = {
4611 (char *) "self",(char *) "other", NULL
4612 };
4613
4614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4618 }
4619 arg1 = reinterpret_cast< wxColour * >(argp1);
4620 arg2 = obj1;
4621 {
4622 result = (bool)wxColour___eq__(arg1,arg2);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
4625 {
4626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4627 }
4628 return resultobj;
4629 fail:
4630 return NULL;
4631 }
4632
4633
4634 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj = 0;
4636 wxColour *arg1 = (wxColour *) 0 ;
4637 PyObject *arg2 = (PyObject *) 0 ;
4638 bool result;
4639 void *argp1 = 0 ;
4640 int res1 = 0 ;
4641 PyObject * obj0 = 0 ;
4642 PyObject * obj1 = 0 ;
4643 char * kwnames[] = {
4644 (char *) "self",(char *) "other", NULL
4645 };
4646
4647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4649 if (!SWIG_IsOK(res1)) {
4650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4651 }
4652 arg1 = reinterpret_cast< wxColour * >(argp1);
4653 arg2 = obj1;
4654 {
4655 result = (bool)wxColour___ne__(arg1,arg2);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 {
4659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4660 }
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj = 0;
4669 wxColour *arg1 = (wxColour *) 0 ;
4670 bool arg2 = (bool) false ;
4671 PyObject *result = 0 ;
4672 void *argp1 = 0 ;
4673 int res1 = 0 ;
4674 bool val2 ;
4675 int ecode2 = 0 ;
4676 PyObject * obj0 = 0 ;
4677 PyObject * obj1 = 0 ;
4678 char * kwnames[] = {
4679 (char *) "self",(char *) "includeAlpha", NULL
4680 };
4681
4682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4684 if (!SWIG_IsOK(res1)) {
4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4686 }
4687 arg1 = reinterpret_cast< wxColour * >(argp1);
4688 if (obj1) {
4689 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4690 if (!SWIG_IsOK(ecode2)) {
4691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4692 }
4693 arg2 = static_cast< bool >(val2);
4694 }
4695 {
4696 result = (PyObject *)wxColour_Get(arg1,arg2);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = result;
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 wxColour *arg1 = (wxColour *) 0 ;
4709 unsigned long result;
4710 void *argp1 = 0 ;
4711 int res1 = 0 ;
4712 PyObject *swig_obj[1] ;
4713
4714 if (!args) SWIG_fail;
4715 swig_obj[0] = args;
4716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4719 }
4720 arg1 = reinterpret_cast< wxColour * >(argp1);
4721 {
4722 result = (unsigned long)wxColour_GetRGB(arg1);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 }
4725 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4726 return resultobj;
4727 fail:
4728 return NULL;
4729 }
4730
4731
4732 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4733 PyObject *obj;
4734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4735 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4736 return SWIG_Py_Void();
4737 }
4738
4739 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4740 return SWIG_Python_InitShadowInstance(args);
4741 }
4742
4743 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4744 PyObject *resultobj = 0;
4745 int arg1 ;
4746 unsigned char *arg2 = (unsigned char *) 0 ;
4747 unsigned char *arg3 = (unsigned char *) 0 ;
4748 unsigned char *arg4 = (unsigned char *) 0 ;
4749 wxPalette *result = 0 ;
4750 int val1 ;
4751 int ecode1 = 0 ;
4752 void *argp2 = 0 ;
4753 int res2 = 0 ;
4754 void *argp3 = 0 ;
4755 int res3 = 0 ;
4756 void *argp4 = 0 ;
4757 int res4 = 0 ;
4758 PyObject * obj0 = 0 ;
4759 PyObject * obj1 = 0 ;
4760 PyObject * obj2 = 0 ;
4761 PyObject * obj3 = 0 ;
4762 char * kwnames[] = {
4763 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4764 };
4765
4766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4767 ecode1 = SWIG_AsVal_int(obj0, &val1);
4768 if (!SWIG_IsOK(ecode1)) {
4769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4770 }
4771 arg1 = static_cast< int >(val1);
4772 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4773 if (!SWIG_IsOK(res2)) {
4774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4775 }
4776 arg2 = reinterpret_cast< unsigned char * >(argp2);
4777 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4778 if (!SWIG_IsOK(res3)) {
4779 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4780 }
4781 arg3 = reinterpret_cast< unsigned char * >(argp3);
4782 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4783 if (!SWIG_IsOK(res4)) {
4784 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4785 }
4786 arg4 = reinterpret_cast< unsigned char * >(argp4);
4787 {
4788 if (!wxPyCheckForApp()) SWIG_fail;
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxPalette *arg1 = (wxPalette *) 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_wxPalette, SWIG_POINTER_DISOWN | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4813 }
4814 arg1 = reinterpret_cast< wxPalette * >(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_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj = 0;
4831 wxPalette *arg1 = (wxPalette *) 0 ;
4832 byte arg2 ;
4833 byte arg3 ;
4834 byte arg4 ;
4835 int result;
4836 void *argp1 = 0 ;
4837 int res1 = 0 ;
4838 unsigned char val2 ;
4839 int ecode2 = 0 ;
4840 unsigned char val3 ;
4841 int ecode3 = 0 ;
4842 unsigned char val4 ;
4843 int ecode4 = 0 ;
4844 PyObject * obj0 = 0 ;
4845 PyObject * obj1 = 0 ;
4846 PyObject * obj2 = 0 ;
4847 PyObject * obj3 = 0 ;
4848 char * kwnames[] = {
4849 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4850 };
4851
4852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4856 }
4857 arg1 = reinterpret_cast< wxPalette * >(argp1);
4858 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4859 if (!SWIG_IsOK(ecode2)) {
4860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4861 }
4862 arg2 = static_cast< byte >(val2);
4863 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4864 if (!SWIG_IsOK(ecode3)) {
4865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4866 }
4867 arg3 = static_cast< byte >(val3);
4868 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4869 if (!SWIG_IsOK(ecode4)) {
4870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4871 }
4872 arg4 = static_cast< byte >(val4);
4873 {
4874 PyThreadState* __tstate = wxPyBeginAllowThreads();
4875 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4876 wxPyEndAllowThreads(__tstate);
4877 if (PyErr_Occurred()) SWIG_fail;
4878 }
4879 resultobj = SWIG_From_int(static_cast< int >(result));
4880 return resultobj;
4881 fail:
4882 return NULL;
4883 }
4884
4885
4886 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4887 PyObject *resultobj = 0;
4888 wxPalette *arg1 = (wxPalette *) 0 ;
4889 int arg2 ;
4890 byte *arg3 = (byte *) 0 ;
4891 byte *arg4 = (byte *) 0 ;
4892 byte *arg5 = (byte *) 0 ;
4893 bool result;
4894 void *argp1 = 0 ;
4895 int res1 = 0 ;
4896 int val2 ;
4897 int ecode2 = 0 ;
4898 byte temp3 ;
4899 int res3 = SWIG_TMPOBJ ;
4900 byte temp4 ;
4901 int res4 = SWIG_TMPOBJ ;
4902 byte temp5 ;
4903 int res5 = SWIG_TMPOBJ ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 char * kwnames[] = {
4907 (char *) "self",(char *) "pixel", NULL
4908 };
4909
4910 arg3 = &temp3;
4911 arg4 = &temp4;
4912 arg5 = &temp5;
4913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4915 if (!SWIG_IsOK(res1)) {
4916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4917 }
4918 arg1 = reinterpret_cast< wxPalette * >(argp1);
4919 ecode2 = SWIG_AsVal_int(obj1, &val2);
4920 if (!SWIG_IsOK(ecode2)) {
4921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4922 }
4923 arg2 = static_cast< int >(val2);
4924 {
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 {
4931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4932 }
4933 if (SWIG_IsTmpObj(res3)) {
4934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4935 } else {
4936 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4938 }
4939 if (SWIG_IsTmpObj(res4)) {
4940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4941 } else {
4942 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4944 }
4945 if (SWIG_IsTmpObj(res5)) {
4946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4947 } else {
4948 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4950 }
4951 return resultobj;
4952 fail:
4953 return NULL;
4954 }
4955
4956
4957 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4958 PyObject *resultobj = 0;
4959 wxPalette *arg1 = (wxPalette *) 0 ;
4960 int result;
4961 void *argp1 = 0 ;
4962 int res1 = 0 ;
4963 PyObject *swig_obj[1] ;
4964
4965 if (!args) SWIG_fail;
4966 swig_obj[0] = args;
4967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4968 if (!SWIG_IsOK(res1)) {
4969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4970 }
4971 arg1 = reinterpret_cast< wxPalette * >(argp1);
4972 {
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 resultobj = SWIG_From_int(static_cast< int >(result));
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *resultobj = 0;
4987 wxPalette *arg1 = (wxPalette *) 0 ;
4988 bool result;
4989 void *argp1 = 0 ;
4990 int res1 = 0 ;
4991 PyObject *swig_obj[1] ;
4992
4993 if (!args) SWIG_fail;
4994 swig_obj[0] = args;
4995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4996 if (!SWIG_IsOK(res1)) {
4997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4998 }
4999 arg1 = reinterpret_cast< wxPalette * >(argp1);
5000 {
5001 PyThreadState* __tstate = wxPyBeginAllowThreads();
5002 result = (bool)(arg1)->IsOk();
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 {
5007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5008 }
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5016 PyObject *obj;
5017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5018 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5019 return SWIG_Py_Void();
5020 }
5021
5022 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5023 return SWIG_Python_InitShadowInstance(args);
5024 }
5025
5026 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj = 0;
5028 wxColour *arg1 = 0 ;
5029 int arg2 = (int) 1 ;
5030 int arg3 = (int) wxSOLID ;
5031 wxPen *result = 0 ;
5032 wxColour temp1 ;
5033 int val2 ;
5034 int ecode2 = 0 ;
5035 int val3 ;
5036 int ecode3 = 0 ;
5037 PyObject * obj0 = 0 ;
5038 PyObject * obj1 = 0 ;
5039 PyObject * obj2 = 0 ;
5040 char * kwnames[] = {
5041 (char *) "colour",(char *) "width",(char *) "style", NULL
5042 };
5043
5044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5045 {
5046 arg1 = &temp1;
5047 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5048 }
5049 if (obj1) {
5050 ecode2 = SWIG_AsVal_int(obj1, &val2);
5051 if (!SWIG_IsOK(ecode2)) {
5052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5053 }
5054 arg2 = static_cast< int >(val2);
5055 }
5056 if (obj2) {
5057 ecode3 = SWIG_AsVal_int(obj2, &val3);
5058 if (!SWIG_IsOK(ecode3)) {
5059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5060 }
5061 arg3 = static_cast< int >(val3);
5062 }
5063 {
5064 if (!wxPyCheckForApp()) SWIG_fail;
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5071 return resultobj;
5072 fail:
5073 return NULL;
5074 }
5075
5076
5077 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5078 PyObject *resultobj = 0;
5079 wxPen *arg1 = (wxPen *) 0 ;
5080 void *argp1 = 0 ;
5081 int res1 = 0 ;
5082 PyObject *swig_obj[1] ;
5083
5084 if (!args) SWIG_fail;
5085 swig_obj[0] = args;
5086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5087 if (!SWIG_IsOK(res1)) {
5088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5089 }
5090 arg1 = reinterpret_cast< wxPen * >(argp1);
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 delete arg1;
5094
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = SWIG_Py_Void();
5099 return resultobj;
5100 fail:
5101 return NULL;
5102 }
5103
5104
5105 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5106 PyObject *resultobj = 0;
5107 wxPen *arg1 = (wxPen *) 0 ;
5108 int result;
5109 void *argp1 = 0 ;
5110 int res1 = 0 ;
5111 PyObject *swig_obj[1] ;
5112
5113 if (!args) SWIG_fail;
5114 swig_obj[0] = args;
5115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5116 if (!SWIG_IsOK(res1)) {
5117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5118 }
5119 arg1 = reinterpret_cast< wxPen * >(argp1);
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 result = (int)(arg1)->GetCap();
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 }
5126 resultobj = SWIG_From_int(static_cast< int >(result));
5127 return resultobj;
5128 fail:
5129 return NULL;
5130 }
5131
5132
5133 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5134 PyObject *resultobj = 0;
5135 wxPen *arg1 = (wxPen *) 0 ;
5136 wxColour result;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 PyObject *swig_obj[1] ;
5140
5141 if (!args) SWIG_fail;
5142 swig_obj[0] = args;
5143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5144 if (!SWIG_IsOK(res1)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5146 }
5147 arg1 = reinterpret_cast< wxPen * >(argp1);
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 result = (arg1)->GetColour();
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5155 return resultobj;
5156 fail:
5157 return NULL;
5158 }
5159
5160
5161 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5162 PyObject *resultobj = 0;
5163 wxPen *arg1 = (wxPen *) 0 ;
5164 int result;
5165 void *argp1 = 0 ;
5166 int res1 = 0 ;
5167 PyObject *swig_obj[1] ;
5168
5169 if (!args) SWIG_fail;
5170 swig_obj[0] = args;
5171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5172 if (!SWIG_IsOK(res1)) {
5173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5174 }
5175 arg1 = reinterpret_cast< wxPen * >(argp1);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (int)(arg1)->GetJoin();
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_From_int(static_cast< int >(result));
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 wxPen *arg1 = (wxPen *) 0 ;
5192 int result;
5193 void *argp1 = 0 ;
5194 int res1 = 0 ;
5195 PyObject *swig_obj[1] ;
5196
5197 if (!args) SWIG_fail;
5198 swig_obj[0] = args;
5199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5202 }
5203 arg1 = reinterpret_cast< wxPen * >(argp1);
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (int)(arg1)->GetStyle();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_From_int(static_cast< int >(result));
5211 return resultobj;
5212 fail:
5213 return NULL;
5214 }
5215
5216
5217 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5218 PyObject *resultobj = 0;
5219 wxPen *arg1 = (wxPen *) 0 ;
5220 int result;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 PyObject *swig_obj[1] ;
5224
5225 if (!args) SWIG_fail;
5226 swig_obj[0] = args;
5227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5230 }
5231 arg1 = reinterpret_cast< wxPen * >(argp1);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (int)(arg1)->GetWidth();
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_From_int(static_cast< int >(result));
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 bool result;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5258 }
5259 arg1 = reinterpret_cast< wxPen * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (bool)(arg1)->IsOk();
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 {
5267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5268 }
5269 return resultobj;
5270 fail:
5271 return NULL;
5272 }
5273
5274
5275 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5276 PyObject *resultobj = 0;
5277 wxPen *arg1 = (wxPen *) 0 ;
5278 int arg2 ;
5279 void *argp1 = 0 ;
5280 int res1 = 0 ;
5281 int val2 ;
5282 int ecode2 = 0 ;
5283 PyObject * obj0 = 0 ;
5284 PyObject * obj1 = 0 ;
5285 char * kwnames[] = {
5286 (char *) "self",(char *) "cap_style", NULL
5287 };
5288
5289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5291 if (!SWIG_IsOK(res1)) {
5292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5293 }
5294 arg1 = reinterpret_cast< wxPen * >(argp1);
5295 ecode2 = SWIG_AsVal_int(obj1, &val2);
5296 if (!SWIG_IsOK(ecode2)) {
5297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5298 }
5299 arg2 = static_cast< int >(val2);
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 (arg1)->SetCap(arg2);
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 resultobj = SWIG_Py_Void();
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj = 0;
5315 wxPen *arg1 = (wxPen *) 0 ;
5316 wxColour *arg2 = 0 ;
5317 void *argp1 = 0 ;
5318 int res1 = 0 ;
5319 wxColour temp2 ;
5320 PyObject * obj0 = 0 ;
5321 PyObject * obj1 = 0 ;
5322 char * kwnames[] = {
5323 (char *) "self",(char *) "colour", NULL
5324 };
5325
5326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5328 if (!SWIG_IsOK(res1)) {
5329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5330 }
5331 arg1 = reinterpret_cast< wxPen * >(argp1);
5332 {
5333 arg2 = &temp2;
5334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5335 }
5336 {
5337 PyThreadState* __tstate = wxPyBeginAllowThreads();
5338 (arg1)->SetColour(*arg2);
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 resultobj = SWIG_Py_Void();
5343 return resultobj;
5344 fail:
5345 return NULL;
5346 }
5347
5348
5349 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5350 PyObject *resultobj = 0;
5351 wxPen *arg1 = (wxPen *) 0 ;
5352 int arg2 ;
5353 void *argp1 = 0 ;
5354 int res1 = 0 ;
5355 int val2 ;
5356 int ecode2 = 0 ;
5357 PyObject * obj0 = 0 ;
5358 PyObject * obj1 = 0 ;
5359 char * kwnames[] = {
5360 (char *) "self",(char *) "join_style", NULL
5361 };
5362
5363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5365 if (!SWIG_IsOK(res1)) {
5366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5367 }
5368 arg1 = reinterpret_cast< wxPen * >(argp1);
5369 ecode2 = SWIG_AsVal_int(obj1, &val2);
5370 if (!SWIG_IsOK(ecode2)) {
5371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5372 }
5373 arg2 = static_cast< int >(val2);
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 (arg1)->SetJoin(arg2);
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 resultobj = SWIG_Py_Void();
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxPen *arg1 = (wxPen *) 0 ;
5390 int arg2 ;
5391 void *argp1 = 0 ;
5392 int res1 = 0 ;
5393 int val2 ;
5394 int ecode2 = 0 ;
5395 PyObject * obj0 = 0 ;
5396 PyObject * obj1 = 0 ;
5397 char * kwnames[] = {
5398 (char *) "self",(char *) "style", NULL
5399 };
5400
5401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5403 if (!SWIG_IsOK(res1)) {
5404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5405 }
5406 arg1 = reinterpret_cast< wxPen * >(argp1);
5407 ecode2 = SWIG_AsVal_int(obj1, &val2);
5408 if (!SWIG_IsOK(ecode2)) {
5409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5410 }
5411 arg2 = static_cast< int >(val2);
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 (arg1)->SetStyle(arg2);
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_Py_Void();
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5426 PyObject *resultobj = 0;
5427 wxPen *arg1 = (wxPen *) 0 ;
5428 int arg2 ;
5429 void *argp1 = 0 ;
5430 int res1 = 0 ;
5431 int val2 ;
5432 int ecode2 = 0 ;
5433 PyObject * obj0 = 0 ;
5434 PyObject * obj1 = 0 ;
5435 char * kwnames[] = {
5436 (char *) "self",(char *) "width", NULL
5437 };
5438
5439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5441 if (!SWIG_IsOK(res1)) {
5442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5443 }
5444 arg1 = reinterpret_cast< wxPen * >(argp1);
5445 ecode2 = SWIG_AsVal_int(obj1, &val2);
5446 if (!SWIG_IsOK(ecode2)) {
5447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5448 }
5449 arg2 = static_cast< int >(val2);
5450 {
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 (arg1)->SetWidth(arg2);
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_Py_Void();
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj = 0;
5465 wxPen *arg1 = (wxPen *) 0 ;
5466 int arg2 ;
5467 wxDash *arg3 = (wxDash *) 0 ;
5468 void *argp1 = 0 ;
5469 int res1 = 0 ;
5470 PyObject * obj0 = 0 ;
5471 PyObject * obj1 = 0 ;
5472 char * kwnames[] = {
5473 (char *) "self",(char *) "dashes", NULL
5474 };
5475
5476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5478 if (!SWIG_IsOK(res1)) {
5479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5480 }
5481 arg1 = reinterpret_cast< wxPen * >(argp1);
5482 {
5483 arg2 = PyList_Size(obj1);
5484 arg3 = (wxDash*)byte_LIST_helper(obj1);
5485 if (arg3 == NULL) SWIG_fail;
5486 }
5487 {
5488 PyThreadState* __tstate = wxPyBeginAllowThreads();
5489 (arg1)->SetDashes(arg2,arg3);
5490 wxPyEndAllowThreads(__tstate);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 resultobj = SWIG_Py_Void();
5494 {
5495 if (arg3) delete [] arg3;
5496 }
5497 return resultobj;
5498 fail:
5499 {
5500 if (arg3) delete [] arg3;
5501 }
5502 return NULL;
5503 }
5504
5505
5506 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5507 PyObject *resultobj = 0;
5508 wxPen *arg1 = (wxPen *) 0 ;
5509 PyObject *result = 0 ;
5510 void *argp1 = 0 ;
5511 int res1 = 0 ;
5512 PyObject *swig_obj[1] ;
5513
5514 if (!args) SWIG_fail;
5515 swig_obj[0] = args;
5516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5517 if (!SWIG_IsOK(res1)) {
5518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5519 }
5520 arg1 = reinterpret_cast< wxPen * >(argp1);
5521 {
5522 PyThreadState* __tstate = wxPyBeginAllowThreads();
5523 result = (PyObject *)wxPen_GetDashes(arg1);
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 resultobj = result;
5528 return resultobj;
5529 fail:
5530 return NULL;
5531 }
5532
5533
5534 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj = 0;
5536 wxPen *arg1 = (wxPen *) 0 ;
5537 PyObject *arg2 = (PyObject *) 0 ;
5538 PyObject *arg3 = (PyObject *) 0 ;
5539 void *argp1 = 0 ;
5540 int res1 = 0 ;
5541 PyObject * obj0 = 0 ;
5542 PyObject * obj1 = 0 ;
5543 PyObject * obj2 = 0 ;
5544 char * kwnames[] = {
5545 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5546 };
5547
5548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5550 if (!SWIG_IsOK(res1)) {
5551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5552 }
5553 arg1 = reinterpret_cast< wxPen * >(argp1);
5554 arg2 = obj1;
5555 arg3 = obj2;
5556 {
5557 PyThreadState* __tstate = wxPyBeginAllowThreads();
5558 wxPen__SetDashes(arg1,arg2,arg3);
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = SWIG_Py_Void();
5563 return resultobj;
5564 fail:
5565 return NULL;
5566 }
5567
5568
5569 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5570 PyObject *resultobj = 0;
5571 wxPen *arg1 = (wxPen *) 0 ;
5572 int result;
5573 void *argp1 = 0 ;
5574 int res1 = 0 ;
5575 PyObject *swig_obj[1] ;
5576
5577 if (!args) SWIG_fail;
5578 swig_obj[0] = args;
5579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5582 }
5583 arg1 = reinterpret_cast< wxPen * >(argp1);
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 result = (int)((wxPen const *)arg1)->GetDashCount();
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 resultobj = SWIG_From_int(static_cast< int >(result));
5591 return resultobj;
5592 fail:
5593 return NULL;
5594 }
5595
5596
5597 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj = 0;
5599 wxPen *arg1 = (wxPen *) 0 ;
5600 wxPen *arg2 = (wxPen *) 0 ;
5601 bool result;
5602 void *argp1 = 0 ;
5603 int res1 = 0 ;
5604 void *argp2 = 0 ;
5605 int res2 = 0 ;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char * kwnames[] = {
5609 (char *) "self",(char *) "other", NULL
5610 };
5611
5612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5616 }
5617 arg1 = reinterpret_cast< wxPen * >(argp1);
5618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5619 if (!SWIG_IsOK(res2)) {
5620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5621 }
5622 arg2 = reinterpret_cast< wxPen * >(argp2);
5623 {
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 {
5630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5631 }
5632 return resultobj;
5633 fail:
5634 return NULL;
5635 }
5636
5637
5638 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5639 PyObject *resultobj = 0;
5640 wxPen *arg1 = (wxPen *) 0 ;
5641 wxPen *arg2 = (wxPen *) 0 ;
5642 bool result;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 void *argp2 = 0 ;
5646 int res2 = 0 ;
5647 PyObject * obj0 = 0 ;
5648 PyObject * obj1 = 0 ;
5649 char * kwnames[] = {
5650 (char *) "self",(char *) "other", NULL
5651 };
5652
5653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5655 if (!SWIG_IsOK(res1)) {
5656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5657 }
5658 arg1 = reinterpret_cast< wxPen * >(argp1);
5659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5660 if (!SWIG_IsOK(res2)) {
5661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5662 }
5663 arg2 = reinterpret_cast< wxPen * >(argp2);
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
5670 {
5671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5672 }
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5680 PyObject *obj;
5681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5682 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5683 return SWIG_Py_Void();
5684 }
5685
5686 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5687 return SWIG_Python_InitShadowInstance(args);
5688 }
5689
5690 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5691 PyObject *resultobj = 0;
5692 wxColour *arg1 = 0 ;
5693 int arg2 = (int) wxSOLID ;
5694 wxBrush *result = 0 ;
5695 wxColour temp1 ;
5696 int val2 ;
5697 int ecode2 = 0 ;
5698 PyObject * obj0 = 0 ;
5699 PyObject * obj1 = 0 ;
5700 char * kwnames[] = {
5701 (char *) "colour",(char *) "style", NULL
5702 };
5703
5704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5705 {
5706 arg1 = &temp1;
5707 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5708 }
5709 if (obj1) {
5710 ecode2 = SWIG_AsVal_int(obj1, &val2);
5711 if (!SWIG_IsOK(ecode2)) {
5712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5713 }
5714 arg2 = static_cast< int >(val2);
5715 }
5716 {
5717 if (!wxPyCheckForApp()) SWIG_fail;
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj = 0;
5732 wxBitmap *arg1 = 0 ;
5733 wxBrush *result = 0 ;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject * obj0 = 0 ;
5737 char * kwnames[] = {
5738 (char *) "stippleBitmap", NULL
5739 };
5740
5741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5742 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5743 if (!SWIG_IsOK(res1)) {
5744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5745 }
5746 if (!argp1) {
5747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5748 }
5749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5750 {
5751 if (!wxPyCheckForApp()) SWIG_fail;
5752 PyThreadState* __tstate = wxPyBeginAllowThreads();
5753 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 }
5757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5758 return resultobj;
5759 fail:
5760 return NULL;
5761 }
5762
5763
5764 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5765 PyObject *resultobj = 0;
5766 wxBrush *arg1 = (wxBrush *) 0 ;
5767 void *argp1 = 0 ;
5768 int res1 = 0 ;
5769 PyObject *swig_obj[1] ;
5770
5771 if (!args) SWIG_fail;
5772 swig_obj[0] = args;
5773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5774 if (!SWIG_IsOK(res1)) {
5775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5776 }
5777 arg1 = reinterpret_cast< wxBrush * >(argp1);
5778 {
5779 PyThreadState* __tstate = wxPyBeginAllowThreads();
5780 delete arg1;
5781
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 resultobj = SWIG_Py_Void();
5786 return resultobj;
5787 fail:
5788 return NULL;
5789 }
5790
5791
5792 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5793 PyObject *resultobj = 0;
5794 wxBrush *arg1 = (wxBrush *) 0 ;
5795 wxColour *arg2 = 0 ;
5796 void *argp1 = 0 ;
5797 int res1 = 0 ;
5798 wxColour temp2 ;
5799 PyObject * obj0 = 0 ;
5800 PyObject * obj1 = 0 ;
5801 char * kwnames[] = {
5802 (char *) "self",(char *) "col", NULL
5803 };
5804
5805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5807 if (!SWIG_IsOK(res1)) {
5808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5809 }
5810 arg1 = reinterpret_cast< wxBrush * >(argp1);
5811 {
5812 arg2 = &temp2;
5813 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5814 }
5815 {
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 (arg1)->SetColour((wxColour const &)*arg2);
5818 wxPyEndAllowThreads(__tstate);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 resultobj = SWIG_Py_Void();
5822 return resultobj;
5823 fail:
5824 return NULL;
5825 }
5826
5827
5828 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj = 0;
5830 wxBrush *arg1 = (wxBrush *) 0 ;
5831 int arg2 ;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 int val2 ;
5835 int ecode2 = 0 ;
5836 PyObject * obj0 = 0 ;
5837 PyObject * obj1 = 0 ;
5838 char * kwnames[] = {
5839 (char *) "self",(char *) "style", NULL
5840 };
5841
5842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5844 if (!SWIG_IsOK(res1)) {
5845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5846 }
5847 arg1 = reinterpret_cast< wxBrush * >(argp1);
5848 ecode2 = SWIG_AsVal_int(obj1, &val2);
5849 if (!SWIG_IsOK(ecode2)) {
5850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5851 }
5852 arg2 = static_cast< int >(val2);
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 (arg1)->SetStyle(arg2);
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 resultobj = SWIG_Py_Void();
5860 return resultobj;
5861 fail:
5862 return NULL;
5863 }
5864
5865
5866 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5867 PyObject *resultobj = 0;
5868 wxBrush *arg1 = (wxBrush *) 0 ;
5869 wxBitmap *arg2 = 0 ;
5870 void *argp1 = 0 ;
5871 int res1 = 0 ;
5872 void *argp2 = 0 ;
5873 int res2 = 0 ;
5874 PyObject * obj0 = 0 ;
5875 PyObject * obj1 = 0 ;
5876 char * kwnames[] = {
5877 (char *) "self",(char *) "stipple", NULL
5878 };
5879
5880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5884 }
5885 arg1 = reinterpret_cast< wxBrush * >(argp1);
5886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5887 if (!SWIG_IsOK(res2)) {
5888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5889 }
5890 if (!argp2) {
5891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5892 }
5893 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5894 {
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 (arg1)->SetStipple((wxBitmap const &)*arg2);
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_Py_Void();
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5908 PyObject *resultobj = 0;
5909 wxBrush *arg1 = (wxBrush *) 0 ;
5910 wxColour result;
5911 void *argp1 = 0 ;
5912 int res1 = 0 ;
5913 PyObject *swig_obj[1] ;
5914
5915 if (!args) SWIG_fail;
5916 swig_obj[0] = args;
5917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5918 if (!SWIG_IsOK(res1)) {
5919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5920 }
5921 arg1 = reinterpret_cast< wxBrush * >(argp1);
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 result = ((wxBrush const *)arg1)->GetColour();
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5929 return resultobj;
5930 fail:
5931 return NULL;
5932 }
5933
5934
5935 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5936 PyObject *resultobj = 0;
5937 wxBrush *arg1 = (wxBrush *) 0 ;
5938 int result;
5939 void *argp1 = 0 ;
5940 int res1 = 0 ;
5941 PyObject *swig_obj[1] ;
5942
5943 if (!args) SWIG_fail;
5944 swig_obj[0] = args;
5945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5946 if (!SWIG_IsOK(res1)) {
5947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5948 }
5949 arg1 = reinterpret_cast< wxBrush * >(argp1);
5950 {
5951 PyThreadState* __tstate = wxPyBeginAllowThreads();
5952 result = (int)((wxBrush const *)arg1)->GetStyle();
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 resultobj = SWIG_From_int(static_cast< int >(result));
5957 return resultobj;
5958 fail:
5959 return NULL;
5960 }
5961
5962
5963 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5964 PyObject *resultobj = 0;
5965 wxBrush *arg1 = (wxBrush *) 0 ;
5966 wxBitmap *result = 0 ;
5967 void *argp1 = 0 ;
5968 int res1 = 0 ;
5969 PyObject *swig_obj[1] ;
5970
5971 if (!args) SWIG_fail;
5972 swig_obj[0] = args;
5973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5976 }
5977 arg1 = reinterpret_cast< wxBrush * >(argp1);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5992 PyObject *resultobj = 0;
5993 wxBrush *arg1 = (wxBrush *) 0 ;
5994 bool result;
5995 void *argp1 = 0 ;
5996 int res1 = 0 ;
5997 PyObject *swig_obj[1] ;
5998
5999 if (!args) SWIG_fail;
6000 swig_obj[0] = args;
6001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6002 if (!SWIG_IsOK(res1)) {
6003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6004 }
6005 arg1 = reinterpret_cast< wxBrush * >(argp1);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 result = (bool)((wxBrush const *)arg1)->IsHatch();
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 {
6013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6014 }
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6022 PyObject *resultobj = 0;
6023 wxBrush *arg1 = (wxBrush *) 0 ;
6024 bool result;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 PyObject *swig_obj[1] ;
6028
6029 if (!args) SWIG_fail;
6030 swig_obj[0] = args;
6031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6032 if (!SWIG_IsOK(res1)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6034 }
6035 arg1 = reinterpret_cast< wxBrush * >(argp1);
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 result = (bool)(arg1)->IsOk();
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 {
6043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6044 }
6045 return resultobj;
6046 fail:
6047 return NULL;
6048 }
6049
6050
6051 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6052 PyObject *obj;
6053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6054 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6055 return SWIG_Py_Void();
6056 }
6057
6058 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6059 return SWIG_Python_InitShadowInstance(args);
6060 }
6061
6062 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj = 0;
6064 wxString *arg1 = 0 ;
6065 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6066 wxBitmap *result = 0 ;
6067 bool temp1 = false ;
6068 int val2 ;
6069 int ecode2 = 0 ;
6070 PyObject * obj0 = 0 ;
6071 PyObject * obj1 = 0 ;
6072 char * kwnames[] = {
6073 (char *) "name",(char *) "type", NULL
6074 };
6075
6076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6077 {
6078 arg1 = wxString_in_helper(obj0);
6079 if (arg1 == NULL) SWIG_fail;
6080 temp1 = true;
6081 }
6082 if (obj1) {
6083 ecode2 = SWIG_AsVal_int(obj1, &val2);
6084 if (!SWIG_IsOK(ecode2)) {
6085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6086 }
6087 arg2 = static_cast< wxBitmapType >(val2);
6088 }
6089 {
6090 if (!wxPyCheckForApp()) SWIG_fail;
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6097 {
6098 if (temp1)
6099 delete arg1;
6100 }
6101 return resultobj;
6102 fail:
6103 {
6104 if (temp1)
6105 delete arg1;
6106 }
6107 return NULL;
6108 }
6109
6110
6111 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6112 PyObject *resultobj = 0;
6113 wxBitmap *arg1 = (wxBitmap *) 0 ;
6114 void *argp1 = 0 ;
6115 int res1 = 0 ;
6116 PyObject *swig_obj[1] ;
6117
6118 if (!args) SWIG_fail;
6119 swig_obj[0] = args;
6120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6121 if (!SWIG_IsOK(res1)) {
6122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6123 }
6124 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6125 {
6126 delete arg1;
6127
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_Py_Void();
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj = 0;
6139 int arg1 ;
6140 int arg2 ;
6141 int arg3 = (int) -1 ;
6142 wxBitmap *result = 0 ;
6143 int val1 ;
6144 int ecode1 = 0 ;
6145 int val2 ;
6146 int ecode2 = 0 ;
6147 int val3 ;
6148 int ecode3 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 PyObject * obj2 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "width",(char *) "height",(char *) "depth", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6157 ecode1 = SWIG_AsVal_int(obj0, &val1);
6158 if (!SWIG_IsOK(ecode1)) {
6159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6160 }
6161 arg1 = static_cast< int >(val1);
6162 ecode2 = SWIG_AsVal_int(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6165 }
6166 arg2 = static_cast< int >(val2);
6167 if (obj2) {
6168 ecode3 = SWIG_AsVal_int(obj2, &val3);
6169 if (!SWIG_IsOK(ecode3)) {
6170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6171 }
6172 arg3 = static_cast< int >(val3);
6173 }
6174 {
6175 if (!wxPyCheckForApp()) SWIG_fail;
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj = 0;
6190 wxIcon *arg1 = 0 ;
6191 wxBitmap *result = 0 ;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 PyObject * obj0 = 0 ;
6195 char * kwnames[] = {
6196 (char *) "icon", NULL
6197 };
6198
6199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6200 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6201 if (!SWIG_IsOK(res1)) {
6202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6203 }
6204 if (!argp1) {
6205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6206 }
6207 arg1 = reinterpret_cast< wxIcon * >(argp1);
6208 {
6209 if (!wxPyCheckForApp()) SWIG_fail;
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6216 return resultobj;
6217 fail:
6218 return NULL;
6219 }
6220
6221
6222 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6223 PyObject *resultobj = 0;
6224 wxImage *arg1 = 0 ;
6225 int arg2 = (int) -1 ;
6226 wxBitmap *result = 0 ;
6227 void *argp1 = 0 ;
6228 int res1 = 0 ;
6229 int val2 ;
6230 int ecode2 = 0 ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 char * kwnames[] = {
6234 (char *) "image",(char *) "depth", NULL
6235 };
6236
6237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6238 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6239 if (!SWIG_IsOK(res1)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6241 }
6242 if (!argp1) {
6243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6244 }
6245 arg1 = reinterpret_cast< wxImage * >(argp1);
6246 if (obj1) {
6247 ecode2 = SWIG_AsVal_int(obj1, &val2);
6248 if (!SWIG_IsOK(ecode2)) {
6249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6250 }
6251 arg2 = static_cast< int >(val2);
6252 }
6253 {
6254 if (!wxPyCheckForApp()) SWIG_fail;
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6261 return resultobj;
6262 fail:
6263 return NULL;
6264 }
6265
6266
6267 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj = 0;
6269 PyObject *arg1 = (PyObject *) 0 ;
6270 wxBitmap *result = 0 ;
6271 PyObject * obj0 = 0 ;
6272 char * kwnames[] = {
6273 (char *) "listOfStrings", NULL
6274 };
6275
6276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6277 arg1 = obj0;
6278 {
6279 if (!wxPyCheckForApp()) SWIG_fail;
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (wxBitmap *)new_wxBitmap(arg1);
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj = 0;
6294 PyObject *arg1 = (PyObject *) 0 ;
6295 int arg2 ;
6296 int arg3 ;
6297 int arg4 = (int) 1 ;
6298 wxBitmap *result = 0 ;
6299 int val2 ;
6300 int ecode2 = 0 ;
6301 int val3 ;
6302 int ecode3 = 0 ;
6303 int val4 ;
6304 int ecode4 = 0 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 PyObject * obj2 = 0 ;
6308 PyObject * obj3 = 0 ;
6309 char * kwnames[] = {
6310 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6311 };
6312
6313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6314 arg1 = obj0;
6315 ecode2 = SWIG_AsVal_int(obj1, &val2);
6316 if (!SWIG_IsOK(ecode2)) {
6317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6318 }
6319 arg2 = static_cast< int >(val2);
6320 ecode3 = SWIG_AsVal_int(obj2, &val3);
6321 if (!SWIG_IsOK(ecode3)) {
6322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6323 }
6324 arg3 = static_cast< int >(val3);
6325 if (obj3) {
6326 ecode4 = SWIG_AsVal_int(obj3, &val4);
6327 if (!SWIG_IsOK(ecode4)) {
6328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6329 }
6330 arg4 = static_cast< int >(val4);
6331 }
6332 {
6333 if (!wxPyCheckForApp()) SWIG_fail;
6334 PyThreadState* __tstate = wxPyBeginAllowThreads();
6335 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
6339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6347 PyObject *resultobj = 0;
6348 wxBitmap *arg1 = (wxBitmap *) 0 ;
6349 bool result;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 PyObject *swig_obj[1] ;
6353
6354 if (!args) SWIG_fail;
6355 swig_obj[0] = args;
6356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6357 if (!SWIG_IsOK(res1)) {
6358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6359 }
6360 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6361 {
6362 result = (bool)(arg1)->IsOk();
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 {
6366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6367 }
6368 return resultobj;
6369 fail:
6370 return NULL;
6371 }
6372
6373
6374 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6375 PyObject *resultobj = 0;
6376 wxBitmap *arg1 = (wxBitmap *) 0 ;
6377 int result;
6378 void *argp1 = 0 ;
6379 int res1 = 0 ;
6380 PyObject *swig_obj[1] ;
6381
6382 if (!args) SWIG_fail;
6383 swig_obj[0] = args;
6384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6385 if (!SWIG_IsOK(res1)) {
6386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6387 }
6388 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6389 {
6390 result = (int)(arg1)->GetWidth();
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_From_int(static_cast< int >(result));
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxBitmap *arg1 = (wxBitmap *) 0 ;
6403 int result;
6404 void *argp1 = 0 ;
6405 int res1 = 0 ;
6406 PyObject *swig_obj[1] ;
6407
6408 if (!args) SWIG_fail;
6409 swig_obj[0] = args;
6410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6411 if (!SWIG_IsOK(res1)) {
6412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6413 }
6414 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6415 {
6416 result = (int)(arg1)->GetHeight();
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 resultobj = SWIG_From_int(static_cast< int >(result));
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6427 PyObject *resultobj = 0;
6428 wxBitmap *arg1 = (wxBitmap *) 0 ;
6429 int result;
6430 void *argp1 = 0 ;
6431 int res1 = 0 ;
6432 PyObject *swig_obj[1] ;
6433
6434 if (!args) SWIG_fail;
6435 swig_obj[0] = args;
6436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6437 if (!SWIG_IsOK(res1)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6439 }
6440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6441 {
6442 result = (int)(arg1)->GetDepth();
6443 if (PyErr_Occurred()) SWIG_fail;
6444 }
6445 resultobj = SWIG_From_int(static_cast< int >(result));
6446 return resultobj;
6447 fail:
6448 return NULL;
6449 }
6450
6451
6452 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6453 PyObject *resultobj = 0;
6454 wxBitmap *arg1 = (wxBitmap *) 0 ;
6455 wxSize result;
6456 void *argp1 = 0 ;
6457 int res1 = 0 ;
6458 PyObject *swig_obj[1] ;
6459
6460 if (!args) SWIG_fail;
6461 swig_obj[0] = args;
6462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6463 if (!SWIG_IsOK(res1)) {
6464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6465 }
6466 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6467 {
6468 result = wxBitmap_GetSize(arg1);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxBitmap *arg1 = (wxBitmap *) 0 ;
6481 SwigValueWrapper<wxImage > result;
6482 void *argp1 = 0 ;
6483 int res1 = 0 ;
6484 PyObject *swig_obj[1] ;
6485
6486 if (!args) SWIG_fail;
6487 swig_obj[0] = args;
6488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6489 if (!SWIG_IsOK(res1)) {
6490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6491 }
6492 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6493 {
6494 result = ((wxBitmap const *)arg1)->ConvertToImage();
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxBitmap *arg1 = (wxBitmap *) 0 ;
6507 wxMask *result = 0 ;
6508 void *argp1 = 0 ;
6509 int res1 = 0 ;
6510 PyObject *swig_obj[1] ;
6511
6512 if (!args) SWIG_fail;
6513 swig_obj[0] = args;
6514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6517 }
6518 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6519 {
6520 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6531 PyObject *resultobj = 0;
6532 wxBitmap *arg1 = (wxBitmap *) 0 ;
6533 wxMask *arg2 = (wxMask *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 int res2 = 0 ;
6537 PyObject * obj0 = 0 ;
6538 PyObject * obj1 = 0 ;
6539 char * kwnames[] = {
6540 (char *) "self",(char *) "mask", NULL
6541 };
6542
6543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6545 if (!SWIG_IsOK(res1)) {
6546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6547 }
6548 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6549 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6550 if (!SWIG_IsOK(res2)) {
6551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6552 }
6553 {
6554 (arg1)->SetMask(arg2);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_Py_Void();
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj = 0;
6566 wxBitmap *arg1 = (wxBitmap *) 0 ;
6567 wxColour *arg2 = 0 ;
6568 void *argp1 = 0 ;
6569 int res1 = 0 ;
6570 wxColour temp2 ;
6571 PyObject * obj0 = 0 ;
6572 PyObject * obj1 = 0 ;
6573 char * kwnames[] = {
6574 (char *) "self",(char *) "colour", NULL
6575 };
6576
6577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6581 }
6582 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6583 {
6584 arg2 = &temp2;
6585 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6586 }
6587 {
6588 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 resultobj = SWIG_Py_Void();
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6599 PyObject *resultobj = 0;
6600 wxBitmap *arg1 = (wxBitmap *) 0 ;
6601 wxRect *arg2 = 0 ;
6602 SwigValueWrapper<wxBitmap > result;
6603 void *argp1 = 0 ;
6604 int res1 = 0 ;
6605 wxRect temp2 ;
6606 PyObject * obj0 = 0 ;
6607 PyObject * obj1 = 0 ;
6608 char * kwnames[] = {
6609 (char *) "self",(char *) "rect", NULL
6610 };
6611
6612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6614 if (!SWIG_IsOK(res1)) {
6615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6616 }
6617 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6618 {
6619 arg2 = &temp2;
6620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6621 }
6622 {
6623 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6627 return resultobj;
6628 fail:
6629 return NULL;
6630 }
6631
6632
6633 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj = 0;
6635 wxBitmap *arg1 = (wxBitmap *) 0 ;
6636 wxString *arg2 = 0 ;
6637 wxBitmapType arg3 ;
6638 wxPalette *arg4 = (wxPalette *) NULL ;
6639 bool result;
6640 void *argp1 = 0 ;
6641 int res1 = 0 ;
6642 bool temp2 = false ;
6643 int val3 ;
6644 int ecode3 = 0 ;
6645 void *argp4 = 0 ;
6646 int res4 = 0 ;
6647 PyObject * obj0 = 0 ;
6648 PyObject * obj1 = 0 ;
6649 PyObject * obj2 = 0 ;
6650 PyObject * obj3 = 0 ;
6651 char * kwnames[] = {
6652 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6653 };
6654
6655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6657 if (!SWIG_IsOK(res1)) {
6658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6659 }
6660 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6661 {
6662 arg2 = wxString_in_helper(obj1);
6663 if (arg2 == NULL) SWIG_fail;
6664 temp2 = true;
6665 }
6666 ecode3 = SWIG_AsVal_int(obj2, &val3);
6667 if (!SWIG_IsOK(ecode3)) {
6668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6669 }
6670 arg3 = static_cast< wxBitmapType >(val3);
6671 if (obj3) {
6672 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6673 if (!SWIG_IsOK(res4)) {
6674 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6675 }
6676 arg4 = reinterpret_cast< wxPalette * >(argp4);
6677 }
6678 {
6679 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6680 if (PyErr_Occurred()) SWIG_fail;
6681 }
6682 {
6683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6684 }
6685 {
6686 if (temp2)
6687 delete arg2;
6688 }
6689 return resultobj;
6690 fail:
6691 {
6692 if (temp2)
6693 delete arg2;
6694 }
6695 return NULL;
6696 }
6697
6698
6699 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6700 PyObject *resultobj = 0;
6701 wxBitmap *arg1 = (wxBitmap *) 0 ;
6702 wxString *arg2 = 0 ;
6703 wxBitmapType arg3 ;
6704 bool result;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 bool temp2 = false ;
6708 int val3 ;
6709 int ecode3 = 0 ;
6710 PyObject * obj0 = 0 ;
6711 PyObject * obj1 = 0 ;
6712 PyObject * obj2 = 0 ;
6713 char * kwnames[] = {
6714 (char *) "self",(char *) "name",(char *) "type", NULL
6715 };
6716
6717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6719 if (!SWIG_IsOK(res1)) {
6720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6721 }
6722 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6723 {
6724 arg2 = wxString_in_helper(obj1);
6725 if (arg2 == NULL) SWIG_fail;
6726 temp2 = true;
6727 }
6728 ecode3 = SWIG_AsVal_int(obj2, &val3);
6729 if (!SWIG_IsOK(ecode3)) {
6730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6731 }
6732 arg3 = static_cast< wxBitmapType >(val3);
6733 {
6734 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6735 if (PyErr_Occurred()) SWIG_fail;
6736 }
6737 {
6738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6739 }
6740 {
6741 if (temp2)
6742 delete arg2;
6743 }
6744 return resultobj;
6745 fail:
6746 {
6747 if (temp2)
6748 delete arg2;
6749 }
6750 return NULL;
6751 }
6752
6753
6754 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6755 PyObject *resultobj = 0;
6756 wxBitmap *arg1 = (wxBitmap *) 0 ;
6757 wxPalette *result = 0 ;
6758 void *argp1 = 0 ;
6759 int res1 = 0 ;
6760 PyObject *swig_obj[1] ;
6761
6762 if (!args) SWIG_fail;
6763 swig_obj[0] = args;
6764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6765 if (!SWIG_IsOK(res1)) {
6766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6767 }
6768 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6769 {
6770 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6771 if (PyErr_Occurred()) SWIG_fail;
6772 }
6773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6774 return resultobj;
6775 fail:
6776 return NULL;
6777 }
6778
6779
6780 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6781 PyObject *resultobj = 0;
6782 wxBitmap *arg1 = (wxBitmap *) 0 ;
6783 wxIcon *arg2 = 0 ;
6784 bool result;
6785 void *argp1 = 0 ;
6786 int res1 = 0 ;
6787 void *argp2 = 0 ;
6788 int res2 = 0 ;
6789 PyObject * obj0 = 0 ;
6790 PyObject * obj1 = 0 ;
6791 char * kwnames[] = {
6792 (char *) "self",(char *) "icon", NULL
6793 };
6794
6795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6799 }
6800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6802 if (!SWIG_IsOK(res2)) {
6803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6804 }
6805 if (!argp2) {
6806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6807 }
6808 arg2 = reinterpret_cast< wxIcon * >(argp2);
6809 {
6810 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 {
6814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6815 }
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj = 0;
6824 wxBitmap *arg1 = (wxBitmap *) 0 ;
6825 int arg2 ;
6826 void *argp1 = 0 ;
6827 int res1 = 0 ;
6828 int val2 ;
6829 int ecode2 = 0 ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 char * kwnames[] = {
6833 (char *) "self",(char *) "height", NULL
6834 };
6835
6836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6838 if (!SWIG_IsOK(res1)) {
6839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6840 }
6841 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6842 ecode2 = SWIG_AsVal_int(obj1, &val2);
6843 if (!SWIG_IsOK(ecode2)) {
6844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6845 }
6846 arg2 = static_cast< int >(val2);
6847 {
6848 (arg1)->SetHeight(arg2);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 resultobj = SWIG_Py_Void();
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj = 0;
6860 wxBitmap *arg1 = (wxBitmap *) 0 ;
6861 int arg2 ;
6862 void *argp1 = 0 ;
6863 int res1 = 0 ;
6864 int val2 ;
6865 int ecode2 = 0 ;
6866 PyObject * obj0 = 0 ;
6867 PyObject * obj1 = 0 ;
6868 char * kwnames[] = {
6869 (char *) "self",(char *) "width", NULL
6870 };
6871
6872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6874 if (!SWIG_IsOK(res1)) {
6875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6876 }
6877 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6878 ecode2 = SWIG_AsVal_int(obj1, &val2);
6879 if (!SWIG_IsOK(ecode2)) {
6880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6881 }
6882 arg2 = static_cast< int >(val2);
6883 {
6884 (arg1)->SetWidth(arg2);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 resultobj = SWIG_Py_Void();
6888 return resultobj;
6889 fail:
6890 return NULL;
6891 }
6892
6893
6894 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6895 PyObject *resultobj = 0;
6896 wxBitmap *arg1 = (wxBitmap *) 0 ;
6897 int arg2 ;
6898 void *argp1 = 0 ;
6899 int res1 = 0 ;
6900 int val2 ;
6901 int ecode2 = 0 ;
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 char * kwnames[] = {
6905 (char *) "self",(char *) "depth", NULL
6906 };
6907
6908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6910 if (!SWIG_IsOK(res1)) {
6911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6912 }
6913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6914 ecode2 = SWIG_AsVal_int(obj1, &val2);
6915 if (!SWIG_IsOK(ecode2)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6917 }
6918 arg2 = static_cast< int >(val2);
6919 {
6920 (arg1)->SetDepth(arg2);
6921 if (PyErr_Occurred()) SWIG_fail;
6922 }
6923 resultobj = SWIG_Py_Void();
6924 return resultobj;
6925 fail:
6926 return NULL;
6927 }
6928
6929
6930 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj = 0;
6932 wxBitmap *arg1 = (wxBitmap *) 0 ;
6933 wxSize *arg2 = 0 ;
6934 void *argp1 = 0 ;
6935 int res1 = 0 ;
6936 wxSize temp2 ;
6937 PyObject * obj0 = 0 ;
6938 PyObject * obj1 = 0 ;
6939 char * kwnames[] = {
6940 (char *) "self",(char *) "size", NULL
6941 };
6942
6943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6945 if (!SWIG_IsOK(res1)) {
6946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6947 }
6948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6949 {
6950 arg2 = &temp2;
6951 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6952 }
6953 {
6954 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6955 if (PyErr_Occurred()) SWIG_fail;
6956 }
6957 resultobj = SWIG_Py_Void();
6958 return resultobj;
6959 fail:
6960 return NULL;
6961 }
6962
6963
6964 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj = 0;
6966 wxBitmap *arg1 = (wxBitmap *) 0 ;
6967 buffer arg2 ;
6968 int arg3 ;
6969 void *argp1 = 0 ;
6970 int res1 = 0 ;
6971 Py_ssize_t temp2 ;
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char * kwnames[] = {
6975 (char *) "self",(char *) "data", NULL
6976 };
6977
6978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
6979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6980 if (!SWIG_IsOK(res1)) {
6981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
6982 }
6983 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6984 {
6985 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
6986 arg3 = (int)temp2;
6987 }
6988 {
6989 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
6990 if (PyErr_Occurred()) SWIG_fail;
6991 }
6992 resultobj = SWIG_Py_Void();
6993 return resultobj;
6994 fail:
6995 return NULL;
6996 }
6997
6998
6999 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7000 PyObject *resultobj = 0;
7001 wxBitmap *arg1 = (wxBitmap *) 0 ;
7002 buffer arg2 ;
7003 int arg3 ;
7004 void *argp1 = 0 ;
7005 int res1 = 0 ;
7006 Py_ssize_t temp2 ;
7007 PyObject * obj0 = 0 ;
7008 PyObject * obj1 = 0 ;
7009 char * kwnames[] = {
7010 (char *) "self",(char *) "data", NULL
7011 };
7012
7013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7015 if (!SWIG_IsOK(res1)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7017 }
7018 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7019 {
7020 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7021 arg3 = (int)temp2;
7022 }
7023 {
7024 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 resultobj = SWIG_Py_Void();
7028 return resultobj;
7029 fail:
7030 return NULL;
7031 }
7032
7033
7034 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7035 PyObject *resultobj = 0;
7036 wxBitmap *arg1 = (wxBitmap *) 0 ;
7037 wxBitmap *arg2 = (wxBitmap *) 0 ;
7038 bool result;
7039 void *argp1 = 0 ;
7040 int res1 = 0 ;
7041 void *argp2 = 0 ;
7042 int res2 = 0 ;
7043 PyObject * obj0 = 0 ;
7044 PyObject * obj1 = 0 ;
7045 char * kwnames[] = {
7046 (char *) "self",(char *) "other", NULL
7047 };
7048
7049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7051 if (!SWIG_IsOK(res1)) {
7052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7053 }
7054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7056 if (!SWIG_IsOK(res2)) {
7057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7058 }
7059 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7060 {
7061 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 {
7065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7066 }
7067 return resultobj;
7068 fail:
7069 return NULL;
7070 }
7071
7072
7073 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj = 0;
7075 wxBitmap *arg1 = (wxBitmap *) 0 ;
7076 wxBitmap *arg2 = (wxBitmap *) 0 ;
7077 bool result;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 void *argp2 = 0 ;
7081 int res2 = 0 ;
7082 PyObject * obj0 = 0 ;
7083 PyObject * obj1 = 0 ;
7084 char * kwnames[] = {
7085 (char *) "self",(char *) "other", NULL
7086 };
7087
7088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7092 }
7093 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7095 if (!SWIG_IsOK(res2)) {
7096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7097 }
7098 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7099 {
7100 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 {
7104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7105 }
7106 return resultobj;
7107 fail:
7108 return NULL;
7109 }
7110
7111
7112 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7113 PyObject *obj;
7114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7115 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7116 return SWIG_Py_Void();
7117 }
7118
7119 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7120 return SWIG_Python_InitShadowInstance(args);
7121 }
7122
7123 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj = 0;
7125 int arg1 ;
7126 int arg2 ;
7127 buffer arg3 ;
7128 int arg4 ;
7129 buffer arg5 ;
7130 int arg6 ;
7131 wxBitmap *result = 0 ;
7132 int val1 ;
7133 int ecode1 = 0 ;
7134 int val2 ;
7135 int ecode2 = 0 ;
7136 Py_ssize_t temp3 ;
7137 Py_ssize_t temp5 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 PyObject * obj2 = 0 ;
7141 PyObject * obj3 = 0 ;
7142 char * kwnames[] = {
7143 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7144 };
7145
7146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7147 ecode1 = SWIG_AsVal_int(obj0, &val1);
7148 if (!SWIG_IsOK(ecode1)) {
7149 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7150 }
7151 arg1 = static_cast< int >(val1);
7152 ecode2 = SWIG_AsVal_int(obj1, &val2);
7153 if (!SWIG_IsOK(ecode2)) {
7154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7155 }
7156 arg2 = static_cast< int >(val2);
7157 {
7158 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7159 arg4 = (int)temp3;
7160 }
7161 {
7162 if (obj3 != Py_None) {
7163 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7164 arg6 = (int)temp5;
7165 }
7166 }
7167 {
7168 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj = 0;
7180 int arg1 ;
7181 int arg2 ;
7182 buffer arg3 ;
7183 int arg4 ;
7184 wxBitmap *result = 0 ;
7185 int val1 ;
7186 int ecode1 = 0 ;
7187 int val2 ;
7188 int ecode2 = 0 ;
7189 Py_ssize_t temp3 ;
7190 PyObject * obj0 = 0 ;
7191 PyObject * obj1 = 0 ;
7192 PyObject * obj2 = 0 ;
7193 char * kwnames[] = {
7194 (char *) "width",(char *) "height",(char *) "data", NULL
7195 };
7196
7197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7198 ecode1 = SWIG_AsVal_int(obj0, &val1);
7199 if (!SWIG_IsOK(ecode1)) {
7200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7201 }
7202 arg1 = static_cast< int >(val1);
7203 ecode2 = SWIG_AsVal_int(obj1, &val2);
7204 if (!SWIG_IsOK(ecode2)) {
7205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7206 }
7207 arg2 = static_cast< int >(val2);
7208 {
7209 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7210 arg4 = (int)temp3;
7211 }
7212 {
7213 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj = 0;
7225 int arg1 ;
7226 int arg2 ;
7227 buffer arg3 ;
7228 int arg4 ;
7229 wxBitmap *result = 0 ;
7230 int val1 ;
7231 int ecode1 = 0 ;
7232 int val2 ;
7233 int ecode2 = 0 ;
7234 Py_ssize_t temp3 ;
7235 PyObject * obj0 = 0 ;
7236 PyObject * obj1 = 0 ;
7237 PyObject * obj2 = 0 ;
7238 char * kwnames[] = {
7239 (char *) "width",(char *) "height",(char *) "data", NULL
7240 };
7241
7242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7243 ecode1 = SWIG_AsVal_int(obj0, &val1);
7244 if (!SWIG_IsOK(ecode1)) {
7245 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7246 }
7247 arg1 = static_cast< int >(val1);
7248 ecode2 = SWIG_AsVal_int(obj1, &val2);
7249 if (!SWIG_IsOK(ecode2)) {
7250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7251 }
7252 arg2 = static_cast< int >(val2);
7253 {
7254 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7255 arg4 = (int)temp3;
7256 }
7257 {
7258 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7262 return resultobj;
7263 fail:
7264 return NULL;
7265 }
7266
7267
7268 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7269 PyObject *resultobj = 0;
7270 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7271 wxPoint result;
7272 void *argp1 = 0 ;
7273 int res1 = 0 ;
7274 PyObject *swig_obj[1] ;
7275
7276 if (!args) SWIG_fail;
7277 swig_obj[0] = args;
7278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7279 if (!SWIG_IsOK(res1)) {
7280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7281 }
7282 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7283 {
7284 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7288 return resultobj;
7289 fail:
7290 return NULL;
7291 }
7292
7293
7294 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *resultobj = 0;
7296 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7297 int result;
7298 void *argp1 = 0 ;
7299 int res1 = 0 ;
7300 PyObject *swig_obj[1] ;
7301
7302 if (!args) SWIG_fail;
7303 swig_obj[0] = args;
7304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7305 if (!SWIG_IsOK(res1)) {
7306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7307 }
7308 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7309 {
7310 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 resultobj = SWIG_From_int(static_cast< int >(result));
7314 return resultobj;
7315 fail:
7316 return NULL;
7317 }
7318
7319
7320 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7321 PyObject *resultobj = 0;
7322 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7323 int result;
7324 void *argp1 = 0 ;
7325 int res1 = 0 ;
7326 PyObject *swig_obj[1] ;
7327
7328 if (!args) SWIG_fail;
7329 swig_obj[0] = args;
7330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7331 if (!SWIG_IsOK(res1)) {
7332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7333 }
7334 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7335 {
7336 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 resultobj = SWIG_From_int(static_cast< int >(result));
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7347 PyObject *resultobj = 0;
7348 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7349 wxSize result;
7350 void *argp1 = 0 ;
7351 int res1 = 0 ;
7352 PyObject *swig_obj[1] ;
7353
7354 if (!args) SWIG_fail;
7355 swig_obj[0] = args;
7356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7357 if (!SWIG_IsOK(res1)) {
7358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7359 }
7360 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7361 {
7362 result = ((wxPixelDataBase const *)arg1)->GetSize();
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7366 return resultobj;
7367 fail:
7368 return NULL;
7369 }
7370
7371
7372 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7373 PyObject *resultobj = 0;
7374 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7375 int result;
7376 void *argp1 = 0 ;
7377 int res1 = 0 ;
7378 PyObject *swig_obj[1] ;
7379
7380 if (!args) SWIG_fail;
7381 swig_obj[0] = args;
7382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7383 if (!SWIG_IsOK(res1)) {
7384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7385 }
7386 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7387 {
7388 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
7391 resultobj = SWIG_From_int(static_cast< int >(result));
7392 return resultobj;
7393 fail:
7394 return NULL;
7395 }
7396
7397
7398 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7399 PyObject *obj;
7400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7401 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7402 return SWIG_Py_Void();
7403 }
7404
7405 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7406 PyObject *resultobj = 0;
7407 wxBitmap *arg1 = 0 ;
7408 wxNativePixelData *result = 0 ;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411
7412 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7414 if (!SWIG_IsOK(res1)) {
7415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7416 }
7417 if (!argp1) {
7418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7419 }
7420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7421 {
7422 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7423 if (PyErr_Occurred()) SWIG_fail;
7424 }
7425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7426 return resultobj;
7427 fail:
7428 return NULL;
7429 }
7430
7431
7432 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7433 PyObject *resultobj = 0;
7434 wxBitmap *arg1 = 0 ;
7435 wxRect *arg2 = 0 ;
7436 wxNativePixelData *result = 0 ;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439 wxRect temp2 ;
7440
7441 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7443 if (!SWIG_IsOK(res1)) {
7444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7445 }
7446 if (!argp1) {
7447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7448 }
7449 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7450 {
7451 arg2 = &temp2;
7452 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7453 }
7454 {
7455 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7459 return resultobj;
7460 fail:
7461 return NULL;
7462 }
7463
7464
7465 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7466 PyObject *resultobj = 0;
7467 wxBitmap *arg1 = 0 ;
7468 wxPoint *arg2 = 0 ;
7469 wxSize *arg3 = 0 ;
7470 wxNativePixelData *result = 0 ;
7471 void *argp1 = 0 ;
7472 int res1 = 0 ;
7473 wxPoint temp2 ;
7474 wxSize temp3 ;
7475
7476 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7478 if (!SWIG_IsOK(res1)) {
7479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7480 }
7481 if (!argp1) {
7482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7483 }
7484 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7485 {
7486 arg2 = &temp2;
7487 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7488 }
7489 {
7490 arg3 = &temp3;
7491 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7492 }
7493 {
7494 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7498 return resultobj;
7499 fail:
7500 return NULL;
7501 }
7502
7503
7504 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7505 int argc;
7506 PyObject *argv[4];
7507
7508 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7509 --argc;
7510 if (argc == 1) {
7511 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7512 }
7513 if (argc == 2) {
7514 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7515 }
7516 if (argc == 3) {
7517 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7518 }
7519
7520 fail:
7521 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7522 return NULL;
7523 }
7524
7525
7526 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7527 PyObject *resultobj = 0;
7528 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7529 void *argp1 = 0 ;
7530 int res1 = 0 ;
7531 PyObject *swig_obj[1] ;
7532
7533 if (!args) SWIG_fail;
7534 swig_obj[0] = args;
7535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7536 if (!SWIG_IsOK(res1)) {
7537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7538 }
7539 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7540 {
7541 delete arg1;
7542
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 resultobj = SWIG_Py_Void();
7546 return resultobj;
7547 fail:
7548 return NULL;
7549 }
7550
7551
7552 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7553 PyObject *resultobj = 0;
7554 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7555 wxNativePixelData_Accessor result;
7556 void *argp1 = 0 ;
7557 int res1 = 0 ;
7558 PyObject *swig_obj[1] ;
7559
7560 if (!args) SWIG_fail;
7561 swig_obj[0] = args;
7562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7563 if (!SWIG_IsOK(res1)) {
7564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7565 }
7566 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7567 {
7568 result = ((wxNativePixelData const *)arg1)->GetPixels();
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7579 PyObject *resultobj = 0;
7580 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7581 void *argp1 = 0 ;
7582 int res1 = 0 ;
7583 PyObject *swig_obj[1] ;
7584
7585 if (!args) SWIG_fail;
7586 swig_obj[0] = args;
7587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7588 if (!SWIG_IsOK(res1)) {
7589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7590 }
7591 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7592 {
7593 (arg1)->UseAlpha();
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 resultobj = SWIG_Py_Void();
7597 return resultobj;
7598 fail:
7599 return NULL;
7600 }
7601
7602
7603 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7604 PyObject *resultobj = 0;
7605 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7606 bool result;
7607 void *argp1 = 0 ;
7608 int res1 = 0 ;
7609 PyObject *swig_obj[1] ;
7610
7611 if (!args) SWIG_fail;
7612 swig_obj[0] = args;
7613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7614 if (!SWIG_IsOK(res1)) {
7615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7616 }
7617 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7618 {
7619 result = (bool)wxNativePixelData___nonzero__(arg1);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 {
7623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7624 }
7625 return resultobj;
7626 fail:
7627 return NULL;
7628 }
7629
7630
7631 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7632 PyObject *obj;
7633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7634 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7635 return SWIG_Py_Void();
7636 }
7637
7638 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7639 return SWIG_Python_InitShadowInstance(args);
7640 }
7641
7642 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7643 PyObject *resultobj = 0;
7644 wxNativePixelData *arg1 = 0 ;
7645 wxNativePixelData_Accessor *result = 0 ;
7646 void *argp1 = 0 ;
7647 int res1 = 0 ;
7648
7649 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7651 if (!SWIG_IsOK(res1)) {
7652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7653 }
7654 if (!argp1) {
7655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7656 }
7657 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7658 {
7659 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7663 return resultobj;
7664 fail:
7665 return NULL;
7666 }
7667
7668
7669 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7670 PyObject *resultobj = 0;
7671 wxBitmap *arg1 = 0 ;
7672 wxNativePixelData *arg2 = 0 ;
7673 wxNativePixelData_Accessor *result = 0 ;
7674 void *argp1 = 0 ;
7675 int res1 = 0 ;
7676 void *argp2 = 0 ;
7677 int res2 = 0 ;
7678
7679 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7681 if (!SWIG_IsOK(res1)) {
7682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7683 }
7684 if (!argp1) {
7685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7686 }
7687 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7688 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7689 if (!SWIG_IsOK(res2)) {
7690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7691 }
7692 if (!argp2) {
7693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7694 }
7695 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7696 {
7697 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7701 return resultobj;
7702 fail:
7703 return NULL;
7704 }
7705
7706
7707 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7708 PyObject *resultobj = 0;
7709 wxNativePixelData_Accessor *result = 0 ;
7710
7711 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7712 {
7713 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7724 int argc;
7725 PyObject *argv[3];
7726
7727 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7728 --argc;
7729 if (argc == 0) {
7730 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7731 }
7732 if (argc == 1) {
7733 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7734 }
7735 if (argc == 2) {
7736 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7737 }
7738
7739 fail:
7740 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7741 return NULL;
7742 }
7743
7744
7745 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7746 PyObject *resultobj = 0;
7747 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 PyObject *swig_obj[1] ;
7751
7752 if (!args) SWIG_fail;
7753 swig_obj[0] = args;
7754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7757 }
7758 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7759 {
7760 delete arg1;
7761
7762 if (PyErr_Occurred()) SWIG_fail;
7763 }
7764 resultobj = SWIG_Py_Void();
7765 return resultobj;
7766 fail:
7767 return NULL;
7768 }
7769
7770
7771 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7772 PyObject *resultobj = 0;
7773 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7774 wxNativePixelData *arg2 = 0 ;
7775 void *argp1 = 0 ;
7776 int res1 = 0 ;
7777 void *argp2 = 0 ;
7778 int res2 = 0 ;
7779 PyObject * obj0 = 0 ;
7780 PyObject * obj1 = 0 ;
7781 char * kwnames[] = {
7782 (char *) "self",(char *) "data", NULL
7783 };
7784
7785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7787 if (!SWIG_IsOK(res1)) {
7788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7789 }
7790 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7792 if (!SWIG_IsOK(res2)) {
7793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7794 }
7795 if (!argp2) {
7796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7797 }
7798 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7799 {
7800 (arg1)->Reset((wxNativePixelData const &)*arg2);
7801 if (PyErr_Occurred()) SWIG_fail;
7802 }
7803 resultobj = SWIG_Py_Void();
7804 return resultobj;
7805 fail:
7806 return NULL;
7807 }
7808
7809
7810 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7811 PyObject *resultobj = 0;
7812 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7813 bool result;
7814 void *argp1 = 0 ;
7815 int res1 = 0 ;
7816 PyObject *swig_obj[1] ;
7817
7818 if (!args) SWIG_fail;
7819 swig_obj[0] = args;
7820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7821 if (!SWIG_IsOK(res1)) {
7822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7823 }
7824 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7825 {
7826 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 {
7830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7831 }
7832 return resultobj;
7833 fail:
7834 return NULL;
7835 }
7836
7837
7838 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7839 PyObject *resultobj = 0;
7840 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7841 void *argp1 = 0 ;
7842 int res1 = 0 ;
7843 PyObject *swig_obj[1] ;
7844
7845 if (!args) SWIG_fail;
7846 swig_obj[0] = args;
7847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7848 if (!SWIG_IsOK(res1)) {
7849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7850 }
7851 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7852 {
7853 wxNativePixelData_Accessor_nextPixel(arg1);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 }
7856 resultobj = SWIG_Py_Void();
7857 return resultobj;
7858 fail:
7859 return NULL;
7860 }
7861
7862
7863 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7864 PyObject *resultobj = 0;
7865 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7866 wxNativePixelData *arg2 = 0 ;
7867 int arg3 ;
7868 int arg4 ;
7869 void *argp1 = 0 ;
7870 int res1 = 0 ;
7871 void *argp2 = 0 ;
7872 int res2 = 0 ;
7873 int val3 ;
7874 int ecode3 = 0 ;
7875 int val4 ;
7876 int ecode4 = 0 ;
7877 PyObject * obj0 = 0 ;
7878 PyObject * obj1 = 0 ;
7879 PyObject * obj2 = 0 ;
7880 PyObject * obj3 = 0 ;
7881 char * kwnames[] = {
7882 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7883 };
7884
7885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7887 if (!SWIG_IsOK(res1)) {
7888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7889 }
7890 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7892 if (!SWIG_IsOK(res2)) {
7893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7894 }
7895 if (!argp2) {
7896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7897 }
7898 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7899 ecode3 = SWIG_AsVal_int(obj2, &val3);
7900 if (!SWIG_IsOK(ecode3)) {
7901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7902 }
7903 arg3 = static_cast< int >(val3);
7904 ecode4 = SWIG_AsVal_int(obj3, &val4);
7905 if (!SWIG_IsOK(ecode4)) {
7906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7907 }
7908 arg4 = static_cast< int >(val4);
7909 {
7910 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7911 if (PyErr_Occurred()) SWIG_fail;
7912 }
7913 resultobj = SWIG_Py_Void();
7914 return resultobj;
7915 fail:
7916 return NULL;
7917 }
7918
7919
7920 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7921 PyObject *resultobj = 0;
7922 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7923 wxNativePixelData *arg2 = 0 ;
7924 int arg3 ;
7925 void *argp1 = 0 ;
7926 int res1 = 0 ;
7927 void *argp2 = 0 ;
7928 int res2 = 0 ;
7929 int val3 ;
7930 int ecode3 = 0 ;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 PyObject * obj2 = 0 ;
7934 char * kwnames[] = {
7935 (char *) "self",(char *) "data",(char *) "x", NULL
7936 };
7937
7938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7940 if (!SWIG_IsOK(res1)) {
7941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7942 }
7943 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7945 if (!SWIG_IsOK(res2)) {
7946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7947 }
7948 if (!argp2) {
7949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7950 }
7951 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7952 ecode3 = SWIG_AsVal_int(obj2, &val3);
7953 if (!SWIG_IsOK(ecode3)) {
7954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7955 }
7956 arg3 = static_cast< int >(val3);
7957 {
7958 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7959 if (PyErr_Occurred()) SWIG_fail;
7960 }
7961 resultobj = SWIG_Py_Void();
7962 return resultobj;
7963 fail:
7964 return NULL;
7965 }
7966
7967
7968 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7969 PyObject *resultobj = 0;
7970 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7971 wxNativePixelData *arg2 = 0 ;
7972 int arg3 ;
7973 void *argp1 = 0 ;
7974 int res1 = 0 ;
7975 void *argp2 = 0 ;
7976 int res2 = 0 ;
7977 int val3 ;
7978 int ecode3 = 0 ;
7979 PyObject * obj0 = 0 ;
7980 PyObject * obj1 = 0 ;
7981 PyObject * obj2 = 0 ;
7982 char * kwnames[] = {
7983 (char *) "self",(char *) "data",(char *) "y", NULL
7984 };
7985
7986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7988 if (!SWIG_IsOK(res1)) {
7989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7990 }
7991 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7993 if (!SWIG_IsOK(res2)) {
7994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7995 }
7996 if (!argp2) {
7997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7998 }
7999 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8000 ecode3 = SWIG_AsVal_int(obj2, &val3);
8001 if (!SWIG_IsOK(ecode3)) {
8002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8003 }
8004 arg3 = static_cast< int >(val3);
8005 {
8006 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_Py_Void();
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8017 PyObject *resultobj = 0;
8018 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8019 wxNativePixelData *arg2 = 0 ;
8020 int arg3 ;
8021 int arg4 ;
8022 void *argp1 = 0 ;
8023 int res1 = 0 ;
8024 void *argp2 = 0 ;
8025 int res2 = 0 ;
8026 int val3 ;
8027 int ecode3 = 0 ;
8028 int val4 ;
8029 int ecode4 = 0 ;
8030 PyObject * obj0 = 0 ;
8031 PyObject * obj1 = 0 ;
8032 PyObject * obj2 = 0 ;
8033 PyObject * obj3 = 0 ;
8034 char * kwnames[] = {
8035 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8036 };
8037
8038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8040 if (!SWIG_IsOK(res1)) {
8041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8042 }
8043 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8045 if (!SWIG_IsOK(res2)) {
8046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8047 }
8048 if (!argp2) {
8049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8050 }
8051 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8052 ecode3 = SWIG_AsVal_int(obj2, &val3);
8053 if (!SWIG_IsOK(ecode3)) {
8054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8055 }
8056 arg3 = static_cast< int >(val3);
8057 ecode4 = SWIG_AsVal_int(obj3, &val4);
8058 if (!SWIG_IsOK(ecode4)) {
8059 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8060 }
8061 arg4 = static_cast< int >(val4);
8062 {
8063 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8064 if (PyErr_Occurred()) SWIG_fail;
8065 }
8066 resultobj = SWIG_Py_Void();
8067 return resultobj;
8068 fail:
8069 return NULL;
8070 }
8071
8072
8073 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8074 PyObject *resultobj = 0;
8075 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8076 byte arg2 ;
8077 byte arg3 ;
8078 byte arg4 ;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081 unsigned char val2 ;
8082 int ecode2 = 0 ;
8083 unsigned char val3 ;
8084 int ecode3 = 0 ;
8085 unsigned char val4 ;
8086 int ecode4 = 0 ;
8087 PyObject * obj0 = 0 ;
8088 PyObject * obj1 = 0 ;
8089 PyObject * obj2 = 0 ;
8090 PyObject * obj3 = 0 ;
8091 char * kwnames[] = {
8092 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8093 };
8094
8095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8099 }
8100 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8101 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8102 if (!SWIG_IsOK(ecode2)) {
8103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8104 }
8105 arg2 = static_cast< byte >(val2);
8106 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8107 if (!SWIG_IsOK(ecode3)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8109 }
8110 arg3 = static_cast< byte >(val3);
8111 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8112 if (!SWIG_IsOK(ecode4)) {
8113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8114 }
8115 arg4 = static_cast< byte >(val4);
8116 {
8117 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 resultobj = SWIG_Py_Void();
8121 return resultobj;
8122 fail:
8123 return NULL;
8124 }
8125
8126
8127 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8128 PyObject *resultobj = 0;
8129 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8130 PyObject *result = 0 ;
8131 void *argp1 = 0 ;
8132 int res1 = 0 ;
8133 PyObject *swig_obj[1] ;
8134
8135 if (!args) SWIG_fail;
8136 swig_obj[0] = args;
8137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8138 if (!SWIG_IsOK(res1)) {
8139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8140 }
8141 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8142 {
8143 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 resultobj = result;
8147 return resultobj;
8148 fail:
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *obj;
8155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8156 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8157 return SWIG_Py_Void();
8158 }
8159
8160 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8161 return SWIG_Python_InitShadowInstance(args);
8162 }
8163
8164 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8165 PyObject *resultobj = 0;
8166 wxBitmap *arg1 = 0 ;
8167 wxAlphaPixelData *result = 0 ;
8168 void *argp1 = 0 ;
8169 int res1 = 0 ;
8170
8171 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8173 if (!SWIG_IsOK(res1)) {
8174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8175 }
8176 if (!argp1) {
8177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8178 }
8179 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8180 {
8181 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8192 PyObject *resultobj = 0;
8193 wxBitmap *arg1 = 0 ;
8194 wxRect *arg2 = 0 ;
8195 wxAlphaPixelData *result = 0 ;
8196 void *argp1 = 0 ;
8197 int res1 = 0 ;
8198 wxRect temp2 ;
8199
8200 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8202 if (!SWIG_IsOK(res1)) {
8203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8204 }
8205 if (!argp1) {
8206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8207 }
8208 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8209 {
8210 arg2 = &temp2;
8211 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8212 }
8213 {
8214 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8225 PyObject *resultobj = 0;
8226 wxBitmap *arg1 = 0 ;
8227 wxPoint *arg2 = 0 ;
8228 wxSize *arg3 = 0 ;
8229 wxAlphaPixelData *result = 0 ;
8230 void *argp1 = 0 ;
8231 int res1 = 0 ;
8232 wxPoint temp2 ;
8233 wxSize temp3 ;
8234
8235 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8237 if (!SWIG_IsOK(res1)) {
8238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8239 }
8240 if (!argp1) {
8241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8242 }
8243 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8244 {
8245 arg2 = &temp2;
8246 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8247 }
8248 {
8249 arg3 = &temp3;
8250 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8251 }
8252 {
8253 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8257 return resultobj;
8258 fail:
8259 return NULL;
8260 }
8261
8262
8263 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8264 int argc;
8265 PyObject *argv[4];
8266
8267 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8268 --argc;
8269 if (argc == 1) {
8270 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8271 }
8272 if (argc == 2) {
8273 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8274 }
8275 if (argc == 3) {
8276 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8277 }
8278
8279 fail:
8280 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8281 return NULL;
8282 }
8283
8284
8285 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8286 PyObject *resultobj = 0;
8287 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8288 void *argp1 = 0 ;
8289 int res1 = 0 ;
8290 PyObject *swig_obj[1] ;
8291
8292 if (!args) SWIG_fail;
8293 swig_obj[0] = args;
8294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8295 if (!SWIG_IsOK(res1)) {
8296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8297 }
8298 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8299 {
8300 delete arg1;
8301
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_Py_Void();
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8312 PyObject *resultobj = 0;
8313 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8314 wxAlphaPixelData_Accessor result;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 PyObject *swig_obj[1] ;
8318
8319 if (!args) SWIG_fail;
8320 swig_obj[0] = args;
8321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8322 if (!SWIG_IsOK(res1)) {
8323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8324 }
8325 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8326 {
8327 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8338 PyObject *resultobj = 0;
8339 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8340 void *argp1 = 0 ;
8341 int res1 = 0 ;
8342 PyObject *swig_obj[1] ;
8343
8344 if (!args) SWIG_fail;
8345 swig_obj[0] = args;
8346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8347 if (!SWIG_IsOK(res1)) {
8348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8349 }
8350 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8351 {
8352 (arg1)->UseAlpha();
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 resultobj = SWIG_Py_Void();
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8363 PyObject *resultobj = 0;
8364 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8365 bool result;
8366 void *argp1 = 0 ;
8367 int res1 = 0 ;
8368 PyObject *swig_obj[1] ;
8369
8370 if (!args) SWIG_fail;
8371 swig_obj[0] = args;
8372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8373 if (!SWIG_IsOK(res1)) {
8374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8375 }
8376 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8377 {
8378 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 {
8382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8383 }
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8391 PyObject *obj;
8392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8393 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8394 return SWIG_Py_Void();
8395 }
8396
8397 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8398 return SWIG_Python_InitShadowInstance(args);
8399 }
8400
8401 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8402 PyObject *resultobj = 0;
8403 wxAlphaPixelData *arg1 = 0 ;
8404 wxAlphaPixelData_Accessor *result = 0 ;
8405 void *argp1 = 0 ;
8406 int res1 = 0 ;
8407
8408 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8410 if (!SWIG_IsOK(res1)) {
8411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8412 }
8413 if (!argp1) {
8414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8415 }
8416 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8417 {
8418 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8422 return resultobj;
8423 fail:
8424 return NULL;
8425 }
8426
8427
8428 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8429 PyObject *resultobj = 0;
8430 wxBitmap *arg1 = 0 ;
8431 wxAlphaPixelData *arg2 = 0 ;
8432 wxAlphaPixelData_Accessor *result = 0 ;
8433 void *argp1 = 0 ;
8434 int res1 = 0 ;
8435 void *argp2 = 0 ;
8436 int res2 = 0 ;
8437
8438 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8440 if (!SWIG_IsOK(res1)) {
8441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8442 }
8443 if (!argp1) {
8444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8445 }
8446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8447 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8448 if (!SWIG_IsOK(res2)) {
8449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8450 }
8451 if (!argp2) {
8452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8453 }
8454 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8455 {
8456 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8460 return resultobj;
8461 fail:
8462 return NULL;
8463 }
8464
8465
8466 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8467 PyObject *resultobj = 0;
8468 wxAlphaPixelData_Accessor *result = 0 ;
8469
8470 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8471 {
8472 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8483 int argc;
8484 PyObject *argv[3];
8485
8486 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8487 --argc;
8488 if (argc == 0) {
8489 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8490 }
8491 if (argc == 1) {
8492 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8493 }
8494 if (argc == 2) {
8495 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8496 }
8497
8498 fail:
8499 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8500 return NULL;
8501 }
8502
8503
8504 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8505 PyObject *resultobj = 0;
8506 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8507 void *argp1 = 0 ;
8508 int res1 = 0 ;
8509 PyObject *swig_obj[1] ;
8510
8511 if (!args) SWIG_fail;
8512 swig_obj[0] = args;
8513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8516 }
8517 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8518 {
8519 delete arg1;
8520
8521 if (PyErr_Occurred()) SWIG_fail;
8522 }
8523 resultobj = SWIG_Py_Void();
8524 return resultobj;
8525 fail:
8526 return NULL;
8527 }
8528
8529
8530 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8531 PyObject *resultobj = 0;
8532 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8533 wxAlphaPixelData *arg2 = 0 ;
8534 void *argp1 = 0 ;
8535 int res1 = 0 ;
8536 void *argp2 = 0 ;
8537 int res2 = 0 ;
8538 PyObject * obj0 = 0 ;
8539 PyObject * obj1 = 0 ;
8540 char * kwnames[] = {
8541 (char *) "self",(char *) "data", NULL
8542 };
8543
8544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8546 if (!SWIG_IsOK(res1)) {
8547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8548 }
8549 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8551 if (!SWIG_IsOK(res2)) {
8552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8553 }
8554 if (!argp2) {
8555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8556 }
8557 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8558 {
8559 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 resultobj = SWIG_Py_Void();
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8570 PyObject *resultobj = 0;
8571 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8572 bool result;
8573 void *argp1 = 0 ;
8574 int res1 = 0 ;
8575 PyObject *swig_obj[1] ;
8576
8577 if (!args) SWIG_fail;
8578 swig_obj[0] = args;
8579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8580 if (!SWIG_IsOK(res1)) {
8581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8582 }
8583 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8584 {
8585 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 {
8589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8590 }
8591 return resultobj;
8592 fail:
8593 return NULL;
8594 }
8595
8596
8597 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8598 PyObject *resultobj = 0;
8599 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 PyObject *swig_obj[1] ;
8603
8604 if (!args) SWIG_fail;
8605 swig_obj[0] = args;
8606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8607 if (!SWIG_IsOK(res1)) {
8608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8609 }
8610 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8611 {
8612 wxAlphaPixelData_Accessor_nextPixel(arg1);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 resultobj = SWIG_Py_Void();
8616 return resultobj;
8617 fail:
8618 return NULL;
8619 }
8620
8621
8622 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8623 PyObject *resultobj = 0;
8624 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8625 wxAlphaPixelData *arg2 = 0 ;
8626 int arg3 ;
8627 int arg4 ;
8628 void *argp1 = 0 ;
8629 int res1 = 0 ;
8630 void *argp2 = 0 ;
8631 int res2 = 0 ;
8632 int val3 ;
8633 int ecode3 = 0 ;
8634 int val4 ;
8635 int ecode4 = 0 ;
8636 PyObject * obj0 = 0 ;
8637 PyObject * obj1 = 0 ;
8638 PyObject * obj2 = 0 ;
8639 PyObject * obj3 = 0 ;
8640 char * kwnames[] = {
8641 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8642 };
8643
8644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8646 if (!SWIG_IsOK(res1)) {
8647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8648 }
8649 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8651 if (!SWIG_IsOK(res2)) {
8652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8653 }
8654 if (!argp2) {
8655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8656 }
8657 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8658 ecode3 = SWIG_AsVal_int(obj2, &val3);
8659 if (!SWIG_IsOK(ecode3)) {
8660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8661 }
8662 arg3 = static_cast< int >(val3);
8663 ecode4 = SWIG_AsVal_int(obj3, &val4);
8664 if (!SWIG_IsOK(ecode4)) {
8665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8666 }
8667 arg4 = static_cast< int >(val4);
8668 {
8669 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8670 if (PyErr_Occurred()) SWIG_fail;
8671 }
8672 resultobj = SWIG_Py_Void();
8673 return resultobj;
8674 fail:
8675 return NULL;
8676 }
8677
8678
8679 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8680 PyObject *resultobj = 0;
8681 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8682 wxAlphaPixelData *arg2 = 0 ;
8683 int arg3 ;
8684 void *argp1 = 0 ;
8685 int res1 = 0 ;
8686 void *argp2 = 0 ;
8687 int res2 = 0 ;
8688 int val3 ;
8689 int ecode3 = 0 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 PyObject * obj2 = 0 ;
8693 char * kwnames[] = {
8694 (char *) "self",(char *) "data",(char *) "x", NULL
8695 };
8696
8697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8699 if (!SWIG_IsOK(res1)) {
8700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8701 }
8702 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8704 if (!SWIG_IsOK(res2)) {
8705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8706 }
8707 if (!argp2) {
8708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8709 }
8710 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8711 ecode3 = SWIG_AsVal_int(obj2, &val3);
8712 if (!SWIG_IsOK(ecode3)) {
8713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8714 }
8715 arg3 = static_cast< int >(val3);
8716 {
8717 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8718 if (PyErr_Occurred()) SWIG_fail;
8719 }
8720 resultobj = SWIG_Py_Void();
8721 return resultobj;
8722 fail:
8723 return NULL;
8724 }
8725
8726
8727 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8728 PyObject *resultobj = 0;
8729 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8730 wxAlphaPixelData *arg2 = 0 ;
8731 int arg3 ;
8732 void *argp1 = 0 ;
8733 int res1 = 0 ;
8734 void *argp2 = 0 ;
8735 int res2 = 0 ;
8736 int val3 ;
8737 int ecode3 = 0 ;
8738 PyObject * obj0 = 0 ;
8739 PyObject * obj1 = 0 ;
8740 PyObject * obj2 = 0 ;
8741 char * kwnames[] = {
8742 (char *) "self",(char *) "data",(char *) "y", NULL
8743 };
8744
8745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8747 if (!SWIG_IsOK(res1)) {
8748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8749 }
8750 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8752 if (!SWIG_IsOK(res2)) {
8753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8754 }
8755 if (!argp2) {
8756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8757 }
8758 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8759 ecode3 = SWIG_AsVal_int(obj2, &val3);
8760 if (!SWIG_IsOK(ecode3)) {
8761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8762 }
8763 arg3 = static_cast< int >(val3);
8764 {
8765 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 resultobj = SWIG_Py_Void();
8769 return resultobj;
8770 fail:
8771 return NULL;
8772 }
8773
8774
8775 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8776 PyObject *resultobj = 0;
8777 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8778 wxAlphaPixelData *arg2 = 0 ;
8779 int arg3 ;
8780 int arg4 ;
8781 void *argp1 = 0 ;
8782 int res1 = 0 ;
8783 void *argp2 = 0 ;
8784 int res2 = 0 ;
8785 int val3 ;
8786 int ecode3 = 0 ;
8787 int val4 ;
8788 int ecode4 = 0 ;
8789 PyObject * obj0 = 0 ;
8790 PyObject * obj1 = 0 ;
8791 PyObject * obj2 = 0 ;
8792 PyObject * obj3 = 0 ;
8793 char * kwnames[] = {
8794 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8795 };
8796
8797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8799 if (!SWIG_IsOK(res1)) {
8800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8801 }
8802 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8804 if (!SWIG_IsOK(res2)) {
8805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8806 }
8807 if (!argp2) {
8808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8809 }
8810 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8811 ecode3 = SWIG_AsVal_int(obj2, &val3);
8812 if (!SWIG_IsOK(ecode3)) {
8813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8814 }
8815 arg3 = static_cast< int >(val3);
8816 ecode4 = SWIG_AsVal_int(obj3, &val4);
8817 if (!SWIG_IsOK(ecode4)) {
8818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8819 }
8820 arg4 = static_cast< int >(val4);
8821 {
8822 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = SWIG_Py_Void();
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj = 0;
8834 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8835 byte arg2 ;
8836 byte arg3 ;
8837 byte arg4 ;
8838 byte arg5 ;
8839 void *argp1 = 0 ;
8840 int res1 = 0 ;
8841 unsigned char val2 ;
8842 int ecode2 = 0 ;
8843 unsigned char val3 ;
8844 int ecode3 = 0 ;
8845 unsigned char val4 ;
8846 int ecode4 = 0 ;
8847 unsigned char val5 ;
8848 int ecode5 = 0 ;
8849 PyObject * obj0 = 0 ;
8850 PyObject * obj1 = 0 ;
8851 PyObject * obj2 = 0 ;
8852 PyObject * obj3 = 0 ;
8853 PyObject * obj4 = 0 ;
8854 char * kwnames[] = {
8855 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8856 };
8857
8858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8860 if (!SWIG_IsOK(res1)) {
8861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8862 }
8863 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8864 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8865 if (!SWIG_IsOK(ecode2)) {
8866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8867 }
8868 arg2 = static_cast< byte >(val2);
8869 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8870 if (!SWIG_IsOK(ecode3)) {
8871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8872 }
8873 arg3 = static_cast< byte >(val3);
8874 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8875 if (!SWIG_IsOK(ecode4)) {
8876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8877 }
8878 arg4 = static_cast< byte >(val4);
8879 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8880 if (!SWIG_IsOK(ecode5)) {
8881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8882 }
8883 arg5 = static_cast< byte >(val5);
8884 {
8885 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 }
8888 resultobj = SWIG_Py_Void();
8889 return resultobj;
8890 fail:
8891 return NULL;
8892 }
8893
8894
8895 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8896 PyObject *resultobj = 0;
8897 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8898 PyObject *result = 0 ;
8899 void *argp1 = 0 ;
8900 int res1 = 0 ;
8901 PyObject *swig_obj[1] ;
8902
8903 if (!args) SWIG_fail;
8904 swig_obj[0] = args;
8905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8906 if (!SWIG_IsOK(res1)) {
8907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8908 }
8909 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8910 {
8911 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 resultobj = result;
8915 return resultobj;
8916 fail:
8917 return NULL;
8918 }
8919
8920
8921 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8922 PyObject *obj;
8923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8924 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8925 return SWIG_Py_Void();
8926 }
8927
8928 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 return SWIG_Python_InitShadowInstance(args);
8930 }
8931
8932 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8933 PyObject *resultobj = 0;
8934 wxBitmap *arg1 = 0 ;
8935 wxColour const &arg2_defvalue = wxNullColour ;
8936 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8937 wxMask *result = 0 ;
8938 void *argp1 = 0 ;
8939 int res1 = 0 ;
8940 wxColour temp2 ;
8941 PyObject * obj0 = 0 ;
8942 PyObject * obj1 = 0 ;
8943 char * kwnames[] = {
8944 (char *) "bitmap",(char *) "colour", NULL
8945 };
8946
8947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8948 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8949 if (!SWIG_IsOK(res1)) {
8950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8951 }
8952 if (!argp1) {
8953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8954 }
8955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8956 if (obj1) {
8957 {
8958 arg2 = &temp2;
8959 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8960 }
8961 }
8962 {
8963 if (!wxPyCheckForApp()) SWIG_fail;
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8970 return resultobj;
8971 fail:
8972 return NULL;
8973 }
8974
8975
8976 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8977 PyObject *resultobj = 0;
8978 wxMask *arg1 = (wxMask *) 0 ;
8979 void *argp1 = 0 ;
8980 int res1 = 0 ;
8981 PyObject *swig_obj[1] ;
8982
8983 if (!args) SWIG_fail;
8984 swig_obj[0] = args;
8985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8986 if (!SWIG_IsOK(res1)) {
8987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8988 }
8989 arg1 = reinterpret_cast< wxMask * >(argp1);
8990 {
8991 delete arg1;
8992
8993 if (PyErr_Occurred()) SWIG_fail;
8994 }
8995 resultobj = SWIG_Py_Void();
8996 return resultobj;
8997 fail:
8998 return NULL;
8999 }
9000
9001
9002 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9003 PyObject *obj;
9004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9005 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9006 return SWIG_Py_Void();
9007 }
9008
9009 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9010 return SWIG_Python_InitShadowInstance(args);
9011 }
9012
9013 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9014 PyObject *resultobj = 0;
9015 wxString *arg1 = 0 ;
9016 wxBitmapType arg2 ;
9017 int arg3 = (int) -1 ;
9018 int arg4 = (int) -1 ;
9019 wxIcon *result = 0 ;
9020 bool temp1 = false ;
9021 int val2 ;
9022 int ecode2 = 0 ;
9023 int val3 ;
9024 int ecode3 = 0 ;
9025 int val4 ;
9026 int ecode4 = 0 ;
9027 PyObject * obj0 = 0 ;
9028 PyObject * obj1 = 0 ;
9029 PyObject * obj2 = 0 ;
9030 PyObject * obj3 = 0 ;
9031 char * kwnames[] = {
9032 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9033 };
9034
9035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9036 {
9037 arg1 = wxString_in_helper(obj0);
9038 if (arg1 == NULL) SWIG_fail;
9039 temp1 = true;
9040 }
9041 ecode2 = SWIG_AsVal_int(obj1, &val2);
9042 if (!SWIG_IsOK(ecode2)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9044 }
9045 arg2 = static_cast< wxBitmapType >(val2);
9046 if (obj2) {
9047 ecode3 = SWIG_AsVal_int(obj2, &val3);
9048 if (!SWIG_IsOK(ecode3)) {
9049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9050 }
9051 arg3 = static_cast< int >(val3);
9052 }
9053 if (obj3) {
9054 ecode4 = SWIG_AsVal_int(obj3, &val4);
9055 if (!SWIG_IsOK(ecode4)) {
9056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9057 }
9058 arg4 = static_cast< int >(val4);
9059 }
9060 {
9061 if (!wxPyCheckForApp()) SWIG_fail;
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
9063 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9068 {
9069 if (temp1)
9070 delete arg1;
9071 }
9072 return resultobj;
9073 fail:
9074 {
9075 if (temp1)
9076 delete arg1;
9077 }
9078 return NULL;
9079 }
9080
9081
9082 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9083 PyObject *resultobj = 0;
9084 wxIcon *arg1 = (wxIcon *) 0 ;
9085 void *argp1 = 0 ;
9086 int res1 = 0 ;
9087 PyObject *swig_obj[1] ;
9088
9089 if (!args) SWIG_fail;
9090 swig_obj[0] = args;
9091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9092 if (!SWIG_IsOK(res1)) {
9093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9094 }
9095 arg1 = reinterpret_cast< wxIcon * >(argp1);
9096 {
9097 PyThreadState* __tstate = wxPyBeginAllowThreads();
9098 delete arg1;
9099
9100 wxPyEndAllowThreads(__tstate);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 resultobj = SWIG_Py_Void();
9104 return resultobj;
9105 fail:
9106 return NULL;
9107 }
9108
9109
9110 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9111 PyObject *resultobj = 0;
9112 wxIcon *result = 0 ;
9113
9114 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9115 {
9116 if (!wxPyCheckForApp()) SWIG_fail;
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = (wxIcon *)new wxIcon();
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9123 return resultobj;
9124 fail:
9125 return NULL;
9126 }
9127
9128
9129 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9130 PyObject *resultobj = 0;
9131 wxIconLocation *arg1 = 0 ;
9132 wxIcon *result = 0 ;
9133 void *argp1 = 0 ;
9134 int res1 = 0 ;
9135 PyObject * obj0 = 0 ;
9136 char * kwnames[] = {
9137 (char *) "loc", NULL
9138 };
9139
9140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9141 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9142 if (!SWIG_IsOK(res1)) {
9143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9144 }
9145 if (!argp1) {
9146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9147 }
9148 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9149 {
9150 if (!wxPyCheckForApp()) SWIG_fail;
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9157 return resultobj;
9158 fail:
9159 return NULL;
9160 }
9161
9162
9163 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj = 0;
9165 wxBitmap *arg1 = 0 ;
9166 wxIcon *result = 0 ;
9167 void *argp1 = 0 ;
9168 int res1 = 0 ;
9169 PyObject * obj0 = 0 ;
9170 char * kwnames[] = {
9171 (char *) "bmp", NULL
9172 };
9173
9174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9175 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9176 if (!SWIG_IsOK(res1)) {
9177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9178 }
9179 if (!argp1) {
9180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9181 }
9182 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9183 {
9184 if (!wxPyCheckForApp()) SWIG_fail;
9185 PyThreadState* __tstate = wxPyBeginAllowThreads();
9186 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9187 wxPyEndAllowThreads(__tstate);
9188 if (PyErr_Occurred()) SWIG_fail;
9189 }
9190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9191 return resultobj;
9192 fail:
9193 return NULL;
9194 }
9195
9196
9197 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9198 PyObject *resultobj = 0;
9199 PyObject *arg1 = (PyObject *) 0 ;
9200 wxIcon *result = 0 ;
9201 PyObject * obj0 = 0 ;
9202 char * kwnames[] = {
9203 (char *) "listOfStrings", NULL
9204 };
9205
9206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9207 arg1 = obj0;
9208 {
9209 if (!wxPyCheckForApp()) SWIG_fail;
9210 PyThreadState* __tstate = wxPyBeginAllowThreads();
9211 result = (wxIcon *)new_wxIcon(arg1);
9212 wxPyEndAllowThreads(__tstate);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9216 return resultobj;
9217 fail:
9218 return NULL;
9219 }
9220
9221
9222 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9223 PyObject *resultobj = 0;
9224 wxIcon *arg1 = (wxIcon *) 0 ;
9225 wxString *arg2 = 0 ;
9226 wxBitmapType arg3 ;
9227 bool result;
9228 void *argp1 = 0 ;
9229 int res1 = 0 ;
9230 bool temp2 = false ;
9231 int val3 ;
9232 int ecode3 = 0 ;
9233 PyObject * obj0 = 0 ;
9234 PyObject * obj1 = 0 ;
9235 PyObject * obj2 = 0 ;
9236 char * kwnames[] = {
9237 (char *) "self",(char *) "name",(char *) "type", NULL
9238 };
9239
9240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9242 if (!SWIG_IsOK(res1)) {
9243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9244 }
9245 arg1 = reinterpret_cast< wxIcon * >(argp1);
9246 {
9247 arg2 = wxString_in_helper(obj1);
9248 if (arg2 == NULL) SWIG_fail;
9249 temp2 = true;
9250 }
9251 ecode3 = SWIG_AsVal_int(obj2, &val3);
9252 if (!SWIG_IsOK(ecode3)) {
9253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9254 }
9255 arg3 = static_cast< wxBitmapType >(val3);
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 {
9263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9264 }
9265 {
9266 if (temp2)
9267 delete arg2;
9268 }
9269 return resultobj;
9270 fail:
9271 {
9272 if (temp2)
9273 delete arg2;
9274 }
9275 return NULL;
9276 }
9277
9278
9279 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9280 PyObject *resultobj = 0;
9281 wxIcon *arg1 = (wxIcon *) 0 ;
9282 bool result;
9283 void *argp1 = 0 ;
9284 int res1 = 0 ;
9285 PyObject *swig_obj[1] ;
9286
9287 if (!args) SWIG_fail;
9288 swig_obj[0] = args;
9289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9290 if (!SWIG_IsOK(res1)) {
9291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9292 }
9293 arg1 = reinterpret_cast< wxIcon * >(argp1);
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 result = (bool)(arg1)->IsOk();
9297 wxPyEndAllowThreads(__tstate);
9298 if (PyErr_Occurred()) SWIG_fail;
9299 }
9300 {
9301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9302 }
9303 return resultobj;
9304 fail:
9305 return NULL;
9306 }
9307
9308
9309 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9310 PyObject *resultobj = 0;
9311 wxIcon *arg1 = (wxIcon *) 0 ;
9312 int result;
9313 void *argp1 = 0 ;
9314 int res1 = 0 ;
9315 PyObject *swig_obj[1] ;
9316
9317 if (!args) SWIG_fail;
9318 swig_obj[0] = args;
9319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9320 if (!SWIG_IsOK(res1)) {
9321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9322 }
9323 arg1 = reinterpret_cast< wxIcon * >(argp1);
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 result = (int)(arg1)->GetWidth();
9327 wxPyEndAllowThreads(__tstate);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 }
9330 resultobj = SWIG_From_int(static_cast< int >(result));
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9338 PyObject *resultobj = 0;
9339 wxIcon *arg1 = (wxIcon *) 0 ;
9340 int result;
9341 void *argp1 = 0 ;
9342 int res1 = 0 ;
9343 PyObject *swig_obj[1] ;
9344
9345 if (!args) SWIG_fail;
9346 swig_obj[0] = args;
9347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9350 }
9351 arg1 = reinterpret_cast< wxIcon * >(argp1);
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 result = (int)(arg1)->GetHeight();
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_From_int(static_cast< int >(result));
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9366 PyObject *resultobj = 0;
9367 wxIcon *arg1 = (wxIcon *) 0 ;
9368 int result;
9369 void *argp1 = 0 ;
9370 int res1 = 0 ;
9371 PyObject *swig_obj[1] ;
9372
9373 if (!args) SWIG_fail;
9374 swig_obj[0] = args;
9375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9376 if (!SWIG_IsOK(res1)) {
9377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9378 }
9379 arg1 = reinterpret_cast< wxIcon * >(argp1);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (int)(arg1)->GetDepth();
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_From_int(static_cast< int >(result));
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9394 PyObject *resultobj = 0;
9395 wxIcon *arg1 = (wxIcon *) 0 ;
9396 int arg2 ;
9397 void *argp1 = 0 ;
9398 int res1 = 0 ;
9399 int val2 ;
9400 int ecode2 = 0 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 char * kwnames[] = {
9404 (char *) "self",(char *) "w", NULL
9405 };
9406
9407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9409 if (!SWIG_IsOK(res1)) {
9410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9411 }
9412 arg1 = reinterpret_cast< wxIcon * >(argp1);
9413 ecode2 = SWIG_AsVal_int(obj1, &val2);
9414 if (!SWIG_IsOK(ecode2)) {
9415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9416 }
9417 arg2 = static_cast< int >(val2);
9418 {
9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
9420 (arg1)->SetWidth(arg2);
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 resultobj = SWIG_Py_Void();
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj = 0;
9433 wxIcon *arg1 = (wxIcon *) 0 ;
9434 int arg2 ;
9435 void *argp1 = 0 ;
9436 int res1 = 0 ;
9437 int val2 ;
9438 int ecode2 = 0 ;
9439 PyObject * obj0 = 0 ;
9440 PyObject * obj1 = 0 ;
9441 char * kwnames[] = {
9442 (char *) "self",(char *) "h", NULL
9443 };
9444
9445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9447 if (!SWIG_IsOK(res1)) {
9448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9449 }
9450 arg1 = reinterpret_cast< wxIcon * >(argp1);
9451 ecode2 = SWIG_AsVal_int(obj1, &val2);
9452 if (!SWIG_IsOK(ecode2)) {
9453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9454 }
9455 arg2 = static_cast< int >(val2);
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 (arg1)->SetHeight(arg2);
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 resultobj = SWIG_Py_Void();
9463 return resultobj;
9464 fail:
9465 return NULL;
9466 }
9467
9468
9469 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9470 PyObject *resultobj = 0;
9471 wxIcon *arg1 = (wxIcon *) 0 ;
9472 int arg2 ;
9473 void *argp1 = 0 ;
9474 int res1 = 0 ;
9475 int val2 ;
9476 int ecode2 = 0 ;
9477 PyObject * obj0 = 0 ;
9478 PyObject * obj1 = 0 ;
9479 char * kwnames[] = {
9480 (char *) "self",(char *) "d", NULL
9481 };
9482
9483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9485 if (!SWIG_IsOK(res1)) {
9486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9487 }
9488 arg1 = reinterpret_cast< wxIcon * >(argp1);
9489 ecode2 = SWIG_AsVal_int(obj1, &val2);
9490 if (!SWIG_IsOK(ecode2)) {
9491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9492 }
9493 arg2 = static_cast< int >(val2);
9494 {
9495 PyThreadState* __tstate = wxPyBeginAllowThreads();
9496 (arg1)->SetDepth(arg2);
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 resultobj = SWIG_Py_Void();
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj = 0;
9509 wxIcon *arg1 = (wxIcon *) 0 ;
9510 wxBitmap *arg2 = 0 ;
9511 void *argp1 = 0 ;
9512 int res1 = 0 ;
9513 void *argp2 = 0 ;
9514 int res2 = 0 ;
9515 PyObject * obj0 = 0 ;
9516 PyObject * obj1 = 0 ;
9517 char * kwnames[] = {
9518 (char *) "self",(char *) "bmp", NULL
9519 };
9520
9521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9523 if (!SWIG_IsOK(res1)) {
9524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9525 }
9526 arg1 = reinterpret_cast< wxIcon * >(argp1);
9527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9528 if (!SWIG_IsOK(res2)) {
9529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9530 }
9531 if (!argp2) {
9532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9533 }
9534 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9535 {
9536 PyThreadState* __tstate = wxPyBeginAllowThreads();
9537 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9538 wxPyEndAllowThreads(__tstate);
9539 if (PyErr_Occurred()) SWIG_fail;
9540 }
9541 resultobj = SWIG_Py_Void();
9542 return resultobj;
9543 fail:
9544 return NULL;
9545 }
9546
9547
9548 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9549 PyObject *obj;
9550 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9551 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9552 return SWIG_Py_Void();
9553 }
9554
9555 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9556 return SWIG_Python_InitShadowInstance(args);
9557 }
9558
9559 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj = 0;
9561 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9562 int arg2 = (int) 0 ;
9563 wxIconLocation *result = 0 ;
9564 bool temp1 = false ;
9565 int val2 ;
9566 int ecode2 = 0 ;
9567 PyObject * obj0 = 0 ;
9568 PyObject * obj1 = 0 ;
9569 char * kwnames[] = {
9570 (char *) "filename",(char *) "num", NULL
9571 };
9572
9573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9574 if (obj0) {
9575 {
9576 arg1 = wxString_in_helper(obj0);
9577 if (arg1 == NULL) SWIG_fail;
9578 temp1 = true;
9579 }
9580 }
9581 if (obj1) {
9582 ecode2 = SWIG_AsVal_int(obj1, &val2);
9583 if (!SWIG_IsOK(ecode2)) {
9584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9585 }
9586 arg2 = static_cast< int >(val2);
9587 }
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9595 {
9596 if (temp1)
9597 delete arg1;
9598 }
9599 return resultobj;
9600 fail:
9601 {
9602 if (temp1)
9603 delete arg1;
9604 }
9605 return NULL;
9606 }
9607
9608
9609 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9610 PyObject *resultobj = 0;
9611 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9612 void *argp1 = 0 ;
9613 int res1 = 0 ;
9614 PyObject *swig_obj[1] ;
9615
9616 if (!args) SWIG_fail;
9617 swig_obj[0] = args;
9618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9619 if (!SWIG_IsOK(res1)) {
9620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9621 }
9622 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 delete arg1;
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 resultobj = SWIG_Py_Void();
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9638 PyObject *resultobj = 0;
9639 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9640 bool result;
9641 void *argp1 = 0 ;
9642 int res1 = 0 ;
9643 PyObject *swig_obj[1] ;
9644
9645 if (!args) SWIG_fail;
9646 swig_obj[0] = args;
9647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9648 if (!SWIG_IsOK(res1)) {
9649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9650 }
9651 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 {
9659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9660 }
9661 return resultobj;
9662 fail:
9663 return NULL;
9664 }
9665
9666
9667 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj = 0;
9669 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9670 wxString *arg2 = 0 ;
9671 void *argp1 = 0 ;
9672 int res1 = 0 ;
9673 bool temp2 = false ;
9674 PyObject * obj0 = 0 ;
9675 PyObject * obj1 = 0 ;
9676 char * kwnames[] = {
9677 (char *) "self",(char *) "filename", NULL
9678 };
9679
9680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9682 if (!SWIG_IsOK(res1)) {
9683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9684 }
9685 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9686 {
9687 arg2 = wxString_in_helper(obj1);
9688 if (arg2 == NULL) SWIG_fail;
9689 temp2 = true;
9690 }
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 (arg1)->SetFileName((wxString const &)*arg2);
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 resultobj = SWIG_Py_Void();
9698 {
9699 if (temp2)
9700 delete arg2;
9701 }
9702 return resultobj;
9703 fail:
9704 {
9705 if (temp2)
9706 delete arg2;
9707 }
9708 return NULL;
9709 }
9710
9711
9712 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9713 PyObject *resultobj = 0;
9714 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9715 wxString *result = 0 ;
9716 void *argp1 = 0 ;
9717 int res1 = 0 ;
9718 PyObject *swig_obj[1] ;
9719
9720 if (!args) SWIG_fail;
9721 swig_obj[0] = args;
9722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9723 if (!SWIG_IsOK(res1)) {
9724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9725 }
9726 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9727 {
9728 PyThreadState* __tstate = wxPyBeginAllowThreads();
9729 {
9730 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9731 result = (wxString *) &_result_ref;
9732 }
9733 wxPyEndAllowThreads(__tstate);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 {
9737 #if wxUSE_UNICODE
9738 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9739 #else
9740 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9741 #endif
9742 }
9743 return resultobj;
9744 fail:
9745 return NULL;
9746 }
9747
9748
9749 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9750 PyObject *resultobj = 0;
9751 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9752 int arg2 ;
9753 void *argp1 = 0 ;
9754 int res1 = 0 ;
9755 int val2 ;
9756 int ecode2 = 0 ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759 char * kwnames[] = {
9760 (char *) "self",(char *) "num", NULL
9761 };
9762
9763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9765 if (!SWIG_IsOK(res1)) {
9766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9767 }
9768 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9769 ecode2 = SWIG_AsVal_int(obj1, &val2);
9770 if (!SWIG_IsOK(ecode2)) {
9771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9772 }
9773 arg2 = static_cast< int >(val2);
9774 {
9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
9776 wxIconLocation_SetIndex(arg1,arg2);
9777 wxPyEndAllowThreads(__tstate);
9778 if (PyErr_Occurred()) SWIG_fail;
9779 }
9780 resultobj = SWIG_Py_Void();
9781 return resultobj;
9782 fail:
9783 return NULL;
9784 }
9785
9786
9787 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9788 PyObject *resultobj = 0;
9789 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9790 int result;
9791 void *argp1 = 0 ;
9792 int res1 = 0 ;
9793 PyObject *swig_obj[1] ;
9794
9795 if (!args) SWIG_fail;
9796 swig_obj[0] = args;
9797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9798 if (!SWIG_IsOK(res1)) {
9799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9800 }
9801 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (int)wxIconLocation_GetIndex(arg1);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_From_int(static_cast< int >(result));
9809 return resultobj;
9810 fail:
9811 return NULL;
9812 }
9813
9814
9815 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9816 PyObject *obj;
9817 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9818 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9819 return SWIG_Py_Void();
9820 }
9821
9822 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9823 return SWIG_Python_InitShadowInstance(args);
9824 }
9825
9826 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9827 PyObject *resultobj = 0;
9828 wxIconBundle *result = 0 ;
9829
9830 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 result = (wxIconBundle *)new wxIconBundle();
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9838 return resultobj;
9839 fail:
9840 return NULL;
9841 }
9842
9843
9844 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9845 PyObject *resultobj = 0;
9846 wxString *arg1 = 0 ;
9847 long arg2 ;
9848 wxIconBundle *result = 0 ;
9849 bool temp1 = false ;
9850 long val2 ;
9851 int ecode2 = 0 ;
9852 PyObject * obj0 = 0 ;
9853 PyObject * obj1 = 0 ;
9854 char * kwnames[] = {
9855 (char *) "file",(char *) "type", NULL
9856 };
9857
9858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9859 {
9860 arg1 = wxString_in_helper(obj0);
9861 if (arg1 == NULL) SWIG_fail;
9862 temp1 = true;
9863 }
9864 ecode2 = SWIG_AsVal_long(obj1, &val2);
9865 if (!SWIG_IsOK(ecode2)) {
9866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9867 }
9868 arg2 = static_cast< long >(val2);
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9876 {
9877 if (temp1)
9878 delete arg1;
9879 }
9880 return resultobj;
9881 fail:
9882 {
9883 if (temp1)
9884 delete arg1;
9885 }
9886 return NULL;
9887 }
9888
9889
9890 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9891 PyObject *resultobj = 0;
9892 wxIcon *arg1 = 0 ;
9893 wxIconBundle *result = 0 ;
9894 void *argp1 = 0 ;
9895 int res1 = 0 ;
9896 PyObject * obj0 = 0 ;
9897 char * kwnames[] = {
9898 (char *) "icon", NULL
9899 };
9900
9901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9902 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9903 if (!SWIG_IsOK(res1)) {
9904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9905 }
9906 if (!argp1) {
9907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9908 }
9909 arg1 = reinterpret_cast< wxIcon * >(argp1);
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9917 return resultobj;
9918 fail:
9919 return NULL;
9920 }
9921
9922
9923 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9924 PyObject *resultobj = 0;
9925 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9926 void *argp1 = 0 ;
9927 int res1 = 0 ;
9928 PyObject *swig_obj[1] ;
9929
9930 if (!args) SWIG_fail;
9931 swig_obj[0] = args;
9932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9933 if (!SWIG_IsOK(res1)) {
9934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9935 }
9936 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9937 {
9938 PyThreadState* __tstate = wxPyBeginAllowThreads();
9939 delete arg1;
9940
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 resultobj = SWIG_Py_Void();
9945 return resultobj;
9946 fail:
9947 return NULL;
9948 }
9949
9950
9951 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9952 PyObject *resultobj = 0;
9953 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9954 wxIcon *arg2 = 0 ;
9955 void *argp1 = 0 ;
9956 int res1 = 0 ;
9957 void *argp2 = 0 ;
9958 int res2 = 0 ;
9959 PyObject * obj0 = 0 ;
9960 PyObject * obj1 = 0 ;
9961 char * kwnames[] = {
9962 (char *) "self",(char *) "icon", NULL
9963 };
9964
9965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9967 if (!SWIG_IsOK(res1)) {
9968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9969 }
9970 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9972 if (!SWIG_IsOK(res2)) {
9973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9974 }
9975 if (!argp2) {
9976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9977 }
9978 arg2 = reinterpret_cast< wxIcon * >(argp2);
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 (arg1)->AddIcon((wxIcon const &)*arg2);
9982 wxPyEndAllowThreads(__tstate);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 resultobj = SWIG_Py_Void();
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj = 0;
9994 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9995 wxString *arg2 = 0 ;
9996 long arg3 ;
9997 void *argp1 = 0 ;
9998 int res1 = 0 ;
9999 bool temp2 = false ;
10000 long val3 ;
10001 int ecode3 = 0 ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 PyObject * obj2 = 0 ;
10005 char * kwnames[] = {
10006 (char *) "self",(char *) "file",(char *) "type", NULL
10007 };
10008
10009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10011 if (!SWIG_IsOK(res1)) {
10012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10013 }
10014 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10015 {
10016 arg2 = wxString_in_helper(obj1);
10017 if (arg2 == NULL) SWIG_fail;
10018 temp2 = true;
10019 }
10020 ecode3 = SWIG_AsVal_long(obj2, &val3);
10021 if (!SWIG_IsOK(ecode3)) {
10022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10023 }
10024 arg3 = static_cast< long >(val3);
10025 {
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_Py_Void();
10032 {
10033 if (temp2)
10034 delete arg2;
10035 }
10036 return resultobj;
10037 fail:
10038 {
10039 if (temp2)
10040 delete arg2;
10041 }
10042 return NULL;
10043 }
10044
10045
10046 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10047 PyObject *resultobj = 0;
10048 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10049 wxSize *arg2 = 0 ;
10050 wxIcon *result = 0 ;
10051 void *argp1 = 0 ;
10052 int res1 = 0 ;
10053 wxSize temp2 ;
10054 PyObject * obj0 = 0 ;
10055 PyObject * obj1 = 0 ;
10056 char * kwnames[] = {
10057 (char *) "self",(char *) "size", NULL
10058 };
10059
10060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10062 if (!SWIG_IsOK(res1)) {
10063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10064 }
10065 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10066 {
10067 arg2 = &temp2;
10068 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10069 }
10070 {
10071 PyThreadState* __tstate = wxPyBeginAllowThreads();
10072 {
10073 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10074 result = (wxIcon *) &_result_ref;
10075 }
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 {
10080 wxIcon* resultptr = new wxIcon(*result);
10081 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10082 }
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10090 PyObject *obj;
10091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10092 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10093 return SWIG_Py_Void();
10094 }
10095
10096 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10097 return SWIG_Python_InitShadowInstance(args);
10098 }
10099
10100 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10101 PyObject *resultobj = 0;
10102 wxString *arg1 = 0 ;
10103 long arg2 ;
10104 int arg3 = (int) 0 ;
10105 int arg4 = (int) 0 ;
10106 wxCursor *result = 0 ;
10107 bool temp1 = false ;
10108 long val2 ;
10109 int ecode2 = 0 ;
10110 int val3 ;
10111 int ecode3 = 0 ;
10112 int val4 ;
10113 int ecode4 = 0 ;
10114 PyObject * obj0 = 0 ;
10115 PyObject * obj1 = 0 ;
10116 PyObject * obj2 = 0 ;
10117 PyObject * obj3 = 0 ;
10118 char * kwnames[] = {
10119 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10120 };
10121
10122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10123 {
10124 arg1 = wxString_in_helper(obj0);
10125 if (arg1 == NULL) SWIG_fail;
10126 temp1 = true;
10127 }
10128 ecode2 = SWIG_AsVal_long(obj1, &val2);
10129 if (!SWIG_IsOK(ecode2)) {
10130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10131 }
10132 arg2 = static_cast< long >(val2);
10133 if (obj2) {
10134 ecode3 = SWIG_AsVal_int(obj2, &val3);
10135 if (!SWIG_IsOK(ecode3)) {
10136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10137 }
10138 arg3 = static_cast< int >(val3);
10139 }
10140 if (obj3) {
10141 ecode4 = SWIG_AsVal_int(obj3, &val4);
10142 if (!SWIG_IsOK(ecode4)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10144 }
10145 arg4 = static_cast< int >(val4);
10146 }
10147 {
10148 if (!wxPyCheckForApp()) SWIG_fail;
10149 PyThreadState* __tstate = wxPyBeginAllowThreads();
10150 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10151 wxPyEndAllowThreads(__tstate);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 }
10154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10155 {
10156 if (temp1)
10157 delete arg1;
10158 }
10159 return resultobj;
10160 fail:
10161 {
10162 if (temp1)
10163 delete arg1;
10164 }
10165 return NULL;
10166 }
10167
10168
10169 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10170 PyObject *resultobj = 0;
10171 wxCursor *arg1 = (wxCursor *) 0 ;
10172 void *argp1 = 0 ;
10173 int res1 = 0 ;
10174 PyObject *swig_obj[1] ;
10175
10176 if (!args) SWIG_fail;
10177 swig_obj[0] = args;
10178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10181 }
10182 arg1 = reinterpret_cast< wxCursor * >(argp1);
10183 {
10184 PyThreadState* __tstate = wxPyBeginAllowThreads();
10185 delete arg1;
10186
10187 wxPyEndAllowThreads(__tstate);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 }
10190 resultobj = SWIG_Py_Void();
10191 return resultobj;
10192 fail:
10193 return NULL;
10194 }
10195
10196
10197 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10198 PyObject *resultobj = 0;
10199 int arg1 ;
10200 wxCursor *result = 0 ;
10201 int val1 ;
10202 int ecode1 = 0 ;
10203 PyObject * obj0 = 0 ;
10204 char * kwnames[] = {
10205 (char *) "id", NULL
10206 };
10207
10208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10209 ecode1 = SWIG_AsVal_int(obj0, &val1);
10210 if (!SWIG_IsOK(ecode1)) {
10211 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10212 }
10213 arg1 = static_cast< int >(val1);
10214 {
10215 if (!wxPyCheckForApp()) SWIG_fail;
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = (wxCursor *)new wxCursor(arg1);
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10222 return resultobj;
10223 fail:
10224 return NULL;
10225 }
10226
10227
10228 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10229 PyObject *resultobj = 0;
10230 wxImage *arg1 = 0 ;
10231 wxCursor *result = 0 ;
10232 void *argp1 = 0 ;
10233 int res1 = 0 ;
10234 PyObject * obj0 = 0 ;
10235 char * kwnames[] = {
10236 (char *) "image", NULL
10237 };
10238
10239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10240 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10241 if (!SWIG_IsOK(res1)) {
10242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10243 }
10244 if (!argp1) {
10245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10246 }
10247 arg1 = reinterpret_cast< wxImage * >(argp1);
10248 {
10249 if (!wxPyCheckForApp()) SWIG_fail;
10250 PyThreadState* __tstate = wxPyBeginAllowThreads();
10251 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10252 wxPyEndAllowThreads(__tstate);
10253 if (PyErr_Occurred()) SWIG_fail;
10254 }
10255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10256 return resultobj;
10257 fail:
10258 return NULL;
10259 }
10260
10261
10262 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10263 PyObject *resultobj = 0;
10264 wxCursor *arg1 = (wxCursor *) 0 ;
10265 bool result;
10266 void *argp1 = 0 ;
10267 int res1 = 0 ;
10268 PyObject *swig_obj[1] ;
10269
10270 if (!args) SWIG_fail;
10271 swig_obj[0] = args;
10272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10273 if (!SWIG_IsOK(res1)) {
10274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10275 }
10276 arg1 = reinterpret_cast< wxCursor * >(argp1);
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (bool)(arg1)->IsOk();
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 {
10284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10285 }
10286 return resultobj;
10287 fail:
10288 return NULL;
10289 }
10290
10291
10292 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10293 PyObject *obj;
10294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10295 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10296 return SWIG_Py_Void();
10297 }
10298
10299 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10300 return SWIG_Python_InitShadowInstance(args);
10301 }
10302
10303 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10304 PyObject *resultobj = 0;
10305 int arg1 = (int) 0 ;
10306 int arg2 = (int) 0 ;
10307 int arg3 = (int) 0 ;
10308 int arg4 = (int) 0 ;
10309 wxRegion *result = 0 ;
10310 int val1 ;
10311 int ecode1 = 0 ;
10312 int val2 ;
10313 int ecode2 = 0 ;
10314 int val3 ;
10315 int ecode3 = 0 ;
10316 int val4 ;
10317 int ecode4 = 0 ;
10318 PyObject * obj0 = 0 ;
10319 PyObject * obj1 = 0 ;
10320 PyObject * obj2 = 0 ;
10321 PyObject * obj3 = 0 ;
10322 char * kwnames[] = {
10323 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10324 };
10325
10326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10327 if (obj0) {
10328 ecode1 = SWIG_AsVal_int(obj0, &val1);
10329 if (!SWIG_IsOK(ecode1)) {
10330 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10331 }
10332 arg1 = static_cast< int >(val1);
10333 }
10334 if (obj1) {
10335 ecode2 = SWIG_AsVal_int(obj1, &val2);
10336 if (!SWIG_IsOK(ecode2)) {
10337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10338 }
10339 arg2 = static_cast< int >(val2);
10340 }
10341 if (obj2) {
10342 ecode3 = SWIG_AsVal_int(obj2, &val3);
10343 if (!SWIG_IsOK(ecode3)) {
10344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10345 }
10346 arg3 = static_cast< int >(val3);
10347 }
10348 if (obj3) {
10349 ecode4 = SWIG_AsVal_int(obj3, &val4);
10350 if (!SWIG_IsOK(ecode4)) {
10351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10352 }
10353 arg4 = static_cast< int >(val4);
10354 }
10355 {
10356 if (!wxPyCheckForApp()) SWIG_fail;
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10359 wxPyEndAllowThreads(__tstate);
10360 if (PyErr_Occurred()) SWIG_fail;
10361 }
10362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10363 return resultobj;
10364 fail:
10365 return NULL;
10366 }
10367
10368
10369 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10370 PyObject *resultobj = 0;
10371 wxBitmap *arg1 = 0 ;
10372 wxRegion *result = 0 ;
10373 void *argp1 = 0 ;
10374 int res1 = 0 ;
10375 PyObject * obj0 = 0 ;
10376 char * kwnames[] = {
10377 (char *) "bmp", NULL
10378 };
10379
10380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10381 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10382 if (!SWIG_IsOK(res1)) {
10383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10384 }
10385 if (!argp1) {
10386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10387 }
10388 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10389 {
10390 if (!wxPyCheckForApp()) SWIG_fail;
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10393 wxPyEndAllowThreads(__tstate);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 }
10396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxBitmap *arg1 = 0 ;
10406 wxColour *arg2 = 0 ;
10407 int arg3 = (int) 0 ;
10408 wxRegion *result = 0 ;
10409 void *argp1 = 0 ;
10410 int res1 = 0 ;
10411 wxColour temp2 ;
10412 int val3 ;
10413 int ecode3 = 0 ;
10414 PyObject * obj0 = 0 ;
10415 PyObject * obj1 = 0 ;
10416 PyObject * obj2 = 0 ;
10417 char * kwnames[] = {
10418 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10419 };
10420
10421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10422 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10423 if (!SWIG_IsOK(res1)) {
10424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10425 }
10426 if (!argp1) {
10427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10428 }
10429 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10430 {
10431 arg2 = &temp2;
10432 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10433 }
10434 if (obj2) {
10435 ecode3 = SWIG_AsVal_int(obj2, &val3);
10436 if (!SWIG_IsOK(ecode3)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10438 }
10439 arg3 = static_cast< int >(val3);
10440 }
10441 {
10442 if (!wxPyCheckForApp()) SWIG_fail;
10443 PyThreadState* __tstate = wxPyBeginAllowThreads();
10444 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10445 wxPyEndAllowThreads(__tstate);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 }
10448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10449 return resultobj;
10450 fail:
10451 return NULL;
10452 }
10453
10454
10455 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10456 PyObject *resultobj = 0;
10457 int arg1 ;
10458 wxPoint *arg2 = (wxPoint *) 0 ;
10459 int arg3 = (int) wxWINDING_RULE ;
10460 wxRegion *result = 0 ;
10461 int val3 ;
10462 int ecode3 = 0 ;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10465 char * kwnames[] = {
10466 (char *) "points",(char *) "fillStyle", NULL
10467 };
10468
10469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10470 {
10471 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10472 if (arg2 == NULL) SWIG_fail;
10473 }
10474 if (obj1) {
10475 ecode3 = SWIG_AsVal_int(obj1, &val3);
10476 if (!SWIG_IsOK(ecode3)) {
10477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10478 }
10479 arg3 = static_cast< int >(val3);
10480 }
10481 {
10482 if (!wxPyCheckForApp()) SWIG_fail;
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
10484 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10485 wxPyEndAllowThreads(__tstate);
10486 if (PyErr_Occurred()) SWIG_fail;
10487 }
10488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10489 {
10490 if (arg2) delete [] arg2;
10491 }
10492 return resultobj;
10493 fail:
10494 {
10495 if (arg2) delete [] arg2;
10496 }
10497 return NULL;
10498 }
10499
10500
10501 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10502 PyObject *resultobj = 0;
10503 wxRegion *arg1 = (wxRegion *) 0 ;
10504 void *argp1 = 0 ;
10505 int res1 = 0 ;
10506 PyObject *swig_obj[1] ;
10507
10508 if (!args) SWIG_fail;
10509 swig_obj[0] = args;
10510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10511 if (!SWIG_IsOK(res1)) {
10512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10513 }
10514 arg1 = reinterpret_cast< wxRegion * >(argp1);
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 delete arg1;
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 resultobj = SWIG_Py_Void();
10523 return resultobj;
10524 fail:
10525 return NULL;
10526 }
10527
10528
10529 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10530 PyObject *resultobj = 0;
10531 wxRegion *arg1 = (wxRegion *) 0 ;
10532 void *argp1 = 0 ;
10533 int res1 = 0 ;
10534 PyObject *swig_obj[1] ;
10535
10536 if (!args) SWIG_fail;
10537 swig_obj[0] = args;
10538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10539 if (!SWIG_IsOK(res1)) {
10540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10541 }
10542 arg1 = reinterpret_cast< wxRegion * >(argp1);
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 (arg1)->Clear();
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 resultobj = SWIG_Py_Void();
10550 return resultobj;
10551 fail:
10552 return NULL;
10553 }
10554
10555
10556 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10557 PyObject *resultobj = 0;
10558 wxRegion *arg1 = (wxRegion *) 0 ;
10559 int arg2 ;
10560 int arg3 ;
10561 bool result;
10562 void *argp1 = 0 ;
10563 int res1 = 0 ;
10564 int val2 ;
10565 int ecode2 = 0 ;
10566 int val3 ;
10567 int ecode3 = 0 ;
10568 PyObject * obj0 = 0 ;
10569 PyObject * obj1 = 0 ;
10570 PyObject * obj2 = 0 ;
10571 char * kwnames[] = {
10572 (char *) "self",(char *) "x",(char *) "y", NULL
10573 };
10574
10575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10577 if (!SWIG_IsOK(res1)) {
10578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10579 }
10580 arg1 = reinterpret_cast< wxRegion * >(argp1);
10581 ecode2 = SWIG_AsVal_int(obj1, &val2);
10582 if (!SWIG_IsOK(ecode2)) {
10583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10584 }
10585 arg2 = static_cast< int >(val2);
10586 ecode3 = SWIG_AsVal_int(obj2, &val3);
10587 if (!SWIG_IsOK(ecode3)) {
10588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10589 }
10590 arg3 = static_cast< int >(val3);
10591 {
10592 PyThreadState* __tstate = wxPyBeginAllowThreads();
10593 result = (bool)(arg1)->Offset(arg2,arg3);
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 {
10598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10599 }
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj = 0;
10608 wxRegion *arg1 = (wxRegion *) 0 ;
10609 int arg2 ;
10610 int arg3 ;
10611 wxRegionContain result;
10612 void *argp1 = 0 ;
10613 int res1 = 0 ;
10614 int val2 ;
10615 int ecode2 = 0 ;
10616 int val3 ;
10617 int ecode3 = 0 ;
10618 PyObject * obj0 = 0 ;
10619 PyObject * obj1 = 0 ;
10620 PyObject * obj2 = 0 ;
10621 char * kwnames[] = {
10622 (char *) "self",(char *) "x",(char *) "y", NULL
10623 };
10624
10625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10627 if (!SWIG_IsOK(res1)) {
10628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10629 }
10630 arg1 = reinterpret_cast< wxRegion * >(argp1);
10631 ecode2 = SWIG_AsVal_int(obj1, &val2);
10632 if (!SWIG_IsOK(ecode2)) {
10633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10634 }
10635 arg2 = static_cast< int >(val2);
10636 ecode3 = SWIG_AsVal_int(obj2, &val3);
10637 if (!SWIG_IsOK(ecode3)) {
10638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10639 }
10640 arg3 = static_cast< int >(val3);
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_From_int(static_cast< int >(result));
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj = 0;
10656 wxRegion *arg1 = (wxRegion *) 0 ;
10657 wxPoint *arg2 = 0 ;
10658 wxRegionContain result;
10659 void *argp1 = 0 ;
10660 int res1 = 0 ;
10661 wxPoint temp2 ;
10662 PyObject * obj0 = 0 ;
10663 PyObject * obj1 = 0 ;
10664 char * kwnames[] = {
10665 (char *) "self",(char *) "pt", NULL
10666 };
10667
10668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10670 if (!SWIG_IsOK(res1)) {
10671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10672 }
10673 arg1 = reinterpret_cast< wxRegion * >(argp1);
10674 {
10675 arg2 = &temp2;
10676 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10677 }
10678 {
10679 PyThreadState* __tstate = wxPyBeginAllowThreads();
10680 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10681 wxPyEndAllowThreads(__tstate);
10682 if (PyErr_Occurred()) SWIG_fail;
10683 }
10684 resultobj = SWIG_From_int(static_cast< int >(result));
10685 return resultobj;
10686 fail:
10687 return NULL;
10688 }
10689
10690
10691 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10692 PyObject *resultobj = 0;
10693 wxRegion *arg1 = (wxRegion *) 0 ;
10694 wxRect *arg2 = 0 ;
10695 wxRegionContain result;
10696 void *argp1 = 0 ;
10697 int res1 = 0 ;
10698 wxRect temp2 ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 char * kwnames[] = {
10702 (char *) "self",(char *) "rect", NULL
10703 };
10704
10705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10707 if (!SWIG_IsOK(res1)) {
10708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10709 }
10710 arg1 = reinterpret_cast< wxRegion * >(argp1);
10711 {
10712 arg2 = &temp2;
10713 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10714 }
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 resultobj = SWIG_From_int(static_cast< int >(result));
10722 return resultobj;
10723 fail:
10724 return NULL;
10725 }
10726
10727
10728 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10729 PyObject *resultobj = 0;
10730 wxRegion *arg1 = (wxRegion *) 0 ;
10731 int arg2 ;
10732 int arg3 ;
10733 int arg4 ;
10734 int arg5 ;
10735 wxRegionContain result;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 int val2 ;
10739 int ecode2 = 0 ;
10740 int val3 ;
10741 int ecode3 = 0 ;
10742 int val4 ;
10743 int ecode4 = 0 ;
10744 int val5 ;
10745 int ecode5 = 0 ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 PyObject * obj2 = 0 ;
10749 PyObject * obj3 = 0 ;
10750 PyObject * obj4 = 0 ;
10751 char * kwnames[] = {
10752 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10753 };
10754
10755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10757 if (!SWIG_IsOK(res1)) {
10758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10759 }
10760 arg1 = reinterpret_cast< wxRegion * >(argp1);
10761 ecode2 = SWIG_AsVal_int(obj1, &val2);
10762 if (!SWIG_IsOK(ecode2)) {
10763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10764 }
10765 arg2 = static_cast< int >(val2);
10766 ecode3 = SWIG_AsVal_int(obj2, &val3);
10767 if (!SWIG_IsOK(ecode3)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10769 }
10770 arg3 = static_cast< int >(val3);
10771 ecode4 = SWIG_AsVal_int(obj3, &val4);
10772 if (!SWIG_IsOK(ecode4)) {
10773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10774 }
10775 arg4 = static_cast< int >(val4);
10776 ecode5 = SWIG_AsVal_int(obj4, &val5);
10777 if (!SWIG_IsOK(ecode5)) {
10778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10779 }
10780 arg5 = static_cast< int >(val5);
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
10787 resultobj = SWIG_From_int(static_cast< int >(result));
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10795 PyObject *resultobj = 0;
10796 wxRegion *arg1 = (wxRegion *) 0 ;
10797 wxRect result;
10798 void *argp1 = 0 ;
10799 int res1 = 0 ;
10800 PyObject *swig_obj[1] ;
10801
10802 if (!args) SWIG_fail;
10803 swig_obj[0] = args;
10804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10805 if (!SWIG_IsOK(res1)) {
10806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10807 }
10808 arg1 = reinterpret_cast< wxRegion * >(argp1);
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (arg1)->GetBox();
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj = 0;
10824 wxRegion *arg1 = (wxRegion *) 0 ;
10825 int arg2 ;
10826 int arg3 ;
10827 int arg4 ;
10828 int arg5 ;
10829 bool result;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 int val2 ;
10833 int ecode2 = 0 ;
10834 int val3 ;
10835 int ecode3 = 0 ;
10836 int val4 ;
10837 int ecode4 = 0 ;
10838 int val5 ;
10839 int ecode5 = 0 ;
10840 PyObject * obj0 = 0 ;
10841 PyObject * obj1 = 0 ;
10842 PyObject * obj2 = 0 ;
10843 PyObject * obj3 = 0 ;
10844 PyObject * obj4 = 0 ;
10845 char * kwnames[] = {
10846 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10847 };
10848
10849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10851 if (!SWIG_IsOK(res1)) {
10852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10853 }
10854 arg1 = reinterpret_cast< wxRegion * >(argp1);
10855 ecode2 = SWIG_AsVal_int(obj1, &val2);
10856 if (!SWIG_IsOK(ecode2)) {
10857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10858 }
10859 arg2 = static_cast< int >(val2);
10860 ecode3 = SWIG_AsVal_int(obj2, &val3);
10861 if (!SWIG_IsOK(ecode3)) {
10862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10863 }
10864 arg3 = static_cast< int >(val3);
10865 ecode4 = SWIG_AsVal_int(obj3, &val4);
10866 if (!SWIG_IsOK(ecode4)) {
10867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10868 }
10869 arg4 = static_cast< int >(val4);
10870 ecode5 = SWIG_AsVal_int(obj4, &val5);
10871 if (!SWIG_IsOK(ecode5)) {
10872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10873 }
10874 arg5 = static_cast< int >(val5);
10875 {
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10878 wxPyEndAllowThreads(__tstate);
10879 if (PyErr_Occurred()) SWIG_fail;
10880 }
10881 {
10882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10883 }
10884 return resultobj;
10885 fail:
10886 return NULL;
10887 }
10888
10889
10890 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj = 0;
10892 wxRegion *arg1 = (wxRegion *) 0 ;
10893 wxRect *arg2 = 0 ;
10894 bool result;
10895 void *argp1 = 0 ;
10896 int res1 = 0 ;
10897 wxRect temp2 ;
10898 PyObject * obj0 = 0 ;
10899 PyObject * obj1 = 0 ;
10900 char * kwnames[] = {
10901 (char *) "self",(char *) "rect", NULL
10902 };
10903
10904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10906 if (!SWIG_IsOK(res1)) {
10907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10908 }
10909 arg1 = reinterpret_cast< wxRegion * >(argp1);
10910 {
10911 arg2 = &temp2;
10912 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10913 }
10914 {
10915 PyThreadState* __tstate = wxPyBeginAllowThreads();
10916 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10917 wxPyEndAllowThreads(__tstate);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 }
10920 {
10921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10922 }
10923 return resultobj;
10924 fail:
10925 return NULL;
10926 }
10927
10928
10929 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj = 0;
10931 wxRegion *arg1 = (wxRegion *) 0 ;
10932 wxRegion *arg2 = 0 ;
10933 bool result;
10934 void *argp1 = 0 ;
10935 int res1 = 0 ;
10936 void *argp2 = 0 ;
10937 int res2 = 0 ;
10938 PyObject * obj0 = 0 ;
10939 PyObject * obj1 = 0 ;
10940 char * kwnames[] = {
10941 (char *) "self",(char *) "region", NULL
10942 };
10943
10944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10946 if (!SWIG_IsOK(res1)) {
10947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10948 }
10949 arg1 = reinterpret_cast< wxRegion * >(argp1);
10950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10951 if (!SWIG_IsOK(res2)) {
10952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10953 }
10954 if (!argp2) {
10955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10956 }
10957 arg2 = reinterpret_cast< wxRegion * >(argp2);
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10966 }
10967 return resultobj;
10968 fail:
10969 return NULL;
10970 }
10971
10972
10973 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10974 PyObject *resultobj = 0;
10975 wxRegion *arg1 = (wxRegion *) 0 ;
10976 bool result;
10977 void *argp1 = 0 ;
10978 int res1 = 0 ;
10979 PyObject *swig_obj[1] ;
10980
10981 if (!args) SWIG_fail;
10982 swig_obj[0] = args;
10983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10984 if (!SWIG_IsOK(res1)) {
10985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10986 }
10987 arg1 = reinterpret_cast< wxRegion * >(argp1);
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (bool)(arg1)->IsEmpty();
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 {
10995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10996 }
10997 return resultobj;
10998 fail:
10999 return NULL;
11000 }
11001
11002
11003 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj = 0;
11005 wxRegion *arg1 = (wxRegion *) 0 ;
11006 wxRegion *arg2 = 0 ;
11007 bool result;
11008 void *argp1 = 0 ;
11009 int res1 = 0 ;
11010 void *argp2 = 0 ;
11011 int res2 = 0 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 char * kwnames[] = {
11015 (char *) "self",(char *) "region", NULL
11016 };
11017
11018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11020 if (!SWIG_IsOK(res1)) {
11021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11022 }
11023 arg1 = reinterpret_cast< wxRegion * >(argp1);
11024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11025 if (!SWIG_IsOK(res2)) {
11026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11027 }
11028 if (!argp2) {
11029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11030 }
11031 arg2 = reinterpret_cast< wxRegion * >(argp2);
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11035 wxPyEndAllowThreads(__tstate);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 {
11039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11040 }
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj = 0;
11049 wxRegion *arg1 = (wxRegion *) 0 ;
11050 int arg2 ;
11051 int arg3 ;
11052 int arg4 ;
11053 int arg5 ;
11054 bool result;
11055 void *argp1 = 0 ;
11056 int res1 = 0 ;
11057 int val2 ;
11058 int ecode2 = 0 ;
11059 int val3 ;
11060 int ecode3 = 0 ;
11061 int val4 ;
11062 int ecode4 = 0 ;
11063 int val5 ;
11064 int ecode5 = 0 ;
11065 PyObject * obj0 = 0 ;
11066 PyObject * obj1 = 0 ;
11067 PyObject * obj2 = 0 ;
11068 PyObject * obj3 = 0 ;
11069 PyObject * obj4 = 0 ;
11070 char * kwnames[] = {
11071 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11072 };
11073
11074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11076 if (!SWIG_IsOK(res1)) {
11077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11078 }
11079 arg1 = reinterpret_cast< wxRegion * >(argp1);
11080 ecode2 = SWIG_AsVal_int(obj1, &val2);
11081 if (!SWIG_IsOK(ecode2)) {
11082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11083 }
11084 arg2 = static_cast< int >(val2);
11085 ecode3 = SWIG_AsVal_int(obj2, &val3);
11086 if (!SWIG_IsOK(ecode3)) {
11087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11088 }
11089 arg3 = static_cast< int >(val3);
11090 ecode4 = SWIG_AsVal_int(obj3, &val4);
11091 if (!SWIG_IsOK(ecode4)) {
11092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11093 }
11094 arg4 = static_cast< int >(val4);
11095 ecode5 = SWIG_AsVal_int(obj4, &val5);
11096 if (!SWIG_IsOK(ecode5)) {
11097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11098 }
11099 arg5 = static_cast< int >(val5);
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 {
11107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11108 }
11109 return resultobj;
11110 fail:
11111 return NULL;
11112 }
11113
11114
11115 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11116 PyObject *resultobj = 0;
11117 wxRegion *arg1 = (wxRegion *) 0 ;
11118 wxRect *arg2 = 0 ;
11119 bool result;
11120 void *argp1 = 0 ;
11121 int res1 = 0 ;
11122 wxRect temp2 ;
11123 PyObject * obj0 = 0 ;
11124 PyObject * obj1 = 0 ;
11125 char * kwnames[] = {
11126 (char *) "self",(char *) "rect", NULL
11127 };
11128
11129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11131 if (!SWIG_IsOK(res1)) {
11132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11133 }
11134 arg1 = reinterpret_cast< wxRegion * >(argp1);
11135 {
11136 arg2 = &temp2;
11137 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11138 }
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 {
11146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11147 }
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11155 PyObject *resultobj = 0;
11156 wxRegion *arg1 = (wxRegion *) 0 ;
11157 wxRegion *arg2 = 0 ;
11158 bool result;
11159 void *argp1 = 0 ;
11160 int res1 = 0 ;
11161 void *argp2 = 0 ;
11162 int res2 = 0 ;
11163 PyObject * obj0 = 0 ;
11164 PyObject * obj1 = 0 ;
11165 char * kwnames[] = {
11166 (char *) "self",(char *) "region", NULL
11167 };
11168
11169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11171 if (!SWIG_IsOK(res1)) {
11172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11173 }
11174 arg1 = reinterpret_cast< wxRegion * >(argp1);
11175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11176 if (!SWIG_IsOK(res2)) {
11177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11178 }
11179 if (!argp2) {
11180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11181 }
11182 arg2 = reinterpret_cast< wxRegion * >(argp2);
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
11185 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 {
11190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11191 }
11192 return resultobj;
11193 fail:
11194 return NULL;
11195 }
11196
11197
11198 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj = 0;
11200 wxRegion *arg1 = (wxRegion *) 0 ;
11201 int arg2 ;
11202 int arg3 ;
11203 int arg4 ;
11204 int arg5 ;
11205 bool result;
11206 void *argp1 = 0 ;
11207 int res1 = 0 ;
11208 int val2 ;
11209 int ecode2 = 0 ;
11210 int val3 ;
11211 int ecode3 = 0 ;
11212 int val4 ;
11213 int ecode4 = 0 ;
11214 int val5 ;
11215 int ecode5 = 0 ;
11216 PyObject * obj0 = 0 ;
11217 PyObject * obj1 = 0 ;
11218 PyObject * obj2 = 0 ;
11219 PyObject * obj3 = 0 ;
11220 PyObject * obj4 = 0 ;
11221 char * kwnames[] = {
11222 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11223 };
11224
11225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11227 if (!SWIG_IsOK(res1)) {
11228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11229 }
11230 arg1 = reinterpret_cast< wxRegion * >(argp1);
11231 ecode2 = SWIG_AsVal_int(obj1, &val2);
11232 if (!SWIG_IsOK(ecode2)) {
11233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11234 }
11235 arg2 = static_cast< int >(val2);
11236 ecode3 = SWIG_AsVal_int(obj2, &val3);
11237 if (!SWIG_IsOK(ecode3)) {
11238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11239 }
11240 arg3 = static_cast< int >(val3);
11241 ecode4 = SWIG_AsVal_int(obj3, &val4);
11242 if (!SWIG_IsOK(ecode4)) {
11243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11244 }
11245 arg4 = static_cast< int >(val4);
11246 ecode5 = SWIG_AsVal_int(obj4, &val5);
11247 if (!SWIG_IsOK(ecode5)) {
11248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11249 }
11250 arg5 = static_cast< int >(val5);
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 }
11257 {
11258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11259 }
11260 return resultobj;
11261 fail:
11262 return NULL;
11263 }
11264
11265
11266 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11267 PyObject *resultobj = 0;
11268 wxRegion *arg1 = (wxRegion *) 0 ;
11269 wxRect *arg2 = 0 ;
11270 bool result;
11271 void *argp1 = 0 ;
11272 int res1 = 0 ;
11273 wxRect temp2 ;
11274 PyObject * obj0 = 0 ;
11275 PyObject * obj1 = 0 ;
11276 char * kwnames[] = {
11277 (char *) "self",(char *) "rect", NULL
11278 };
11279
11280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11282 if (!SWIG_IsOK(res1)) {
11283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11284 }
11285 arg1 = reinterpret_cast< wxRegion * >(argp1);
11286 {
11287 arg2 = &temp2;
11288 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11289 }
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11298 }
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11306 PyObject *resultobj = 0;
11307 wxRegion *arg1 = (wxRegion *) 0 ;
11308 wxRegion *arg2 = 0 ;
11309 bool result;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 void *argp2 = 0 ;
11313 int res2 = 0 ;
11314 PyObject * obj0 = 0 ;
11315 PyObject * obj1 = 0 ;
11316 char * kwnames[] = {
11317 (char *) "self",(char *) "region", NULL
11318 };
11319
11320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11322 if (!SWIG_IsOK(res1)) {
11323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11324 }
11325 arg1 = reinterpret_cast< wxRegion * >(argp1);
11326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11327 if (!SWIG_IsOK(res2)) {
11328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11329 }
11330 if (!argp2) {
11331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11332 }
11333 arg2 = reinterpret_cast< wxRegion * >(argp2);
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 {
11341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11342 }
11343 return resultobj;
11344 fail:
11345 return NULL;
11346 }
11347
11348
11349 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11350 PyObject *resultobj = 0;
11351 wxRegion *arg1 = (wxRegion *) 0 ;
11352 int arg2 ;
11353 int arg3 ;
11354 int arg4 ;
11355 int arg5 ;
11356 bool result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 int val2 ;
11360 int ecode2 = 0 ;
11361 int val3 ;
11362 int ecode3 = 0 ;
11363 int val4 ;
11364 int ecode4 = 0 ;
11365 int val5 ;
11366 int ecode5 = 0 ;
11367 PyObject * obj0 = 0 ;
11368 PyObject * obj1 = 0 ;
11369 PyObject * obj2 = 0 ;
11370 PyObject * obj3 = 0 ;
11371 PyObject * obj4 = 0 ;
11372 char * kwnames[] = {
11373 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11374 };
11375
11376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11378 if (!SWIG_IsOK(res1)) {
11379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11380 }
11381 arg1 = reinterpret_cast< wxRegion * >(argp1);
11382 ecode2 = SWIG_AsVal_int(obj1, &val2);
11383 if (!SWIG_IsOK(ecode2)) {
11384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11385 }
11386 arg2 = static_cast< int >(val2);
11387 ecode3 = SWIG_AsVal_int(obj2, &val3);
11388 if (!SWIG_IsOK(ecode3)) {
11389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11390 }
11391 arg3 = static_cast< int >(val3);
11392 ecode4 = SWIG_AsVal_int(obj3, &val4);
11393 if (!SWIG_IsOK(ecode4)) {
11394 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11395 }
11396 arg4 = static_cast< int >(val4);
11397 ecode5 = SWIG_AsVal_int(obj4, &val5);
11398 if (!SWIG_IsOK(ecode5)) {
11399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11400 }
11401 arg5 = static_cast< int >(val5);
11402 {
11403 PyThreadState* __tstate = wxPyBeginAllowThreads();
11404 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11410 }
11411 return resultobj;
11412 fail:
11413 return NULL;
11414 }
11415
11416
11417 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj = 0;
11419 wxRegion *arg1 = (wxRegion *) 0 ;
11420 wxRect *arg2 = 0 ;
11421 bool result;
11422 void *argp1 = 0 ;
11423 int res1 = 0 ;
11424 wxRect temp2 ;
11425 PyObject * obj0 = 0 ;
11426 PyObject * obj1 = 0 ;
11427 char * kwnames[] = {
11428 (char *) "self",(char *) "rect", NULL
11429 };
11430
11431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11433 if (!SWIG_IsOK(res1)) {
11434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11435 }
11436 arg1 = reinterpret_cast< wxRegion * >(argp1);
11437 {
11438 arg2 = &temp2;
11439 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11440 }
11441 {
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 {
11448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11449 }
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj = 0;
11458 wxRegion *arg1 = (wxRegion *) 0 ;
11459 wxRegion *arg2 = 0 ;
11460 bool result;
11461 void *argp1 = 0 ;
11462 int res1 = 0 ;
11463 void *argp2 = 0 ;
11464 int res2 = 0 ;
11465 PyObject * obj0 = 0 ;
11466 PyObject * obj1 = 0 ;
11467 char * kwnames[] = {
11468 (char *) "self",(char *) "region", NULL
11469 };
11470
11471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11473 if (!SWIG_IsOK(res1)) {
11474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11475 }
11476 arg1 = reinterpret_cast< wxRegion * >(argp1);
11477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11478 if (!SWIG_IsOK(res2)) {
11479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11480 }
11481 if (!argp2) {
11482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11483 }
11484 arg2 = reinterpret_cast< wxRegion * >(argp2);
11485 {
11486 PyThreadState* __tstate = wxPyBeginAllowThreads();
11487 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11488 wxPyEndAllowThreads(__tstate);
11489 if (PyErr_Occurred()) SWIG_fail;
11490 }
11491 {
11492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11493 }
11494 return resultobj;
11495 fail:
11496 return NULL;
11497 }
11498
11499
11500 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11501 PyObject *resultobj = 0;
11502 wxRegion *arg1 = (wxRegion *) 0 ;
11503 SwigValueWrapper<wxBitmap > result;
11504 void *argp1 = 0 ;
11505 int res1 = 0 ;
11506 PyObject *swig_obj[1] ;
11507
11508 if (!args) SWIG_fail;
11509 swig_obj[0] = args;
11510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11511 if (!SWIG_IsOK(res1)) {
11512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11513 }
11514 arg1 = reinterpret_cast< wxRegion * >(argp1);
11515 {
11516 PyThreadState* __tstate = wxPyBeginAllowThreads();
11517 result = (arg1)->ConvertToBitmap();
11518 wxPyEndAllowThreads(__tstate);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11522 return resultobj;
11523 fail:
11524 return NULL;
11525 }
11526
11527
11528 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11529 PyObject *resultobj = 0;
11530 wxRegion *arg1 = (wxRegion *) 0 ;
11531 wxBitmap *arg2 = 0 ;
11532 bool result;
11533 void *argp1 = 0 ;
11534 int res1 = 0 ;
11535 void *argp2 = 0 ;
11536 int res2 = 0 ;
11537 PyObject * obj0 = 0 ;
11538 PyObject * obj1 = 0 ;
11539 char * kwnames[] = {
11540 (char *) "self",(char *) "bmp", NULL
11541 };
11542
11543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11545 if (!SWIG_IsOK(res1)) {
11546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11547 }
11548 arg1 = reinterpret_cast< wxRegion * >(argp1);
11549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11550 if (!SWIG_IsOK(res2)) {
11551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11552 }
11553 if (!argp2) {
11554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11555 }
11556 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11560 wxPyEndAllowThreads(__tstate);
11561 if (PyErr_Occurred()) SWIG_fail;
11562 }
11563 {
11564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11565 }
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11573 PyObject *resultobj = 0;
11574 wxRegion *arg1 = (wxRegion *) 0 ;
11575 wxBitmap *arg2 = 0 ;
11576 wxColour *arg3 = 0 ;
11577 int arg4 = (int) 0 ;
11578 bool result;
11579 void *argp1 = 0 ;
11580 int res1 = 0 ;
11581 void *argp2 = 0 ;
11582 int res2 = 0 ;
11583 wxColour temp3 ;
11584 int val4 ;
11585 int ecode4 = 0 ;
11586 PyObject * obj0 = 0 ;
11587 PyObject * obj1 = 0 ;
11588 PyObject * obj2 = 0 ;
11589 PyObject * obj3 = 0 ;
11590 char * kwnames[] = {
11591 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11592 };
11593
11594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11596 if (!SWIG_IsOK(res1)) {
11597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11598 }
11599 arg1 = reinterpret_cast< wxRegion * >(argp1);
11600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11601 if (!SWIG_IsOK(res2)) {
11602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11603 }
11604 if (!argp2) {
11605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11606 }
11607 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11608 {
11609 arg3 = &temp3;
11610 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11611 }
11612 if (obj3) {
11613 ecode4 = SWIG_AsVal_int(obj3, &val4);
11614 if (!SWIG_IsOK(ecode4)) {
11615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11616 }
11617 arg4 = static_cast< int >(val4);
11618 }
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11622 wxPyEndAllowThreads(__tstate);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 {
11626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11627 }
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11635 PyObject *obj;
11636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11637 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11638 return SWIG_Py_Void();
11639 }
11640
11641 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11642 return SWIG_Python_InitShadowInstance(args);
11643 }
11644
11645 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11646 PyObject *resultobj = 0;
11647 wxRegion *arg1 = 0 ;
11648 wxRegionIterator *result = 0 ;
11649 void *argp1 = 0 ;
11650 int res1 = 0 ;
11651 PyObject * obj0 = 0 ;
11652 char * kwnames[] = {
11653 (char *) "region", NULL
11654 };
11655
11656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11657 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11658 if (!SWIG_IsOK(res1)) {
11659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11660 }
11661 if (!argp1) {
11662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11663 }
11664 arg1 = reinterpret_cast< wxRegion * >(argp1);
11665 {
11666 if (!wxPyCheckForApp()) SWIG_fail;
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11673 return resultobj;
11674 fail:
11675 return NULL;
11676 }
11677
11678
11679 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11680 PyObject *resultobj = 0;
11681 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11682 void *argp1 = 0 ;
11683 int res1 = 0 ;
11684 PyObject *swig_obj[1] ;
11685
11686 if (!args) SWIG_fail;
11687 swig_obj[0] = args;
11688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11689 if (!SWIG_IsOK(res1)) {
11690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11691 }
11692 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11693 {
11694 PyThreadState* __tstate = wxPyBeginAllowThreads();
11695 delete arg1;
11696
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 resultobj = SWIG_Py_Void();
11701 return resultobj;
11702 fail:
11703 return NULL;
11704 }
11705
11706
11707 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11708 PyObject *resultobj = 0;
11709 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11710 int result;
11711 void *argp1 = 0 ;
11712 int res1 = 0 ;
11713 PyObject *swig_obj[1] ;
11714
11715 if (!args) SWIG_fail;
11716 swig_obj[0] = args;
11717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11718 if (!SWIG_IsOK(res1)) {
11719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11720 }
11721 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 result = (int)(arg1)->GetX();
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_From_int(static_cast< int >(result));
11729 return resultobj;
11730 fail:
11731 return NULL;
11732 }
11733
11734
11735 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11736 PyObject *resultobj = 0;
11737 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11738 int result;
11739 void *argp1 = 0 ;
11740 int res1 = 0 ;
11741 PyObject *swig_obj[1] ;
11742
11743 if (!args) SWIG_fail;
11744 swig_obj[0] = args;
11745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11746 if (!SWIG_IsOK(res1)) {
11747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11748 }
11749 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (int)(arg1)->GetY();
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_From_int(static_cast< int >(result));
11757 return resultobj;
11758 fail:
11759 return NULL;
11760 }
11761
11762
11763 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11766 int result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 PyObject *swig_obj[1] ;
11770
11771 if (!args) SWIG_fail;
11772 swig_obj[0] = args;
11773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11776 }
11777 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (int)(arg1)->GetW();
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 resultobj = SWIG_From_int(static_cast< int >(result));
11785 return resultobj;
11786 fail:
11787 return NULL;
11788 }
11789
11790
11791 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11792 PyObject *resultobj = 0;
11793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11794 int result;
11795 void *argp1 = 0 ;
11796 int res1 = 0 ;
11797 PyObject *swig_obj[1] ;
11798
11799 if (!args) SWIG_fail;
11800 swig_obj[0] = args;
11801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11802 if (!SWIG_IsOK(res1)) {
11803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11804 }
11805 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (int)(arg1)->GetWidth();
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 resultobj = SWIG_From_int(static_cast< int >(result));
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11820 PyObject *resultobj = 0;
11821 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11822 int result;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 PyObject *swig_obj[1] ;
11826
11827 if (!args) SWIG_fail;
11828 swig_obj[0] = args;
11829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11830 if (!SWIG_IsOK(res1)) {
11831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11832 }
11833 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 result = (int)(arg1)->GetH();
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 resultobj = SWIG_From_int(static_cast< int >(result));
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11848 PyObject *resultobj = 0;
11849 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11850 int result;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 PyObject *swig_obj[1] ;
11854
11855 if (!args) SWIG_fail;
11856 swig_obj[0] = args;
11857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11858 if (!SWIG_IsOK(res1)) {
11859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11860 }
11861 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 result = (int)(arg1)->GetHeight();
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 resultobj = SWIG_From_int(static_cast< int >(result));
11869 return resultobj;
11870 fail:
11871 return NULL;
11872 }
11873
11874
11875 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11876 PyObject *resultobj = 0;
11877 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11878 wxRect result;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 PyObject *swig_obj[1] ;
11882
11883 if (!args) SWIG_fail;
11884 swig_obj[0] = args;
11885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11886 if (!SWIG_IsOK(res1)) {
11887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11888 }
11889 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 result = (arg1)->GetRect();
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11904 PyObject *resultobj = 0;
11905 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11906 bool result;
11907 void *argp1 = 0 ;
11908 int res1 = 0 ;
11909 PyObject *swig_obj[1] ;
11910
11911 if (!args) SWIG_fail;
11912 swig_obj[0] = args;
11913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11914 if (!SWIG_IsOK(res1)) {
11915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11916 }
11917 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (bool)(arg1)->HaveRects();
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 {
11925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11926 }
11927 return resultobj;
11928 fail:
11929 return NULL;
11930 }
11931
11932
11933 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11934 PyObject *resultobj = 0;
11935 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11936 void *argp1 = 0 ;
11937 int res1 = 0 ;
11938 PyObject *swig_obj[1] ;
11939
11940 if (!args) SWIG_fail;
11941 swig_obj[0] = args;
11942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11943 if (!SWIG_IsOK(res1)) {
11944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11945 }
11946 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 (arg1)->Reset();
11950 wxPyEndAllowThreads(__tstate);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 }
11953 resultobj = SWIG_Py_Void();
11954 return resultobj;
11955 fail:
11956 return NULL;
11957 }
11958
11959
11960 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11961 PyObject *resultobj = 0;
11962 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 PyObject *swig_obj[1] ;
11966
11967 if (!args) SWIG_fail;
11968 swig_obj[0] = args;
11969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11970 if (!SWIG_IsOK(res1)) {
11971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11972 }
11973 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 wxRegionIterator_Next(arg1);
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 resultobj = SWIG_Py_Void();
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11988 PyObject *resultobj = 0;
11989 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11990 bool result;
11991 void *argp1 = 0 ;
11992 int res1 = 0 ;
11993 PyObject *swig_obj[1] ;
11994
11995 if (!args) SWIG_fail;
11996 swig_obj[0] = args;
11997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12000 }
12001 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = (bool)wxRegionIterator___nonzero__(arg1);
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 {
12009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12010 }
12011 return resultobj;
12012 fail:
12013 return NULL;
12014 }
12015
12016
12017 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12018 PyObject *obj;
12019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12020 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12021 return SWIG_Py_Void();
12022 }
12023
12024 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12025 return SWIG_Python_InitShadowInstance(args);
12026 }
12027
12028 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *resultobj = 0;
12030 wxNativeFontInfo *result = 0 ;
12031
12032 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12040 return resultobj;
12041 fail:
12042 return NULL;
12043 }
12044
12045
12046 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12047 PyObject *resultobj = 0;
12048 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12049 void *argp1 = 0 ;
12050 int res1 = 0 ;
12051 PyObject *swig_obj[1] ;
12052
12053 if (!args) SWIG_fail;
12054 swig_obj[0] = args;
12055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12056 if (!SWIG_IsOK(res1)) {
12057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12058 }
12059 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 delete arg1;
12063
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = SWIG_Py_Void();
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12075 PyObject *resultobj = 0;
12076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12077 void *argp1 = 0 ;
12078 int res1 = 0 ;
12079 PyObject *swig_obj[1] ;
12080
12081 if (!args) SWIG_fail;
12082 swig_obj[0] = args;
12083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12084 if (!SWIG_IsOK(res1)) {
12085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12086 }
12087 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12088 {
12089 PyThreadState* __tstate = wxPyBeginAllowThreads();
12090 (arg1)->Init();
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 resultobj = SWIG_Py_Void();
12095 return resultobj;
12096 fail:
12097 return NULL;
12098 }
12099
12100
12101 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12102 PyObject *resultobj = 0;
12103 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12104 wxFont *arg2 = 0 ;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 void *argp2 = 0 ;
12108 int res2 = 0 ;
12109 PyObject * obj0 = 0 ;
12110 PyObject * obj1 = 0 ;
12111 char * kwnames[] = {
12112 (char *) "self",(char *) "font", NULL
12113 };
12114
12115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12117 if (!SWIG_IsOK(res1)) {
12118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12119 }
12120 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12122 if (!SWIG_IsOK(res2)) {
12123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12124 }
12125 if (!argp2) {
12126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12127 }
12128 arg2 = reinterpret_cast< wxFont * >(argp2);
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 (arg1)->InitFromFont((wxFont const &)*arg2);
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 resultobj = SWIG_Py_Void();
12136 return resultobj;
12137 fail:
12138 return NULL;
12139 }
12140
12141
12142 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12143 PyObject *resultobj = 0;
12144 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12145 int result;
12146 void *argp1 = 0 ;
12147 int res1 = 0 ;
12148 PyObject *swig_obj[1] ;
12149
12150 if (!args) SWIG_fail;
12151 swig_obj[0] = args;
12152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12153 if (!SWIG_IsOK(res1)) {
12154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12155 }
12156 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12160 wxPyEndAllowThreads(__tstate);
12161 if (PyErr_Occurred()) SWIG_fail;
12162 }
12163 resultobj = SWIG_From_int(static_cast< int >(result));
12164 return resultobj;
12165 fail:
12166 return NULL;
12167 }
12168
12169
12170 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12173 wxFontStyle result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject *swig_obj[1] ;
12177
12178 if (!args) SWIG_fail;
12179 swig_obj[0] = args;
12180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12181 if (!SWIG_IsOK(res1)) {
12182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12183 }
12184 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 resultobj = SWIG_From_int(static_cast< int >(result));
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12201 wxFontWeight result;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12211 }
12212 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_From_int(static_cast< int >(result));
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12229 bool result;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 PyObject *swig_obj[1] ;
12233
12234 if (!args) SWIG_fail;
12235 swig_obj[0] = args;
12236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12237 if (!SWIG_IsOK(res1)) {
12238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12239 }
12240 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 {
12248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12249 }
12250 return resultobj;
12251 fail:
12252 return NULL;
12253 }
12254
12255
12256 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12257 PyObject *resultobj = 0;
12258 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12259 wxString result;
12260 void *argp1 = 0 ;
12261 int res1 = 0 ;
12262 PyObject *swig_obj[1] ;
12263
12264 if (!args) SWIG_fail;
12265 swig_obj[0] = args;
12266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12267 if (!SWIG_IsOK(res1)) {
12268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12269 }
12270 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 {
12278 #if wxUSE_UNICODE
12279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12280 #else
12281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12282 #endif
12283 }
12284 return resultobj;
12285 fail:
12286 return NULL;
12287 }
12288
12289
12290 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12291 PyObject *resultobj = 0;
12292 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12293 wxFontFamily result;
12294 void *argp1 = 0 ;
12295 int res1 = 0 ;
12296 PyObject *swig_obj[1] ;
12297
12298 if (!args) SWIG_fail;
12299 swig_obj[0] = args;
12300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12301 if (!SWIG_IsOK(res1)) {
12302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12303 }
12304 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12308 wxPyEndAllowThreads(__tstate);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 }
12311 resultobj = SWIG_From_int(static_cast< int >(result));
12312 return resultobj;
12313 fail:
12314 return NULL;
12315 }
12316
12317
12318 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12319 PyObject *resultobj = 0;
12320 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12321 wxFontEncoding result;
12322 void *argp1 = 0 ;
12323 int res1 = 0 ;
12324 PyObject *swig_obj[1] ;
12325
12326 if (!args) SWIG_fail;
12327 swig_obj[0] = args;
12328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12329 if (!SWIG_IsOK(res1)) {
12330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12331 }
12332 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 resultobj = SWIG_From_int(static_cast< int >(result));
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj = 0;
12348 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12349 int arg2 ;
12350 void *argp1 = 0 ;
12351 int res1 = 0 ;
12352 int val2 ;
12353 int ecode2 = 0 ;
12354 PyObject * obj0 = 0 ;
12355 PyObject * obj1 = 0 ;
12356 char * kwnames[] = {
12357 (char *) "self",(char *) "pointsize", NULL
12358 };
12359
12360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12364 }
12365 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12366 ecode2 = SWIG_AsVal_int(obj1, &val2);
12367 if (!SWIG_IsOK(ecode2)) {
12368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12369 }
12370 arg2 = static_cast< int >(val2);
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 (arg1)->SetPointSize(arg2);
12374 wxPyEndAllowThreads(__tstate);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 resultobj = SWIG_Py_Void();
12378 return resultobj;
12379 fail:
12380 return NULL;
12381 }
12382
12383
12384 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj = 0;
12386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12387 wxFontStyle arg2 ;
12388 void *argp1 = 0 ;
12389 int res1 = 0 ;
12390 int val2 ;
12391 int ecode2 = 0 ;
12392 PyObject * obj0 = 0 ;
12393 PyObject * obj1 = 0 ;
12394 char * kwnames[] = {
12395 (char *) "self",(char *) "style", NULL
12396 };
12397
12398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12402 }
12403 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12404 ecode2 = SWIG_AsVal_int(obj1, &val2);
12405 if (!SWIG_IsOK(ecode2)) {
12406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12407 }
12408 arg2 = static_cast< wxFontStyle >(val2);
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 (arg1)->SetStyle(arg2);
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 resultobj = SWIG_Py_Void();
12416 return resultobj;
12417 fail:
12418 return NULL;
12419 }
12420
12421
12422 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12423 PyObject *resultobj = 0;
12424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12425 wxFontWeight arg2 ;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 int val2 ;
12429 int ecode2 = 0 ;
12430 PyObject * obj0 = 0 ;
12431 PyObject * obj1 = 0 ;
12432 char * kwnames[] = {
12433 (char *) "self",(char *) "weight", NULL
12434 };
12435
12436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12438 if (!SWIG_IsOK(res1)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12440 }
12441 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12442 ecode2 = SWIG_AsVal_int(obj1, &val2);
12443 if (!SWIG_IsOK(ecode2)) {
12444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12445 }
12446 arg2 = static_cast< wxFontWeight >(val2);
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 (arg1)->SetWeight(arg2);
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 resultobj = SWIG_Py_Void();
12454 return resultobj;
12455 fail:
12456 return NULL;
12457 }
12458
12459
12460 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj = 0;
12462 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12463 bool arg2 ;
12464 void *argp1 = 0 ;
12465 int res1 = 0 ;
12466 bool val2 ;
12467 int ecode2 = 0 ;
12468 PyObject * obj0 = 0 ;
12469 PyObject * obj1 = 0 ;
12470 char * kwnames[] = {
12471 (char *) "self",(char *) "underlined", NULL
12472 };
12473
12474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12476 if (!SWIG_IsOK(res1)) {
12477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12478 }
12479 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12480 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12481 if (!SWIG_IsOK(ecode2)) {
12482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12483 }
12484 arg2 = static_cast< bool >(val2);
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 (arg1)->SetUnderlined(arg2);
12488 wxPyEndAllowThreads(__tstate);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 }
12491 resultobj = SWIG_Py_Void();
12492 return resultobj;
12493 fail:
12494 return NULL;
12495 }
12496
12497
12498 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12499 PyObject *resultobj = 0;
12500 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12501 wxString arg2 ;
12502 bool result;
12503 void *argp1 = 0 ;
12504 int res1 = 0 ;
12505 PyObject * obj0 = 0 ;
12506 PyObject * obj1 = 0 ;
12507 char * kwnames[] = {
12508 (char *) "self",(char *) "facename", NULL
12509 };
12510
12511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12513 if (!SWIG_IsOK(res1)) {
12514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12515 }
12516 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12517 {
12518 wxString* sptr = wxString_in_helper(obj1);
12519 if (sptr == NULL) SWIG_fail;
12520 arg2 = *sptr;
12521 delete sptr;
12522 }
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 result = (bool)(arg1)->SetFaceName(arg2);
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 {
12530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12531 }
12532 return resultobj;
12533 fail:
12534 return NULL;
12535 }
12536
12537
12538 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12539 PyObject *resultobj = 0;
12540 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12541 wxFontFamily arg2 ;
12542 void *argp1 = 0 ;
12543 int res1 = 0 ;
12544 int val2 ;
12545 int ecode2 = 0 ;
12546 PyObject * obj0 = 0 ;
12547 PyObject * obj1 = 0 ;
12548 char * kwnames[] = {
12549 (char *) "self",(char *) "family", NULL
12550 };
12551
12552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12554 if (!SWIG_IsOK(res1)) {
12555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12556 }
12557 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12558 ecode2 = SWIG_AsVal_int(obj1, &val2);
12559 if (!SWIG_IsOK(ecode2)) {
12560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12561 }
12562 arg2 = static_cast< wxFontFamily >(val2);
12563 {
12564 PyThreadState* __tstate = wxPyBeginAllowThreads();
12565 (arg1)->SetFamily(arg2);
12566 wxPyEndAllowThreads(__tstate);
12567 if (PyErr_Occurred()) SWIG_fail;
12568 }
12569 resultobj = SWIG_Py_Void();
12570 return resultobj;
12571 fail:
12572 return NULL;
12573 }
12574
12575
12576 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12577 PyObject *resultobj = 0;
12578 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12579 wxFontEncoding arg2 ;
12580 void *argp1 = 0 ;
12581 int res1 = 0 ;
12582 int val2 ;
12583 int ecode2 = 0 ;
12584 PyObject * obj0 = 0 ;
12585 PyObject * obj1 = 0 ;
12586 char * kwnames[] = {
12587 (char *) "self",(char *) "encoding", NULL
12588 };
12589
12590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12592 if (!SWIG_IsOK(res1)) {
12593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12594 }
12595 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12596 ecode2 = SWIG_AsVal_int(obj1, &val2);
12597 if (!SWIG_IsOK(ecode2)) {
12598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12599 }
12600 arg2 = static_cast< wxFontEncoding >(val2);
12601 {
12602 PyThreadState* __tstate = wxPyBeginAllowThreads();
12603 (arg1)->SetEncoding(arg2);
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 resultobj = SWIG_Py_Void();
12608 return resultobj;
12609 fail:
12610 return NULL;
12611 }
12612
12613
12614 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12615 PyObject *resultobj = 0;
12616 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12617 wxString *arg2 = 0 ;
12618 bool result;
12619 void *argp1 = 0 ;
12620 int res1 = 0 ;
12621 bool temp2 = false ;
12622 PyObject * obj0 = 0 ;
12623 PyObject * obj1 = 0 ;
12624 char * kwnames[] = {
12625 (char *) "self",(char *) "s", NULL
12626 };
12627
12628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12630 if (!SWIG_IsOK(res1)) {
12631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12632 }
12633 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12634 {
12635 arg2 = wxString_in_helper(obj1);
12636 if (arg2 == NULL) SWIG_fail;
12637 temp2 = true;
12638 }
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 {
12646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12647 }
12648 {
12649 if (temp2)
12650 delete arg2;
12651 }
12652 return resultobj;
12653 fail:
12654 {
12655 if (temp2)
12656 delete arg2;
12657 }
12658 return NULL;
12659 }
12660
12661
12662 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12663 PyObject *resultobj = 0;
12664 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12665 wxString result;
12666 void *argp1 = 0 ;
12667 int res1 = 0 ;
12668 PyObject *swig_obj[1] ;
12669
12670 if (!args) SWIG_fail;
12671 swig_obj[0] = args;
12672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12673 if (!SWIG_IsOK(res1)) {
12674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12675 }
12676 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 result = ((wxNativeFontInfo const *)arg1)->ToString();
12680 wxPyEndAllowThreads(__tstate);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 {
12684 #if wxUSE_UNICODE
12685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12686 #else
12687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12688 #endif
12689 }
12690 return resultobj;
12691 fail:
12692 return NULL;
12693 }
12694
12695
12696 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12697 PyObject *resultobj = 0;
12698 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12699 wxString result;
12700 void *argp1 = 0 ;
12701 int res1 = 0 ;
12702 PyObject *swig_obj[1] ;
12703
12704 if (!args) SWIG_fail;
12705 swig_obj[0] = args;
12706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12707 if (!SWIG_IsOK(res1)) {
12708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12709 }
12710 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12711 {
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 result = wxNativeFontInfo___str__(arg1);
12714 wxPyEndAllowThreads(__tstate);
12715 if (PyErr_Occurred()) SWIG_fail;
12716 }
12717 {
12718 #if wxUSE_UNICODE
12719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12720 #else
12721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12722 #endif
12723 }
12724 return resultobj;
12725 fail:
12726 return NULL;
12727 }
12728
12729
12730 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12731 PyObject *resultobj = 0;
12732 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12733 wxString *arg2 = 0 ;
12734 bool result;
12735 void *argp1 = 0 ;
12736 int res1 = 0 ;
12737 bool temp2 = false ;
12738 PyObject * obj0 = 0 ;
12739 PyObject * obj1 = 0 ;
12740 char * kwnames[] = {
12741 (char *) "self",(char *) "s", NULL
12742 };
12743
12744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12746 if (!SWIG_IsOK(res1)) {
12747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12748 }
12749 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12750 {
12751 arg2 = wxString_in_helper(obj1);
12752 if (arg2 == NULL) SWIG_fail;
12753 temp2 = true;
12754 }
12755 {
12756 PyThreadState* __tstate = wxPyBeginAllowThreads();
12757 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 {
12762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12763 }
12764 {
12765 if (temp2)
12766 delete arg2;
12767 }
12768 return resultobj;
12769 fail:
12770 {
12771 if (temp2)
12772 delete arg2;
12773 }
12774 return NULL;
12775 }
12776
12777
12778 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12779 PyObject *resultobj = 0;
12780 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12781 wxString result;
12782 void *argp1 = 0 ;
12783 int res1 = 0 ;
12784 PyObject *swig_obj[1] ;
12785
12786 if (!args) SWIG_fail;
12787 swig_obj[0] = args;
12788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12789 if (!SWIG_IsOK(res1)) {
12790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12791 }
12792 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 {
12800 #if wxUSE_UNICODE
12801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12802 #else
12803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12804 #endif
12805 }
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12813 PyObject *obj;
12814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12815 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12816 return SWIG_Py_Void();
12817 }
12818
12819 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12820 return SWIG_Python_InitShadowInstance(args);
12821 }
12822
12823 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12824 PyObject *resultobj = 0;
12825 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12826 wxString *arg2 = (wxString *) 0 ;
12827 void *argp1 = 0 ;
12828 int res1 = 0 ;
12829 bool temp2 = false ;
12830 PyObject *swig_obj[2] ;
12831
12832 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12834 if (!SWIG_IsOK(res1)) {
12835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12836 }
12837 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12838 {
12839 arg2 = wxString_in_helper(swig_obj[1]);
12840 if (arg2 == NULL) SWIG_fail;
12841 temp2 = true;
12842 }
12843 if (arg1) (arg1)->facename = *arg2;
12844
12845 resultobj = SWIG_Py_Void();
12846 {
12847 if (temp2)
12848 delete arg2;
12849 }
12850 return resultobj;
12851 fail:
12852 {
12853 if (temp2)
12854 delete arg2;
12855 }
12856 return NULL;
12857 }
12858
12859
12860 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12861 PyObject *resultobj = 0;
12862 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12863 wxString *result = 0 ;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 PyObject *swig_obj[1] ;
12867
12868 if (!args) SWIG_fail;
12869 swig_obj[0] = args;
12870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12871 if (!SWIG_IsOK(res1)) {
12872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12873 }
12874 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12875 result = (wxString *)& ((arg1)->facename);
12876 {
12877 #if wxUSE_UNICODE
12878 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12879 #else
12880 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12881 #endif
12882 }
12883 return resultobj;
12884 fail:
12885 return NULL;
12886 }
12887
12888
12889 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12890 PyObject *resultobj = 0;
12891 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12892 wxFontEncoding arg2 ;
12893 void *argp1 = 0 ;
12894 int res1 = 0 ;
12895 int val2 ;
12896 int ecode2 = 0 ;
12897 PyObject *swig_obj[2] ;
12898
12899 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12901 if (!SWIG_IsOK(res1)) {
12902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12903 }
12904 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12905 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12906 if (!SWIG_IsOK(ecode2)) {
12907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12908 }
12909 arg2 = static_cast< wxFontEncoding >(val2);
12910 if (arg1) (arg1)->encoding = arg2;
12911
12912 resultobj = SWIG_Py_Void();
12913 return resultobj;
12914 fail:
12915 return NULL;
12916 }
12917
12918
12919 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12920 PyObject *resultobj = 0;
12921 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12922 wxFontEncoding result;
12923 void *argp1 = 0 ;
12924 int res1 = 0 ;
12925 PyObject *swig_obj[1] ;
12926
12927 if (!args) SWIG_fail;
12928 swig_obj[0] = args;
12929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12930 if (!SWIG_IsOK(res1)) {
12931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12932 }
12933 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12934 result = (wxFontEncoding) ((arg1)->encoding);
12935 resultobj = SWIG_From_int(static_cast< int >(result));
12936 return resultobj;
12937 fail:
12938 return NULL;
12939 }
12940
12941
12942 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12943 PyObject *resultobj = 0;
12944 wxNativeEncodingInfo *result = 0 ;
12945
12946 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12954 return resultobj;
12955 fail:
12956 return NULL;
12957 }
12958
12959
12960 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12961 PyObject *resultobj = 0;
12962 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12963 void *argp1 = 0 ;
12964 int res1 = 0 ;
12965 PyObject *swig_obj[1] ;
12966
12967 if (!args) SWIG_fail;
12968 swig_obj[0] = args;
12969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12970 if (!SWIG_IsOK(res1)) {
12971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12972 }
12973 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 delete arg1;
12977
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 resultobj = SWIG_Py_Void();
12982 return resultobj;
12983 fail:
12984 return NULL;
12985 }
12986
12987
12988 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12989 PyObject *resultobj = 0;
12990 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12991 wxString *arg2 = 0 ;
12992 bool result;
12993 void *argp1 = 0 ;
12994 int res1 = 0 ;
12995 bool temp2 = false ;
12996 PyObject * obj0 = 0 ;
12997 PyObject * obj1 = 0 ;
12998 char * kwnames[] = {
12999 (char *) "self",(char *) "s", NULL
13000 };
13001
13002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13006 }
13007 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13008 {
13009 arg2 = wxString_in_helper(obj1);
13010 if (arg2 == NULL) SWIG_fail;
13011 temp2 = true;
13012 }
13013 {
13014 PyThreadState* __tstate = wxPyBeginAllowThreads();
13015 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 {
13020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13021 }
13022 {
13023 if (temp2)
13024 delete arg2;
13025 }
13026 return resultobj;
13027 fail:
13028 {
13029 if (temp2)
13030 delete arg2;
13031 }
13032 return NULL;
13033 }
13034
13035
13036 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13037 PyObject *resultobj = 0;
13038 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13039 wxString result;
13040 void *argp1 = 0 ;
13041 int res1 = 0 ;
13042 PyObject *swig_obj[1] ;
13043
13044 if (!args) SWIG_fail;
13045 swig_obj[0] = args;
13046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13047 if (!SWIG_IsOK(res1)) {
13048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13049 }
13050 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 {
13058 #if wxUSE_UNICODE
13059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13060 #else
13061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13062 #endif
13063 }
13064 return resultobj;
13065 fail:
13066 return NULL;
13067 }
13068
13069
13070 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13071 PyObject *obj;
13072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13073 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13074 return SWIG_Py_Void();
13075 }
13076
13077 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13078 return SWIG_Python_InitShadowInstance(args);
13079 }
13080
13081 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13082 PyObject *resultobj = 0;
13083 wxFontEncoding arg1 ;
13084 wxNativeEncodingInfo *result = 0 ;
13085 int val1 ;
13086 int ecode1 = 0 ;
13087 PyObject * obj0 = 0 ;
13088 char * kwnames[] = {
13089 (char *) "encoding", NULL
13090 };
13091
13092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13093 ecode1 = SWIG_AsVal_int(obj0, &val1);
13094 if (!SWIG_IsOK(ecode1)) {
13095 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13096 }
13097 arg1 = static_cast< wxFontEncoding >(val1);
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj = 0;
13113 wxNativeEncodingInfo *arg1 = 0 ;
13114 bool result;
13115 void *argp1 = 0 ;
13116 int res1 = 0 ;
13117 PyObject * obj0 = 0 ;
13118 char * kwnames[] = {
13119 (char *) "info", NULL
13120 };
13121
13122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13123 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13124 if (!SWIG_IsOK(res1)) {
13125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13126 }
13127 if (!argp1) {
13128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13129 }
13130 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13131 {
13132 PyThreadState* __tstate = wxPyBeginAllowThreads();
13133 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 {
13138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13139 }
13140 return resultobj;
13141 fail:
13142 return NULL;
13143 }
13144
13145
13146 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13147 PyObject *resultobj = 0;
13148 wxFontMapper *result = 0 ;
13149
13150 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 result = (wxFontMapper *)new wxFontMapper();
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
13157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13158 return resultobj;
13159 fail:
13160 return NULL;
13161 }
13162
13163
13164 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13165 PyObject *resultobj = 0;
13166 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13167 void *argp1 = 0 ;
13168 int res1 = 0 ;
13169 PyObject *swig_obj[1] ;
13170
13171 if (!args) SWIG_fail;
13172 swig_obj[0] = args;
13173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13174 if (!SWIG_IsOK(res1)) {
13175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13176 }
13177 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 delete arg1;
13181
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = SWIG_Py_Void();
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13193 PyObject *resultobj = 0;
13194 wxFontMapper *result = 0 ;
13195
13196 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 result = (wxFontMapper *)wxFontMapper::Get();
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13204 return resultobj;
13205 fail:
13206 return NULL;
13207 }
13208
13209
13210 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj = 0;
13212 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13213 wxFontMapper *result = 0 ;
13214 void *argp1 = 0 ;
13215 int res1 = 0 ;
13216 PyObject * obj0 = 0 ;
13217 char * kwnames[] = {
13218 (char *) "mapper", NULL
13219 };
13220
13221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13223 if (!SWIG_IsOK(res1)) {
13224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13225 }
13226 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13234 return resultobj;
13235 fail:
13236 return NULL;
13237 }
13238
13239
13240 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj = 0;
13242 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13243 wxString *arg2 = 0 ;
13244 bool arg3 = (bool) true ;
13245 wxFontEncoding result;
13246 void *argp1 = 0 ;
13247 int res1 = 0 ;
13248 bool temp2 = false ;
13249 bool val3 ;
13250 int ecode3 = 0 ;
13251 PyObject * obj0 = 0 ;
13252 PyObject * obj1 = 0 ;
13253 PyObject * obj2 = 0 ;
13254 char * kwnames[] = {
13255 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13256 };
13257
13258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13260 if (!SWIG_IsOK(res1)) {
13261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13262 }
13263 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13264 {
13265 arg2 = wxString_in_helper(obj1);
13266 if (arg2 == NULL) SWIG_fail;
13267 temp2 = true;
13268 }
13269 if (obj2) {
13270 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13271 if (!SWIG_IsOK(ecode3)) {
13272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13273 }
13274 arg3 = static_cast< bool >(val3);
13275 }
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 resultobj = SWIG_From_int(static_cast< int >(result));
13283 {
13284 if (temp2)
13285 delete arg2;
13286 }
13287 return resultobj;
13288 fail:
13289 {
13290 if (temp2)
13291 delete arg2;
13292 }
13293 return NULL;
13294 }
13295
13296
13297 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13298 PyObject *resultobj = 0;
13299 size_t result;
13300
13301 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13302 {
13303 PyThreadState* __tstate = wxPyBeginAllowThreads();
13304 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13305 wxPyEndAllowThreads(__tstate);
13306 if (PyErr_Occurred()) SWIG_fail;
13307 }
13308 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13309 return resultobj;
13310 fail:
13311 return NULL;
13312 }
13313
13314
13315 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13316 PyObject *resultobj = 0;
13317 size_t arg1 ;
13318 wxFontEncoding result;
13319 size_t val1 ;
13320 int ecode1 = 0 ;
13321 PyObject * obj0 = 0 ;
13322 char * kwnames[] = {
13323 (char *) "n", NULL
13324 };
13325
13326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13327 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13328 if (!SWIG_IsOK(ecode1)) {
13329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13330 }
13331 arg1 = static_cast< size_t >(val1);
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 resultobj = SWIG_From_int(static_cast< int >(result));
13339 return resultobj;
13340 fail:
13341 return NULL;
13342 }
13343
13344
13345 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj = 0;
13347 wxFontEncoding arg1 ;
13348 wxString result;
13349 int val1 ;
13350 int ecode1 = 0 ;
13351 PyObject * obj0 = 0 ;
13352 char * kwnames[] = {
13353 (char *) "encoding", NULL
13354 };
13355
13356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13357 ecode1 = SWIG_AsVal_int(obj0, &val1);
13358 if (!SWIG_IsOK(ecode1)) {
13359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13360 }
13361 arg1 = static_cast< wxFontEncoding >(val1);
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 result = wxFontMapper::GetEncodingName(arg1);
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 {
13369 #if wxUSE_UNICODE
13370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13371 #else
13372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13373 #endif
13374 }
13375 return resultobj;
13376 fail:
13377 return NULL;
13378 }
13379
13380
13381 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13382 PyObject *resultobj = 0;
13383 wxFontEncoding arg1 ;
13384 wxString result;
13385 int val1 ;
13386 int ecode1 = 0 ;
13387 PyObject * obj0 = 0 ;
13388 char * kwnames[] = {
13389 (char *) "encoding", NULL
13390 };
13391
13392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13393 ecode1 = SWIG_AsVal_int(obj0, &val1);
13394 if (!SWIG_IsOK(ecode1)) {
13395 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13396 }
13397 arg1 = static_cast< wxFontEncoding >(val1);
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 result = wxFontMapper::GetEncodingDescription(arg1);
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 {
13405 #if wxUSE_UNICODE
13406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13407 #else
13408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13409 #endif
13410 }
13411 return resultobj;
13412 fail:
13413 return NULL;
13414 }
13415
13416
13417 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13418 PyObject *resultobj = 0;
13419 wxString *arg1 = 0 ;
13420 wxFontEncoding result;
13421 bool temp1 = false ;
13422 PyObject * obj0 = 0 ;
13423 char * kwnames[] = {
13424 (char *) "name", NULL
13425 };
13426
13427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13428 {
13429 arg1 = wxString_in_helper(obj0);
13430 if (arg1 == NULL) SWIG_fail;
13431 temp1 = true;
13432 }
13433 {
13434 PyThreadState* __tstate = wxPyBeginAllowThreads();
13435 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13436 wxPyEndAllowThreads(__tstate);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 }
13439 resultobj = SWIG_From_int(static_cast< int >(result));
13440 {
13441 if (temp1)
13442 delete arg1;
13443 }
13444 return resultobj;
13445 fail:
13446 {
13447 if (temp1)
13448 delete arg1;
13449 }
13450 return NULL;
13451 }
13452
13453
13454 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13455 PyObject *resultobj = 0;
13456 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13457 wxString *arg2 = 0 ;
13458 void *argp1 = 0 ;
13459 int res1 = 0 ;
13460 bool temp2 = false ;
13461 PyObject * obj0 = 0 ;
13462 PyObject * obj1 = 0 ;
13463 char * kwnames[] = {
13464 (char *) "self",(char *) "prefix", NULL
13465 };
13466
13467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13469 if (!SWIG_IsOK(res1)) {
13470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13471 }
13472 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13473 {
13474 arg2 = wxString_in_helper(obj1);
13475 if (arg2 == NULL) SWIG_fail;
13476 temp2 = true;
13477 }
13478 {
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 (arg1)->SetConfigPath((wxString const &)*arg2);
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 resultobj = SWIG_Py_Void();
13485 {
13486 if (temp2)
13487 delete arg2;
13488 }
13489 return resultobj;
13490 fail:
13491 {
13492 if (temp2)
13493 delete arg2;
13494 }
13495 return NULL;
13496 }
13497
13498
13499 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13500 PyObject *resultobj = 0;
13501 wxString result;
13502
13503 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13504 {
13505 PyThreadState* __tstate = wxPyBeginAllowThreads();
13506 result = wxFontMapper::GetDefaultConfigPath();
13507 wxPyEndAllowThreads(__tstate);
13508 if (PyErr_Occurred()) SWIG_fail;
13509 }
13510 {
13511 #if wxUSE_UNICODE
13512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13513 #else
13514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13515 #endif
13516 }
13517 return resultobj;
13518 fail:
13519 return NULL;
13520 }
13521
13522
13523 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj = 0;
13525 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13526 wxFontEncoding arg2 ;
13527 wxString const &arg3_defvalue = wxPyEmptyString ;
13528 wxString *arg3 = (wxString *) &arg3_defvalue ;
13529 bool arg4 = (bool) true ;
13530 PyObject *result = 0 ;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 int val2 ;
13534 int ecode2 = 0 ;
13535 bool temp3 = false ;
13536 bool val4 ;
13537 int ecode4 = 0 ;
13538 PyObject * obj0 = 0 ;
13539 PyObject * obj1 = 0 ;
13540 PyObject * obj2 = 0 ;
13541 PyObject * obj3 = 0 ;
13542 char * kwnames[] = {
13543 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13544 };
13545
13546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13548 if (!SWIG_IsOK(res1)) {
13549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13550 }
13551 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13552 ecode2 = SWIG_AsVal_int(obj1, &val2);
13553 if (!SWIG_IsOK(ecode2)) {
13554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13555 }
13556 arg2 = static_cast< wxFontEncoding >(val2);
13557 if (obj2) {
13558 {
13559 arg3 = wxString_in_helper(obj2);
13560 if (arg3 == NULL) SWIG_fail;
13561 temp3 = true;
13562 }
13563 }
13564 if (obj3) {
13565 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13566 if (!SWIG_IsOK(ecode4)) {
13567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13568 }
13569 arg4 = static_cast< bool >(val4);
13570 }
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = result;
13578 {
13579 if (temp3)
13580 delete arg3;
13581 }
13582 return resultobj;
13583 fail:
13584 {
13585 if (temp3)
13586 delete arg3;
13587 }
13588 return NULL;
13589 }
13590
13591
13592 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj = 0;
13594 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13595 wxFontEncoding arg2 ;
13596 wxString const &arg3_defvalue = wxPyEmptyString ;
13597 wxString *arg3 = (wxString *) &arg3_defvalue ;
13598 bool result;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 int val2 ;
13602 int ecode2 = 0 ;
13603 bool temp3 = false ;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 PyObject * obj2 = 0 ;
13607 char * kwnames[] = {
13608 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13609 };
13610
13611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13613 if (!SWIG_IsOK(res1)) {
13614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13615 }
13616 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13617 ecode2 = SWIG_AsVal_int(obj1, &val2);
13618 if (!SWIG_IsOK(ecode2)) {
13619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13620 }
13621 arg2 = static_cast< wxFontEncoding >(val2);
13622 if (obj2) {
13623 {
13624 arg3 = wxString_in_helper(obj2);
13625 if (arg3 == NULL) SWIG_fail;
13626 temp3 = true;
13627 }
13628 }
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 {
13636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13637 }
13638 {
13639 if (temp3)
13640 delete arg3;
13641 }
13642 return resultobj;
13643 fail:
13644 {
13645 if (temp3)
13646 delete arg3;
13647 }
13648 return NULL;
13649 }
13650
13651
13652 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj = 0;
13654 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13655 wxWindow *arg2 = (wxWindow *) 0 ;
13656 void *argp1 = 0 ;
13657 int res1 = 0 ;
13658 void *argp2 = 0 ;
13659 int res2 = 0 ;
13660 PyObject * obj0 = 0 ;
13661 PyObject * obj1 = 0 ;
13662 char * kwnames[] = {
13663 (char *) "self",(char *) "parent", NULL
13664 };
13665
13666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13668 if (!SWIG_IsOK(res1)) {
13669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13670 }
13671 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13673 if (!SWIG_IsOK(res2)) {
13674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13675 }
13676 arg2 = reinterpret_cast< wxWindow * >(argp2);
13677 {
13678 PyThreadState* __tstate = wxPyBeginAllowThreads();
13679 (arg1)->SetDialogParent(arg2);
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 resultobj = SWIG_Py_Void();
13684 return resultobj;
13685 fail:
13686 return NULL;
13687 }
13688
13689
13690 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13691 PyObject *resultobj = 0;
13692 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13693 wxString *arg2 = 0 ;
13694 void *argp1 = 0 ;
13695 int res1 = 0 ;
13696 bool temp2 = false ;
13697 PyObject * obj0 = 0 ;
13698 PyObject * obj1 = 0 ;
13699 char * kwnames[] = {
13700 (char *) "self",(char *) "title", NULL
13701 };
13702
13703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13705 if (!SWIG_IsOK(res1)) {
13706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13707 }
13708 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13709 {
13710 arg2 = wxString_in_helper(obj1);
13711 if (arg2 == NULL) SWIG_fail;
13712 temp2 = true;
13713 }
13714 {
13715 PyThreadState* __tstate = wxPyBeginAllowThreads();
13716 (arg1)->SetDialogTitle((wxString const &)*arg2);
13717 wxPyEndAllowThreads(__tstate);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
13720 resultobj = SWIG_Py_Void();
13721 {
13722 if (temp2)
13723 delete arg2;
13724 }
13725 return resultobj;
13726 fail:
13727 {
13728 if (temp2)
13729 delete arg2;
13730 }
13731 return NULL;
13732 }
13733
13734
13735 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13736 PyObject *obj;
13737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13738 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13739 return SWIG_Py_Void();
13740 }
13741
13742 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13743 return SWIG_Python_InitShadowInstance(args);
13744 }
13745
13746 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj = 0;
13748 int arg1 ;
13749 int arg2 ;
13750 int arg3 ;
13751 int arg4 ;
13752 bool arg5 = (bool) false ;
13753 wxString const &arg6_defvalue = wxPyEmptyString ;
13754 wxString *arg6 = (wxString *) &arg6_defvalue ;
13755 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13756 wxFont *result = 0 ;
13757 int val1 ;
13758 int ecode1 = 0 ;
13759 int val2 ;
13760 int ecode2 = 0 ;
13761 int val3 ;
13762 int ecode3 = 0 ;
13763 int val4 ;
13764 int ecode4 = 0 ;
13765 bool val5 ;
13766 int ecode5 = 0 ;
13767 bool temp6 = false ;
13768 int val7 ;
13769 int ecode7 = 0 ;
13770 PyObject * obj0 = 0 ;
13771 PyObject * obj1 = 0 ;
13772 PyObject * obj2 = 0 ;
13773 PyObject * obj3 = 0 ;
13774 PyObject * obj4 = 0 ;
13775 PyObject * obj5 = 0 ;
13776 PyObject * obj6 = 0 ;
13777 char * kwnames[] = {
13778 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13779 };
13780
13781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13782 ecode1 = SWIG_AsVal_int(obj0, &val1);
13783 if (!SWIG_IsOK(ecode1)) {
13784 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13785 }
13786 arg1 = static_cast< int >(val1);
13787 ecode2 = SWIG_AsVal_int(obj1, &val2);
13788 if (!SWIG_IsOK(ecode2)) {
13789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13790 }
13791 arg2 = static_cast< int >(val2);
13792 ecode3 = SWIG_AsVal_int(obj2, &val3);
13793 if (!SWIG_IsOK(ecode3)) {
13794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13795 }
13796 arg3 = static_cast< int >(val3);
13797 ecode4 = SWIG_AsVal_int(obj3, &val4);
13798 if (!SWIG_IsOK(ecode4)) {
13799 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13800 }
13801 arg4 = static_cast< int >(val4);
13802 if (obj4) {
13803 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13804 if (!SWIG_IsOK(ecode5)) {
13805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13806 }
13807 arg5 = static_cast< bool >(val5);
13808 }
13809 if (obj5) {
13810 {
13811 arg6 = wxString_in_helper(obj5);
13812 if (arg6 == NULL) SWIG_fail;
13813 temp6 = true;
13814 }
13815 }
13816 if (obj6) {
13817 ecode7 = SWIG_AsVal_int(obj6, &val7);
13818 if (!SWIG_IsOK(ecode7)) {
13819 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13820 }
13821 arg7 = static_cast< wxFontEncoding >(val7);
13822 }
13823 {
13824 if (!wxPyCheckForApp()) SWIG_fail;
13825 PyThreadState* __tstate = wxPyBeginAllowThreads();
13826 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13831 {
13832 if (temp6)
13833 delete arg6;
13834 }
13835 return resultobj;
13836 fail:
13837 {
13838 if (temp6)
13839 delete arg6;
13840 }
13841 return NULL;
13842 }
13843
13844
13845 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13846 PyObject *resultobj = 0;
13847 wxFont *arg1 = (wxFont *) 0 ;
13848 void *argp1 = 0 ;
13849 int res1 = 0 ;
13850 PyObject *swig_obj[1] ;
13851
13852 if (!args) SWIG_fail;
13853 swig_obj[0] = args;
13854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13855 if (!SWIG_IsOK(res1)) {
13856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13857 }
13858 arg1 = reinterpret_cast< wxFont * >(argp1);
13859 {
13860 PyThreadState* __tstate = wxPyBeginAllowThreads();
13861 delete arg1;
13862
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 resultobj = SWIG_Py_Void();
13867 return resultobj;
13868 fail:
13869 return NULL;
13870 }
13871
13872
13873 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13874 PyObject *resultobj = 0;
13875 wxNativeFontInfo *arg1 = 0 ;
13876 wxFont *result = 0 ;
13877 void *argp1 = 0 ;
13878 int res1 = 0 ;
13879 PyObject * obj0 = 0 ;
13880 char * kwnames[] = {
13881 (char *) "info", NULL
13882 };
13883
13884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13885 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13886 if (!SWIG_IsOK(res1)) {
13887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13888 }
13889 if (!argp1) {
13890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13891 }
13892 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13893 {
13894 if (!wxPyCheckForApp()) SWIG_fail;
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13901 return resultobj;
13902 fail:
13903 return NULL;
13904 }
13905
13906
13907 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13908 PyObject *resultobj = 0;
13909 wxString *arg1 = 0 ;
13910 wxFont *result = 0 ;
13911 bool temp1 = false ;
13912 PyObject * obj0 = 0 ;
13913 char * kwnames[] = {
13914 (char *) "info", NULL
13915 };
13916
13917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13918 {
13919 arg1 = wxString_in_helper(obj0);
13920 if (arg1 == NULL) SWIG_fail;
13921 temp1 = true;
13922 }
13923 {
13924 if (!wxPyCheckForApp()) SWIG_fail;
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13931 {
13932 if (temp1)
13933 delete arg1;
13934 }
13935 return resultobj;
13936 fail:
13937 {
13938 if (temp1)
13939 delete arg1;
13940 }
13941 return NULL;
13942 }
13943
13944
13945 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13946 PyObject *resultobj = 0;
13947 int arg1 ;
13948 wxFontFamily arg2 ;
13949 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13950 wxString const &arg4_defvalue = wxPyEmptyString ;
13951 wxString *arg4 = (wxString *) &arg4_defvalue ;
13952 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13953 wxFont *result = 0 ;
13954 int val1 ;
13955 int ecode1 = 0 ;
13956 int val2 ;
13957 int ecode2 = 0 ;
13958 int val3 ;
13959 int ecode3 = 0 ;
13960 bool temp4 = false ;
13961 int val5 ;
13962 int ecode5 = 0 ;
13963 PyObject * obj0 = 0 ;
13964 PyObject * obj1 = 0 ;
13965 PyObject * obj2 = 0 ;
13966 PyObject * obj3 = 0 ;
13967 PyObject * obj4 = 0 ;
13968 char * kwnames[] = {
13969 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13970 };
13971
13972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13973 ecode1 = SWIG_AsVal_int(obj0, &val1);
13974 if (!SWIG_IsOK(ecode1)) {
13975 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13976 }
13977 arg1 = static_cast< int >(val1);
13978 ecode2 = SWIG_AsVal_int(obj1, &val2);
13979 if (!SWIG_IsOK(ecode2)) {
13980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13981 }
13982 arg2 = static_cast< wxFontFamily >(val2);
13983 if (obj2) {
13984 ecode3 = SWIG_AsVal_int(obj2, &val3);
13985 if (!SWIG_IsOK(ecode3)) {
13986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13987 }
13988 arg3 = static_cast< int >(val3);
13989 }
13990 if (obj3) {
13991 {
13992 arg4 = wxString_in_helper(obj3);
13993 if (arg4 == NULL) SWIG_fail;
13994 temp4 = true;
13995 }
13996 }
13997 if (obj4) {
13998 ecode5 = SWIG_AsVal_int(obj4, &val5);
13999 if (!SWIG_IsOK(ecode5)) {
14000 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14001 }
14002 arg5 = static_cast< wxFontEncoding >(val5);
14003 }
14004 {
14005 if (!wxPyCheckForApp()) SWIG_fail;
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
14007 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14008 wxPyEndAllowThreads(__tstate);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 }
14011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14012 {
14013 if (temp4)
14014 delete arg4;
14015 }
14016 return resultobj;
14017 fail:
14018 {
14019 if (temp4)
14020 delete arg4;
14021 }
14022 return NULL;
14023 }
14024
14025
14026 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14027 PyObject *resultobj = 0;
14028 wxSize *arg1 = 0 ;
14029 int arg2 ;
14030 int arg3 ;
14031 int arg4 ;
14032 bool arg5 = (bool) false ;
14033 wxString const &arg6_defvalue = wxEmptyString ;
14034 wxString *arg6 = (wxString *) &arg6_defvalue ;
14035 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14036 wxFont *result = 0 ;
14037 wxSize temp1 ;
14038 int val2 ;
14039 int ecode2 = 0 ;
14040 int val3 ;
14041 int ecode3 = 0 ;
14042 int val4 ;
14043 int ecode4 = 0 ;
14044 bool val5 ;
14045 int ecode5 = 0 ;
14046 bool temp6 = false ;
14047 int val7 ;
14048 int ecode7 = 0 ;
14049 PyObject * obj0 = 0 ;
14050 PyObject * obj1 = 0 ;
14051 PyObject * obj2 = 0 ;
14052 PyObject * obj3 = 0 ;
14053 PyObject * obj4 = 0 ;
14054 PyObject * obj5 = 0 ;
14055 PyObject * obj6 = 0 ;
14056 char * kwnames[] = {
14057 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14058 };
14059
14060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14061 {
14062 arg1 = &temp1;
14063 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14064 }
14065 ecode2 = SWIG_AsVal_int(obj1, &val2);
14066 if (!SWIG_IsOK(ecode2)) {
14067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14068 }
14069 arg2 = static_cast< int >(val2);
14070 ecode3 = SWIG_AsVal_int(obj2, &val3);
14071 if (!SWIG_IsOK(ecode3)) {
14072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14073 }
14074 arg3 = static_cast< int >(val3);
14075 ecode4 = SWIG_AsVal_int(obj3, &val4);
14076 if (!SWIG_IsOK(ecode4)) {
14077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14078 }
14079 arg4 = static_cast< int >(val4);
14080 if (obj4) {
14081 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14082 if (!SWIG_IsOK(ecode5)) {
14083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14084 }
14085 arg5 = static_cast< bool >(val5);
14086 }
14087 if (obj5) {
14088 {
14089 arg6 = wxString_in_helper(obj5);
14090 if (arg6 == NULL) SWIG_fail;
14091 temp6 = true;
14092 }
14093 }
14094 if (obj6) {
14095 ecode7 = SWIG_AsVal_int(obj6, &val7);
14096 if (!SWIG_IsOK(ecode7)) {
14097 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14098 }
14099 arg7 = static_cast< wxFontEncoding >(val7);
14100 }
14101 {
14102 if (!wxPyCheckForApp()) SWIG_fail;
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14109 {
14110 if (temp6)
14111 delete arg6;
14112 }
14113 return resultobj;
14114 fail:
14115 {
14116 if (temp6)
14117 delete arg6;
14118 }
14119 return NULL;
14120 }
14121
14122
14123 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14124 PyObject *resultobj = 0;
14125 wxSize *arg1 = 0 ;
14126 wxFontFamily arg2 ;
14127 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14128 wxString const &arg4_defvalue = wxEmptyString ;
14129 wxString *arg4 = (wxString *) &arg4_defvalue ;
14130 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14131 wxFont *result = 0 ;
14132 wxSize temp1 ;
14133 int val2 ;
14134 int ecode2 = 0 ;
14135 int val3 ;
14136 int ecode3 = 0 ;
14137 bool temp4 = false ;
14138 int val5 ;
14139 int ecode5 = 0 ;
14140 PyObject * obj0 = 0 ;
14141 PyObject * obj1 = 0 ;
14142 PyObject * obj2 = 0 ;
14143 PyObject * obj3 = 0 ;
14144 PyObject * obj4 = 0 ;
14145 char * kwnames[] = {
14146 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14147 };
14148
14149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14150 {
14151 arg1 = &temp1;
14152 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14153 }
14154 ecode2 = SWIG_AsVal_int(obj1, &val2);
14155 if (!SWIG_IsOK(ecode2)) {
14156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14157 }
14158 arg2 = static_cast< wxFontFamily >(val2);
14159 if (obj2) {
14160 ecode3 = SWIG_AsVal_int(obj2, &val3);
14161 if (!SWIG_IsOK(ecode3)) {
14162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14163 }
14164 arg3 = static_cast< int >(val3);
14165 }
14166 if (obj3) {
14167 {
14168 arg4 = wxString_in_helper(obj3);
14169 if (arg4 == NULL) SWIG_fail;
14170 temp4 = true;
14171 }
14172 }
14173 if (obj4) {
14174 ecode5 = SWIG_AsVal_int(obj4, &val5);
14175 if (!SWIG_IsOK(ecode5)) {
14176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14177 }
14178 arg5 = static_cast< wxFontEncoding >(val5);
14179 }
14180 {
14181 if (!wxPyCheckForApp()) SWIG_fail;
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14188 {
14189 if (temp4)
14190 delete arg4;
14191 }
14192 return resultobj;
14193 fail:
14194 {
14195 if (temp4)
14196 delete arg4;
14197 }
14198 return NULL;
14199 }
14200
14201
14202 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14203 PyObject *resultobj = 0;
14204 wxFont *arg1 = (wxFont *) 0 ;
14205 bool result;
14206 void *argp1 = 0 ;
14207 int res1 = 0 ;
14208 PyObject *swig_obj[1] ;
14209
14210 if (!args) SWIG_fail;
14211 swig_obj[0] = args;
14212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14213 if (!SWIG_IsOK(res1)) {
14214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14215 }
14216 arg1 = reinterpret_cast< wxFont * >(argp1);
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 result = (bool)((wxFont const *)arg1)->IsOk();
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 {
14224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14225 }
14226 return resultobj;
14227 fail:
14228 return NULL;
14229 }
14230
14231
14232 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14233 PyObject *resultobj = 0;
14234 wxFont *arg1 = (wxFont *) 0 ;
14235 wxFont *arg2 = (wxFont *) 0 ;
14236 bool result;
14237 void *argp1 = 0 ;
14238 int res1 = 0 ;
14239 void *argp2 = 0 ;
14240 int res2 = 0 ;
14241 PyObject * obj0 = 0 ;
14242 PyObject * obj1 = 0 ;
14243 char * kwnames[] = {
14244 (char *) "self",(char *) "other", NULL
14245 };
14246
14247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14249 if (!SWIG_IsOK(res1)) {
14250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14251 }
14252 arg1 = reinterpret_cast< wxFont * >(argp1);
14253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14254 if (!SWIG_IsOK(res2)) {
14255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14256 }
14257 arg2 = reinterpret_cast< wxFont * >(argp2);
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 {
14265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14266 }
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14274 PyObject *resultobj = 0;
14275 wxFont *arg1 = (wxFont *) 0 ;
14276 wxFont *arg2 = (wxFont *) 0 ;
14277 bool result;
14278 void *argp1 = 0 ;
14279 int res1 = 0 ;
14280 void *argp2 = 0 ;
14281 int res2 = 0 ;
14282 PyObject * obj0 = 0 ;
14283 PyObject * obj1 = 0 ;
14284 char * kwnames[] = {
14285 (char *) "self",(char *) "other", NULL
14286 };
14287
14288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14290 if (!SWIG_IsOK(res1)) {
14291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14292 }
14293 arg1 = reinterpret_cast< wxFont * >(argp1);
14294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14295 if (!SWIG_IsOK(res2)) {
14296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14297 }
14298 arg2 = reinterpret_cast< wxFont * >(argp2);
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 {
14306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14307 }
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14315 PyObject *resultobj = 0;
14316 wxFont *arg1 = (wxFont *) 0 ;
14317 int result;
14318 void *argp1 = 0 ;
14319 int res1 = 0 ;
14320 PyObject *swig_obj[1] ;
14321
14322 if (!args) SWIG_fail;
14323 swig_obj[0] = args;
14324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14325 if (!SWIG_IsOK(res1)) {
14326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14327 }
14328 arg1 = reinterpret_cast< wxFont * >(argp1);
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 result = (int)((wxFont const *)arg1)->GetPointSize();
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 resultobj = SWIG_From_int(static_cast< int >(result));
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14343 PyObject *resultobj = 0;
14344 wxFont *arg1 = (wxFont *) 0 ;
14345 wxSize result;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 PyObject *swig_obj[1] ;
14349
14350 if (!args) SWIG_fail;
14351 swig_obj[0] = args;
14352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14355 }
14356 arg1 = reinterpret_cast< wxFont * >(argp1);
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = ((wxFont const *)arg1)->GetPixelSize();
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14371 PyObject *resultobj = 0;
14372 wxFont *arg1 = (wxFont *) 0 ;
14373 bool result;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 PyObject *swig_obj[1] ;
14377
14378 if (!args) SWIG_fail;
14379 swig_obj[0] = args;
14380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14383 }
14384 arg1 = reinterpret_cast< wxFont * >(argp1);
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 {
14392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14393 }
14394 return resultobj;
14395 fail:
14396 return NULL;
14397 }
14398
14399
14400 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14401 PyObject *resultobj = 0;
14402 wxFont *arg1 = (wxFont *) 0 ;
14403 int result;
14404 void *argp1 = 0 ;
14405 int res1 = 0 ;
14406 PyObject *swig_obj[1] ;
14407
14408 if (!args) SWIG_fail;
14409 swig_obj[0] = args;
14410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14411 if (!SWIG_IsOK(res1)) {
14412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14413 }
14414 arg1 = reinterpret_cast< wxFont * >(argp1);
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (int)((wxFont const *)arg1)->GetFamily();
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 resultobj = SWIG_From_int(static_cast< int >(result));
14422 return resultobj;
14423 fail:
14424 return NULL;
14425 }
14426
14427
14428 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14429 PyObject *resultobj = 0;
14430 wxFont *arg1 = (wxFont *) 0 ;
14431 int result;
14432 void *argp1 = 0 ;
14433 int res1 = 0 ;
14434 PyObject *swig_obj[1] ;
14435
14436 if (!args) SWIG_fail;
14437 swig_obj[0] = args;
14438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14439 if (!SWIG_IsOK(res1)) {
14440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14441 }
14442 arg1 = reinterpret_cast< wxFont * >(argp1);
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (int)((wxFont const *)arg1)->GetStyle();
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = SWIG_From_int(static_cast< int >(result));
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14457 PyObject *resultobj = 0;
14458 wxFont *arg1 = (wxFont *) 0 ;
14459 int result;
14460 void *argp1 = 0 ;
14461 int res1 = 0 ;
14462 PyObject *swig_obj[1] ;
14463
14464 if (!args) SWIG_fail;
14465 swig_obj[0] = args;
14466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14469 }
14470 arg1 = reinterpret_cast< wxFont * >(argp1);
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 result = (int)((wxFont const *)arg1)->GetWeight();
14474 wxPyEndAllowThreads(__tstate);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 }
14477 resultobj = SWIG_From_int(static_cast< int >(result));
14478 return resultobj;
14479 fail:
14480 return NULL;
14481 }
14482
14483
14484 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14485 PyObject *resultobj = 0;
14486 wxFont *arg1 = (wxFont *) 0 ;
14487 bool result;
14488 void *argp1 = 0 ;
14489 int res1 = 0 ;
14490 PyObject *swig_obj[1] ;
14491
14492 if (!args) SWIG_fail;
14493 swig_obj[0] = args;
14494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14495 if (!SWIG_IsOK(res1)) {
14496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14497 }
14498 arg1 = reinterpret_cast< wxFont * >(argp1);
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 {
14506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14507 }
14508 return resultobj;
14509 fail:
14510 return NULL;
14511 }
14512
14513
14514 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14515 PyObject *resultobj = 0;
14516 wxFont *arg1 = (wxFont *) 0 ;
14517 wxString result;
14518 void *argp1 = 0 ;
14519 int res1 = 0 ;
14520 PyObject *swig_obj[1] ;
14521
14522 if (!args) SWIG_fail;
14523 swig_obj[0] = args;
14524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14525 if (!SWIG_IsOK(res1)) {
14526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14527 }
14528 arg1 = reinterpret_cast< wxFont * >(argp1);
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 result = ((wxFont const *)arg1)->GetFaceName();
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536 #if wxUSE_UNICODE
14537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14538 #else
14539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14540 #endif
14541 }
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14549 PyObject *resultobj = 0;
14550 wxFont *arg1 = (wxFont *) 0 ;
14551 wxFontEncoding result;
14552 void *argp1 = 0 ;
14553 int res1 = 0 ;
14554 PyObject *swig_obj[1] ;
14555
14556 if (!args) SWIG_fail;
14557 swig_obj[0] = args;
14558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14559 if (!SWIG_IsOK(res1)) {
14560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14561 }
14562 arg1 = reinterpret_cast< wxFont * >(argp1);
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 resultobj = SWIG_From_int(static_cast< int >(result));
14570 return resultobj;
14571 fail:
14572 return NULL;
14573 }
14574
14575
14576 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14577 PyObject *resultobj = 0;
14578 wxFont *arg1 = (wxFont *) 0 ;
14579 wxNativeFontInfo *result = 0 ;
14580 void *argp1 = 0 ;
14581 int res1 = 0 ;
14582 PyObject *swig_obj[1] ;
14583
14584 if (!args) SWIG_fail;
14585 swig_obj[0] = args;
14586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14587 if (!SWIG_IsOK(res1)) {
14588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14589 }
14590 arg1 = reinterpret_cast< wxFont * >(argp1);
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14598 return resultobj;
14599 fail:
14600 return NULL;
14601 }
14602
14603
14604 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14605 PyObject *resultobj = 0;
14606 wxFont *arg1 = (wxFont *) 0 ;
14607 bool result;
14608 void *argp1 = 0 ;
14609 int res1 = 0 ;
14610 PyObject *swig_obj[1] ;
14611
14612 if (!args) SWIG_fail;
14613 swig_obj[0] = args;
14614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14617 }
14618 arg1 = reinterpret_cast< wxFont * >(argp1);
14619 {
14620 PyThreadState* __tstate = wxPyBeginAllowThreads();
14621 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 {
14626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14627 }
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14635 PyObject *resultobj = 0;
14636 wxFont *arg1 = (wxFont *) 0 ;
14637 wxString result;
14638 void *argp1 = 0 ;
14639 int res1 = 0 ;
14640 PyObject *swig_obj[1] ;
14641
14642 if (!args) SWIG_fail;
14643 swig_obj[0] = args;
14644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14645 if (!SWIG_IsOK(res1)) {
14646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14647 }
14648 arg1 = reinterpret_cast< wxFont * >(argp1);
14649 {
14650 PyThreadState* __tstate = wxPyBeginAllowThreads();
14651 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
14655 {
14656 #if wxUSE_UNICODE
14657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14658 #else
14659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14660 #endif
14661 }
14662 return resultobj;
14663 fail:
14664 return NULL;
14665 }
14666
14667
14668 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14669 PyObject *resultobj = 0;
14670 wxFont *arg1 = (wxFont *) 0 ;
14671 wxString result;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 PyObject *swig_obj[1] ;
14675
14676 if (!args) SWIG_fail;
14677 swig_obj[0] = args;
14678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14679 if (!SWIG_IsOK(res1)) {
14680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14681 }
14682 arg1 = reinterpret_cast< wxFont * >(argp1);
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 {
14690 #if wxUSE_UNICODE
14691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14692 #else
14693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14694 #endif
14695 }
14696 return resultobj;
14697 fail:
14698 return NULL;
14699 }
14700
14701
14702 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14703 PyObject *resultobj = 0;
14704 wxFont *arg1 = (wxFont *) 0 ;
14705 int arg2 ;
14706 void *argp1 = 0 ;
14707 int res1 = 0 ;
14708 int val2 ;
14709 int ecode2 = 0 ;
14710 PyObject * obj0 = 0 ;
14711 PyObject * obj1 = 0 ;
14712 char * kwnames[] = {
14713 (char *) "self",(char *) "pointSize", NULL
14714 };
14715
14716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14718 if (!SWIG_IsOK(res1)) {
14719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14720 }
14721 arg1 = reinterpret_cast< wxFont * >(argp1);
14722 ecode2 = SWIG_AsVal_int(obj1, &val2);
14723 if (!SWIG_IsOK(ecode2)) {
14724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14725 }
14726 arg2 = static_cast< int >(val2);
14727 {
14728 PyThreadState* __tstate = wxPyBeginAllowThreads();
14729 (arg1)->SetPointSize(arg2);
14730 wxPyEndAllowThreads(__tstate);
14731 if (PyErr_Occurred()) SWIG_fail;
14732 }
14733 resultobj = SWIG_Py_Void();
14734 return resultobj;
14735 fail:
14736 return NULL;
14737 }
14738
14739
14740 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14741 PyObject *resultobj = 0;
14742 wxFont *arg1 = (wxFont *) 0 ;
14743 wxSize *arg2 = 0 ;
14744 void *argp1 = 0 ;
14745 int res1 = 0 ;
14746 wxSize temp2 ;
14747 PyObject * obj0 = 0 ;
14748 PyObject * obj1 = 0 ;
14749 char * kwnames[] = {
14750 (char *) "self",(char *) "pixelSize", NULL
14751 };
14752
14753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14755 if (!SWIG_IsOK(res1)) {
14756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14757 }
14758 arg1 = reinterpret_cast< wxFont * >(argp1);
14759 {
14760 arg2 = &temp2;
14761 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14762 }
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 (arg1)->SetPixelSize((wxSize const &)*arg2);
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_Py_Void();
14770 return resultobj;
14771 fail:
14772 return NULL;
14773 }
14774
14775
14776 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj = 0;
14778 wxFont *arg1 = (wxFont *) 0 ;
14779 int arg2 ;
14780 void *argp1 = 0 ;
14781 int res1 = 0 ;
14782 int val2 ;
14783 int ecode2 = 0 ;
14784 PyObject * obj0 = 0 ;
14785 PyObject * obj1 = 0 ;
14786 char * kwnames[] = {
14787 (char *) "self",(char *) "family", NULL
14788 };
14789
14790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14792 if (!SWIG_IsOK(res1)) {
14793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14794 }
14795 arg1 = reinterpret_cast< wxFont * >(argp1);
14796 ecode2 = SWIG_AsVal_int(obj1, &val2);
14797 if (!SWIG_IsOK(ecode2)) {
14798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14799 }
14800 arg2 = static_cast< int >(val2);
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 (arg1)->SetFamily(arg2);
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 resultobj = SWIG_Py_Void();
14808 return resultobj;
14809 fail:
14810 return NULL;
14811 }
14812
14813
14814 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14815 PyObject *resultobj = 0;
14816 wxFont *arg1 = (wxFont *) 0 ;
14817 int arg2 ;
14818 void *argp1 = 0 ;
14819 int res1 = 0 ;
14820 int val2 ;
14821 int ecode2 = 0 ;
14822 PyObject * obj0 = 0 ;
14823 PyObject * obj1 = 0 ;
14824 char * kwnames[] = {
14825 (char *) "self",(char *) "style", NULL
14826 };
14827
14828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14830 if (!SWIG_IsOK(res1)) {
14831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14832 }
14833 arg1 = reinterpret_cast< wxFont * >(argp1);
14834 ecode2 = SWIG_AsVal_int(obj1, &val2);
14835 if (!SWIG_IsOK(ecode2)) {
14836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14837 }
14838 arg2 = static_cast< int >(val2);
14839 {
14840 PyThreadState* __tstate = wxPyBeginAllowThreads();
14841 (arg1)->SetStyle(arg2);
14842 wxPyEndAllowThreads(__tstate);
14843 if (PyErr_Occurred()) SWIG_fail;
14844 }
14845 resultobj = SWIG_Py_Void();
14846 return resultobj;
14847 fail:
14848 return NULL;
14849 }
14850
14851
14852 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14853 PyObject *resultobj = 0;
14854 wxFont *arg1 = (wxFont *) 0 ;
14855 int arg2 ;
14856 void *argp1 = 0 ;
14857 int res1 = 0 ;
14858 int val2 ;
14859 int ecode2 = 0 ;
14860 PyObject * obj0 = 0 ;
14861 PyObject * obj1 = 0 ;
14862 char * kwnames[] = {
14863 (char *) "self",(char *) "weight", NULL
14864 };
14865
14866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14868 if (!SWIG_IsOK(res1)) {
14869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14870 }
14871 arg1 = reinterpret_cast< wxFont * >(argp1);
14872 ecode2 = SWIG_AsVal_int(obj1, &val2);
14873 if (!SWIG_IsOK(ecode2)) {
14874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14875 }
14876 arg2 = static_cast< int >(val2);
14877 {
14878 PyThreadState* __tstate = wxPyBeginAllowThreads();
14879 (arg1)->SetWeight(arg2);
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 resultobj = SWIG_Py_Void();
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj = 0;
14892 wxFont *arg1 = (wxFont *) 0 ;
14893 wxString *arg2 = 0 ;
14894 bool result;
14895 void *argp1 = 0 ;
14896 int res1 = 0 ;
14897 bool temp2 = false ;
14898 PyObject * obj0 = 0 ;
14899 PyObject * obj1 = 0 ;
14900 char * kwnames[] = {
14901 (char *) "self",(char *) "faceName", NULL
14902 };
14903
14904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14906 if (!SWIG_IsOK(res1)) {
14907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14908 }
14909 arg1 = reinterpret_cast< wxFont * >(argp1);
14910 {
14911 arg2 = wxString_in_helper(obj1);
14912 if (arg2 == NULL) SWIG_fail;
14913 temp2 = true;
14914 }
14915 {
14916 PyThreadState* __tstate = wxPyBeginAllowThreads();
14917 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14918 wxPyEndAllowThreads(__tstate);
14919 if (PyErr_Occurred()) SWIG_fail;
14920 }
14921 {
14922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14923 }
14924 {
14925 if (temp2)
14926 delete arg2;
14927 }
14928 return resultobj;
14929 fail:
14930 {
14931 if (temp2)
14932 delete arg2;
14933 }
14934 return NULL;
14935 }
14936
14937
14938 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14939 PyObject *resultobj = 0;
14940 wxFont *arg1 = (wxFont *) 0 ;
14941 bool arg2 ;
14942 void *argp1 = 0 ;
14943 int res1 = 0 ;
14944 bool val2 ;
14945 int ecode2 = 0 ;
14946 PyObject * obj0 = 0 ;
14947 PyObject * obj1 = 0 ;
14948 char * kwnames[] = {
14949 (char *) "self",(char *) "underlined", NULL
14950 };
14951
14952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14954 if (!SWIG_IsOK(res1)) {
14955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14956 }
14957 arg1 = reinterpret_cast< wxFont * >(argp1);
14958 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14959 if (!SWIG_IsOK(ecode2)) {
14960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14961 }
14962 arg2 = static_cast< bool >(val2);
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 (arg1)->SetUnderlined(arg2);
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 resultobj = SWIG_Py_Void();
14970 return resultobj;
14971 fail:
14972 return NULL;
14973 }
14974
14975
14976 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14977 PyObject *resultobj = 0;
14978 wxFont *arg1 = (wxFont *) 0 ;
14979 wxFontEncoding arg2 ;
14980 void *argp1 = 0 ;
14981 int res1 = 0 ;
14982 int val2 ;
14983 int ecode2 = 0 ;
14984 PyObject * obj0 = 0 ;
14985 PyObject * obj1 = 0 ;
14986 char * kwnames[] = {
14987 (char *) "self",(char *) "encoding", NULL
14988 };
14989
14990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14992 if (!SWIG_IsOK(res1)) {
14993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14994 }
14995 arg1 = reinterpret_cast< wxFont * >(argp1);
14996 ecode2 = SWIG_AsVal_int(obj1, &val2);
14997 if (!SWIG_IsOK(ecode2)) {
14998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14999 }
15000 arg2 = static_cast< wxFontEncoding >(val2);
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 (arg1)->SetEncoding(arg2);
15004 wxPyEndAllowThreads(__tstate);
15005 if (PyErr_Occurred()) SWIG_fail;
15006 }
15007 resultobj = SWIG_Py_Void();
15008 return resultobj;
15009 fail:
15010 return NULL;
15011 }
15012
15013
15014 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15015 PyObject *resultobj = 0;
15016 wxFont *arg1 = (wxFont *) 0 ;
15017 wxNativeFontInfo *arg2 = 0 ;
15018 void *argp1 = 0 ;
15019 int res1 = 0 ;
15020 void *argp2 = 0 ;
15021 int res2 = 0 ;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 char * kwnames[] = {
15025 (char *) "self",(char *) "info", NULL
15026 };
15027
15028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15030 if (!SWIG_IsOK(res1)) {
15031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15032 }
15033 arg1 = reinterpret_cast< wxFont * >(argp1);
15034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15035 if (!SWIG_IsOK(res2)) {
15036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15037 }
15038 if (!argp2) {
15039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15040 }
15041 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15042 {
15043 PyThreadState* __tstate = wxPyBeginAllowThreads();
15044 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15045 wxPyEndAllowThreads(__tstate);
15046 if (PyErr_Occurred()) SWIG_fail;
15047 }
15048 resultobj = SWIG_Py_Void();
15049 return resultobj;
15050 fail:
15051 return NULL;
15052 }
15053
15054
15055 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15056 PyObject *resultobj = 0;
15057 wxFont *arg1 = (wxFont *) 0 ;
15058 wxString *arg2 = 0 ;
15059 bool result;
15060 void *argp1 = 0 ;
15061 int res1 = 0 ;
15062 bool temp2 = false ;
15063 PyObject * obj0 = 0 ;
15064 PyObject * obj1 = 0 ;
15065 char * kwnames[] = {
15066 (char *) "self",(char *) "info", NULL
15067 };
15068
15069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15071 if (!SWIG_IsOK(res1)) {
15072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15073 }
15074 arg1 = reinterpret_cast< wxFont * >(argp1);
15075 {
15076 arg2 = wxString_in_helper(obj1);
15077 if (arg2 == NULL) SWIG_fail;
15078 temp2 = true;
15079 }
15080 {
15081 PyThreadState* __tstate = wxPyBeginAllowThreads();
15082 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15083 wxPyEndAllowThreads(__tstate);
15084 if (PyErr_Occurred()) SWIG_fail;
15085 }
15086 {
15087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15088 }
15089 {
15090 if (temp2)
15091 delete arg2;
15092 }
15093 return resultobj;
15094 fail:
15095 {
15096 if (temp2)
15097 delete arg2;
15098 }
15099 return NULL;
15100 }
15101
15102
15103 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15104 PyObject *resultobj = 0;
15105 wxFont *arg1 = (wxFont *) 0 ;
15106 wxString *arg2 = 0 ;
15107 bool result;
15108 void *argp1 = 0 ;
15109 int res1 = 0 ;
15110 bool temp2 = false ;
15111 PyObject * obj0 = 0 ;
15112 PyObject * obj1 = 0 ;
15113 char * kwnames[] = {
15114 (char *) "self",(char *) "info", NULL
15115 };
15116
15117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15121 }
15122 arg1 = reinterpret_cast< wxFont * >(argp1);
15123 {
15124 arg2 = wxString_in_helper(obj1);
15125 if (arg2 == NULL) SWIG_fail;
15126 temp2 = true;
15127 }
15128 {
15129 PyThreadState* __tstate = wxPyBeginAllowThreads();
15130 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15131 wxPyEndAllowThreads(__tstate);
15132 if (PyErr_Occurred()) SWIG_fail;
15133 }
15134 {
15135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15136 }
15137 {
15138 if (temp2)
15139 delete arg2;
15140 }
15141 return resultobj;
15142 fail:
15143 {
15144 if (temp2)
15145 delete arg2;
15146 }
15147 return NULL;
15148 }
15149
15150
15151 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15152 PyObject *resultobj = 0;
15153 wxFont *arg1 = (wxFont *) 0 ;
15154 wxString result;
15155 void *argp1 = 0 ;
15156 int res1 = 0 ;
15157 PyObject *swig_obj[1] ;
15158
15159 if (!args) SWIG_fail;
15160 swig_obj[0] = args;
15161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15162 if (!SWIG_IsOK(res1)) {
15163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15164 }
15165 arg1 = reinterpret_cast< wxFont * >(argp1);
15166 {
15167 PyThreadState* __tstate = wxPyBeginAllowThreads();
15168 result = ((wxFont const *)arg1)->GetFamilyString();
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 {
15173 #if wxUSE_UNICODE
15174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15175 #else
15176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15177 #endif
15178 }
15179 return resultobj;
15180 fail:
15181 return NULL;
15182 }
15183
15184
15185 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15186 PyObject *resultobj = 0;
15187 wxFont *arg1 = (wxFont *) 0 ;
15188 wxString result;
15189 void *argp1 = 0 ;
15190 int res1 = 0 ;
15191 PyObject *swig_obj[1] ;
15192
15193 if (!args) SWIG_fail;
15194 swig_obj[0] = args;
15195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15196 if (!SWIG_IsOK(res1)) {
15197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15198 }
15199 arg1 = reinterpret_cast< wxFont * >(argp1);
15200 {
15201 PyThreadState* __tstate = wxPyBeginAllowThreads();
15202 result = ((wxFont const *)arg1)->GetStyleString();
15203 wxPyEndAllowThreads(__tstate);
15204 if (PyErr_Occurred()) SWIG_fail;
15205 }
15206 {
15207 #if wxUSE_UNICODE
15208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15209 #else
15210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15211 #endif
15212 }
15213 return resultobj;
15214 fail:
15215 return NULL;
15216 }
15217
15218
15219 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15220 PyObject *resultobj = 0;
15221 wxFont *arg1 = (wxFont *) 0 ;
15222 wxString result;
15223 void *argp1 = 0 ;
15224 int res1 = 0 ;
15225 PyObject *swig_obj[1] ;
15226
15227 if (!args) SWIG_fail;
15228 swig_obj[0] = args;
15229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15230 if (!SWIG_IsOK(res1)) {
15231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15232 }
15233 arg1 = reinterpret_cast< wxFont * >(argp1);
15234 {
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 result = ((wxFont const *)arg1)->GetWeightString();
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 {
15241 #if wxUSE_UNICODE
15242 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15243 #else
15244 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15245 #endif
15246 }
15247 return resultobj;
15248 fail:
15249 return NULL;
15250 }
15251
15252
15253 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj = 0;
15255 wxFont *arg1 = (wxFont *) 0 ;
15256 bool arg2 = (bool) true ;
15257 void *argp1 = 0 ;
15258 int res1 = 0 ;
15259 bool val2 ;
15260 int ecode2 = 0 ;
15261 PyObject * obj0 = 0 ;
15262 PyObject * obj1 = 0 ;
15263 char * kwnames[] = {
15264 (char *) "self",(char *) "no", NULL
15265 };
15266
15267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15269 if (!SWIG_IsOK(res1)) {
15270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15271 }
15272 arg1 = reinterpret_cast< wxFont * >(argp1);
15273 if (obj1) {
15274 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15275 if (!SWIG_IsOK(ecode2)) {
15276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15277 }
15278 arg2 = static_cast< bool >(val2);
15279 }
15280 {
15281 PyThreadState* __tstate = wxPyBeginAllowThreads();
15282 (arg1)->SetNoAntiAliasing(arg2);
15283 wxPyEndAllowThreads(__tstate);
15284 if (PyErr_Occurred()) SWIG_fail;
15285 }
15286 resultobj = SWIG_Py_Void();
15287 return resultobj;
15288 fail:
15289 return NULL;
15290 }
15291
15292
15293 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15294 PyObject *resultobj = 0;
15295 wxFont *arg1 = (wxFont *) 0 ;
15296 bool result;
15297 void *argp1 = 0 ;
15298 int res1 = 0 ;
15299 PyObject *swig_obj[1] ;
15300
15301 if (!args) SWIG_fail;
15302 swig_obj[0] = args;
15303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15304 if (!SWIG_IsOK(res1)) {
15305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15306 }
15307 arg1 = reinterpret_cast< wxFont * >(argp1);
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 {
15315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15316 }
15317 return resultobj;
15318 fail:
15319 return NULL;
15320 }
15321
15322
15323 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15324 PyObject *resultobj = 0;
15325 wxFontEncoding result;
15326
15327 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15328 {
15329 if (!wxPyCheckForApp()) SWIG_fail;
15330 PyThreadState* __tstate = wxPyBeginAllowThreads();
15331 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15332 wxPyEndAllowThreads(__tstate);
15333 if (PyErr_Occurred()) SWIG_fail;
15334 }
15335 resultobj = SWIG_From_int(static_cast< int >(result));
15336 return resultobj;
15337 fail:
15338 return NULL;
15339 }
15340
15341
15342 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15343 PyObject *resultobj = 0;
15344 wxFontEncoding arg1 ;
15345 int val1 ;
15346 int ecode1 = 0 ;
15347 PyObject * obj0 = 0 ;
15348 char * kwnames[] = {
15349 (char *) "encoding", NULL
15350 };
15351
15352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15353 ecode1 = SWIG_AsVal_int(obj0, &val1);
15354 if (!SWIG_IsOK(ecode1)) {
15355 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15356 }
15357 arg1 = static_cast< wxFontEncoding >(val1);
15358 {
15359 if (!wxPyCheckForApp()) SWIG_fail;
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 wxFont::SetDefaultEncoding(arg1);
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 resultobj = SWIG_Py_Void();
15366 return resultobj;
15367 fail:
15368 return NULL;
15369 }
15370
15371
15372 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15373 PyObject *obj;
15374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15375 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15376 return SWIG_Py_Void();
15377 }
15378
15379 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15380 return SWIG_Python_InitShadowInstance(args);
15381 }
15382
15383 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15384 PyObject *resultobj = 0;
15385 wxPyFontEnumerator *result = 0 ;
15386
15387 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15388 {
15389 if (!wxPyCheckForApp()) SWIG_fail;
15390 PyThreadState* __tstate = wxPyBeginAllowThreads();
15391 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15392 wxPyEndAllowThreads(__tstate);
15393 if (PyErr_Occurred()) SWIG_fail;
15394 }
15395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15396 return resultobj;
15397 fail:
15398 return NULL;
15399 }
15400
15401
15402 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15403 PyObject *resultobj = 0;
15404 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15405 void *argp1 = 0 ;
15406 int res1 = 0 ;
15407 PyObject *swig_obj[1] ;
15408
15409 if (!args) SWIG_fail;
15410 swig_obj[0] = args;
15411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15412 if (!SWIG_IsOK(res1)) {
15413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15414 }
15415 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 delete arg1;
15419
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_Py_Void();
15424 return resultobj;
15425 fail:
15426 return NULL;
15427 }
15428
15429
15430 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj = 0;
15432 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15433 PyObject *arg2 = (PyObject *) 0 ;
15434 PyObject *arg3 = (PyObject *) 0 ;
15435 bool arg4 ;
15436 void *argp1 = 0 ;
15437 int res1 = 0 ;
15438 bool val4 ;
15439 int ecode4 = 0 ;
15440 PyObject * obj0 = 0 ;
15441 PyObject * obj1 = 0 ;
15442 PyObject * obj2 = 0 ;
15443 PyObject * obj3 = 0 ;
15444 char * kwnames[] = {
15445 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15446 };
15447
15448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15450 if (!SWIG_IsOK(res1)) {
15451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15452 }
15453 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15454 arg2 = obj1;
15455 arg3 = obj2;
15456 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15457 if (!SWIG_IsOK(ecode4)) {
15458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15459 }
15460 arg4 = static_cast< bool >(val4);
15461 {
15462 PyThreadState* __tstate = wxPyBeginAllowThreads();
15463 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = SWIG_Py_Void();
15468 return resultobj;
15469 fail:
15470 return NULL;
15471 }
15472
15473
15474 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15475 PyObject *resultobj = 0;
15476 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15477 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15478 bool arg3 = (bool) false ;
15479 bool result;
15480 void *argp1 = 0 ;
15481 int res1 = 0 ;
15482 int val2 ;
15483 int ecode2 = 0 ;
15484 bool val3 ;
15485 int ecode3 = 0 ;
15486 PyObject * obj0 = 0 ;
15487 PyObject * obj1 = 0 ;
15488 PyObject * obj2 = 0 ;
15489 char * kwnames[] = {
15490 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15491 };
15492
15493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15495 if (!SWIG_IsOK(res1)) {
15496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15497 }
15498 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15499 if (obj1) {
15500 ecode2 = SWIG_AsVal_int(obj1, &val2);
15501 if (!SWIG_IsOK(ecode2)) {
15502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15503 }
15504 arg2 = static_cast< wxFontEncoding >(val2);
15505 }
15506 if (obj2) {
15507 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15508 if (!SWIG_IsOK(ecode3)) {
15509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15510 }
15511 arg3 = static_cast< bool >(val3);
15512 }
15513 {
15514 PyThreadState* __tstate = wxPyBeginAllowThreads();
15515 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15516 wxPyEndAllowThreads(__tstate);
15517 if (PyErr_Occurred()) SWIG_fail;
15518 }
15519 {
15520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15521 }
15522 return resultobj;
15523 fail:
15524 return NULL;
15525 }
15526
15527
15528 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj = 0;
15530 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15531 wxString const &arg2_defvalue = wxPyEmptyString ;
15532 wxString *arg2 = (wxString *) &arg2_defvalue ;
15533 bool result;
15534 void *argp1 = 0 ;
15535 int res1 = 0 ;
15536 bool temp2 = false ;
15537 PyObject * obj0 = 0 ;
15538 PyObject * obj1 = 0 ;
15539 char * kwnames[] = {
15540 (char *) "self",(char *) "facename", NULL
15541 };
15542
15543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15547 }
15548 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15549 if (obj1) {
15550 {
15551 arg2 = wxString_in_helper(obj1);
15552 if (arg2 == NULL) SWIG_fail;
15553 temp2 = true;
15554 }
15555 }
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 {
15563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15564 }
15565 {
15566 if (temp2)
15567 delete arg2;
15568 }
15569 return resultobj;
15570 fail:
15571 {
15572 if (temp2)
15573 delete arg2;
15574 }
15575 return NULL;
15576 }
15577
15578
15579 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15580 PyObject *resultobj = 0;
15581 PyObject *result = 0 ;
15582
15583 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15584 {
15585 PyThreadState* __tstate = wxPyBeginAllowThreads();
15586 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15587 wxPyEndAllowThreads(__tstate);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 resultobj = result;
15591 return resultobj;
15592 fail:
15593 return NULL;
15594 }
15595
15596
15597 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15598 PyObject *resultobj = 0;
15599 PyObject *result = 0 ;
15600
15601 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15602 {
15603 PyThreadState* __tstate = wxPyBeginAllowThreads();
15604 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 resultobj = result;
15609 return resultobj;
15610 fail:
15611 return NULL;
15612 }
15613
15614
15615 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj = 0;
15617 wxString *arg1 = 0 ;
15618 bool result;
15619 bool temp1 = false ;
15620 PyObject * obj0 = 0 ;
15621 char * kwnames[] = {
15622 (char *) "str", NULL
15623 };
15624
15625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15626 {
15627 arg1 = wxString_in_helper(obj0);
15628 if (arg1 == NULL) SWIG_fail;
15629 temp1 = true;
15630 }
15631 {
15632 PyThreadState* __tstate = wxPyBeginAllowThreads();
15633 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15634 wxPyEndAllowThreads(__tstate);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 }
15637 {
15638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15639 }
15640 {
15641 if (temp1)
15642 delete arg1;
15643 }
15644 return resultobj;
15645 fail:
15646 {
15647 if (temp1)
15648 delete arg1;
15649 }
15650 return NULL;
15651 }
15652
15653
15654 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15655 PyObject *obj;
15656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15657 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15658 return SWIG_Py_Void();
15659 }
15660
15661 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15662 return SWIG_Python_InitShadowInstance(args);
15663 }
15664
15665 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15666 PyObject *resultobj = 0;
15667 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15668 int arg2 ;
15669 void *argp1 = 0 ;
15670 int res1 = 0 ;
15671 int val2 ;
15672 int ecode2 = 0 ;
15673 PyObject *swig_obj[2] ;
15674
15675 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15677 if (!SWIG_IsOK(res1)) {
15678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15679 }
15680 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15681 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15682 if (!SWIG_IsOK(ecode2)) {
15683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15684 }
15685 arg2 = static_cast< int >(val2);
15686 if (arg1) (arg1)->Language = arg2;
15687
15688 resultobj = SWIG_Py_Void();
15689 return resultobj;
15690 fail:
15691 return NULL;
15692 }
15693
15694
15695 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15696 PyObject *resultobj = 0;
15697 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15698 int result;
15699 void *argp1 = 0 ;
15700 int res1 = 0 ;
15701 PyObject *swig_obj[1] ;
15702
15703 if (!args) SWIG_fail;
15704 swig_obj[0] = args;
15705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15706 if (!SWIG_IsOK(res1)) {
15707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15708 }
15709 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15710 result = (int) ((arg1)->Language);
15711 resultobj = SWIG_From_int(static_cast< int >(result));
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15719 PyObject *resultobj = 0;
15720 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15721 wxString *arg2 = (wxString *) 0 ;
15722 void *argp1 = 0 ;
15723 int res1 = 0 ;
15724 bool temp2 = false ;
15725 PyObject *swig_obj[2] ;
15726
15727 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15729 if (!SWIG_IsOK(res1)) {
15730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15731 }
15732 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15733 {
15734 arg2 = wxString_in_helper(swig_obj[1]);
15735 if (arg2 == NULL) SWIG_fail;
15736 temp2 = true;
15737 }
15738 if (arg1) (arg1)->CanonicalName = *arg2;
15739
15740 resultobj = SWIG_Py_Void();
15741 {
15742 if (temp2)
15743 delete arg2;
15744 }
15745 return resultobj;
15746 fail:
15747 {
15748 if (temp2)
15749 delete arg2;
15750 }
15751 return NULL;
15752 }
15753
15754
15755 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15756 PyObject *resultobj = 0;
15757 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15758 wxString *result = 0 ;
15759 void *argp1 = 0 ;
15760 int res1 = 0 ;
15761 PyObject *swig_obj[1] ;
15762
15763 if (!args) SWIG_fail;
15764 swig_obj[0] = args;
15765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15766 if (!SWIG_IsOK(res1)) {
15767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15768 }
15769 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15770 result = (wxString *)& ((arg1)->CanonicalName);
15771 {
15772 #if wxUSE_UNICODE
15773 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15774 #else
15775 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15776 #endif
15777 }
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15785 PyObject *resultobj = 0;
15786 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15787 wxString *arg2 = (wxString *) 0 ;
15788 void *argp1 = 0 ;
15789 int res1 = 0 ;
15790 bool temp2 = false ;
15791 PyObject *swig_obj[2] ;
15792
15793 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15795 if (!SWIG_IsOK(res1)) {
15796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15797 }
15798 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15799 {
15800 arg2 = wxString_in_helper(swig_obj[1]);
15801 if (arg2 == NULL) SWIG_fail;
15802 temp2 = true;
15803 }
15804 if (arg1) (arg1)->Description = *arg2;
15805
15806 resultobj = SWIG_Py_Void();
15807 {
15808 if (temp2)
15809 delete arg2;
15810 }
15811 return resultobj;
15812 fail:
15813 {
15814 if (temp2)
15815 delete arg2;
15816 }
15817 return NULL;
15818 }
15819
15820
15821 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15822 PyObject *resultobj = 0;
15823 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15824 wxString *result = 0 ;
15825 void *argp1 = 0 ;
15826 int res1 = 0 ;
15827 PyObject *swig_obj[1] ;
15828
15829 if (!args) SWIG_fail;
15830 swig_obj[0] = args;
15831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15832 if (!SWIG_IsOK(res1)) {
15833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15834 }
15835 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15836 result = (wxString *)& ((arg1)->Description);
15837 {
15838 #if wxUSE_UNICODE
15839 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15840 #else
15841 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15842 #endif
15843 }
15844 return resultobj;
15845 fail:
15846 return NULL;
15847 }
15848
15849
15850 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15851 PyObject *obj;
15852 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15853 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15854 return SWIG_Py_Void();
15855 }
15856
15857 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj = 0;
15859 int arg1 = (int) -1 ;
15860 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15861 wxLocale *result = 0 ;
15862 int val1 ;
15863 int ecode1 = 0 ;
15864 int val2 ;
15865 int ecode2 = 0 ;
15866 PyObject * obj0 = 0 ;
15867 PyObject * obj1 = 0 ;
15868 char * kwnames[] = {
15869 (char *) "language",(char *) "flags", NULL
15870 };
15871
15872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15873 if (obj0) {
15874 ecode1 = SWIG_AsVal_int(obj0, &val1);
15875 if (!SWIG_IsOK(ecode1)) {
15876 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15877 }
15878 arg1 = static_cast< int >(val1);
15879 }
15880 if (obj1) {
15881 ecode2 = SWIG_AsVal_int(obj1, &val2);
15882 if (!SWIG_IsOK(ecode2)) {
15883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15884 }
15885 arg2 = static_cast< int >(val2);
15886 }
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
15889 result = (wxLocale *)new_wxLocale(arg1,arg2);
15890 wxPyEndAllowThreads(__tstate);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
15893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15894 return resultobj;
15895 fail:
15896 return NULL;
15897 }
15898
15899
15900 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15901 PyObject *resultobj = 0;
15902 wxLocale *arg1 = (wxLocale *) 0 ;
15903 void *argp1 = 0 ;
15904 int res1 = 0 ;
15905 PyObject *swig_obj[1] ;
15906
15907 if (!args) SWIG_fail;
15908 swig_obj[0] = args;
15909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15910 if (!SWIG_IsOK(res1)) {
15911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15912 }
15913 arg1 = reinterpret_cast< wxLocale * >(argp1);
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 delete arg1;
15917
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
15921 resultobj = SWIG_Py_Void();
15922 return resultobj;
15923 fail:
15924 return NULL;
15925 }
15926
15927
15928 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15929 PyObject *resultobj = 0;
15930 wxLocale *arg1 = (wxLocale *) 0 ;
15931 wxString *arg2 = 0 ;
15932 wxString const &arg3_defvalue = wxPyEmptyString ;
15933 wxString *arg3 = (wxString *) &arg3_defvalue ;
15934 wxString const &arg4_defvalue = wxPyEmptyString ;
15935 wxString *arg4 = (wxString *) &arg4_defvalue ;
15936 bool arg5 = (bool) true ;
15937 bool arg6 = (bool) false ;
15938 bool result;
15939 void *argp1 = 0 ;
15940 int res1 = 0 ;
15941 bool temp2 = false ;
15942 bool temp3 = false ;
15943 bool temp4 = false ;
15944 bool val5 ;
15945 int ecode5 = 0 ;
15946 bool val6 ;
15947 int ecode6 = 0 ;
15948 PyObject * obj0 = 0 ;
15949 PyObject * obj1 = 0 ;
15950 PyObject * obj2 = 0 ;
15951 PyObject * obj3 = 0 ;
15952 PyObject * obj4 = 0 ;
15953 PyObject * obj5 = 0 ;
15954 char * kwnames[] = {
15955 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15956 };
15957
15958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15960 if (!SWIG_IsOK(res1)) {
15961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15962 }
15963 arg1 = reinterpret_cast< wxLocale * >(argp1);
15964 {
15965 arg2 = wxString_in_helper(obj1);
15966 if (arg2 == NULL) SWIG_fail;
15967 temp2 = true;
15968 }
15969 if (obj2) {
15970 {
15971 arg3 = wxString_in_helper(obj2);
15972 if (arg3 == NULL) SWIG_fail;
15973 temp3 = true;
15974 }
15975 }
15976 if (obj3) {
15977 {
15978 arg4 = wxString_in_helper(obj3);
15979 if (arg4 == NULL) SWIG_fail;
15980 temp4 = true;
15981 }
15982 }
15983 if (obj4) {
15984 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15985 if (!SWIG_IsOK(ecode5)) {
15986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15987 }
15988 arg5 = static_cast< bool >(val5);
15989 }
15990 if (obj5) {
15991 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15992 if (!SWIG_IsOK(ecode6)) {
15993 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15994 }
15995 arg6 = static_cast< bool >(val6);
15996 }
15997 {
15998 PyThreadState* __tstate = wxPyBeginAllowThreads();
15999 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 {
16004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16005 }
16006 {
16007 if (temp2)
16008 delete arg2;
16009 }
16010 {
16011 if (temp3)
16012 delete arg3;
16013 }
16014 {
16015 if (temp4)
16016 delete arg4;
16017 }
16018 return resultobj;
16019 fail:
16020 {
16021 if (temp2)
16022 delete arg2;
16023 }
16024 {
16025 if (temp3)
16026 delete arg3;
16027 }
16028 {
16029 if (temp4)
16030 delete arg4;
16031 }
16032 return NULL;
16033 }
16034
16035
16036 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16037 PyObject *resultobj = 0;
16038 wxLocale *arg1 = (wxLocale *) 0 ;
16039 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16040 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16041 bool result;
16042 void *argp1 = 0 ;
16043 int res1 = 0 ;
16044 int val2 ;
16045 int ecode2 = 0 ;
16046 int val3 ;
16047 int ecode3 = 0 ;
16048 PyObject * obj0 = 0 ;
16049 PyObject * obj1 = 0 ;
16050 PyObject * obj2 = 0 ;
16051 char * kwnames[] = {
16052 (char *) "self",(char *) "language",(char *) "flags", NULL
16053 };
16054
16055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16057 if (!SWIG_IsOK(res1)) {
16058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16059 }
16060 arg1 = reinterpret_cast< wxLocale * >(argp1);
16061 if (obj1) {
16062 ecode2 = SWIG_AsVal_int(obj1, &val2);
16063 if (!SWIG_IsOK(ecode2)) {
16064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16065 }
16066 arg2 = static_cast< int >(val2);
16067 }
16068 if (obj2) {
16069 ecode3 = SWIG_AsVal_int(obj2, &val3);
16070 if (!SWIG_IsOK(ecode3)) {
16071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16072 }
16073 arg3 = static_cast< int >(val3);
16074 }
16075 {
16076 PyThreadState* __tstate = wxPyBeginAllowThreads();
16077 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16078 wxPyEndAllowThreads(__tstate);
16079 if (PyErr_Occurred()) SWIG_fail;
16080 }
16081 {
16082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16083 }
16084 return resultobj;
16085 fail:
16086 return NULL;
16087 }
16088
16089
16090 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16091 PyObject *resultobj = 0;
16092 int result;
16093
16094 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (int)wxLocale::GetSystemLanguage();
16098 wxPyEndAllowThreads(__tstate);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 }
16101 resultobj = SWIG_From_int(static_cast< int >(result));
16102 return resultobj;
16103 fail:
16104 return NULL;
16105 }
16106
16107
16108 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16109 PyObject *resultobj = 0;
16110 wxFontEncoding result;
16111
16112 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 resultobj = SWIG_From_int(static_cast< int >(result));
16120 return resultobj;
16121 fail:
16122 return NULL;
16123 }
16124
16125
16126 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16127 PyObject *resultobj = 0;
16128 wxString result;
16129
16130 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16131 {
16132 PyThreadState* __tstate = wxPyBeginAllowThreads();
16133 result = wxLocale::GetSystemEncodingName();
16134 wxPyEndAllowThreads(__tstate);
16135 if (PyErr_Occurred()) SWIG_fail;
16136 }
16137 {
16138 #if wxUSE_UNICODE
16139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16140 #else
16141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16142 #endif
16143 }
16144 return resultobj;
16145 fail:
16146 return NULL;
16147 }
16148
16149
16150 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16151 PyObject *resultobj = 0;
16152 wxLocale *arg1 = (wxLocale *) 0 ;
16153 bool result;
16154 void *argp1 = 0 ;
16155 int res1 = 0 ;
16156 PyObject *swig_obj[1] ;
16157
16158 if (!args) SWIG_fail;
16159 swig_obj[0] = args;
16160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16161 if (!SWIG_IsOK(res1)) {
16162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16163 }
16164 arg1 = reinterpret_cast< wxLocale * >(argp1);
16165 {
16166 PyThreadState* __tstate = wxPyBeginAllowThreads();
16167 result = (bool)((wxLocale const *)arg1)->IsOk();
16168 wxPyEndAllowThreads(__tstate);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 }
16171 {
16172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16173 }
16174 return resultobj;
16175 fail:
16176 return NULL;
16177 }
16178
16179
16180 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16181 PyObject *resultobj = 0;
16182 wxLocale *arg1 = (wxLocale *) 0 ;
16183 wxString result;
16184 void *argp1 = 0 ;
16185 int res1 = 0 ;
16186 PyObject *swig_obj[1] ;
16187
16188 if (!args) SWIG_fail;
16189 swig_obj[0] = args;
16190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16191 if (!SWIG_IsOK(res1)) {
16192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16193 }
16194 arg1 = reinterpret_cast< wxLocale * >(argp1);
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = ((wxLocale const *)arg1)->GetLocale();
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 {
16202 #if wxUSE_UNICODE
16203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16204 #else
16205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16206 #endif
16207 }
16208 return resultobj;
16209 fail:
16210 return NULL;
16211 }
16212
16213
16214 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16215 PyObject *resultobj = 0;
16216 wxLocale *arg1 = (wxLocale *) 0 ;
16217 int result;
16218 void *argp1 = 0 ;
16219 int res1 = 0 ;
16220 PyObject *swig_obj[1] ;
16221
16222 if (!args) SWIG_fail;
16223 swig_obj[0] = args;
16224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16225 if (!SWIG_IsOK(res1)) {
16226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16227 }
16228 arg1 = reinterpret_cast< wxLocale * >(argp1);
16229 {
16230 PyThreadState* __tstate = wxPyBeginAllowThreads();
16231 result = (int)((wxLocale const *)arg1)->GetLanguage();
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 resultobj = SWIG_From_int(static_cast< int >(result));
16236 return resultobj;
16237 fail:
16238 return NULL;
16239 }
16240
16241
16242 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16243 PyObject *resultobj = 0;
16244 wxLocale *arg1 = (wxLocale *) 0 ;
16245 wxString result;
16246 void *argp1 = 0 ;
16247 int res1 = 0 ;
16248 PyObject *swig_obj[1] ;
16249
16250 if (!args) SWIG_fail;
16251 swig_obj[0] = args;
16252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16253 if (!SWIG_IsOK(res1)) {
16254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16255 }
16256 arg1 = reinterpret_cast< wxLocale * >(argp1);
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 result = ((wxLocale const *)arg1)->GetSysName();
16260 wxPyEndAllowThreads(__tstate);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 {
16264 #if wxUSE_UNICODE
16265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16266 #else
16267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16268 #endif
16269 }
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16277 PyObject *resultobj = 0;
16278 wxLocale *arg1 = (wxLocale *) 0 ;
16279 wxString result;
16280 void *argp1 = 0 ;
16281 int res1 = 0 ;
16282 PyObject *swig_obj[1] ;
16283
16284 if (!args) SWIG_fail;
16285 swig_obj[0] = args;
16286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16287 if (!SWIG_IsOK(res1)) {
16288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16289 }
16290 arg1 = reinterpret_cast< wxLocale * >(argp1);
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 result = ((wxLocale const *)arg1)->GetCanonicalName();
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 {
16298 #if wxUSE_UNICODE
16299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16300 #else
16301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16302 #endif
16303 }
16304 return resultobj;
16305 fail:
16306 return NULL;
16307 }
16308
16309
16310 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16311 PyObject *resultobj = 0;
16312 wxString *arg1 = 0 ;
16313 bool temp1 = false ;
16314 PyObject * obj0 = 0 ;
16315 char * kwnames[] = {
16316 (char *) "prefix", NULL
16317 };
16318
16319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16320 {
16321 arg1 = wxString_in_helper(obj0);
16322 if (arg1 == NULL) SWIG_fail;
16323 temp1 = true;
16324 }
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 resultobj = SWIG_Py_Void();
16332 {
16333 if (temp1)
16334 delete arg1;
16335 }
16336 return resultobj;
16337 fail:
16338 {
16339 if (temp1)
16340 delete arg1;
16341 }
16342 return NULL;
16343 }
16344
16345
16346 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16347 PyObject *resultobj = 0;
16348 wxLocale *arg1 = (wxLocale *) 0 ;
16349 wxString *arg2 = 0 ;
16350 bool result;
16351 void *argp1 = 0 ;
16352 int res1 = 0 ;
16353 bool temp2 = false ;
16354 PyObject * obj0 = 0 ;
16355 PyObject * obj1 = 0 ;
16356 char * kwnames[] = {
16357 (char *) "self",(char *) "szDomain", NULL
16358 };
16359
16360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16362 if (!SWIG_IsOK(res1)) {
16363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16364 }
16365 arg1 = reinterpret_cast< wxLocale * >(argp1);
16366 {
16367 arg2 = wxString_in_helper(obj1);
16368 if (arg2 == NULL) SWIG_fail;
16369 temp2 = true;
16370 }
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16374 wxPyEndAllowThreads(__tstate);
16375 if (PyErr_Occurred()) SWIG_fail;
16376 }
16377 {
16378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16379 }
16380 {
16381 if (temp2)
16382 delete arg2;
16383 }
16384 return resultobj;
16385 fail:
16386 {
16387 if (temp2)
16388 delete arg2;
16389 }
16390 return NULL;
16391 }
16392
16393
16394 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj = 0;
16396 int arg1 ;
16397 bool result;
16398 int val1 ;
16399 int ecode1 = 0 ;
16400 PyObject * obj0 = 0 ;
16401 char * kwnames[] = {
16402 (char *) "lang", NULL
16403 };
16404
16405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16406 ecode1 = SWIG_AsVal_int(obj0, &val1);
16407 if (!SWIG_IsOK(ecode1)) {
16408 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16409 }
16410 arg1 = static_cast< int >(val1);
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 result = (bool)wxLocale::IsAvailable(arg1);
16414 wxPyEndAllowThreads(__tstate);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 }
16417 {
16418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16419 }
16420 return resultobj;
16421 fail:
16422 return NULL;
16423 }
16424
16425
16426 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16427 PyObject *resultobj = 0;
16428 wxLocale *arg1 = (wxLocale *) 0 ;
16429 wxString *arg2 = 0 ;
16430 bool result;
16431 void *argp1 = 0 ;
16432 int res1 = 0 ;
16433 bool temp2 = false ;
16434 PyObject * obj0 = 0 ;
16435 PyObject * obj1 = 0 ;
16436 char * kwnames[] = {
16437 (char *) "self",(char *) "szDomain", NULL
16438 };
16439
16440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16442 if (!SWIG_IsOK(res1)) {
16443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16444 }
16445 arg1 = reinterpret_cast< wxLocale * >(argp1);
16446 {
16447 arg2 = wxString_in_helper(obj1);
16448 if (arg2 == NULL) SWIG_fail;
16449 temp2 = true;
16450 }
16451 {
16452 PyThreadState* __tstate = wxPyBeginAllowThreads();
16453 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16454 wxPyEndAllowThreads(__tstate);
16455 if (PyErr_Occurred()) SWIG_fail;
16456 }
16457 {
16458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16459 }
16460 {
16461 if (temp2)
16462 delete arg2;
16463 }
16464 return resultobj;
16465 fail:
16466 {
16467 if (temp2)
16468 delete arg2;
16469 }
16470 return NULL;
16471 }
16472
16473
16474 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16475 PyObject *resultobj = 0;
16476 int arg1 ;
16477 wxLanguageInfo *result = 0 ;
16478 int val1 ;
16479 int ecode1 = 0 ;
16480 PyObject * obj0 = 0 ;
16481 char * kwnames[] = {
16482 (char *) "lang", NULL
16483 };
16484
16485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16486 ecode1 = SWIG_AsVal_int(obj0, &val1);
16487 if (!SWIG_IsOK(ecode1)) {
16488 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16489 }
16490 arg1 = static_cast< int >(val1);
16491 {
16492 PyThreadState* __tstate = wxPyBeginAllowThreads();
16493 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16498 return resultobj;
16499 fail:
16500 return NULL;
16501 }
16502
16503
16504 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16505 PyObject *resultobj = 0;
16506 int arg1 ;
16507 wxString result;
16508 int val1 ;
16509 int ecode1 = 0 ;
16510 PyObject * obj0 = 0 ;
16511 char * kwnames[] = {
16512 (char *) "lang", NULL
16513 };
16514
16515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16516 ecode1 = SWIG_AsVal_int(obj0, &val1);
16517 if (!SWIG_IsOK(ecode1)) {
16518 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16519 }
16520 arg1 = static_cast< int >(val1);
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = wxLocale::GetLanguageName(arg1);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 {
16528 #if wxUSE_UNICODE
16529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16530 #else
16531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16532 #endif
16533 }
16534 return resultobj;
16535 fail:
16536 return NULL;
16537 }
16538
16539
16540 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16541 PyObject *resultobj = 0;
16542 wxString *arg1 = 0 ;
16543 wxLanguageInfo *result = 0 ;
16544 bool temp1 = false ;
16545 PyObject * obj0 = 0 ;
16546 char * kwnames[] = {
16547 (char *) "locale", NULL
16548 };
16549
16550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16551 {
16552 arg1 = wxString_in_helper(obj0);
16553 if (arg1 == NULL) SWIG_fail;
16554 temp1 = true;
16555 }
16556 {
16557 PyThreadState* __tstate = wxPyBeginAllowThreads();
16558 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16559 wxPyEndAllowThreads(__tstate);
16560 if (PyErr_Occurred()) SWIG_fail;
16561 }
16562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16563 {
16564 if (temp1)
16565 delete arg1;
16566 }
16567 return resultobj;
16568 fail:
16569 {
16570 if (temp1)
16571 delete arg1;
16572 }
16573 return NULL;
16574 }
16575
16576
16577 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj = 0;
16579 wxLanguageInfo *arg1 = 0 ;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 PyObject * obj0 = 0 ;
16583 char * kwnames[] = {
16584 (char *) "info", NULL
16585 };
16586
16587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16588 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16589 if (!SWIG_IsOK(res1)) {
16590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16591 }
16592 if (!argp1) {
16593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16594 }
16595 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16599 wxPyEndAllowThreads(__tstate);
16600 if (PyErr_Occurred()) SWIG_fail;
16601 }
16602 resultobj = SWIG_Py_Void();
16603 return resultobj;
16604 fail:
16605 return NULL;
16606 }
16607
16608
16609 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16610 PyObject *resultobj = 0;
16611 wxLocale *arg1 = (wxLocale *) 0 ;
16612 wxString *arg2 = 0 ;
16613 wxString const &arg3_defvalue = wxPyEmptyString ;
16614 wxString *arg3 = (wxString *) &arg3_defvalue ;
16615 wxString result;
16616 void *argp1 = 0 ;
16617 int res1 = 0 ;
16618 bool temp2 = false ;
16619 bool temp3 = false ;
16620 PyObject * obj0 = 0 ;
16621 PyObject * obj1 = 0 ;
16622 PyObject * obj2 = 0 ;
16623 char * kwnames[] = {
16624 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16625 };
16626
16627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16629 if (!SWIG_IsOK(res1)) {
16630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16631 }
16632 arg1 = reinterpret_cast< wxLocale * >(argp1);
16633 {
16634 arg2 = wxString_in_helper(obj1);
16635 if (arg2 == NULL) SWIG_fail;
16636 temp2 = true;
16637 }
16638 if (obj2) {
16639 {
16640 arg3 = wxString_in_helper(obj2);
16641 if (arg3 == NULL) SWIG_fail;
16642 temp3 = true;
16643 }
16644 }
16645 {
16646 PyThreadState* __tstate = wxPyBeginAllowThreads();
16647 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16648 wxPyEndAllowThreads(__tstate);
16649 if (PyErr_Occurred()) SWIG_fail;
16650 }
16651 {
16652 #if wxUSE_UNICODE
16653 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16654 #else
16655 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16656 #endif
16657 }
16658 {
16659 if (temp2)
16660 delete arg2;
16661 }
16662 {
16663 if (temp3)
16664 delete arg3;
16665 }
16666 return resultobj;
16667 fail:
16668 {
16669 if (temp2)
16670 delete arg2;
16671 }
16672 {
16673 if (temp3)
16674 delete arg3;
16675 }
16676 return NULL;
16677 }
16678
16679
16680 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16681 PyObject *resultobj = 0;
16682 wxLocale *arg1 = (wxLocale *) 0 ;
16683 wxString *result = 0 ;
16684 void *argp1 = 0 ;
16685 int res1 = 0 ;
16686 PyObject *swig_obj[1] ;
16687
16688 if (!args) SWIG_fail;
16689 swig_obj[0] = args;
16690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16691 if (!SWIG_IsOK(res1)) {
16692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16693 }
16694 arg1 = reinterpret_cast< wxLocale * >(argp1);
16695 {
16696 PyThreadState* __tstate = wxPyBeginAllowThreads();
16697 {
16698 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16699 result = (wxString *) &_result_ref;
16700 }
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 {
16705 #if wxUSE_UNICODE
16706 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16707 #else
16708 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16709 #endif
16710 }
16711 return resultobj;
16712 fail:
16713 return NULL;
16714 }
16715
16716
16717 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16718 PyObject *obj;
16719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16720 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16721 return SWIG_Py_Void();
16722 }
16723
16724 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16725 return SWIG_Python_InitShadowInstance(args);
16726 }
16727
16728 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj = 0;
16730 int arg1 = (int) -1 ;
16731 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16732 wxPyLocale *result = 0 ;
16733 int val1 ;
16734 int ecode1 = 0 ;
16735 int val2 ;
16736 int ecode2 = 0 ;
16737 PyObject * obj0 = 0 ;
16738 PyObject * obj1 = 0 ;
16739 char * kwnames[] = {
16740 (char *) "language",(char *) "flags", NULL
16741 };
16742
16743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16744 if (obj0) {
16745 ecode1 = SWIG_AsVal_int(obj0, &val1);
16746 if (!SWIG_IsOK(ecode1)) {
16747 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16748 }
16749 arg1 = static_cast< int >(val1);
16750 }
16751 if (obj1) {
16752 ecode2 = SWIG_AsVal_int(obj1, &val2);
16753 if (!SWIG_IsOK(ecode2)) {
16754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16755 }
16756 arg2 = static_cast< int >(val2);
16757 }
16758 {
16759 PyThreadState* __tstate = wxPyBeginAllowThreads();
16760 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16765 return resultobj;
16766 fail:
16767 return NULL;
16768 }
16769
16770
16771 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16772 PyObject *resultobj = 0;
16773 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16774 void *argp1 = 0 ;
16775 int res1 = 0 ;
16776 PyObject *swig_obj[1] ;
16777
16778 if (!args) SWIG_fail;
16779 swig_obj[0] = args;
16780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16781 if (!SWIG_IsOK(res1)) {
16782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16783 }
16784 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
16787 delete arg1;
16788
16789 wxPyEndAllowThreads(__tstate);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 resultobj = SWIG_Py_Void();
16793 return resultobj;
16794 fail:
16795 return NULL;
16796 }
16797
16798
16799 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16800 PyObject *resultobj = 0;
16801 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16802 PyObject *arg2 = (PyObject *) 0 ;
16803 PyObject *arg3 = (PyObject *) 0 ;
16804 void *argp1 = 0 ;
16805 int res1 = 0 ;
16806 PyObject * obj0 = 0 ;
16807 PyObject * obj1 = 0 ;
16808 PyObject * obj2 = 0 ;
16809 char * kwnames[] = {
16810 (char *) "self",(char *) "self",(char *) "_class", NULL
16811 };
16812
16813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16815 if (!SWIG_IsOK(res1)) {
16816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16817 }
16818 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16819 arg2 = obj1;
16820 arg3 = obj2;
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 (arg1)->_setCallbackInfo(arg2,arg3);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 resultobj = SWIG_Py_Void();
16828 return resultobj;
16829 fail:
16830 return NULL;
16831 }
16832
16833
16834 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16835 PyObject *resultobj = 0;
16836 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16837 wxChar *arg2 = (wxChar *) 0 ;
16838 wxChar *arg3 = (wxChar *) NULL ;
16839 wxChar *result = 0 ;
16840 void *argp1 = 0 ;
16841 int res1 = 0 ;
16842 void *argp2 = 0 ;
16843 int res2 = 0 ;
16844 void *argp3 = 0 ;
16845 int res3 = 0 ;
16846 PyObject * obj0 = 0 ;
16847 PyObject * obj1 = 0 ;
16848 PyObject * obj2 = 0 ;
16849 char * kwnames[] = {
16850 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16851 };
16852
16853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16855 if (!SWIG_IsOK(res1)) {
16856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16857 }
16858 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16859 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16860 if (!SWIG_IsOK(res2)) {
16861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16862 }
16863 arg2 = reinterpret_cast< wxChar * >(argp2);
16864 if (obj2) {
16865 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16866 if (!SWIG_IsOK(res3)) {
16867 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16868 }
16869 arg3 = reinterpret_cast< wxChar * >(argp3);
16870 }
16871 {
16872 PyThreadState* __tstate = wxPyBeginAllowThreads();
16873 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16874 wxPyEndAllowThreads(__tstate);
16875 if (PyErr_Occurred()) SWIG_fail;
16876 }
16877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16878 return resultobj;
16879 fail:
16880 return NULL;
16881 }
16882
16883
16884 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj = 0;
16886 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16887 wxChar *arg2 = (wxChar *) 0 ;
16888 wxChar *arg3 = (wxChar *) 0 ;
16889 size_t arg4 ;
16890 wxChar *arg5 = (wxChar *) NULL ;
16891 wxChar *result = 0 ;
16892 void *argp1 = 0 ;
16893 int res1 = 0 ;
16894 void *argp2 = 0 ;
16895 int res2 = 0 ;
16896 void *argp3 = 0 ;
16897 int res3 = 0 ;
16898 size_t val4 ;
16899 int ecode4 = 0 ;
16900 void *argp5 = 0 ;
16901 int res5 = 0 ;
16902 PyObject * obj0 = 0 ;
16903 PyObject * obj1 = 0 ;
16904 PyObject * obj2 = 0 ;
16905 PyObject * obj3 = 0 ;
16906 PyObject * obj4 = 0 ;
16907 char * kwnames[] = {
16908 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16909 };
16910
16911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16913 if (!SWIG_IsOK(res1)) {
16914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16915 }
16916 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16917 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16918 if (!SWIG_IsOK(res2)) {
16919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16920 }
16921 arg2 = reinterpret_cast< wxChar * >(argp2);
16922 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16923 if (!SWIG_IsOK(res3)) {
16924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16925 }
16926 arg3 = reinterpret_cast< wxChar * >(argp3);
16927 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16928 if (!SWIG_IsOK(ecode4)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16930 }
16931 arg4 = static_cast< size_t >(val4);
16932 if (obj4) {
16933 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16934 if (!SWIG_IsOK(res5)) {
16935 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16936 }
16937 arg5 = reinterpret_cast< wxChar * >(argp5);
16938 }
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16942 wxPyEndAllowThreads(__tstate);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16946 return resultobj;
16947 fail:
16948 return NULL;
16949 }
16950
16951
16952 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16953 PyObject *obj;
16954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16955 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16956 return SWIG_Py_Void();
16957 }
16958
16959 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16960 return SWIG_Python_InitShadowInstance(args);
16961 }
16962
16963 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16964 PyObject *resultobj = 0;
16965 wxLocale *result = 0 ;
16966
16967 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 result = (wxLocale *)wxGetLocale();
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16975 return resultobj;
16976 fail:
16977 return NULL;
16978 }
16979
16980
16981 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16982 PyObject *resultobj = 0;
16983 wxString *arg1 = 0 ;
16984 wxString result;
16985 bool temp1 = false ;
16986
16987 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16988 {
16989 arg1 = wxString_in_helper(swig_obj[0]);
16990 if (arg1 == NULL) SWIG_fail;
16991 temp1 = true;
16992 }
16993 {
16994 PyThreadState* __tstate = wxPyBeginAllowThreads();
16995 result = wxGetTranslation((wxString const &)*arg1);
16996 wxPyEndAllowThreads(__tstate);
16997 if (PyErr_Occurred()) SWIG_fail;
16998 }
16999 {
17000 #if wxUSE_UNICODE
17001 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17002 #else
17003 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17004 #endif
17005 }
17006 {
17007 if (temp1)
17008 delete arg1;
17009 }
17010 return resultobj;
17011 fail:
17012 {
17013 if (temp1)
17014 delete arg1;
17015 }
17016 return NULL;
17017 }
17018
17019
17020 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17021 PyObject *resultobj = 0;
17022 wxString *arg1 = 0 ;
17023 wxString *arg2 = 0 ;
17024 wxString result;
17025 bool temp1 = false ;
17026 bool temp2 = false ;
17027
17028 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17029 {
17030 arg1 = wxString_in_helper(swig_obj[0]);
17031 if (arg1 == NULL) SWIG_fail;
17032 temp1 = true;
17033 }
17034 {
17035 arg2 = wxString_in_helper(swig_obj[1]);
17036 if (arg2 == NULL) SWIG_fail;
17037 temp2 = true;
17038 }
17039 {
17040 PyThreadState* __tstate = wxPyBeginAllowThreads();
17041 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 {
17046 #if wxUSE_UNICODE
17047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17048 #else
17049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17050 #endif
17051 }
17052 {
17053 if (temp1)
17054 delete arg1;
17055 }
17056 {
17057 if (temp2)
17058 delete arg2;
17059 }
17060 return resultobj;
17061 fail:
17062 {
17063 if (temp1)
17064 delete arg1;
17065 }
17066 {
17067 if (temp2)
17068 delete arg2;
17069 }
17070 return NULL;
17071 }
17072
17073
17074 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17075 PyObject *resultobj = 0;
17076 wxString *arg1 = 0 ;
17077 wxString *arg2 = 0 ;
17078 size_t arg3 ;
17079 wxString result;
17080 bool temp1 = false ;
17081 bool temp2 = false ;
17082 size_t val3 ;
17083 int ecode3 = 0 ;
17084
17085 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17086 {
17087 arg1 = wxString_in_helper(swig_obj[0]);
17088 if (arg1 == NULL) SWIG_fail;
17089 temp1 = true;
17090 }
17091 {
17092 arg2 = wxString_in_helper(swig_obj[1]);
17093 if (arg2 == NULL) SWIG_fail;
17094 temp2 = true;
17095 }
17096 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17097 if (!SWIG_IsOK(ecode3)) {
17098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17099 }
17100 arg3 = static_cast< size_t >(val3);
17101 {
17102 PyThreadState* __tstate = wxPyBeginAllowThreads();
17103 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17104 wxPyEndAllowThreads(__tstate);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 {
17108 #if wxUSE_UNICODE
17109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17110 #else
17111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17112 #endif
17113 }
17114 {
17115 if (temp1)
17116 delete arg1;
17117 }
17118 {
17119 if (temp2)
17120 delete arg2;
17121 }
17122 return resultobj;
17123 fail:
17124 {
17125 if (temp1)
17126 delete arg1;
17127 }
17128 {
17129 if (temp2)
17130 delete arg2;
17131 }
17132 return NULL;
17133 }
17134
17135
17136 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17137 PyObject *resultobj = 0;
17138 wxString *arg1 = 0 ;
17139 wxString *arg2 = 0 ;
17140 size_t arg3 ;
17141 wxString *arg4 = 0 ;
17142 wxString result;
17143 bool temp1 = false ;
17144 bool temp2 = false ;
17145 size_t val3 ;
17146 int ecode3 = 0 ;
17147 bool temp4 = false ;
17148
17149 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17150 {
17151 arg1 = wxString_in_helper(swig_obj[0]);
17152 if (arg1 == NULL) SWIG_fail;
17153 temp1 = true;
17154 }
17155 {
17156 arg2 = wxString_in_helper(swig_obj[1]);
17157 if (arg2 == NULL) SWIG_fail;
17158 temp2 = true;
17159 }
17160 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17161 if (!SWIG_IsOK(ecode3)) {
17162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17163 }
17164 arg3 = static_cast< size_t >(val3);
17165 {
17166 arg4 = wxString_in_helper(swig_obj[3]);
17167 if (arg4 == NULL) SWIG_fail;
17168 temp4 = true;
17169 }
17170 {
17171 PyThreadState* __tstate = wxPyBeginAllowThreads();
17172 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17173 wxPyEndAllowThreads(__tstate);
17174 if (PyErr_Occurred()) SWIG_fail;
17175 }
17176 {
17177 #if wxUSE_UNICODE
17178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17179 #else
17180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17181 #endif
17182 }
17183 {
17184 if (temp1)
17185 delete arg1;
17186 }
17187 {
17188 if (temp2)
17189 delete arg2;
17190 }
17191 {
17192 if (temp4)
17193 delete arg4;
17194 }
17195 return resultobj;
17196 fail:
17197 {
17198 if (temp1)
17199 delete arg1;
17200 }
17201 {
17202 if (temp2)
17203 delete arg2;
17204 }
17205 {
17206 if (temp4)
17207 delete arg4;
17208 }
17209 return NULL;
17210 }
17211
17212
17213 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17214 int argc;
17215 PyObject *argv[5];
17216
17217 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17218 --argc;
17219 if (argc == 1) {
17220 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17221 }
17222 if (argc == 2) {
17223 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17224 }
17225 if (argc == 3) {
17226 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17227 }
17228 if (argc == 4) {
17229 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17230 }
17231
17232 fail:
17233 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17234 return NULL;
17235 }
17236
17237
17238 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17239 PyObject *resultobj = 0;
17240 wxEncodingConverter *result = 0 ;
17241
17242 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 result = (wxEncodingConverter *)new wxEncodingConverter();
17246 wxPyEndAllowThreads(__tstate);
17247 if (PyErr_Occurred()) SWIG_fail;
17248 }
17249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17250 return resultobj;
17251 fail:
17252 return NULL;
17253 }
17254
17255
17256 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17257 PyObject *resultobj = 0;
17258 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17259 void *argp1 = 0 ;
17260 int res1 = 0 ;
17261 PyObject *swig_obj[1] ;
17262
17263 if (!args) SWIG_fail;
17264 swig_obj[0] = args;
17265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17266 if (!SWIG_IsOK(res1)) {
17267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17268 }
17269 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 delete arg1;
17273
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 resultobj = SWIG_Py_Void();
17278 return resultobj;
17279 fail:
17280 return NULL;
17281 }
17282
17283
17284 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj = 0;
17286 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17287 wxFontEncoding arg2 ;
17288 wxFontEncoding arg3 ;
17289 int arg4 = (int) wxCONVERT_STRICT ;
17290 bool result;
17291 void *argp1 = 0 ;
17292 int res1 = 0 ;
17293 int val2 ;
17294 int ecode2 = 0 ;
17295 int val3 ;
17296 int ecode3 = 0 ;
17297 int val4 ;
17298 int ecode4 = 0 ;
17299 PyObject * obj0 = 0 ;
17300 PyObject * obj1 = 0 ;
17301 PyObject * obj2 = 0 ;
17302 PyObject * obj3 = 0 ;
17303 char * kwnames[] = {
17304 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17305 };
17306
17307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17309 if (!SWIG_IsOK(res1)) {
17310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17311 }
17312 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17313 ecode2 = SWIG_AsVal_int(obj1, &val2);
17314 if (!SWIG_IsOK(ecode2)) {
17315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17316 }
17317 arg2 = static_cast< wxFontEncoding >(val2);
17318 ecode3 = SWIG_AsVal_int(obj2, &val3);
17319 if (!SWIG_IsOK(ecode3)) {
17320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17321 }
17322 arg3 = static_cast< wxFontEncoding >(val3);
17323 if (obj3) {
17324 ecode4 = SWIG_AsVal_int(obj3, &val4);
17325 if (!SWIG_IsOK(ecode4)) {
17326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17327 }
17328 arg4 = static_cast< int >(val4);
17329 }
17330 {
17331 PyThreadState* __tstate = wxPyBeginAllowThreads();
17332 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17338 }
17339 return resultobj;
17340 fail:
17341 return NULL;
17342 }
17343
17344
17345 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17346 PyObject *resultobj = 0;
17347 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17348 wxString *arg2 = 0 ;
17349 wxString result;
17350 void *argp1 = 0 ;
17351 int res1 = 0 ;
17352 bool temp2 = false ;
17353 PyObject * obj0 = 0 ;
17354 PyObject * obj1 = 0 ;
17355 char * kwnames[] = {
17356 (char *) "self",(char *) "input", NULL
17357 };
17358
17359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17361 if (!SWIG_IsOK(res1)) {
17362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17363 }
17364 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17365 {
17366 arg2 = wxString_in_helper(obj1);
17367 if (arg2 == NULL) SWIG_fail;
17368 temp2 = true;
17369 }
17370 {
17371 PyThreadState* __tstate = wxPyBeginAllowThreads();
17372 result = (arg1)->Convert((wxString const &)*arg2);
17373 wxPyEndAllowThreads(__tstate);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 }
17376 {
17377 #if wxUSE_UNICODE
17378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17379 #else
17380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17381 #endif
17382 }
17383 {
17384 if (temp2)
17385 delete arg2;
17386 }
17387 return resultobj;
17388 fail:
17389 {
17390 if (temp2)
17391 delete arg2;
17392 }
17393 return NULL;
17394 }
17395
17396
17397 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17398 PyObject *resultobj = 0;
17399 wxFontEncoding arg1 ;
17400 int arg2 = (int) wxPLATFORM_CURRENT ;
17401 wxFontEncodingArray result;
17402 int val1 ;
17403 int ecode1 = 0 ;
17404 int val2 ;
17405 int ecode2 = 0 ;
17406 PyObject * obj0 = 0 ;
17407 PyObject * obj1 = 0 ;
17408 char * kwnames[] = {
17409 (char *) "enc",(char *) "platform", NULL
17410 };
17411
17412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17413 ecode1 = SWIG_AsVal_int(obj0, &val1);
17414 if (!SWIG_IsOK(ecode1)) {
17415 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17416 }
17417 arg1 = static_cast< wxFontEncoding >(val1);
17418 if (obj1) {
17419 ecode2 = SWIG_AsVal_int(obj1, &val2);
17420 if (!SWIG_IsOK(ecode2)) {
17421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17422 }
17423 arg2 = static_cast< int >(val2);
17424 }
17425 {
17426 PyThreadState* __tstate = wxPyBeginAllowThreads();
17427 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17428 wxPyEndAllowThreads(__tstate);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 {
17432 resultobj = PyList_New(0);
17433 for (size_t i=0; i < (&result)->GetCount(); i++) {
17434 PyObject* number = PyInt_FromLong((&result)->Item(i));
17435 PyList_Append(resultobj, number);
17436 Py_DECREF(number);
17437 }
17438 }
17439 return resultobj;
17440 fail:
17441 return NULL;
17442 }
17443
17444
17445 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17446 PyObject *resultobj = 0;
17447 wxFontEncoding arg1 ;
17448 wxFontEncodingArray result;
17449 int val1 ;
17450 int ecode1 = 0 ;
17451 PyObject * obj0 = 0 ;
17452 char * kwnames[] = {
17453 (char *) "enc", NULL
17454 };
17455
17456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17457 ecode1 = SWIG_AsVal_int(obj0, &val1);
17458 if (!SWIG_IsOK(ecode1)) {
17459 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17460 }
17461 arg1 = static_cast< wxFontEncoding >(val1);
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 result = wxEncodingConverter::GetAllEquivalents(arg1);
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 {
17469 resultobj = PyList_New(0);
17470 for (size_t i=0; i < (&result)->GetCount(); i++) {
17471 PyObject* number = PyInt_FromLong((&result)->Item(i));
17472 PyList_Append(resultobj, number);
17473 Py_DECREF(number);
17474 }
17475 }
17476 return resultobj;
17477 fail:
17478 return NULL;
17479 }
17480
17481
17482 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17483 PyObject *resultobj = 0;
17484 wxFontEncoding arg1 ;
17485 wxFontEncoding arg2 ;
17486 bool result;
17487 int val1 ;
17488 int ecode1 = 0 ;
17489 int val2 ;
17490 int ecode2 = 0 ;
17491 PyObject * obj0 = 0 ;
17492 PyObject * obj1 = 0 ;
17493 char * kwnames[] = {
17494 (char *) "encIn",(char *) "encOut", NULL
17495 };
17496
17497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17498 ecode1 = SWIG_AsVal_int(obj0, &val1);
17499 if (!SWIG_IsOK(ecode1)) {
17500 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17501 }
17502 arg1 = static_cast< wxFontEncoding >(val1);
17503 ecode2 = SWIG_AsVal_int(obj1, &val2);
17504 if (!SWIG_IsOK(ecode2)) {
17505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17506 }
17507 arg2 = static_cast< wxFontEncoding >(val2);
17508 {
17509 PyThreadState* __tstate = wxPyBeginAllowThreads();
17510 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17511 wxPyEndAllowThreads(__tstate);
17512 if (PyErr_Occurred()) SWIG_fail;
17513 }
17514 {
17515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17516 }
17517 return resultobj;
17518 fail:
17519 return NULL;
17520 }
17521
17522
17523 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17524 PyObject *obj;
17525 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17526 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17527 return SWIG_Py_Void();
17528 }
17529
17530 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17531 return SWIG_Python_InitShadowInstance(args);
17532 }
17533
17534 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17535 PyObject *resultobj = 0;
17536 wxDC *arg1 = (wxDC *) 0 ;
17537 void *argp1 = 0 ;
17538 int res1 = 0 ;
17539 PyObject *swig_obj[1] ;
17540
17541 if (!args) SWIG_fail;
17542 swig_obj[0] = args;
17543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17544 if (!SWIG_IsOK(res1)) {
17545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17546 }
17547 arg1 = reinterpret_cast< wxDC * >(argp1);
17548 {
17549 PyThreadState* __tstate = wxPyBeginAllowThreads();
17550 delete arg1;
17551
17552 wxPyEndAllowThreads(__tstate);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 }
17555 resultobj = SWIG_Py_Void();
17556 return resultobj;
17557 fail:
17558 return NULL;
17559 }
17560
17561
17562 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17563 PyObject *resultobj = 0;
17564 wxDC *arg1 = (wxDC *) 0 ;
17565 int arg2 ;
17566 int arg3 ;
17567 wxColour *arg4 = 0 ;
17568 int arg5 = (int) wxFLOOD_SURFACE ;
17569 bool result;
17570 void *argp1 = 0 ;
17571 int res1 = 0 ;
17572 int val2 ;
17573 int ecode2 = 0 ;
17574 int val3 ;
17575 int ecode3 = 0 ;
17576 wxColour temp4 ;
17577 int val5 ;
17578 int ecode5 = 0 ;
17579 PyObject * obj0 = 0 ;
17580 PyObject * obj1 = 0 ;
17581 PyObject * obj2 = 0 ;
17582 PyObject * obj3 = 0 ;
17583 PyObject * obj4 = 0 ;
17584 char * kwnames[] = {
17585 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17586 };
17587
17588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17590 if (!SWIG_IsOK(res1)) {
17591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17592 }
17593 arg1 = reinterpret_cast< wxDC * >(argp1);
17594 ecode2 = SWIG_AsVal_int(obj1, &val2);
17595 if (!SWIG_IsOK(ecode2)) {
17596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17597 }
17598 arg2 = static_cast< int >(val2);
17599 ecode3 = SWIG_AsVal_int(obj2, &val3);
17600 if (!SWIG_IsOK(ecode3)) {
17601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17602 }
17603 arg3 = static_cast< int >(val3);
17604 {
17605 arg4 = &temp4;
17606 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17607 }
17608 if (obj4) {
17609 ecode5 = SWIG_AsVal_int(obj4, &val5);
17610 if (!SWIG_IsOK(ecode5)) {
17611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17612 }
17613 arg5 = static_cast< int >(val5);
17614 }
17615 {
17616 PyThreadState* __tstate = wxPyBeginAllowThreads();
17617 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17618 wxPyEndAllowThreads(__tstate);
17619 if (PyErr_Occurred()) SWIG_fail;
17620 }
17621 {
17622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17623 }
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj = 0;
17632 wxDC *arg1 = (wxDC *) 0 ;
17633 wxPoint *arg2 = 0 ;
17634 wxColour *arg3 = 0 ;
17635 int arg4 = (int) wxFLOOD_SURFACE ;
17636 bool result;
17637 void *argp1 = 0 ;
17638 int res1 = 0 ;
17639 wxPoint temp2 ;
17640 wxColour temp3 ;
17641 int val4 ;
17642 int ecode4 = 0 ;
17643 PyObject * obj0 = 0 ;
17644 PyObject * obj1 = 0 ;
17645 PyObject * obj2 = 0 ;
17646 PyObject * obj3 = 0 ;
17647 char * kwnames[] = {
17648 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17649 };
17650
17651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17655 }
17656 arg1 = reinterpret_cast< wxDC * >(argp1);
17657 {
17658 arg2 = &temp2;
17659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17660 }
17661 {
17662 arg3 = &temp3;
17663 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17664 }
17665 if (obj3) {
17666 ecode4 = SWIG_AsVal_int(obj3, &val4);
17667 if (!SWIG_IsOK(ecode4)) {
17668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17669 }
17670 arg4 = static_cast< int >(val4);
17671 }
17672 {
17673 PyThreadState* __tstate = wxPyBeginAllowThreads();
17674 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17675 wxPyEndAllowThreads(__tstate);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 }
17678 {
17679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17680 }
17681 return resultobj;
17682 fail:
17683 return NULL;
17684 }
17685
17686
17687 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj = 0;
17689 wxDC *arg1 = (wxDC *) 0 ;
17690 wxRect *arg2 = 0 ;
17691 wxColour *arg3 = 0 ;
17692 wxColour *arg4 = 0 ;
17693 wxPoint *arg5 = 0 ;
17694 void *argp1 = 0 ;
17695 int res1 = 0 ;
17696 wxRect temp2 ;
17697 wxColour temp3 ;
17698 wxColour temp4 ;
17699 wxPoint temp5 ;
17700 PyObject * obj0 = 0 ;
17701 PyObject * obj1 = 0 ;
17702 PyObject * obj2 = 0 ;
17703 PyObject * obj3 = 0 ;
17704 PyObject * obj4 = 0 ;
17705 char * kwnames[] = {
17706 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17707 };
17708
17709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17711 if (!SWIG_IsOK(res1)) {
17712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17713 }
17714 arg1 = reinterpret_cast< wxDC * >(argp1);
17715 {
17716 arg2 = &temp2;
17717 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17718 }
17719 {
17720 arg3 = &temp3;
17721 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17722 }
17723 {
17724 arg4 = &temp4;
17725 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17726 }
17727 {
17728 arg5 = &temp5;
17729 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17730 }
17731 {
17732 PyThreadState* __tstate = wxPyBeginAllowThreads();
17733 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 resultobj = SWIG_Py_Void();
17738 return resultobj;
17739 fail:
17740 return NULL;
17741 }
17742
17743
17744 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj = 0;
17746 wxDC *arg1 = (wxDC *) 0 ;
17747 wxRect *arg2 = 0 ;
17748 wxColour *arg3 = 0 ;
17749 wxColour *arg4 = 0 ;
17750 wxDirection arg5 = (wxDirection) wxEAST ;
17751 void *argp1 = 0 ;
17752 int res1 = 0 ;
17753 wxRect temp2 ;
17754 wxColour temp3 ;
17755 wxColour temp4 ;
17756 int val5 ;
17757 int ecode5 = 0 ;
17758 PyObject * obj0 = 0 ;
17759 PyObject * obj1 = 0 ;
17760 PyObject * obj2 = 0 ;
17761 PyObject * obj3 = 0 ;
17762 PyObject * obj4 = 0 ;
17763 char * kwnames[] = {
17764 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17765 };
17766
17767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17769 if (!SWIG_IsOK(res1)) {
17770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17771 }
17772 arg1 = reinterpret_cast< wxDC * >(argp1);
17773 {
17774 arg2 = &temp2;
17775 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17776 }
17777 {
17778 arg3 = &temp3;
17779 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17780 }
17781 {
17782 arg4 = &temp4;
17783 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17784 }
17785 if (obj4) {
17786 ecode5 = SWIG_AsVal_int(obj4, &val5);
17787 if (!SWIG_IsOK(ecode5)) {
17788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17789 }
17790 arg5 = static_cast< wxDirection >(val5);
17791 }
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 resultobj = SWIG_Py_Void();
17799 return resultobj;
17800 fail:
17801 return NULL;
17802 }
17803
17804
17805 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj = 0;
17807 wxDC *arg1 = (wxDC *) 0 ;
17808 int arg2 ;
17809 int arg3 ;
17810 wxColour result;
17811 void *argp1 = 0 ;
17812 int res1 = 0 ;
17813 int val2 ;
17814 int ecode2 = 0 ;
17815 int val3 ;
17816 int ecode3 = 0 ;
17817 PyObject * obj0 = 0 ;
17818 PyObject * obj1 = 0 ;
17819 PyObject * obj2 = 0 ;
17820 char * kwnames[] = {
17821 (char *) "self",(char *) "x",(char *) "y", NULL
17822 };
17823
17824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17826 if (!SWIG_IsOK(res1)) {
17827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17828 }
17829 arg1 = reinterpret_cast< wxDC * >(argp1);
17830 ecode2 = SWIG_AsVal_int(obj1, &val2);
17831 if (!SWIG_IsOK(ecode2)) {
17832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17833 }
17834 arg2 = static_cast< int >(val2);
17835 ecode3 = SWIG_AsVal_int(obj2, &val3);
17836 if (!SWIG_IsOK(ecode3)) {
17837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17838 }
17839 arg3 = static_cast< int >(val3);
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 result = wxDC_GetPixel(arg1,arg2,arg3);
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17847 return resultobj;
17848 fail:
17849 return NULL;
17850 }
17851
17852
17853 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj = 0;
17855 wxDC *arg1 = (wxDC *) 0 ;
17856 wxPoint *arg2 = 0 ;
17857 wxColour result;
17858 void *argp1 = 0 ;
17859 int res1 = 0 ;
17860 wxPoint temp2 ;
17861 PyObject * obj0 = 0 ;
17862 PyObject * obj1 = 0 ;
17863 char * kwnames[] = {
17864 (char *) "self",(char *) "pt", NULL
17865 };
17866
17867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17869 if (!SWIG_IsOK(res1)) {
17870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17871 }
17872 arg1 = reinterpret_cast< wxDC * >(argp1);
17873 {
17874 arg2 = &temp2;
17875 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17876 }
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17880 wxPyEndAllowThreads(__tstate);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 }
17883 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17884 return resultobj;
17885 fail:
17886 return NULL;
17887 }
17888
17889
17890 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17891 PyObject *resultobj = 0;
17892 wxDC *arg1 = (wxDC *) 0 ;
17893 int arg2 ;
17894 int arg3 ;
17895 int arg4 ;
17896 int arg5 ;
17897 void *argp1 = 0 ;
17898 int res1 = 0 ;
17899 int val2 ;
17900 int ecode2 = 0 ;
17901 int val3 ;
17902 int ecode3 = 0 ;
17903 int val4 ;
17904 int ecode4 = 0 ;
17905 int val5 ;
17906 int ecode5 = 0 ;
17907 PyObject * obj0 = 0 ;
17908 PyObject * obj1 = 0 ;
17909 PyObject * obj2 = 0 ;
17910 PyObject * obj3 = 0 ;
17911 PyObject * obj4 = 0 ;
17912 char * kwnames[] = {
17913 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17914 };
17915
17916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17918 if (!SWIG_IsOK(res1)) {
17919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17920 }
17921 arg1 = reinterpret_cast< wxDC * >(argp1);
17922 ecode2 = SWIG_AsVal_int(obj1, &val2);
17923 if (!SWIG_IsOK(ecode2)) {
17924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17925 }
17926 arg2 = static_cast< int >(val2);
17927 ecode3 = SWIG_AsVal_int(obj2, &val3);
17928 if (!SWIG_IsOK(ecode3)) {
17929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17930 }
17931 arg3 = static_cast< int >(val3);
17932 ecode4 = SWIG_AsVal_int(obj3, &val4);
17933 if (!SWIG_IsOK(ecode4)) {
17934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17935 }
17936 arg4 = static_cast< int >(val4);
17937 ecode5 = SWIG_AsVal_int(obj4, &val5);
17938 if (!SWIG_IsOK(ecode5)) {
17939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17940 }
17941 arg5 = static_cast< int >(val5);
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17945 wxPyEndAllowThreads(__tstate);
17946 if (PyErr_Occurred()) SWIG_fail;
17947 }
17948 resultobj = SWIG_Py_Void();
17949 return resultobj;
17950 fail:
17951 return NULL;
17952 }
17953
17954
17955 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17956 PyObject *resultobj = 0;
17957 wxDC *arg1 = (wxDC *) 0 ;
17958 wxPoint *arg2 = 0 ;
17959 wxPoint *arg3 = 0 ;
17960 void *argp1 = 0 ;
17961 int res1 = 0 ;
17962 wxPoint temp2 ;
17963 wxPoint temp3 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 PyObject * obj2 = 0 ;
17967 char * kwnames[] = {
17968 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17969 };
17970
17971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17973 if (!SWIG_IsOK(res1)) {
17974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17975 }
17976 arg1 = reinterpret_cast< wxDC * >(argp1);
17977 {
17978 arg2 = &temp2;
17979 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17980 }
17981 {
17982 arg3 = &temp3;
17983 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17984 }
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17988 wxPyEndAllowThreads(__tstate);
17989 if (PyErr_Occurred()) SWIG_fail;
17990 }
17991 resultobj = SWIG_Py_Void();
17992 return resultobj;
17993 fail:
17994 return NULL;
17995 }
17996
17997
17998 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17999 PyObject *resultobj = 0;
18000 wxDC *arg1 = (wxDC *) 0 ;
18001 int arg2 ;
18002 int arg3 ;
18003 void *argp1 = 0 ;
18004 int res1 = 0 ;
18005 int val2 ;
18006 int ecode2 = 0 ;
18007 int val3 ;
18008 int ecode3 = 0 ;
18009 PyObject * obj0 = 0 ;
18010 PyObject * obj1 = 0 ;
18011 PyObject * obj2 = 0 ;
18012 char * kwnames[] = {
18013 (char *) "self",(char *) "x",(char *) "y", NULL
18014 };
18015
18016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18018 if (!SWIG_IsOK(res1)) {
18019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18020 }
18021 arg1 = reinterpret_cast< wxDC * >(argp1);
18022 ecode2 = SWIG_AsVal_int(obj1, &val2);
18023 if (!SWIG_IsOK(ecode2)) {
18024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18025 }
18026 arg2 = static_cast< int >(val2);
18027 ecode3 = SWIG_AsVal_int(obj2, &val3);
18028 if (!SWIG_IsOK(ecode3)) {
18029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18030 }
18031 arg3 = static_cast< int >(val3);
18032 {
18033 PyThreadState* __tstate = wxPyBeginAllowThreads();
18034 (arg1)->CrossHair(arg2,arg3);
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 resultobj = SWIG_Py_Void();
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj = 0;
18047 wxDC *arg1 = (wxDC *) 0 ;
18048 wxPoint *arg2 = 0 ;
18049 void *argp1 = 0 ;
18050 int res1 = 0 ;
18051 wxPoint temp2 ;
18052 PyObject * obj0 = 0 ;
18053 PyObject * obj1 = 0 ;
18054 char * kwnames[] = {
18055 (char *) "self",(char *) "pt", NULL
18056 };
18057
18058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18060 if (!SWIG_IsOK(res1)) {
18061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18062 }
18063 arg1 = reinterpret_cast< wxDC * >(argp1);
18064 {
18065 arg2 = &temp2;
18066 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18067 }
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 (arg1)->CrossHair((wxPoint const &)*arg2);
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_Py_Void();
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18082 PyObject *resultobj = 0;
18083 wxDC *arg1 = (wxDC *) 0 ;
18084 int arg2 ;
18085 int arg3 ;
18086 int arg4 ;
18087 int arg5 ;
18088 int arg6 ;
18089 int arg7 ;
18090 void *argp1 = 0 ;
18091 int res1 = 0 ;
18092 int val2 ;
18093 int ecode2 = 0 ;
18094 int val3 ;
18095 int ecode3 = 0 ;
18096 int val4 ;
18097 int ecode4 = 0 ;
18098 int val5 ;
18099 int ecode5 = 0 ;
18100 int val6 ;
18101 int ecode6 = 0 ;
18102 int val7 ;
18103 int ecode7 = 0 ;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 PyObject * obj2 = 0 ;
18107 PyObject * obj3 = 0 ;
18108 PyObject * obj4 = 0 ;
18109 PyObject * obj5 = 0 ;
18110 PyObject * obj6 = 0 ;
18111 char * kwnames[] = {
18112 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18113 };
18114
18115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18117 if (!SWIG_IsOK(res1)) {
18118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18119 }
18120 arg1 = reinterpret_cast< wxDC * >(argp1);
18121 ecode2 = SWIG_AsVal_int(obj1, &val2);
18122 if (!SWIG_IsOK(ecode2)) {
18123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18124 }
18125 arg2 = static_cast< int >(val2);
18126 ecode3 = SWIG_AsVal_int(obj2, &val3);
18127 if (!SWIG_IsOK(ecode3)) {
18128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18129 }
18130 arg3 = static_cast< int >(val3);
18131 ecode4 = SWIG_AsVal_int(obj3, &val4);
18132 if (!SWIG_IsOK(ecode4)) {
18133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18134 }
18135 arg4 = static_cast< int >(val4);
18136 ecode5 = SWIG_AsVal_int(obj4, &val5);
18137 if (!SWIG_IsOK(ecode5)) {
18138 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18139 }
18140 arg5 = static_cast< int >(val5);
18141 ecode6 = SWIG_AsVal_int(obj5, &val6);
18142 if (!SWIG_IsOK(ecode6)) {
18143 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18144 }
18145 arg6 = static_cast< int >(val6);
18146 ecode7 = SWIG_AsVal_int(obj6, &val7);
18147 if (!SWIG_IsOK(ecode7)) {
18148 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18149 }
18150 arg7 = static_cast< int >(val7);
18151 {
18152 PyThreadState* __tstate = wxPyBeginAllowThreads();
18153 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18154 wxPyEndAllowThreads(__tstate);
18155 if (PyErr_Occurred()) SWIG_fail;
18156 }
18157 resultobj = SWIG_Py_Void();
18158 return resultobj;
18159 fail:
18160 return NULL;
18161 }
18162
18163
18164 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18165 PyObject *resultobj = 0;
18166 wxDC *arg1 = (wxDC *) 0 ;
18167 wxPoint *arg2 = 0 ;
18168 wxPoint *arg3 = 0 ;
18169 wxPoint *arg4 = 0 ;
18170 void *argp1 = 0 ;
18171 int res1 = 0 ;
18172 wxPoint temp2 ;
18173 wxPoint temp3 ;
18174 wxPoint temp4 ;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 PyObject * obj2 = 0 ;
18178 PyObject * obj3 = 0 ;
18179 char * kwnames[] = {
18180 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18181 };
18182
18183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18185 if (!SWIG_IsOK(res1)) {
18186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18187 }
18188 arg1 = reinterpret_cast< wxDC * >(argp1);
18189 {
18190 arg2 = &temp2;
18191 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18192 }
18193 {
18194 arg3 = &temp3;
18195 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18196 }
18197 {
18198 arg4 = &temp4;
18199 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18200 }
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18204 wxPyEndAllowThreads(__tstate);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 }
18207 resultobj = SWIG_Py_Void();
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18215 PyObject *resultobj = 0;
18216 wxDC *arg1 = (wxDC *) 0 ;
18217 int arg2 ;
18218 int arg3 ;
18219 int arg4 ;
18220 int arg5 ;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 int val2 ;
18224 int ecode2 = 0 ;
18225 int val3 ;
18226 int ecode3 = 0 ;
18227 int val4 ;
18228 int ecode4 = 0 ;
18229 int val5 ;
18230 int ecode5 = 0 ;
18231 PyObject * obj0 = 0 ;
18232 PyObject * obj1 = 0 ;
18233 PyObject * obj2 = 0 ;
18234 PyObject * obj3 = 0 ;
18235 PyObject * obj4 = 0 ;
18236 char * kwnames[] = {
18237 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18238 };
18239
18240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18242 if (!SWIG_IsOK(res1)) {
18243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18244 }
18245 arg1 = reinterpret_cast< wxDC * >(argp1);
18246 ecode2 = SWIG_AsVal_int(obj1, &val2);
18247 if (!SWIG_IsOK(ecode2)) {
18248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18249 }
18250 arg2 = static_cast< int >(val2);
18251 ecode3 = SWIG_AsVal_int(obj2, &val3);
18252 if (!SWIG_IsOK(ecode3)) {
18253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18254 }
18255 arg3 = static_cast< int >(val3);
18256 ecode4 = SWIG_AsVal_int(obj3, &val4);
18257 if (!SWIG_IsOK(ecode4)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18259 }
18260 arg4 = static_cast< int >(val4);
18261 ecode5 = SWIG_AsVal_int(obj4, &val5);
18262 if (!SWIG_IsOK(ecode5)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18264 }
18265 arg5 = static_cast< int >(val5);
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 resultobj = SWIG_Py_Void();
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18280 PyObject *resultobj = 0;
18281 wxDC *arg1 = (wxDC *) 0 ;
18282 wxRect *arg2 = 0 ;
18283 void *argp1 = 0 ;
18284 int res1 = 0 ;
18285 wxRect temp2 ;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 char * kwnames[] = {
18289 (char *) "self",(char *) "rect", NULL
18290 };
18291
18292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18294 if (!SWIG_IsOK(res1)) {
18295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18296 }
18297 arg1 = reinterpret_cast< wxDC * >(argp1);
18298 {
18299 arg2 = &temp2;
18300 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18301 }
18302 {
18303 PyThreadState* __tstate = wxPyBeginAllowThreads();
18304 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 resultobj = SWIG_Py_Void();
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj = 0;
18317 wxDC *arg1 = (wxDC *) 0 ;
18318 int arg2 ;
18319 int arg3 ;
18320 int arg4 ;
18321 int arg5 ;
18322 double arg6 ;
18323 double arg7 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 int val2 ;
18327 int ecode2 = 0 ;
18328 int val3 ;
18329 int ecode3 = 0 ;
18330 int val4 ;
18331 int ecode4 = 0 ;
18332 int val5 ;
18333 int ecode5 = 0 ;
18334 double val6 ;
18335 int ecode6 = 0 ;
18336 double val7 ;
18337 int ecode7 = 0 ;
18338 PyObject * obj0 = 0 ;
18339 PyObject * obj1 = 0 ;
18340 PyObject * obj2 = 0 ;
18341 PyObject * obj3 = 0 ;
18342 PyObject * obj4 = 0 ;
18343 PyObject * obj5 = 0 ;
18344 PyObject * obj6 = 0 ;
18345 char * kwnames[] = {
18346 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18347 };
18348
18349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18351 if (!SWIG_IsOK(res1)) {
18352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18353 }
18354 arg1 = reinterpret_cast< wxDC * >(argp1);
18355 ecode2 = SWIG_AsVal_int(obj1, &val2);
18356 if (!SWIG_IsOK(ecode2)) {
18357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18358 }
18359 arg2 = static_cast< int >(val2);
18360 ecode3 = SWIG_AsVal_int(obj2, &val3);
18361 if (!SWIG_IsOK(ecode3)) {
18362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18363 }
18364 arg3 = static_cast< int >(val3);
18365 ecode4 = SWIG_AsVal_int(obj3, &val4);
18366 if (!SWIG_IsOK(ecode4)) {
18367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18368 }
18369 arg4 = static_cast< int >(val4);
18370 ecode5 = SWIG_AsVal_int(obj4, &val5);
18371 if (!SWIG_IsOK(ecode5)) {
18372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18373 }
18374 arg5 = static_cast< int >(val5);
18375 ecode6 = SWIG_AsVal_double(obj5, &val6);
18376 if (!SWIG_IsOK(ecode6)) {
18377 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18378 }
18379 arg6 = static_cast< double >(val6);
18380 ecode7 = SWIG_AsVal_double(obj6, &val7);
18381 if (!SWIG_IsOK(ecode7)) {
18382 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18383 }
18384 arg7 = static_cast< double >(val7);
18385 {
18386 PyThreadState* __tstate = wxPyBeginAllowThreads();
18387 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18388 wxPyEndAllowThreads(__tstate);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 resultobj = SWIG_Py_Void();
18392 return resultobj;
18393 fail:
18394 return NULL;
18395 }
18396
18397
18398 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj = 0;
18400 wxDC *arg1 = (wxDC *) 0 ;
18401 wxPoint *arg2 = 0 ;
18402 wxSize *arg3 = 0 ;
18403 double arg4 ;
18404 double arg5 ;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 wxPoint temp2 ;
18408 wxSize temp3 ;
18409 double val4 ;
18410 int ecode4 = 0 ;
18411 double val5 ;
18412 int ecode5 = 0 ;
18413 PyObject * obj0 = 0 ;
18414 PyObject * obj1 = 0 ;
18415 PyObject * obj2 = 0 ;
18416 PyObject * obj3 = 0 ;
18417 PyObject * obj4 = 0 ;
18418 char * kwnames[] = {
18419 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18420 };
18421
18422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18424 if (!SWIG_IsOK(res1)) {
18425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18426 }
18427 arg1 = reinterpret_cast< wxDC * >(argp1);
18428 {
18429 arg2 = &temp2;
18430 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18431 }
18432 {
18433 arg3 = &temp3;
18434 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18435 }
18436 ecode4 = SWIG_AsVal_double(obj3, &val4);
18437 if (!SWIG_IsOK(ecode4)) {
18438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18439 }
18440 arg4 = static_cast< double >(val4);
18441 ecode5 = SWIG_AsVal_double(obj4, &val5);
18442 if (!SWIG_IsOK(ecode5)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18444 }
18445 arg5 = static_cast< double >(val5);
18446 {
18447 PyThreadState* __tstate = wxPyBeginAllowThreads();
18448 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_Py_Void();
18453 return resultobj;
18454 fail:
18455 return NULL;
18456 }
18457
18458
18459 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxDC *arg1 = (wxDC *) 0 ;
18462 int arg2 ;
18463 int arg3 ;
18464 void *argp1 = 0 ;
18465 int res1 = 0 ;
18466 int val2 ;
18467 int ecode2 = 0 ;
18468 int val3 ;
18469 int ecode3 = 0 ;
18470 PyObject * obj0 = 0 ;
18471 PyObject * obj1 = 0 ;
18472 PyObject * obj2 = 0 ;
18473 char * kwnames[] = {
18474 (char *) "self",(char *) "x",(char *) "y", NULL
18475 };
18476
18477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18479 if (!SWIG_IsOK(res1)) {
18480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18481 }
18482 arg1 = reinterpret_cast< wxDC * >(argp1);
18483 ecode2 = SWIG_AsVal_int(obj1, &val2);
18484 if (!SWIG_IsOK(ecode2)) {
18485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18486 }
18487 arg2 = static_cast< int >(val2);
18488 ecode3 = SWIG_AsVal_int(obj2, &val3);
18489 if (!SWIG_IsOK(ecode3)) {
18490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18491 }
18492 arg3 = static_cast< int >(val3);
18493 {
18494 PyThreadState* __tstate = wxPyBeginAllowThreads();
18495 (arg1)->DrawPoint(arg2,arg3);
18496 wxPyEndAllowThreads(__tstate);
18497 if (PyErr_Occurred()) SWIG_fail;
18498 }
18499 resultobj = SWIG_Py_Void();
18500 return resultobj;
18501 fail:
18502 return NULL;
18503 }
18504
18505
18506 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18507 PyObject *resultobj = 0;
18508 wxDC *arg1 = (wxDC *) 0 ;
18509 wxPoint *arg2 = 0 ;
18510 void *argp1 = 0 ;
18511 int res1 = 0 ;
18512 wxPoint temp2 ;
18513 PyObject * obj0 = 0 ;
18514 PyObject * obj1 = 0 ;
18515 char * kwnames[] = {
18516 (char *) "self",(char *) "pt", NULL
18517 };
18518
18519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18521 if (!SWIG_IsOK(res1)) {
18522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18523 }
18524 arg1 = reinterpret_cast< wxDC * >(argp1);
18525 {
18526 arg2 = &temp2;
18527 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18528 }
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 (arg1)->DrawPoint((wxPoint const &)*arg2);
18532 wxPyEndAllowThreads(__tstate);
18533 if (PyErr_Occurred()) SWIG_fail;
18534 }
18535 resultobj = SWIG_Py_Void();
18536 return resultobj;
18537 fail:
18538 return NULL;
18539 }
18540
18541
18542 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18543 PyObject *resultobj = 0;
18544 wxDC *arg1 = (wxDC *) 0 ;
18545 int arg2 ;
18546 int arg3 ;
18547 int arg4 ;
18548 int arg5 ;
18549 void *argp1 = 0 ;
18550 int res1 = 0 ;
18551 int val2 ;
18552 int ecode2 = 0 ;
18553 int val3 ;
18554 int ecode3 = 0 ;
18555 int val4 ;
18556 int ecode4 = 0 ;
18557 int val5 ;
18558 int ecode5 = 0 ;
18559 PyObject * obj0 = 0 ;
18560 PyObject * obj1 = 0 ;
18561 PyObject * obj2 = 0 ;
18562 PyObject * obj3 = 0 ;
18563 PyObject * obj4 = 0 ;
18564 char * kwnames[] = {
18565 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18566 };
18567
18568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18570 if (!SWIG_IsOK(res1)) {
18571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18572 }
18573 arg1 = reinterpret_cast< wxDC * >(argp1);
18574 ecode2 = SWIG_AsVal_int(obj1, &val2);
18575 if (!SWIG_IsOK(ecode2)) {
18576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18577 }
18578 arg2 = static_cast< int >(val2);
18579 ecode3 = SWIG_AsVal_int(obj2, &val3);
18580 if (!SWIG_IsOK(ecode3)) {
18581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18582 }
18583 arg3 = static_cast< int >(val3);
18584 ecode4 = SWIG_AsVal_int(obj3, &val4);
18585 if (!SWIG_IsOK(ecode4)) {
18586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18587 }
18588 arg4 = static_cast< int >(val4);
18589 ecode5 = SWIG_AsVal_int(obj4, &val5);
18590 if (!SWIG_IsOK(ecode5)) {
18591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18592 }
18593 arg5 = static_cast< int >(val5);
18594 {
18595 PyThreadState* __tstate = wxPyBeginAllowThreads();
18596 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18597 wxPyEndAllowThreads(__tstate);
18598 if (PyErr_Occurred()) SWIG_fail;
18599 }
18600 resultobj = SWIG_Py_Void();
18601 return resultobj;
18602 fail:
18603 return NULL;
18604 }
18605
18606
18607 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18608 PyObject *resultobj = 0;
18609 wxDC *arg1 = (wxDC *) 0 ;
18610 wxRect *arg2 = 0 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 wxRect temp2 ;
18614 PyObject * obj0 = 0 ;
18615 PyObject * obj1 = 0 ;
18616 char * kwnames[] = {
18617 (char *) "self",(char *) "rect", NULL
18618 };
18619
18620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18622 if (!SWIG_IsOK(res1)) {
18623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18624 }
18625 arg1 = reinterpret_cast< wxDC * >(argp1);
18626 {
18627 arg2 = &temp2;
18628 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18629 }
18630 {
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 (arg1)->DrawRectangle((wxRect const &)*arg2);
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 resultobj = SWIG_Py_Void();
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18644 PyObject *resultobj = 0;
18645 wxDC *arg1 = (wxDC *) 0 ;
18646 wxPoint *arg2 = 0 ;
18647 wxSize *arg3 = 0 ;
18648 void *argp1 = 0 ;
18649 int res1 = 0 ;
18650 wxPoint temp2 ;
18651 wxSize temp3 ;
18652 PyObject * obj0 = 0 ;
18653 PyObject * obj1 = 0 ;
18654 PyObject * obj2 = 0 ;
18655 char * kwnames[] = {
18656 (char *) "self",(char *) "pt",(char *) "sz", NULL
18657 };
18658
18659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18661 if (!SWIG_IsOK(res1)) {
18662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18663 }
18664 arg1 = reinterpret_cast< wxDC * >(argp1);
18665 {
18666 arg2 = &temp2;
18667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18668 }
18669 {
18670 arg3 = &temp3;
18671 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18672 }
18673 {
18674 PyThreadState* __tstate = wxPyBeginAllowThreads();
18675 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 resultobj = SWIG_Py_Void();
18680 return resultobj;
18681 fail:
18682 return NULL;
18683 }
18684
18685
18686 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18687 PyObject *resultobj = 0;
18688 wxDC *arg1 = (wxDC *) 0 ;
18689 int arg2 ;
18690 int arg3 ;
18691 int arg4 ;
18692 int arg5 ;
18693 double arg6 ;
18694 void *argp1 = 0 ;
18695 int res1 = 0 ;
18696 int val2 ;
18697 int ecode2 = 0 ;
18698 int val3 ;
18699 int ecode3 = 0 ;
18700 int val4 ;
18701 int ecode4 = 0 ;
18702 int val5 ;
18703 int ecode5 = 0 ;
18704 double val6 ;
18705 int ecode6 = 0 ;
18706 PyObject * obj0 = 0 ;
18707 PyObject * obj1 = 0 ;
18708 PyObject * obj2 = 0 ;
18709 PyObject * obj3 = 0 ;
18710 PyObject * obj4 = 0 ;
18711 PyObject * obj5 = 0 ;
18712 char * kwnames[] = {
18713 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18714 };
18715
18716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18718 if (!SWIG_IsOK(res1)) {
18719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18720 }
18721 arg1 = reinterpret_cast< wxDC * >(argp1);
18722 ecode2 = SWIG_AsVal_int(obj1, &val2);
18723 if (!SWIG_IsOK(ecode2)) {
18724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18725 }
18726 arg2 = static_cast< int >(val2);
18727 ecode3 = SWIG_AsVal_int(obj2, &val3);
18728 if (!SWIG_IsOK(ecode3)) {
18729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18730 }
18731 arg3 = static_cast< int >(val3);
18732 ecode4 = SWIG_AsVal_int(obj3, &val4);
18733 if (!SWIG_IsOK(ecode4)) {
18734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18735 }
18736 arg4 = static_cast< int >(val4);
18737 ecode5 = SWIG_AsVal_int(obj4, &val5);
18738 if (!SWIG_IsOK(ecode5)) {
18739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18740 }
18741 arg5 = static_cast< int >(val5);
18742 ecode6 = SWIG_AsVal_double(obj5, &val6);
18743 if (!SWIG_IsOK(ecode6)) {
18744 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18745 }
18746 arg6 = static_cast< double >(val6);
18747 {
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 resultobj = SWIG_Py_Void();
18754 return resultobj;
18755 fail:
18756 return NULL;
18757 }
18758
18759
18760 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18761 PyObject *resultobj = 0;
18762 wxDC *arg1 = (wxDC *) 0 ;
18763 wxRect *arg2 = 0 ;
18764 double arg3 ;
18765 void *argp1 = 0 ;
18766 int res1 = 0 ;
18767 wxRect temp2 ;
18768 double val3 ;
18769 int ecode3 = 0 ;
18770 PyObject * obj0 = 0 ;
18771 PyObject * obj1 = 0 ;
18772 PyObject * obj2 = 0 ;
18773 char * kwnames[] = {
18774 (char *) "self",(char *) "r",(char *) "radius", NULL
18775 };
18776
18777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18779 if (!SWIG_IsOK(res1)) {
18780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18781 }
18782 arg1 = reinterpret_cast< wxDC * >(argp1);
18783 {
18784 arg2 = &temp2;
18785 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18786 }
18787 ecode3 = SWIG_AsVal_double(obj2, &val3);
18788 if (!SWIG_IsOK(ecode3)) {
18789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18790 }
18791 arg3 = static_cast< double >(val3);
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18795 wxPyEndAllowThreads(__tstate);
18796 if (PyErr_Occurred()) SWIG_fail;
18797 }
18798 resultobj = SWIG_Py_Void();
18799 return resultobj;
18800 fail:
18801 return NULL;
18802 }
18803
18804
18805 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18806 PyObject *resultobj = 0;
18807 wxDC *arg1 = (wxDC *) 0 ;
18808 wxPoint *arg2 = 0 ;
18809 wxSize *arg3 = 0 ;
18810 double arg4 ;
18811 void *argp1 = 0 ;
18812 int res1 = 0 ;
18813 wxPoint temp2 ;
18814 wxSize temp3 ;
18815 double val4 ;
18816 int ecode4 = 0 ;
18817 PyObject * obj0 = 0 ;
18818 PyObject * obj1 = 0 ;
18819 PyObject * obj2 = 0 ;
18820 PyObject * obj3 = 0 ;
18821 char * kwnames[] = {
18822 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18823 };
18824
18825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18827 if (!SWIG_IsOK(res1)) {
18828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18829 }
18830 arg1 = reinterpret_cast< wxDC * >(argp1);
18831 {
18832 arg2 = &temp2;
18833 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18834 }
18835 {
18836 arg3 = &temp3;
18837 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18838 }
18839 ecode4 = SWIG_AsVal_double(obj3, &val4);
18840 if (!SWIG_IsOK(ecode4)) {
18841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18842 }
18843 arg4 = static_cast< double >(val4);
18844 {
18845 PyThreadState* __tstate = wxPyBeginAllowThreads();
18846 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18847 wxPyEndAllowThreads(__tstate);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 resultobj = SWIG_Py_Void();
18851 return resultobj;
18852 fail:
18853 return NULL;
18854 }
18855
18856
18857 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18858 PyObject *resultobj = 0;
18859 wxDC *arg1 = (wxDC *) 0 ;
18860 int arg2 ;
18861 int arg3 ;
18862 int arg4 ;
18863 void *argp1 = 0 ;
18864 int res1 = 0 ;
18865 int val2 ;
18866 int ecode2 = 0 ;
18867 int val3 ;
18868 int ecode3 = 0 ;
18869 int val4 ;
18870 int ecode4 = 0 ;
18871 PyObject * obj0 = 0 ;
18872 PyObject * obj1 = 0 ;
18873 PyObject * obj2 = 0 ;
18874 PyObject * obj3 = 0 ;
18875 char * kwnames[] = {
18876 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18877 };
18878
18879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18881 if (!SWIG_IsOK(res1)) {
18882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18883 }
18884 arg1 = reinterpret_cast< wxDC * >(argp1);
18885 ecode2 = SWIG_AsVal_int(obj1, &val2);
18886 if (!SWIG_IsOK(ecode2)) {
18887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18888 }
18889 arg2 = static_cast< int >(val2);
18890 ecode3 = SWIG_AsVal_int(obj2, &val3);
18891 if (!SWIG_IsOK(ecode3)) {
18892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18893 }
18894 arg3 = static_cast< int >(val3);
18895 ecode4 = SWIG_AsVal_int(obj3, &val4);
18896 if (!SWIG_IsOK(ecode4)) {
18897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18898 }
18899 arg4 = static_cast< int >(val4);
18900 {
18901 PyThreadState* __tstate = wxPyBeginAllowThreads();
18902 (arg1)->DrawCircle(arg2,arg3,arg4);
18903 wxPyEndAllowThreads(__tstate);
18904 if (PyErr_Occurred()) SWIG_fail;
18905 }
18906 resultobj = SWIG_Py_Void();
18907 return resultobj;
18908 fail:
18909 return NULL;
18910 }
18911
18912
18913 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18914 PyObject *resultobj = 0;
18915 wxDC *arg1 = (wxDC *) 0 ;
18916 wxPoint *arg2 = 0 ;
18917 int arg3 ;
18918 void *argp1 = 0 ;
18919 int res1 = 0 ;
18920 wxPoint temp2 ;
18921 int val3 ;
18922 int ecode3 = 0 ;
18923 PyObject * obj0 = 0 ;
18924 PyObject * obj1 = 0 ;
18925 PyObject * obj2 = 0 ;
18926 char * kwnames[] = {
18927 (char *) "self",(char *) "pt",(char *) "radius", NULL
18928 };
18929
18930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18932 if (!SWIG_IsOK(res1)) {
18933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18934 }
18935 arg1 = reinterpret_cast< wxDC * >(argp1);
18936 {
18937 arg2 = &temp2;
18938 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18939 }
18940 ecode3 = SWIG_AsVal_int(obj2, &val3);
18941 if (!SWIG_IsOK(ecode3)) {
18942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18943 }
18944 arg3 = static_cast< int >(val3);
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18948 wxPyEndAllowThreads(__tstate);
18949 if (PyErr_Occurred()) SWIG_fail;
18950 }
18951 resultobj = SWIG_Py_Void();
18952 return resultobj;
18953 fail:
18954 return NULL;
18955 }
18956
18957
18958 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18959 PyObject *resultobj = 0;
18960 wxDC *arg1 = (wxDC *) 0 ;
18961 int arg2 ;
18962 int arg3 ;
18963 int arg4 ;
18964 int arg5 ;
18965 void *argp1 = 0 ;
18966 int res1 = 0 ;
18967 int val2 ;
18968 int ecode2 = 0 ;
18969 int val3 ;
18970 int ecode3 = 0 ;
18971 int val4 ;
18972 int ecode4 = 0 ;
18973 int val5 ;
18974 int ecode5 = 0 ;
18975 PyObject * obj0 = 0 ;
18976 PyObject * obj1 = 0 ;
18977 PyObject * obj2 = 0 ;
18978 PyObject * obj3 = 0 ;
18979 PyObject * obj4 = 0 ;
18980 char * kwnames[] = {
18981 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18982 };
18983
18984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18988 }
18989 arg1 = reinterpret_cast< wxDC * >(argp1);
18990 ecode2 = SWIG_AsVal_int(obj1, &val2);
18991 if (!SWIG_IsOK(ecode2)) {
18992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18993 }
18994 arg2 = static_cast< int >(val2);
18995 ecode3 = SWIG_AsVal_int(obj2, &val3);
18996 if (!SWIG_IsOK(ecode3)) {
18997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18998 }
18999 arg3 = static_cast< int >(val3);
19000 ecode4 = SWIG_AsVal_int(obj3, &val4);
19001 if (!SWIG_IsOK(ecode4)) {
19002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19003 }
19004 arg4 = static_cast< int >(val4);
19005 ecode5 = SWIG_AsVal_int(obj4, &val5);
19006 if (!SWIG_IsOK(ecode5)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19008 }
19009 arg5 = static_cast< int >(val5);
19010 {
19011 PyThreadState* __tstate = wxPyBeginAllowThreads();
19012 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19013 wxPyEndAllowThreads(__tstate);
19014 if (PyErr_Occurred()) SWIG_fail;
19015 }
19016 resultobj = SWIG_Py_Void();
19017 return resultobj;
19018 fail:
19019 return NULL;
19020 }
19021
19022
19023 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19024 PyObject *resultobj = 0;
19025 wxDC *arg1 = (wxDC *) 0 ;
19026 wxRect *arg2 = 0 ;
19027 void *argp1 = 0 ;
19028 int res1 = 0 ;
19029 wxRect temp2 ;
19030 PyObject * obj0 = 0 ;
19031 PyObject * obj1 = 0 ;
19032 char * kwnames[] = {
19033 (char *) "self",(char *) "rect", NULL
19034 };
19035
19036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19038 if (!SWIG_IsOK(res1)) {
19039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19040 }
19041 arg1 = reinterpret_cast< wxDC * >(argp1);
19042 {
19043 arg2 = &temp2;
19044 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19045 }
19046 {
19047 PyThreadState* __tstate = wxPyBeginAllowThreads();
19048 (arg1)->DrawEllipse((wxRect const &)*arg2);
19049 wxPyEndAllowThreads(__tstate);
19050 if (PyErr_Occurred()) SWIG_fail;
19051 }
19052 resultobj = SWIG_Py_Void();
19053 return resultobj;
19054 fail:
19055 return NULL;
19056 }
19057
19058
19059 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19060 PyObject *resultobj = 0;
19061 wxDC *arg1 = (wxDC *) 0 ;
19062 wxPoint *arg2 = 0 ;
19063 wxSize *arg3 = 0 ;
19064 void *argp1 = 0 ;
19065 int res1 = 0 ;
19066 wxPoint temp2 ;
19067 wxSize temp3 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 PyObject * obj2 = 0 ;
19071 char * kwnames[] = {
19072 (char *) "self",(char *) "pt",(char *) "sz", NULL
19073 };
19074
19075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19077 if (!SWIG_IsOK(res1)) {
19078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19079 }
19080 arg1 = reinterpret_cast< wxDC * >(argp1);
19081 {
19082 arg2 = &temp2;
19083 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19084 }
19085 {
19086 arg3 = &temp3;
19087 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19088 }
19089 {
19090 PyThreadState* __tstate = wxPyBeginAllowThreads();
19091 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19092 wxPyEndAllowThreads(__tstate);
19093 if (PyErr_Occurred()) SWIG_fail;
19094 }
19095 resultobj = SWIG_Py_Void();
19096 return resultobj;
19097 fail:
19098 return NULL;
19099 }
19100
19101
19102 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19103 PyObject *resultobj = 0;
19104 wxDC *arg1 = (wxDC *) 0 ;
19105 wxIcon *arg2 = 0 ;
19106 int arg3 ;
19107 int arg4 ;
19108 void *argp1 = 0 ;
19109 int res1 = 0 ;
19110 void *argp2 = 0 ;
19111 int res2 = 0 ;
19112 int val3 ;
19113 int ecode3 = 0 ;
19114 int val4 ;
19115 int ecode4 = 0 ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 PyObject * obj2 = 0 ;
19119 PyObject * obj3 = 0 ;
19120 char * kwnames[] = {
19121 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19122 };
19123
19124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19126 if (!SWIG_IsOK(res1)) {
19127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19128 }
19129 arg1 = reinterpret_cast< wxDC * >(argp1);
19130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19131 if (!SWIG_IsOK(res2)) {
19132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19133 }
19134 if (!argp2) {
19135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19136 }
19137 arg2 = reinterpret_cast< wxIcon * >(argp2);
19138 ecode3 = SWIG_AsVal_int(obj2, &val3);
19139 if (!SWIG_IsOK(ecode3)) {
19140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19141 }
19142 arg3 = static_cast< int >(val3);
19143 ecode4 = SWIG_AsVal_int(obj3, &val4);
19144 if (!SWIG_IsOK(ecode4)) {
19145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19146 }
19147 arg4 = static_cast< int >(val4);
19148 {
19149 PyThreadState* __tstate = wxPyBeginAllowThreads();
19150 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19151 wxPyEndAllowThreads(__tstate);
19152 if (PyErr_Occurred()) SWIG_fail;
19153 }
19154 resultobj = SWIG_Py_Void();
19155 return resultobj;
19156 fail:
19157 return NULL;
19158 }
19159
19160
19161 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19162 PyObject *resultobj = 0;
19163 wxDC *arg1 = (wxDC *) 0 ;
19164 wxIcon *arg2 = 0 ;
19165 wxPoint *arg3 = 0 ;
19166 void *argp1 = 0 ;
19167 int res1 = 0 ;
19168 void *argp2 = 0 ;
19169 int res2 = 0 ;
19170 wxPoint temp3 ;
19171 PyObject * obj0 = 0 ;
19172 PyObject * obj1 = 0 ;
19173 PyObject * obj2 = 0 ;
19174 char * kwnames[] = {
19175 (char *) "self",(char *) "icon",(char *) "pt", NULL
19176 };
19177
19178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19180 if (!SWIG_IsOK(res1)) {
19181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19182 }
19183 arg1 = reinterpret_cast< wxDC * >(argp1);
19184 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19185 if (!SWIG_IsOK(res2)) {
19186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19187 }
19188 if (!argp2) {
19189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19190 }
19191 arg2 = reinterpret_cast< wxIcon * >(argp2);
19192 {
19193 arg3 = &temp3;
19194 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19195 }
19196 {
19197 PyThreadState* __tstate = wxPyBeginAllowThreads();
19198 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19199 wxPyEndAllowThreads(__tstate);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 }
19202 resultobj = SWIG_Py_Void();
19203 return resultobj;
19204 fail:
19205 return NULL;
19206 }
19207
19208
19209 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19210 PyObject *resultobj = 0;
19211 wxDC *arg1 = (wxDC *) 0 ;
19212 wxBitmap *arg2 = 0 ;
19213 int arg3 ;
19214 int arg4 ;
19215 bool arg5 = (bool) false ;
19216 void *argp1 = 0 ;
19217 int res1 = 0 ;
19218 void *argp2 = 0 ;
19219 int res2 = 0 ;
19220 int val3 ;
19221 int ecode3 = 0 ;
19222 int val4 ;
19223 int ecode4 = 0 ;
19224 bool val5 ;
19225 int ecode5 = 0 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 PyObject * obj2 = 0 ;
19229 PyObject * obj3 = 0 ;
19230 PyObject * obj4 = 0 ;
19231 char * kwnames[] = {
19232 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19233 };
19234
19235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19237 if (!SWIG_IsOK(res1)) {
19238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19239 }
19240 arg1 = reinterpret_cast< wxDC * >(argp1);
19241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19242 if (!SWIG_IsOK(res2)) {
19243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19244 }
19245 if (!argp2) {
19246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19247 }
19248 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19249 ecode3 = SWIG_AsVal_int(obj2, &val3);
19250 if (!SWIG_IsOK(ecode3)) {
19251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19252 }
19253 arg3 = static_cast< int >(val3);
19254 ecode4 = SWIG_AsVal_int(obj3, &val4);
19255 if (!SWIG_IsOK(ecode4)) {
19256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19257 }
19258 arg4 = static_cast< int >(val4);
19259 if (obj4) {
19260 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19261 if (!SWIG_IsOK(ecode5)) {
19262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19263 }
19264 arg5 = static_cast< bool >(val5);
19265 }
19266 {
19267 PyThreadState* __tstate = wxPyBeginAllowThreads();
19268 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19269 wxPyEndAllowThreads(__tstate);
19270 if (PyErr_Occurred()) SWIG_fail;
19271 }
19272 resultobj = SWIG_Py_Void();
19273 return resultobj;
19274 fail:
19275 return NULL;
19276 }
19277
19278
19279 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19280 PyObject *resultobj = 0;
19281 wxDC *arg1 = (wxDC *) 0 ;
19282 wxBitmap *arg2 = 0 ;
19283 wxPoint *arg3 = 0 ;
19284 bool arg4 = (bool) false ;
19285 void *argp1 = 0 ;
19286 int res1 = 0 ;
19287 void *argp2 = 0 ;
19288 int res2 = 0 ;
19289 wxPoint temp3 ;
19290 bool val4 ;
19291 int ecode4 = 0 ;
19292 PyObject * obj0 = 0 ;
19293 PyObject * obj1 = 0 ;
19294 PyObject * obj2 = 0 ;
19295 PyObject * obj3 = 0 ;
19296 char * kwnames[] = {
19297 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19298 };
19299
19300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19302 if (!SWIG_IsOK(res1)) {
19303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19304 }
19305 arg1 = reinterpret_cast< wxDC * >(argp1);
19306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19307 if (!SWIG_IsOK(res2)) {
19308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19309 }
19310 if (!argp2) {
19311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19312 }
19313 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19314 {
19315 arg3 = &temp3;
19316 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19317 }
19318 if (obj3) {
19319 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19320 if (!SWIG_IsOK(ecode4)) {
19321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19322 }
19323 arg4 = static_cast< bool >(val4);
19324 }
19325 {
19326 PyThreadState* __tstate = wxPyBeginAllowThreads();
19327 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19328 wxPyEndAllowThreads(__tstate);
19329 if (PyErr_Occurred()) SWIG_fail;
19330 }
19331 resultobj = SWIG_Py_Void();
19332 return resultobj;
19333 fail:
19334 return NULL;
19335 }
19336
19337
19338 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19339 PyObject *resultobj = 0;
19340 wxDC *arg1 = (wxDC *) 0 ;
19341 wxString *arg2 = 0 ;
19342 int arg3 ;
19343 int arg4 ;
19344 void *argp1 = 0 ;
19345 int res1 = 0 ;
19346 bool temp2 = false ;
19347 int val3 ;
19348 int ecode3 = 0 ;
19349 int val4 ;
19350 int ecode4 = 0 ;
19351 PyObject * obj0 = 0 ;
19352 PyObject * obj1 = 0 ;
19353 PyObject * obj2 = 0 ;
19354 PyObject * obj3 = 0 ;
19355 char * kwnames[] = {
19356 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19357 };
19358
19359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19361 if (!SWIG_IsOK(res1)) {
19362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19363 }
19364 arg1 = reinterpret_cast< wxDC * >(argp1);
19365 {
19366 arg2 = wxString_in_helper(obj1);
19367 if (arg2 == NULL) SWIG_fail;
19368 temp2 = true;
19369 }
19370 ecode3 = SWIG_AsVal_int(obj2, &val3);
19371 if (!SWIG_IsOK(ecode3)) {
19372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19373 }
19374 arg3 = static_cast< int >(val3);
19375 ecode4 = SWIG_AsVal_int(obj3, &val4);
19376 if (!SWIG_IsOK(ecode4)) {
19377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19378 }
19379 arg4 = static_cast< int >(val4);
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19383 wxPyEndAllowThreads(__tstate);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 resultobj = SWIG_Py_Void();
19387 {
19388 if (temp2)
19389 delete arg2;
19390 }
19391 return resultobj;
19392 fail:
19393 {
19394 if (temp2)
19395 delete arg2;
19396 }
19397 return NULL;
19398 }
19399
19400
19401 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19402 PyObject *resultobj = 0;
19403 wxDC *arg1 = (wxDC *) 0 ;
19404 wxString *arg2 = 0 ;
19405 wxPoint *arg3 = 0 ;
19406 void *argp1 = 0 ;
19407 int res1 = 0 ;
19408 bool temp2 = false ;
19409 wxPoint temp3 ;
19410 PyObject * obj0 = 0 ;
19411 PyObject * obj1 = 0 ;
19412 PyObject * obj2 = 0 ;
19413 char * kwnames[] = {
19414 (char *) "self",(char *) "text",(char *) "pt", NULL
19415 };
19416
19417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19419 if (!SWIG_IsOK(res1)) {
19420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19421 }
19422 arg1 = reinterpret_cast< wxDC * >(argp1);
19423 {
19424 arg2 = wxString_in_helper(obj1);
19425 if (arg2 == NULL) SWIG_fail;
19426 temp2 = true;
19427 }
19428 {
19429 arg3 = &temp3;
19430 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19431 }
19432 {
19433 PyThreadState* __tstate = wxPyBeginAllowThreads();
19434 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19435 wxPyEndAllowThreads(__tstate);
19436 if (PyErr_Occurred()) SWIG_fail;
19437 }
19438 resultobj = SWIG_Py_Void();
19439 {
19440 if (temp2)
19441 delete arg2;
19442 }
19443 return resultobj;
19444 fail:
19445 {
19446 if (temp2)
19447 delete arg2;
19448 }
19449 return NULL;
19450 }
19451
19452
19453 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19454 PyObject *resultobj = 0;
19455 wxDC *arg1 = (wxDC *) 0 ;
19456 wxString *arg2 = 0 ;
19457 int arg3 ;
19458 int arg4 ;
19459 double arg5 ;
19460 void *argp1 = 0 ;
19461 int res1 = 0 ;
19462 bool temp2 = false ;
19463 int val3 ;
19464 int ecode3 = 0 ;
19465 int val4 ;
19466 int ecode4 = 0 ;
19467 double val5 ;
19468 int ecode5 = 0 ;
19469 PyObject * obj0 = 0 ;
19470 PyObject * obj1 = 0 ;
19471 PyObject * obj2 = 0 ;
19472 PyObject * obj3 = 0 ;
19473 PyObject * obj4 = 0 ;
19474 char * kwnames[] = {
19475 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19476 };
19477
19478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19480 if (!SWIG_IsOK(res1)) {
19481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19482 }
19483 arg1 = reinterpret_cast< wxDC * >(argp1);
19484 {
19485 arg2 = wxString_in_helper(obj1);
19486 if (arg2 == NULL) SWIG_fail;
19487 temp2 = true;
19488 }
19489 ecode3 = SWIG_AsVal_int(obj2, &val3);
19490 if (!SWIG_IsOK(ecode3)) {
19491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19492 }
19493 arg3 = static_cast< int >(val3);
19494 ecode4 = SWIG_AsVal_int(obj3, &val4);
19495 if (!SWIG_IsOK(ecode4)) {
19496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19497 }
19498 arg4 = static_cast< int >(val4);
19499 ecode5 = SWIG_AsVal_double(obj4, &val5);
19500 if (!SWIG_IsOK(ecode5)) {
19501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19502 }
19503 arg5 = static_cast< double >(val5);
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 resultobj = SWIG_Py_Void();
19511 {
19512 if (temp2)
19513 delete arg2;
19514 }
19515 return resultobj;
19516 fail:
19517 {
19518 if (temp2)
19519 delete arg2;
19520 }
19521 return NULL;
19522 }
19523
19524
19525 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19526 PyObject *resultobj = 0;
19527 wxDC *arg1 = (wxDC *) 0 ;
19528 wxString *arg2 = 0 ;
19529 wxPoint *arg3 = 0 ;
19530 double arg4 ;
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 bool temp2 = false ;
19534 wxPoint temp3 ;
19535 double val4 ;
19536 int ecode4 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 PyObject * obj2 = 0 ;
19540 PyObject * obj3 = 0 ;
19541 char * kwnames[] = {
19542 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19543 };
19544
19545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19547 if (!SWIG_IsOK(res1)) {
19548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19549 }
19550 arg1 = reinterpret_cast< wxDC * >(argp1);
19551 {
19552 arg2 = wxString_in_helper(obj1);
19553 if (arg2 == NULL) SWIG_fail;
19554 temp2 = true;
19555 }
19556 {
19557 arg3 = &temp3;
19558 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19559 }
19560 ecode4 = SWIG_AsVal_double(obj3, &val4);
19561 if (!SWIG_IsOK(ecode4)) {
19562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19563 }
19564 arg4 = static_cast< double >(val4);
19565 {
19566 PyThreadState* __tstate = wxPyBeginAllowThreads();
19567 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19568 wxPyEndAllowThreads(__tstate);
19569 if (PyErr_Occurred()) SWIG_fail;
19570 }
19571 resultobj = SWIG_Py_Void();
19572 {
19573 if (temp2)
19574 delete arg2;
19575 }
19576 return resultobj;
19577 fail:
19578 {
19579 if (temp2)
19580 delete arg2;
19581 }
19582 return NULL;
19583 }
19584
19585
19586 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19587 PyObject *resultobj = 0;
19588 wxDC *arg1 = (wxDC *) 0 ;
19589 int arg2 ;
19590 int arg3 ;
19591 int arg4 ;
19592 int arg5 ;
19593 wxDC *arg6 = (wxDC *) 0 ;
19594 int arg7 ;
19595 int arg8 ;
19596 int arg9 = (int) wxCOPY ;
19597 bool arg10 = (bool) false ;
19598 int arg11 = (int) -1 ;
19599 int arg12 = (int) -1 ;
19600 bool result;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 int val2 ;
19604 int ecode2 = 0 ;
19605 int val3 ;
19606 int ecode3 = 0 ;
19607 int val4 ;
19608 int ecode4 = 0 ;
19609 int val5 ;
19610 int ecode5 = 0 ;
19611 void *argp6 = 0 ;
19612 int res6 = 0 ;
19613 int val7 ;
19614 int ecode7 = 0 ;
19615 int val8 ;
19616 int ecode8 = 0 ;
19617 int val9 ;
19618 int ecode9 = 0 ;
19619 bool val10 ;
19620 int ecode10 = 0 ;
19621 int val11 ;
19622 int ecode11 = 0 ;
19623 int val12 ;
19624 int ecode12 = 0 ;
19625 PyObject * obj0 = 0 ;
19626 PyObject * obj1 = 0 ;
19627 PyObject * obj2 = 0 ;
19628 PyObject * obj3 = 0 ;
19629 PyObject * obj4 = 0 ;
19630 PyObject * obj5 = 0 ;
19631 PyObject * obj6 = 0 ;
19632 PyObject * obj7 = 0 ;
19633 PyObject * obj8 = 0 ;
19634 PyObject * obj9 = 0 ;
19635 PyObject * obj10 = 0 ;
19636 PyObject * obj11 = 0 ;
19637 char * kwnames[] = {
19638 (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
19639 };
19640
19641 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;
19642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19643 if (!SWIG_IsOK(res1)) {
19644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19645 }
19646 arg1 = reinterpret_cast< wxDC * >(argp1);
19647 ecode2 = SWIG_AsVal_int(obj1, &val2);
19648 if (!SWIG_IsOK(ecode2)) {
19649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19650 }
19651 arg2 = static_cast< int >(val2);
19652 ecode3 = SWIG_AsVal_int(obj2, &val3);
19653 if (!SWIG_IsOK(ecode3)) {
19654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19655 }
19656 arg3 = static_cast< int >(val3);
19657 ecode4 = SWIG_AsVal_int(obj3, &val4);
19658 if (!SWIG_IsOK(ecode4)) {
19659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19660 }
19661 arg4 = static_cast< int >(val4);
19662 ecode5 = SWIG_AsVal_int(obj4, &val5);
19663 if (!SWIG_IsOK(ecode5)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19665 }
19666 arg5 = static_cast< int >(val5);
19667 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19668 if (!SWIG_IsOK(res6)) {
19669 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19670 }
19671 arg6 = reinterpret_cast< wxDC * >(argp6);
19672 ecode7 = SWIG_AsVal_int(obj6, &val7);
19673 if (!SWIG_IsOK(ecode7)) {
19674 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19675 }
19676 arg7 = static_cast< int >(val7);
19677 ecode8 = SWIG_AsVal_int(obj7, &val8);
19678 if (!SWIG_IsOK(ecode8)) {
19679 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19680 }
19681 arg8 = static_cast< int >(val8);
19682 if (obj8) {
19683 ecode9 = SWIG_AsVal_int(obj8, &val9);
19684 if (!SWIG_IsOK(ecode9)) {
19685 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19686 }
19687 arg9 = static_cast< int >(val9);
19688 }
19689 if (obj9) {
19690 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19691 if (!SWIG_IsOK(ecode10)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19693 }
19694 arg10 = static_cast< bool >(val10);
19695 }
19696 if (obj10) {
19697 ecode11 = SWIG_AsVal_int(obj10, &val11);
19698 if (!SWIG_IsOK(ecode11)) {
19699 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19700 }
19701 arg11 = static_cast< int >(val11);
19702 }
19703 if (obj11) {
19704 ecode12 = SWIG_AsVal_int(obj11, &val12);
19705 if (!SWIG_IsOK(ecode12)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19707 }
19708 arg12 = static_cast< int >(val12);
19709 }
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19713 wxPyEndAllowThreads(__tstate);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 {
19717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19718 }
19719 return resultobj;
19720 fail:
19721 return NULL;
19722 }
19723
19724
19725 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19726 PyObject *resultobj = 0;
19727 wxDC *arg1 = (wxDC *) 0 ;
19728 wxPoint *arg2 = 0 ;
19729 wxSize *arg3 = 0 ;
19730 wxDC *arg4 = (wxDC *) 0 ;
19731 wxPoint *arg5 = 0 ;
19732 int arg6 = (int) wxCOPY ;
19733 bool arg7 = (bool) false ;
19734 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19735 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19736 bool result;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 wxPoint temp2 ;
19740 wxSize temp3 ;
19741 void *argp4 = 0 ;
19742 int res4 = 0 ;
19743 wxPoint temp5 ;
19744 int val6 ;
19745 int ecode6 = 0 ;
19746 bool val7 ;
19747 int ecode7 = 0 ;
19748 wxPoint temp8 ;
19749 PyObject * obj0 = 0 ;
19750 PyObject * obj1 = 0 ;
19751 PyObject * obj2 = 0 ;
19752 PyObject * obj3 = 0 ;
19753 PyObject * obj4 = 0 ;
19754 PyObject * obj5 = 0 ;
19755 PyObject * obj6 = 0 ;
19756 PyObject * obj7 = 0 ;
19757 char * kwnames[] = {
19758 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19759 };
19760
19761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19763 if (!SWIG_IsOK(res1)) {
19764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19765 }
19766 arg1 = reinterpret_cast< wxDC * >(argp1);
19767 {
19768 arg2 = &temp2;
19769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19770 }
19771 {
19772 arg3 = &temp3;
19773 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19774 }
19775 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19776 if (!SWIG_IsOK(res4)) {
19777 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19778 }
19779 arg4 = reinterpret_cast< wxDC * >(argp4);
19780 {
19781 arg5 = &temp5;
19782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19783 }
19784 if (obj5) {
19785 ecode6 = SWIG_AsVal_int(obj5, &val6);
19786 if (!SWIG_IsOK(ecode6)) {
19787 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19788 }
19789 arg6 = static_cast< int >(val6);
19790 }
19791 if (obj6) {
19792 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19793 if (!SWIG_IsOK(ecode7)) {
19794 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19795 }
19796 arg7 = static_cast< bool >(val7);
19797 }
19798 if (obj7) {
19799 {
19800 arg8 = &temp8;
19801 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19802 }
19803 }
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19807 wxPyEndAllowThreads(__tstate);
19808 if (PyErr_Occurred()) SWIG_fail;
19809 }
19810 {
19811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19812 }
19813 return resultobj;
19814 fail:
19815 return NULL;
19816 }
19817
19818
19819 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = 0;
19821 wxDC *arg1 = (wxDC *) 0 ;
19822 wxRect *arg2 = (wxRect *) NULL ;
19823 SwigValueWrapper<wxBitmap > result;
19824 void *argp1 = 0 ;
19825 int res1 = 0 ;
19826 void *argp2 = 0 ;
19827 int res2 = 0 ;
19828 PyObject * obj0 = 0 ;
19829 PyObject * obj1 = 0 ;
19830 char * kwnames[] = {
19831 (char *) "self",(char *) "subrect", NULL
19832 };
19833
19834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19836 if (!SWIG_IsOK(res1)) {
19837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19838 }
19839 arg1 = reinterpret_cast< wxDC * >(argp1);
19840 if (obj1) {
19841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19842 if (!SWIG_IsOK(res2)) {
19843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19844 }
19845 arg2 = reinterpret_cast< wxRect * >(argp2);
19846 }
19847 {
19848 PyThreadState* __tstate = wxPyBeginAllowThreads();
19849 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19854 return resultobj;
19855 fail:
19856 return NULL;
19857 }
19858
19859
19860 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj = 0;
19862 wxDC *arg1 = (wxDC *) 0 ;
19863 int arg2 ;
19864 int arg3 ;
19865 int arg4 ;
19866 int arg5 ;
19867 void *argp1 = 0 ;
19868 int res1 = 0 ;
19869 int val2 ;
19870 int ecode2 = 0 ;
19871 int val3 ;
19872 int ecode3 = 0 ;
19873 int val4 ;
19874 int ecode4 = 0 ;
19875 int val5 ;
19876 int ecode5 = 0 ;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 PyObject * obj2 = 0 ;
19880 PyObject * obj3 = 0 ;
19881 PyObject * obj4 = 0 ;
19882 char * kwnames[] = {
19883 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19884 };
19885
19886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19888 if (!SWIG_IsOK(res1)) {
19889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19890 }
19891 arg1 = reinterpret_cast< wxDC * >(argp1);
19892 ecode2 = SWIG_AsVal_int(obj1, &val2);
19893 if (!SWIG_IsOK(ecode2)) {
19894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19895 }
19896 arg2 = static_cast< int >(val2);
19897 ecode3 = SWIG_AsVal_int(obj2, &val3);
19898 if (!SWIG_IsOK(ecode3)) {
19899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19900 }
19901 arg3 = static_cast< int >(val3);
19902 ecode4 = SWIG_AsVal_int(obj3, &val4);
19903 if (!SWIG_IsOK(ecode4)) {
19904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19905 }
19906 arg4 = static_cast< int >(val4);
19907 ecode5 = SWIG_AsVal_int(obj4, &val5);
19908 if (!SWIG_IsOK(ecode5)) {
19909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19910 }
19911 arg5 = static_cast< int >(val5);
19912 {
19913 PyThreadState* __tstate = wxPyBeginAllowThreads();
19914 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19915 wxPyEndAllowThreads(__tstate);
19916 if (PyErr_Occurred()) SWIG_fail;
19917 }
19918 resultobj = SWIG_Py_Void();
19919 return resultobj;
19920 fail:
19921 return NULL;
19922 }
19923
19924
19925 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19926 PyObject *resultobj = 0;
19927 wxDC *arg1 = (wxDC *) 0 ;
19928 wxPoint *arg2 = 0 ;
19929 wxSize *arg3 = 0 ;
19930 void *argp1 = 0 ;
19931 int res1 = 0 ;
19932 wxPoint temp2 ;
19933 wxSize temp3 ;
19934 PyObject * obj0 = 0 ;
19935 PyObject * obj1 = 0 ;
19936 PyObject * obj2 = 0 ;
19937 char * kwnames[] = {
19938 (char *) "self",(char *) "pt",(char *) "sz", NULL
19939 };
19940
19941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19943 if (!SWIG_IsOK(res1)) {
19944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19945 }
19946 arg1 = reinterpret_cast< wxDC * >(argp1);
19947 {
19948 arg2 = &temp2;
19949 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19950 }
19951 {
19952 arg3 = &temp3;
19953 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19954 }
19955 {
19956 PyThreadState* __tstate = wxPyBeginAllowThreads();
19957 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 resultobj = SWIG_Py_Void();
19962 return resultobj;
19963 fail:
19964 return NULL;
19965 }
19966
19967
19968 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19969 PyObject *resultobj = 0;
19970 wxDC *arg1 = (wxDC *) 0 ;
19971 wxRegion *arg2 = 0 ;
19972 void *argp1 = 0 ;
19973 int res1 = 0 ;
19974 void *argp2 = 0 ;
19975 int res2 = 0 ;
19976 PyObject * obj0 = 0 ;
19977 PyObject * obj1 = 0 ;
19978 char * kwnames[] = {
19979 (char *) "self",(char *) "region", NULL
19980 };
19981
19982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19984 if (!SWIG_IsOK(res1)) {
19985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19986 }
19987 arg1 = reinterpret_cast< wxDC * >(argp1);
19988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19989 if (!SWIG_IsOK(res2)) {
19990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19991 }
19992 if (!argp2) {
19993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19994 }
19995 arg2 = reinterpret_cast< wxRegion * >(argp2);
19996 {
19997 PyThreadState* __tstate = wxPyBeginAllowThreads();
19998 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19999 wxPyEndAllowThreads(__tstate);
20000 if (PyErr_Occurred()) SWIG_fail;
20001 }
20002 resultobj = SWIG_Py_Void();
20003 return resultobj;
20004 fail:
20005 return NULL;
20006 }
20007
20008
20009 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20010 PyObject *resultobj = 0;
20011 wxDC *arg1 = (wxDC *) 0 ;
20012 wxRect *arg2 = 0 ;
20013 void *argp1 = 0 ;
20014 int res1 = 0 ;
20015 wxRect temp2 ;
20016 PyObject * obj0 = 0 ;
20017 PyObject * obj1 = 0 ;
20018 char * kwnames[] = {
20019 (char *) "self",(char *) "rect", NULL
20020 };
20021
20022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",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_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20026 }
20027 arg1 = reinterpret_cast< wxDC * >(argp1);
20028 {
20029 arg2 = &temp2;
20030 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20031 }
20032 {
20033 PyThreadState* __tstate = wxPyBeginAllowThreads();
20034 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20035 wxPyEndAllowThreads(__tstate);
20036 if (PyErr_Occurred()) SWIG_fail;
20037 }
20038 resultobj = SWIG_Py_Void();
20039 return resultobj;
20040 fail:
20041 return NULL;
20042 }
20043
20044
20045 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20046 PyObject *resultobj = 0;
20047 wxDC *arg1 = (wxDC *) 0 ;
20048 int arg2 ;
20049 wxPoint *arg3 = (wxPoint *) 0 ;
20050 int arg4 = (int) 0 ;
20051 int arg5 = (int) 0 ;
20052 void *argp1 = 0 ;
20053 int res1 = 0 ;
20054 int val4 ;
20055 int ecode4 = 0 ;
20056 int val5 ;
20057 int ecode5 = 0 ;
20058 PyObject * obj0 = 0 ;
20059 PyObject * obj1 = 0 ;
20060 PyObject * obj2 = 0 ;
20061 PyObject * obj3 = 0 ;
20062 char * kwnames[] = {
20063 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20064 };
20065
20066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20068 if (!SWIG_IsOK(res1)) {
20069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20070 }
20071 arg1 = reinterpret_cast< wxDC * >(argp1);
20072 {
20073 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20074 if (arg3 == NULL) SWIG_fail;
20075 }
20076 if (obj2) {
20077 ecode4 = SWIG_AsVal_int(obj2, &val4);
20078 if (!SWIG_IsOK(ecode4)) {
20079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20080 }
20081 arg4 = static_cast< int >(val4);
20082 }
20083 if (obj3) {
20084 ecode5 = SWIG_AsVal_int(obj3, &val5);
20085 if (!SWIG_IsOK(ecode5)) {
20086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20087 }
20088 arg5 = static_cast< int >(val5);
20089 }
20090 {
20091 PyThreadState* __tstate = wxPyBeginAllowThreads();
20092 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20093 wxPyEndAllowThreads(__tstate);
20094 if (PyErr_Occurred()) SWIG_fail;
20095 }
20096 resultobj = SWIG_Py_Void();
20097 {
20098 if (arg3) delete [] arg3;
20099 }
20100 return resultobj;
20101 fail:
20102 {
20103 if (arg3) delete [] arg3;
20104 }
20105 return NULL;
20106 }
20107
20108
20109 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20110 PyObject *resultobj = 0;
20111 wxDC *arg1 = (wxDC *) 0 ;
20112 int arg2 ;
20113 wxPoint *arg3 = (wxPoint *) 0 ;
20114 int arg4 = (int) 0 ;
20115 int arg5 = (int) 0 ;
20116 int arg6 = (int) wxODDEVEN_RULE ;
20117 void *argp1 = 0 ;
20118 int res1 = 0 ;
20119 int val4 ;
20120 int ecode4 = 0 ;
20121 int val5 ;
20122 int ecode5 = 0 ;
20123 int val6 ;
20124 int ecode6 = 0 ;
20125 PyObject * obj0 = 0 ;
20126 PyObject * obj1 = 0 ;
20127 PyObject * obj2 = 0 ;
20128 PyObject * obj3 = 0 ;
20129 PyObject * obj4 = 0 ;
20130 char * kwnames[] = {
20131 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20132 };
20133
20134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20136 if (!SWIG_IsOK(res1)) {
20137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20138 }
20139 arg1 = reinterpret_cast< wxDC * >(argp1);
20140 {
20141 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20142 if (arg3 == NULL) SWIG_fail;
20143 }
20144 if (obj2) {
20145 ecode4 = SWIG_AsVal_int(obj2, &val4);
20146 if (!SWIG_IsOK(ecode4)) {
20147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20148 }
20149 arg4 = static_cast< int >(val4);
20150 }
20151 if (obj3) {
20152 ecode5 = SWIG_AsVal_int(obj3, &val5);
20153 if (!SWIG_IsOK(ecode5)) {
20154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20155 }
20156 arg5 = static_cast< int >(val5);
20157 }
20158 if (obj4) {
20159 ecode6 = SWIG_AsVal_int(obj4, &val6);
20160 if (!SWIG_IsOK(ecode6)) {
20161 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20162 }
20163 arg6 = static_cast< int >(val6);
20164 }
20165 {
20166 PyThreadState* __tstate = wxPyBeginAllowThreads();
20167 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20168 wxPyEndAllowThreads(__tstate);
20169 if (PyErr_Occurred()) SWIG_fail;
20170 }
20171 resultobj = SWIG_Py_Void();
20172 {
20173 if (arg3) delete [] arg3;
20174 }
20175 return resultobj;
20176 fail:
20177 {
20178 if (arg3) delete [] arg3;
20179 }
20180 return NULL;
20181 }
20182
20183
20184 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20185 PyObject *resultobj = 0;
20186 wxDC *arg1 = (wxDC *) 0 ;
20187 wxString *arg2 = 0 ;
20188 wxRect *arg3 = 0 ;
20189 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20190 int arg5 = (int) -1 ;
20191 void *argp1 = 0 ;
20192 int res1 = 0 ;
20193 bool temp2 = false ;
20194 wxRect temp3 ;
20195 int val4 ;
20196 int ecode4 = 0 ;
20197 int val5 ;
20198 int ecode5 = 0 ;
20199 PyObject * obj0 = 0 ;
20200 PyObject * obj1 = 0 ;
20201 PyObject * obj2 = 0 ;
20202 PyObject * obj3 = 0 ;
20203 PyObject * obj4 = 0 ;
20204 char * kwnames[] = {
20205 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20206 };
20207
20208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20210 if (!SWIG_IsOK(res1)) {
20211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20212 }
20213 arg1 = reinterpret_cast< wxDC * >(argp1);
20214 {
20215 arg2 = wxString_in_helper(obj1);
20216 if (arg2 == NULL) SWIG_fail;
20217 temp2 = true;
20218 }
20219 {
20220 arg3 = &temp3;
20221 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20222 }
20223 if (obj3) {
20224 ecode4 = SWIG_AsVal_int(obj3, &val4);
20225 if (!SWIG_IsOK(ecode4)) {
20226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20227 }
20228 arg4 = static_cast< int >(val4);
20229 }
20230 if (obj4) {
20231 ecode5 = SWIG_AsVal_int(obj4, &val5);
20232 if (!SWIG_IsOK(ecode5)) {
20233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20234 }
20235 arg5 = static_cast< int >(val5);
20236 }
20237 {
20238 PyThreadState* __tstate = wxPyBeginAllowThreads();
20239 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 resultobj = SWIG_Py_Void();
20244 {
20245 if (temp2)
20246 delete arg2;
20247 }
20248 return resultobj;
20249 fail:
20250 {
20251 if (temp2)
20252 delete arg2;
20253 }
20254 return NULL;
20255 }
20256
20257
20258 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj = 0;
20260 wxDC *arg1 = (wxDC *) 0 ;
20261 wxString *arg2 = 0 ;
20262 wxBitmap *arg3 = 0 ;
20263 wxRect *arg4 = 0 ;
20264 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20265 int arg6 = (int) -1 ;
20266 wxRect result;
20267 void *argp1 = 0 ;
20268 int res1 = 0 ;
20269 bool temp2 = false ;
20270 void *argp3 = 0 ;
20271 int res3 = 0 ;
20272 wxRect temp4 ;
20273 int val5 ;
20274 int ecode5 = 0 ;
20275 int val6 ;
20276 int ecode6 = 0 ;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 PyObject * obj2 = 0 ;
20280 PyObject * obj3 = 0 ;
20281 PyObject * obj4 = 0 ;
20282 PyObject * obj5 = 0 ;
20283 char * kwnames[] = {
20284 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20285 };
20286
20287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20289 if (!SWIG_IsOK(res1)) {
20290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20291 }
20292 arg1 = reinterpret_cast< wxDC * >(argp1);
20293 {
20294 arg2 = wxString_in_helper(obj1);
20295 if (arg2 == NULL) SWIG_fail;
20296 temp2 = true;
20297 }
20298 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20299 if (!SWIG_IsOK(res3)) {
20300 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20301 }
20302 if (!argp3) {
20303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20304 }
20305 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20306 {
20307 arg4 = &temp4;
20308 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20309 }
20310 if (obj4) {
20311 ecode5 = SWIG_AsVal_int(obj4, &val5);
20312 if (!SWIG_IsOK(ecode5)) {
20313 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20314 }
20315 arg5 = static_cast< int >(val5);
20316 }
20317 if (obj5) {
20318 ecode6 = SWIG_AsVal_int(obj5, &val6);
20319 if (!SWIG_IsOK(ecode6)) {
20320 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20321 }
20322 arg6 = static_cast< int >(val6);
20323 }
20324 {
20325 PyThreadState* __tstate = wxPyBeginAllowThreads();
20326 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20327 wxPyEndAllowThreads(__tstate);
20328 if (PyErr_Occurred()) SWIG_fail;
20329 }
20330 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20331 {
20332 if (temp2)
20333 delete arg2;
20334 }
20335 return resultobj;
20336 fail:
20337 {
20338 if (temp2)
20339 delete arg2;
20340 }
20341 return NULL;
20342 }
20343
20344
20345 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj = 0;
20347 wxDC *arg1 = (wxDC *) 0 ;
20348 int arg2 ;
20349 wxPoint *arg3 = (wxPoint *) 0 ;
20350 void *argp1 = 0 ;
20351 int res1 = 0 ;
20352 PyObject * obj0 = 0 ;
20353 PyObject * obj1 = 0 ;
20354 char * kwnames[] = {
20355 (char *) "self",(char *) "points", NULL
20356 };
20357
20358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20360 if (!SWIG_IsOK(res1)) {
20361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20362 }
20363 arg1 = reinterpret_cast< wxDC * >(argp1);
20364 {
20365 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20366 if (arg3 == NULL) SWIG_fail;
20367 }
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 (arg1)->DrawSpline(arg2,arg3);
20371 wxPyEndAllowThreads(__tstate);
20372 if (PyErr_Occurred()) SWIG_fail;
20373 }
20374 resultobj = SWIG_Py_Void();
20375 {
20376 if (arg3) delete [] arg3;
20377 }
20378 return resultobj;
20379 fail:
20380 {
20381 if (arg3) delete [] arg3;
20382 }
20383 return NULL;
20384 }
20385
20386
20387 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20388 PyObject *resultobj = 0;
20389 wxDC *arg1 = (wxDC *) 0 ;
20390 void *argp1 = 0 ;
20391 int res1 = 0 ;
20392 PyObject *swig_obj[1] ;
20393
20394 if (!args) SWIG_fail;
20395 swig_obj[0] = args;
20396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20397 if (!SWIG_IsOK(res1)) {
20398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20399 }
20400 arg1 = reinterpret_cast< wxDC * >(argp1);
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 (arg1)->Clear();
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 resultobj = SWIG_Py_Void();
20408 return resultobj;
20409 fail:
20410 return NULL;
20411 }
20412
20413
20414 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20415 PyObject *resultobj = 0;
20416 wxDC *arg1 = (wxDC *) 0 ;
20417 wxString *arg2 = 0 ;
20418 bool result;
20419 void *argp1 = 0 ;
20420 int res1 = 0 ;
20421 bool temp2 = false ;
20422 PyObject * obj0 = 0 ;
20423 PyObject * obj1 = 0 ;
20424 char * kwnames[] = {
20425 (char *) "self",(char *) "message", NULL
20426 };
20427
20428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20430 if (!SWIG_IsOK(res1)) {
20431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20432 }
20433 arg1 = reinterpret_cast< wxDC * >(argp1);
20434 {
20435 arg2 = wxString_in_helper(obj1);
20436 if (arg2 == NULL) SWIG_fail;
20437 temp2 = true;
20438 }
20439 {
20440 PyThreadState* __tstate = wxPyBeginAllowThreads();
20441 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20442 wxPyEndAllowThreads(__tstate);
20443 if (PyErr_Occurred()) SWIG_fail;
20444 }
20445 {
20446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20447 }
20448 {
20449 if (temp2)
20450 delete arg2;
20451 }
20452 return resultobj;
20453 fail:
20454 {
20455 if (temp2)
20456 delete arg2;
20457 }
20458 return NULL;
20459 }
20460
20461
20462 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20463 PyObject *resultobj = 0;
20464 wxDC *arg1 = (wxDC *) 0 ;
20465 void *argp1 = 0 ;
20466 int res1 = 0 ;
20467 PyObject *swig_obj[1] ;
20468
20469 if (!args) SWIG_fail;
20470 swig_obj[0] = args;
20471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20472 if (!SWIG_IsOK(res1)) {
20473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20474 }
20475 arg1 = reinterpret_cast< wxDC * >(argp1);
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 (arg1)->EndDoc();
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_Py_Void();
20483 return resultobj;
20484 fail:
20485 return NULL;
20486 }
20487
20488
20489 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20490 PyObject *resultobj = 0;
20491 wxDC *arg1 = (wxDC *) 0 ;
20492 void *argp1 = 0 ;
20493 int res1 = 0 ;
20494 PyObject *swig_obj[1] ;
20495
20496 if (!args) SWIG_fail;
20497 swig_obj[0] = args;
20498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20499 if (!SWIG_IsOK(res1)) {
20500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20501 }
20502 arg1 = reinterpret_cast< wxDC * >(argp1);
20503 {
20504 PyThreadState* __tstate = wxPyBeginAllowThreads();
20505 (arg1)->StartPage();
20506 wxPyEndAllowThreads(__tstate);
20507 if (PyErr_Occurred()) SWIG_fail;
20508 }
20509 resultobj = SWIG_Py_Void();
20510 return resultobj;
20511 fail:
20512 return NULL;
20513 }
20514
20515
20516 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20517 PyObject *resultobj = 0;
20518 wxDC *arg1 = (wxDC *) 0 ;
20519 void *argp1 = 0 ;
20520 int res1 = 0 ;
20521 PyObject *swig_obj[1] ;
20522
20523 if (!args) SWIG_fail;
20524 swig_obj[0] = args;
20525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20526 if (!SWIG_IsOK(res1)) {
20527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20528 }
20529 arg1 = reinterpret_cast< wxDC * >(argp1);
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 (arg1)->EndPage();
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_Py_Void();
20537 return resultobj;
20538 fail:
20539 return NULL;
20540 }
20541
20542
20543 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj = 0;
20545 wxDC *arg1 = (wxDC *) 0 ;
20546 wxFont *arg2 = 0 ;
20547 void *argp1 = 0 ;
20548 int res1 = 0 ;
20549 void *argp2 = 0 ;
20550 int res2 = 0 ;
20551 PyObject * obj0 = 0 ;
20552 PyObject * obj1 = 0 ;
20553 char * kwnames[] = {
20554 (char *) "self",(char *) "font", NULL
20555 };
20556
20557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20559 if (!SWIG_IsOK(res1)) {
20560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20561 }
20562 arg1 = reinterpret_cast< wxDC * >(argp1);
20563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20564 if (!SWIG_IsOK(res2)) {
20565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20566 }
20567 if (!argp2) {
20568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20569 }
20570 arg2 = reinterpret_cast< wxFont * >(argp2);
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 (arg1)->SetFont((wxFont const &)*arg2);
20574 wxPyEndAllowThreads(__tstate);
20575 if (PyErr_Occurred()) SWIG_fail;
20576 }
20577 resultobj = SWIG_Py_Void();
20578 return resultobj;
20579 fail:
20580 return NULL;
20581 }
20582
20583
20584 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20585 PyObject *resultobj = 0;
20586 wxDC *arg1 = (wxDC *) 0 ;
20587 wxPen *arg2 = 0 ;
20588 void *argp1 = 0 ;
20589 int res1 = 0 ;
20590 void *argp2 = 0 ;
20591 int res2 = 0 ;
20592 PyObject * obj0 = 0 ;
20593 PyObject * obj1 = 0 ;
20594 char * kwnames[] = {
20595 (char *) "self",(char *) "pen", NULL
20596 };
20597
20598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20600 if (!SWIG_IsOK(res1)) {
20601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20602 }
20603 arg1 = reinterpret_cast< wxDC * >(argp1);
20604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20605 if (!SWIG_IsOK(res2)) {
20606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20607 }
20608 if (!argp2) {
20609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20610 }
20611 arg2 = reinterpret_cast< wxPen * >(argp2);
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
20614 (arg1)->SetPen((wxPen const &)*arg2);
20615 wxPyEndAllowThreads(__tstate);
20616 if (PyErr_Occurred()) SWIG_fail;
20617 }
20618 resultobj = SWIG_Py_Void();
20619 return resultobj;
20620 fail:
20621 return NULL;
20622 }
20623
20624
20625 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20626 PyObject *resultobj = 0;
20627 wxDC *arg1 = (wxDC *) 0 ;
20628 wxBrush *arg2 = 0 ;
20629 void *argp1 = 0 ;
20630 int res1 = 0 ;
20631 void *argp2 = 0 ;
20632 int res2 = 0 ;
20633 PyObject * obj0 = 0 ;
20634 PyObject * obj1 = 0 ;
20635 char * kwnames[] = {
20636 (char *) "self",(char *) "brush", NULL
20637 };
20638
20639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20641 if (!SWIG_IsOK(res1)) {
20642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20643 }
20644 arg1 = reinterpret_cast< wxDC * >(argp1);
20645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20646 if (!SWIG_IsOK(res2)) {
20647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20648 }
20649 if (!argp2) {
20650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20651 }
20652 arg2 = reinterpret_cast< wxBrush * >(argp2);
20653 {
20654 PyThreadState* __tstate = wxPyBeginAllowThreads();
20655 (arg1)->SetBrush((wxBrush const &)*arg2);
20656 wxPyEndAllowThreads(__tstate);
20657 if (PyErr_Occurred()) SWIG_fail;
20658 }
20659 resultobj = SWIG_Py_Void();
20660 return resultobj;
20661 fail:
20662 return NULL;
20663 }
20664
20665
20666 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20667 PyObject *resultobj = 0;
20668 wxDC *arg1 = (wxDC *) 0 ;
20669 wxBrush *arg2 = 0 ;
20670 void *argp1 = 0 ;
20671 int res1 = 0 ;
20672 void *argp2 = 0 ;
20673 int res2 = 0 ;
20674 PyObject * obj0 = 0 ;
20675 PyObject * obj1 = 0 ;
20676 char * kwnames[] = {
20677 (char *) "self",(char *) "brush", NULL
20678 };
20679
20680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20682 if (!SWIG_IsOK(res1)) {
20683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20684 }
20685 arg1 = reinterpret_cast< wxDC * >(argp1);
20686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20687 if (!SWIG_IsOK(res2)) {
20688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20689 }
20690 if (!argp2) {
20691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20692 }
20693 arg2 = reinterpret_cast< wxBrush * >(argp2);
20694 {
20695 PyThreadState* __tstate = wxPyBeginAllowThreads();
20696 (arg1)->SetBackground((wxBrush const &)*arg2);
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_Py_Void();
20701 return resultobj;
20702 fail:
20703 return NULL;
20704 }
20705
20706
20707 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20708 PyObject *resultobj = 0;
20709 wxDC *arg1 = (wxDC *) 0 ;
20710 int arg2 ;
20711 void *argp1 = 0 ;
20712 int res1 = 0 ;
20713 int val2 ;
20714 int ecode2 = 0 ;
20715 PyObject * obj0 = 0 ;
20716 PyObject * obj1 = 0 ;
20717 char * kwnames[] = {
20718 (char *) "self",(char *) "mode", NULL
20719 };
20720
20721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20723 if (!SWIG_IsOK(res1)) {
20724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20725 }
20726 arg1 = reinterpret_cast< wxDC * >(argp1);
20727 ecode2 = SWIG_AsVal_int(obj1, &val2);
20728 if (!SWIG_IsOK(ecode2)) {
20729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20730 }
20731 arg2 = static_cast< int >(val2);
20732 {
20733 PyThreadState* __tstate = wxPyBeginAllowThreads();
20734 (arg1)->SetBackgroundMode(arg2);
20735 wxPyEndAllowThreads(__tstate);
20736 if (PyErr_Occurred()) SWIG_fail;
20737 }
20738 resultobj = SWIG_Py_Void();
20739 return resultobj;
20740 fail:
20741 return NULL;
20742 }
20743
20744
20745 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20746 PyObject *resultobj = 0;
20747 wxDC *arg1 = (wxDC *) 0 ;
20748 wxPalette *arg2 = 0 ;
20749 void *argp1 = 0 ;
20750 int res1 = 0 ;
20751 void *argp2 = 0 ;
20752 int res2 = 0 ;
20753 PyObject * obj0 = 0 ;
20754 PyObject * obj1 = 0 ;
20755 char * kwnames[] = {
20756 (char *) "self",(char *) "palette", NULL
20757 };
20758
20759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20761 if (!SWIG_IsOK(res1)) {
20762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20763 }
20764 arg1 = reinterpret_cast< wxDC * >(argp1);
20765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20766 if (!SWIG_IsOK(res2)) {
20767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20768 }
20769 if (!argp2) {
20770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20771 }
20772 arg2 = reinterpret_cast< wxPalette * >(argp2);
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 (arg1)->SetPalette((wxPalette const &)*arg2);
20776 wxPyEndAllowThreads(__tstate);
20777 if (PyErr_Occurred()) SWIG_fail;
20778 }
20779 resultobj = SWIG_Py_Void();
20780 return resultobj;
20781 fail:
20782 return NULL;
20783 }
20784
20785
20786 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20787 PyObject *resultobj = 0;
20788 wxDC *arg1 = (wxDC *) 0 ;
20789 void *argp1 = 0 ;
20790 int res1 = 0 ;
20791 PyObject *swig_obj[1] ;
20792
20793 if (!args) SWIG_fail;
20794 swig_obj[0] = args;
20795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20796 if (!SWIG_IsOK(res1)) {
20797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20798 }
20799 arg1 = reinterpret_cast< wxDC * >(argp1);
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 (arg1)->DestroyClippingRegion();
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_Py_Void();
20807 return resultobj;
20808 fail:
20809 return NULL;
20810 }
20811
20812
20813 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20814 PyObject *resultobj = 0;
20815 wxDC *arg1 = (wxDC *) 0 ;
20816 int *arg2 = (int *) 0 ;
20817 int *arg3 = (int *) 0 ;
20818 int *arg4 = (int *) 0 ;
20819 int *arg5 = (int *) 0 ;
20820 void *argp1 = 0 ;
20821 int res1 = 0 ;
20822 int temp2 ;
20823 int res2 = SWIG_TMPOBJ ;
20824 int temp3 ;
20825 int res3 = SWIG_TMPOBJ ;
20826 int temp4 ;
20827 int res4 = SWIG_TMPOBJ ;
20828 int temp5 ;
20829 int res5 = SWIG_TMPOBJ ;
20830 PyObject *swig_obj[1] ;
20831
20832 arg2 = &temp2;
20833 arg3 = &temp3;
20834 arg4 = &temp4;
20835 arg5 = &temp5;
20836 if (!args) SWIG_fail;
20837 swig_obj[0] = args;
20838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20839 if (!SWIG_IsOK(res1)) {
20840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20841 }
20842 arg1 = reinterpret_cast< wxDC * >(argp1);
20843 {
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 resultobj = SWIG_Py_Void();
20850 if (SWIG_IsTmpObj(res2)) {
20851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20852 } else {
20853 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20855 }
20856 if (SWIG_IsTmpObj(res3)) {
20857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20858 } else {
20859 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20861 }
20862 if (SWIG_IsTmpObj(res4)) {
20863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20864 } else {
20865 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20867 }
20868 if (SWIG_IsTmpObj(res5)) {
20869 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20870 } else {
20871 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20873 }
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20881 PyObject *resultobj = 0;
20882 wxDC *arg1 = (wxDC *) 0 ;
20883 wxRect result;
20884 void *argp1 = 0 ;
20885 int res1 = 0 ;
20886 PyObject *swig_obj[1] ;
20887
20888 if (!args) SWIG_fail;
20889 swig_obj[0] = args;
20890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20891 if (!SWIG_IsOK(res1)) {
20892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20893 }
20894 arg1 = reinterpret_cast< wxDC * >(argp1);
20895 {
20896 PyThreadState* __tstate = wxPyBeginAllowThreads();
20897 result = wxDC_GetClippingRect(arg1);
20898 wxPyEndAllowThreads(__tstate);
20899 if (PyErr_Occurred()) SWIG_fail;
20900 }
20901 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20902 return resultobj;
20903 fail:
20904 return NULL;
20905 }
20906
20907
20908 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20909 PyObject *resultobj = 0;
20910 wxDC *arg1 = (wxDC *) 0 ;
20911 int result;
20912 void *argp1 = 0 ;
20913 int res1 = 0 ;
20914 PyObject *swig_obj[1] ;
20915
20916 if (!args) SWIG_fail;
20917 swig_obj[0] = args;
20918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20919 if (!SWIG_IsOK(res1)) {
20920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20921 }
20922 arg1 = reinterpret_cast< wxDC * >(argp1);
20923 {
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 result = (int)((wxDC const *)arg1)->GetCharHeight();
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_From_int(static_cast< int >(result));
20930 return resultobj;
20931 fail:
20932 return NULL;
20933 }
20934
20935
20936 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20937 PyObject *resultobj = 0;
20938 wxDC *arg1 = (wxDC *) 0 ;
20939 int result;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 PyObject *swig_obj[1] ;
20943
20944 if (!args) SWIG_fail;
20945 swig_obj[0] = args;
20946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20947 if (!SWIG_IsOK(res1)) {
20948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20949 }
20950 arg1 = reinterpret_cast< wxDC * >(argp1);
20951 {
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 result = (int)((wxDC const *)arg1)->GetCharWidth();
20954 wxPyEndAllowThreads(__tstate);
20955 if (PyErr_Occurred()) SWIG_fail;
20956 }
20957 resultobj = SWIG_From_int(static_cast< int >(result));
20958 return resultobj;
20959 fail:
20960 return NULL;
20961 }
20962
20963
20964 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20965 PyObject *resultobj = 0;
20966 wxDC *arg1 = (wxDC *) 0 ;
20967 wxString *arg2 = 0 ;
20968 int *arg3 = (int *) 0 ;
20969 int *arg4 = (int *) 0 ;
20970 void *argp1 = 0 ;
20971 int res1 = 0 ;
20972 bool temp2 = false ;
20973 int temp3 ;
20974 int res3 = SWIG_TMPOBJ ;
20975 int temp4 ;
20976 int res4 = SWIG_TMPOBJ ;
20977 PyObject * obj0 = 0 ;
20978 PyObject * obj1 = 0 ;
20979 char * kwnames[] = {
20980 (char *) "self",(char *) "string", NULL
20981 };
20982
20983 arg3 = &temp3;
20984 arg4 = &temp4;
20985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20987 if (!SWIG_IsOK(res1)) {
20988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20989 }
20990 arg1 = reinterpret_cast< wxDC * >(argp1);
20991 {
20992 arg2 = wxString_in_helper(obj1);
20993 if (arg2 == NULL) SWIG_fail;
20994 temp2 = true;
20995 }
20996 {
20997 PyThreadState* __tstate = wxPyBeginAllowThreads();
20998 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20999 wxPyEndAllowThreads(__tstate);
21000 if (PyErr_Occurred()) SWIG_fail;
21001 }
21002 resultobj = SWIG_Py_Void();
21003 if (SWIG_IsTmpObj(res3)) {
21004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21005 } else {
21006 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21008 }
21009 if (SWIG_IsTmpObj(res4)) {
21010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21011 } else {
21012 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21014 }
21015 {
21016 if (temp2)
21017 delete arg2;
21018 }
21019 return resultobj;
21020 fail:
21021 {
21022 if (temp2)
21023 delete arg2;
21024 }
21025 return NULL;
21026 }
21027
21028
21029 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21030 PyObject *resultobj = 0;
21031 wxDC *arg1 = (wxDC *) 0 ;
21032 wxString *arg2 = 0 ;
21033 int *arg3 = (int *) 0 ;
21034 int *arg4 = (int *) 0 ;
21035 int *arg5 = (int *) 0 ;
21036 int *arg6 = (int *) 0 ;
21037 wxFont *arg7 = (wxFont *) NULL ;
21038 void *argp1 = 0 ;
21039 int res1 = 0 ;
21040 bool temp2 = false ;
21041 int temp3 ;
21042 int res3 = SWIG_TMPOBJ ;
21043 int temp4 ;
21044 int res4 = SWIG_TMPOBJ ;
21045 int temp5 ;
21046 int res5 = SWIG_TMPOBJ ;
21047 int temp6 ;
21048 int res6 = SWIG_TMPOBJ ;
21049 void *argp7 = 0 ;
21050 int res7 = 0 ;
21051 PyObject * obj0 = 0 ;
21052 PyObject * obj1 = 0 ;
21053 PyObject * obj2 = 0 ;
21054 char * kwnames[] = {
21055 (char *) "self",(char *) "string",(char *) "font", NULL
21056 };
21057
21058 arg3 = &temp3;
21059 arg4 = &temp4;
21060 arg5 = &temp5;
21061 arg6 = &temp6;
21062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21064 if (!SWIG_IsOK(res1)) {
21065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21066 }
21067 arg1 = reinterpret_cast< wxDC * >(argp1);
21068 {
21069 arg2 = wxString_in_helper(obj1);
21070 if (arg2 == NULL) SWIG_fail;
21071 temp2 = true;
21072 }
21073 if (obj2) {
21074 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21075 if (!SWIG_IsOK(res7)) {
21076 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21077 }
21078 arg7 = reinterpret_cast< wxFont * >(argp7);
21079 }
21080 {
21081 PyThreadState* __tstate = wxPyBeginAllowThreads();
21082 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21083 wxPyEndAllowThreads(__tstate);
21084 if (PyErr_Occurred()) SWIG_fail;
21085 }
21086 resultobj = SWIG_Py_Void();
21087 if (SWIG_IsTmpObj(res3)) {
21088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21089 } else {
21090 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21092 }
21093 if (SWIG_IsTmpObj(res4)) {
21094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21095 } else {
21096 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21098 }
21099 if (SWIG_IsTmpObj(res5)) {
21100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21101 } else {
21102 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21103 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21104 }
21105 if (SWIG_IsTmpObj(res6)) {
21106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21107 } else {
21108 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21110 }
21111 {
21112 if (temp2)
21113 delete arg2;
21114 }
21115 return resultobj;
21116 fail:
21117 {
21118 if (temp2)
21119 delete arg2;
21120 }
21121 return NULL;
21122 }
21123
21124
21125 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21126 PyObject *resultobj = 0;
21127 wxDC *arg1 = (wxDC *) 0 ;
21128 wxString *arg2 = 0 ;
21129 int *arg3 = (int *) 0 ;
21130 int *arg4 = (int *) 0 ;
21131 int *arg5 = (int *) 0 ;
21132 wxFont *arg6 = (wxFont *) NULL ;
21133 void *argp1 = 0 ;
21134 int res1 = 0 ;
21135 bool temp2 = false ;
21136 int temp3 ;
21137 int res3 = SWIG_TMPOBJ ;
21138 int temp4 ;
21139 int res4 = SWIG_TMPOBJ ;
21140 int temp5 ;
21141 int res5 = SWIG_TMPOBJ ;
21142 void *argp6 = 0 ;
21143 int res6 = 0 ;
21144 PyObject * obj0 = 0 ;
21145 PyObject * obj1 = 0 ;
21146 PyObject * obj2 = 0 ;
21147 char * kwnames[] = {
21148 (char *) "self",(char *) "text",(char *) "font", NULL
21149 };
21150
21151 arg3 = &temp3;
21152 arg4 = &temp4;
21153 arg5 = &temp5;
21154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21156 if (!SWIG_IsOK(res1)) {
21157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21158 }
21159 arg1 = reinterpret_cast< wxDC * >(argp1);
21160 {
21161 arg2 = wxString_in_helper(obj1);
21162 if (arg2 == NULL) SWIG_fail;
21163 temp2 = true;
21164 }
21165 if (obj2) {
21166 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21167 if (!SWIG_IsOK(res6)) {
21168 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21169 }
21170 arg6 = reinterpret_cast< wxFont * >(argp6);
21171 }
21172 {
21173 PyThreadState* __tstate = wxPyBeginAllowThreads();
21174 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 resultobj = SWIG_Py_Void();
21179 if (SWIG_IsTmpObj(res3)) {
21180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21181 } else {
21182 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21184 }
21185 if (SWIG_IsTmpObj(res4)) {
21186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21187 } else {
21188 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21190 }
21191 if (SWIG_IsTmpObj(res5)) {
21192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21193 } else {
21194 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21196 }
21197 {
21198 if (temp2)
21199 delete arg2;
21200 }
21201 return resultobj;
21202 fail:
21203 {
21204 if (temp2)
21205 delete arg2;
21206 }
21207 return NULL;
21208 }
21209
21210
21211 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj = 0;
21213 wxDC *arg1 = (wxDC *) 0 ;
21214 wxString *arg2 = 0 ;
21215 wxArrayInt result;
21216 void *argp1 = 0 ;
21217 int res1 = 0 ;
21218 bool temp2 = false ;
21219 PyObject * obj0 = 0 ;
21220 PyObject * obj1 = 0 ;
21221 char * kwnames[] = {
21222 (char *) "self",(char *) "text", NULL
21223 };
21224
21225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21227 if (!SWIG_IsOK(res1)) {
21228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21229 }
21230 arg1 = reinterpret_cast< wxDC * >(argp1);
21231 {
21232 arg2 = wxString_in_helper(obj1);
21233 if (arg2 == NULL) SWIG_fail;
21234 temp2 = true;
21235 }
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21239 wxPyEndAllowThreads(__tstate);
21240 if (PyErr_Occurred()) SWIG_fail;
21241 }
21242 {
21243 resultobj = wxArrayInt2PyList_helper(result);
21244 }
21245 {
21246 if (temp2)
21247 delete arg2;
21248 }
21249 return resultobj;
21250 fail:
21251 {
21252 if (temp2)
21253 delete arg2;
21254 }
21255 return NULL;
21256 }
21257
21258
21259 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21260 PyObject *resultobj = 0;
21261 wxDC *arg1 = (wxDC *) 0 ;
21262 wxSize result;
21263 void *argp1 = 0 ;
21264 int res1 = 0 ;
21265 PyObject *swig_obj[1] ;
21266
21267 if (!args) SWIG_fail;
21268 swig_obj[0] = args;
21269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21270 if (!SWIG_IsOK(res1)) {
21271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21272 }
21273 arg1 = reinterpret_cast< wxDC * >(argp1);
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 result = (arg1)->GetSize();
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21281 return resultobj;
21282 fail:
21283 return NULL;
21284 }
21285
21286
21287 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21288 PyObject *resultobj = 0;
21289 wxDC *arg1 = (wxDC *) 0 ;
21290 int *arg2 = (int *) 0 ;
21291 int *arg3 = (int *) 0 ;
21292 void *argp1 = 0 ;
21293 int res1 = 0 ;
21294 int temp2 ;
21295 int res2 = SWIG_TMPOBJ ;
21296 int temp3 ;
21297 int res3 = SWIG_TMPOBJ ;
21298 PyObject *swig_obj[1] ;
21299
21300 arg2 = &temp2;
21301 arg3 = &temp3;
21302 if (!args) SWIG_fail;
21303 swig_obj[0] = args;
21304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21305 if (!SWIG_IsOK(res1)) {
21306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21307 }
21308 arg1 = reinterpret_cast< wxDC * >(argp1);
21309 {
21310 PyThreadState* __tstate = wxPyBeginAllowThreads();
21311 (arg1)->GetSize(arg2,arg3);
21312 wxPyEndAllowThreads(__tstate);
21313 if (PyErr_Occurred()) SWIG_fail;
21314 }
21315 resultobj = SWIG_Py_Void();
21316 if (SWIG_IsTmpObj(res2)) {
21317 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21318 } else {
21319 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21320 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21321 }
21322 if (SWIG_IsTmpObj(res3)) {
21323 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21324 } else {
21325 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21326 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21327 }
21328 return resultobj;
21329 fail:
21330 return NULL;
21331 }
21332
21333
21334 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21335 PyObject *resultobj = 0;
21336 wxDC *arg1 = (wxDC *) 0 ;
21337 wxSize result;
21338 void *argp1 = 0 ;
21339 int res1 = 0 ;
21340 PyObject *swig_obj[1] ;
21341
21342 if (!args) SWIG_fail;
21343 swig_obj[0] = args;
21344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21345 if (!SWIG_IsOK(res1)) {
21346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21347 }
21348 arg1 = reinterpret_cast< wxDC * >(argp1);
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 result = ((wxDC const *)arg1)->GetSizeMM();
21352 wxPyEndAllowThreads(__tstate);
21353 if (PyErr_Occurred()) SWIG_fail;
21354 }
21355 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21356 return resultobj;
21357 fail:
21358 return NULL;
21359 }
21360
21361
21362 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 PyObject *resultobj = 0;
21364 wxDC *arg1 = (wxDC *) 0 ;
21365 int *arg2 = (int *) 0 ;
21366 int *arg3 = (int *) 0 ;
21367 void *argp1 = 0 ;
21368 int res1 = 0 ;
21369 int temp2 ;
21370 int res2 = SWIG_TMPOBJ ;
21371 int temp3 ;
21372 int res3 = SWIG_TMPOBJ ;
21373 PyObject *swig_obj[1] ;
21374
21375 arg2 = &temp2;
21376 arg3 = &temp3;
21377 if (!args) SWIG_fail;
21378 swig_obj[0] = args;
21379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21380 if (!SWIG_IsOK(res1)) {
21381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21382 }
21383 arg1 = reinterpret_cast< wxDC * >(argp1);
21384 {
21385 PyThreadState* __tstate = wxPyBeginAllowThreads();
21386 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21387 wxPyEndAllowThreads(__tstate);
21388 if (PyErr_Occurred()) SWIG_fail;
21389 }
21390 resultobj = SWIG_Py_Void();
21391 if (SWIG_IsTmpObj(res2)) {
21392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21393 } else {
21394 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21395 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21396 }
21397 if (SWIG_IsTmpObj(res3)) {
21398 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21399 } else {
21400 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21401 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21402 }
21403 return resultobj;
21404 fail:
21405 return NULL;
21406 }
21407
21408
21409 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21410 PyObject *resultobj = 0;
21411 wxDC *arg1 = (wxDC *) 0 ;
21412 int arg2 ;
21413 int result;
21414 void *argp1 = 0 ;
21415 int res1 = 0 ;
21416 int val2 ;
21417 int ecode2 = 0 ;
21418 PyObject * obj0 = 0 ;
21419 PyObject * obj1 = 0 ;
21420 char * kwnames[] = {
21421 (char *) "self",(char *) "x", NULL
21422 };
21423
21424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21426 if (!SWIG_IsOK(res1)) {
21427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21428 }
21429 arg1 = reinterpret_cast< wxDC * >(argp1);
21430 ecode2 = SWIG_AsVal_int(obj1, &val2);
21431 if (!SWIG_IsOK(ecode2)) {
21432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21433 }
21434 arg2 = static_cast< int >(val2);
21435 {
21436 PyThreadState* __tstate = wxPyBeginAllowThreads();
21437 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21438 wxPyEndAllowThreads(__tstate);
21439 if (PyErr_Occurred()) SWIG_fail;
21440 }
21441 resultobj = SWIG_From_int(static_cast< int >(result));
21442 return resultobj;
21443 fail:
21444 return NULL;
21445 }
21446
21447
21448 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21449 PyObject *resultobj = 0;
21450 wxDC *arg1 = (wxDC *) 0 ;
21451 int arg2 ;
21452 int result;
21453 void *argp1 = 0 ;
21454 int res1 = 0 ;
21455 int val2 ;
21456 int ecode2 = 0 ;
21457 PyObject * obj0 = 0 ;
21458 PyObject * obj1 = 0 ;
21459 char * kwnames[] = {
21460 (char *) "self",(char *) "y", NULL
21461 };
21462
21463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21465 if (!SWIG_IsOK(res1)) {
21466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21467 }
21468 arg1 = reinterpret_cast< wxDC * >(argp1);
21469 ecode2 = SWIG_AsVal_int(obj1, &val2);
21470 if (!SWIG_IsOK(ecode2)) {
21471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21472 }
21473 arg2 = static_cast< int >(val2);
21474 {
21475 PyThreadState* __tstate = wxPyBeginAllowThreads();
21476 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21477 wxPyEndAllowThreads(__tstate);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 resultobj = SWIG_From_int(static_cast< int >(result));
21481 return resultobj;
21482 fail:
21483 return NULL;
21484 }
21485
21486
21487 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21488 PyObject *resultobj = 0;
21489 wxDC *arg1 = (wxDC *) 0 ;
21490 int arg2 ;
21491 int result;
21492 void *argp1 = 0 ;
21493 int res1 = 0 ;
21494 int val2 ;
21495 int ecode2 = 0 ;
21496 PyObject * obj0 = 0 ;
21497 PyObject * obj1 = 0 ;
21498 char * kwnames[] = {
21499 (char *) "self",(char *) "x", NULL
21500 };
21501
21502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21504 if (!SWIG_IsOK(res1)) {
21505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21506 }
21507 arg1 = reinterpret_cast< wxDC * >(argp1);
21508 ecode2 = SWIG_AsVal_int(obj1, &val2);
21509 if (!SWIG_IsOK(ecode2)) {
21510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21511 }
21512 arg2 = static_cast< int >(val2);
21513 {
21514 PyThreadState* __tstate = wxPyBeginAllowThreads();
21515 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21516 wxPyEndAllowThreads(__tstate);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 resultobj = SWIG_From_int(static_cast< int >(result));
21520 return resultobj;
21521 fail:
21522 return NULL;
21523 }
21524
21525
21526 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21527 PyObject *resultobj = 0;
21528 wxDC *arg1 = (wxDC *) 0 ;
21529 int arg2 ;
21530 int result;
21531 void *argp1 = 0 ;
21532 int res1 = 0 ;
21533 int val2 ;
21534 int ecode2 = 0 ;
21535 PyObject * obj0 = 0 ;
21536 PyObject * obj1 = 0 ;
21537 char * kwnames[] = {
21538 (char *) "self",(char *) "y", NULL
21539 };
21540
21541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21543 if (!SWIG_IsOK(res1)) {
21544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21545 }
21546 arg1 = reinterpret_cast< wxDC * >(argp1);
21547 ecode2 = SWIG_AsVal_int(obj1, &val2);
21548 if (!SWIG_IsOK(ecode2)) {
21549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21550 }
21551 arg2 = static_cast< int >(val2);
21552 {
21553 PyThreadState* __tstate = wxPyBeginAllowThreads();
21554 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21555 wxPyEndAllowThreads(__tstate);
21556 if (PyErr_Occurred()) SWIG_fail;
21557 }
21558 resultobj = SWIG_From_int(static_cast< int >(result));
21559 return resultobj;
21560 fail:
21561 return NULL;
21562 }
21563
21564
21565 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21566 PyObject *resultobj = 0;
21567 wxDC *arg1 = (wxDC *) 0 ;
21568 int arg2 ;
21569 int result;
21570 void *argp1 = 0 ;
21571 int res1 = 0 ;
21572 int val2 ;
21573 int ecode2 = 0 ;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576 char * kwnames[] = {
21577 (char *) "self",(char *) "x", NULL
21578 };
21579
21580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21582 if (!SWIG_IsOK(res1)) {
21583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21584 }
21585 arg1 = reinterpret_cast< wxDC * >(argp1);
21586 ecode2 = SWIG_AsVal_int(obj1, &val2);
21587 if (!SWIG_IsOK(ecode2)) {
21588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21589 }
21590 arg2 = static_cast< int >(val2);
21591 {
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
21593 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21594 wxPyEndAllowThreads(__tstate);
21595 if (PyErr_Occurred()) SWIG_fail;
21596 }
21597 resultobj = SWIG_From_int(static_cast< int >(result));
21598 return resultobj;
21599 fail:
21600 return NULL;
21601 }
21602
21603
21604 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21605 PyObject *resultobj = 0;
21606 wxDC *arg1 = (wxDC *) 0 ;
21607 int arg2 ;
21608 int result;
21609 void *argp1 = 0 ;
21610 int res1 = 0 ;
21611 int val2 ;
21612 int ecode2 = 0 ;
21613 PyObject * obj0 = 0 ;
21614 PyObject * obj1 = 0 ;
21615 char * kwnames[] = {
21616 (char *) "self",(char *) "y", NULL
21617 };
21618
21619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21621 if (!SWIG_IsOK(res1)) {
21622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21623 }
21624 arg1 = reinterpret_cast< wxDC * >(argp1);
21625 ecode2 = SWIG_AsVal_int(obj1, &val2);
21626 if (!SWIG_IsOK(ecode2)) {
21627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21628 }
21629 arg2 = static_cast< int >(val2);
21630 {
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21633 wxPyEndAllowThreads(__tstate);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 }
21636 resultobj = SWIG_From_int(static_cast< int >(result));
21637 return resultobj;
21638 fail:
21639 return NULL;
21640 }
21641
21642
21643 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21644 PyObject *resultobj = 0;
21645 wxDC *arg1 = (wxDC *) 0 ;
21646 int arg2 ;
21647 int result;
21648 void *argp1 = 0 ;
21649 int res1 = 0 ;
21650 int val2 ;
21651 int ecode2 = 0 ;
21652 PyObject * obj0 = 0 ;
21653 PyObject * obj1 = 0 ;
21654 char * kwnames[] = {
21655 (char *) "self",(char *) "x", NULL
21656 };
21657
21658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21660 if (!SWIG_IsOK(res1)) {
21661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21662 }
21663 arg1 = reinterpret_cast< wxDC * >(argp1);
21664 ecode2 = SWIG_AsVal_int(obj1, &val2);
21665 if (!SWIG_IsOK(ecode2)) {
21666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21667 }
21668 arg2 = static_cast< int >(val2);
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 resultobj = SWIG_From_int(static_cast< int >(result));
21676 return resultobj;
21677 fail:
21678 return NULL;
21679 }
21680
21681
21682 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21683 PyObject *resultobj = 0;
21684 wxDC *arg1 = (wxDC *) 0 ;
21685 int arg2 ;
21686 int result;
21687 void *argp1 = 0 ;
21688 int res1 = 0 ;
21689 int val2 ;
21690 int ecode2 = 0 ;
21691 PyObject * obj0 = 0 ;
21692 PyObject * obj1 = 0 ;
21693 char * kwnames[] = {
21694 (char *) "self",(char *) "y", NULL
21695 };
21696
21697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21699 if (!SWIG_IsOK(res1)) {
21700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21701 }
21702 arg1 = reinterpret_cast< wxDC * >(argp1);
21703 ecode2 = SWIG_AsVal_int(obj1, &val2);
21704 if (!SWIG_IsOK(ecode2)) {
21705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21706 }
21707 arg2 = static_cast< int >(val2);
21708 {
21709 PyThreadState* __tstate = wxPyBeginAllowThreads();
21710 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21711 wxPyEndAllowThreads(__tstate);
21712 if (PyErr_Occurred()) SWIG_fail;
21713 }
21714 resultobj = SWIG_From_int(static_cast< int >(result));
21715 return resultobj;
21716 fail:
21717 return NULL;
21718 }
21719
21720
21721 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21722 PyObject *resultobj = 0;
21723 wxDC *arg1 = (wxDC *) 0 ;
21724 bool result;
21725 void *argp1 = 0 ;
21726 int res1 = 0 ;
21727 PyObject *swig_obj[1] ;
21728
21729 if (!args) SWIG_fail;
21730 swig_obj[0] = args;
21731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21732 if (!SWIG_IsOK(res1)) {
21733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21734 }
21735 arg1 = reinterpret_cast< wxDC * >(argp1);
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21739 wxPyEndAllowThreads(__tstate);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 }
21742 {
21743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21744 }
21745 return resultobj;
21746 fail:
21747 return NULL;
21748 }
21749
21750
21751 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21752 PyObject *resultobj = 0;
21753 wxDC *arg1 = (wxDC *) 0 ;
21754 bool result;
21755 void *argp1 = 0 ;
21756 int res1 = 0 ;
21757 PyObject *swig_obj[1] ;
21758
21759 if (!args) SWIG_fail;
21760 swig_obj[0] = args;
21761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21762 if (!SWIG_IsOK(res1)) {
21763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21764 }
21765 arg1 = reinterpret_cast< wxDC * >(argp1);
21766 {
21767 PyThreadState* __tstate = wxPyBeginAllowThreads();
21768 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21774 }
21775 return resultobj;
21776 fail:
21777 return NULL;
21778 }
21779
21780
21781 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21782 PyObject *resultobj = 0;
21783 wxDC *arg1 = (wxDC *) 0 ;
21784 int result;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 PyObject *swig_obj[1] ;
21788
21789 if (!args) SWIG_fail;
21790 swig_obj[0] = args;
21791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21792 if (!SWIG_IsOK(res1)) {
21793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21794 }
21795 arg1 = reinterpret_cast< wxDC * >(argp1);
21796 {
21797 PyThreadState* __tstate = wxPyBeginAllowThreads();
21798 result = (int)((wxDC const *)arg1)->GetDepth();
21799 wxPyEndAllowThreads(__tstate);
21800 if (PyErr_Occurred()) SWIG_fail;
21801 }
21802 resultobj = SWIG_From_int(static_cast< int >(result));
21803 return resultobj;
21804 fail:
21805 return NULL;
21806 }
21807
21808
21809 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21810 PyObject *resultobj = 0;
21811 wxDC *arg1 = (wxDC *) 0 ;
21812 wxSize result;
21813 void *argp1 = 0 ;
21814 int res1 = 0 ;
21815 PyObject *swig_obj[1] ;
21816
21817 if (!args) SWIG_fail;
21818 swig_obj[0] = args;
21819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21820 if (!SWIG_IsOK(res1)) {
21821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21822 }
21823 arg1 = reinterpret_cast< wxDC * >(argp1);
21824 {
21825 PyThreadState* __tstate = wxPyBeginAllowThreads();
21826 result = ((wxDC const *)arg1)->GetPPI();
21827 wxPyEndAllowThreads(__tstate);
21828 if (PyErr_Occurred()) SWIG_fail;
21829 }
21830 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21831 return resultobj;
21832 fail:
21833 return NULL;
21834 }
21835
21836
21837 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21838 PyObject *resultobj = 0;
21839 wxDC *arg1 = (wxDC *) 0 ;
21840 bool result;
21841 void *argp1 = 0 ;
21842 int res1 = 0 ;
21843 PyObject *swig_obj[1] ;
21844
21845 if (!args) SWIG_fail;
21846 swig_obj[0] = args;
21847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21848 if (!SWIG_IsOK(res1)) {
21849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21850 }
21851 arg1 = reinterpret_cast< wxDC * >(argp1);
21852 {
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = (bool)((wxDC const *)arg1)->IsOk();
21855 wxPyEndAllowThreads(__tstate);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 {
21859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21860 }
21861 return resultobj;
21862 fail:
21863 return NULL;
21864 }
21865
21866
21867 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21868 PyObject *resultobj = 0;
21869 wxDC *arg1 = (wxDC *) 0 ;
21870 int result;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 PyObject *swig_obj[1] ;
21874
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21880 }
21881 arg1 = reinterpret_cast< wxDC * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 resultobj = SWIG_From_int(static_cast< int >(result));
21889 return resultobj;
21890 fail:
21891 return NULL;
21892 }
21893
21894
21895 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21896 PyObject *resultobj = 0;
21897 wxDC *arg1 = (wxDC *) 0 ;
21898 wxBrush *result = 0 ;
21899 void *argp1 = 0 ;
21900 int res1 = 0 ;
21901 PyObject *swig_obj[1] ;
21902
21903 if (!args) SWIG_fail;
21904 swig_obj[0] = args;
21905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21906 if (!SWIG_IsOK(res1)) {
21907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21908 }
21909 arg1 = reinterpret_cast< wxDC * >(argp1);
21910 {
21911 PyThreadState* __tstate = wxPyBeginAllowThreads();
21912 {
21913 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21914 result = (wxBrush *) &_result_ref;
21915 }
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 {
21920 wxBrush* resultptr = new wxBrush(*result);
21921 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21922 }
21923 return resultobj;
21924 fail:
21925 return NULL;
21926 }
21927
21928
21929 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21930 PyObject *resultobj = 0;
21931 wxDC *arg1 = (wxDC *) 0 ;
21932 wxBrush *result = 0 ;
21933 void *argp1 = 0 ;
21934 int res1 = 0 ;
21935 PyObject *swig_obj[1] ;
21936
21937 if (!args) SWIG_fail;
21938 swig_obj[0] = args;
21939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21940 if (!SWIG_IsOK(res1)) {
21941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21942 }
21943 arg1 = reinterpret_cast< wxDC * >(argp1);
21944 {
21945 PyThreadState* __tstate = wxPyBeginAllowThreads();
21946 {
21947 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21948 result = (wxBrush *) &_result_ref;
21949 }
21950 wxPyEndAllowThreads(__tstate);
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 {
21954 wxBrush* resultptr = new wxBrush(*result);
21955 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21956 }
21957 return resultobj;
21958 fail:
21959 return NULL;
21960 }
21961
21962
21963 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21964 PyObject *resultobj = 0;
21965 wxDC *arg1 = (wxDC *) 0 ;
21966 wxFont *result = 0 ;
21967 void *argp1 = 0 ;
21968 int res1 = 0 ;
21969 PyObject *swig_obj[1] ;
21970
21971 if (!args) SWIG_fail;
21972 swig_obj[0] = args;
21973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21974 if (!SWIG_IsOK(res1)) {
21975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21976 }
21977 arg1 = reinterpret_cast< wxDC * >(argp1);
21978 {
21979 PyThreadState* __tstate = wxPyBeginAllowThreads();
21980 {
21981 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21982 result = (wxFont *) &_result_ref;
21983 }
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 {
21988 wxFont* resultptr = new wxFont(*result);
21989 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21990 }
21991 return resultobj;
21992 fail:
21993 return NULL;
21994 }
21995
21996
21997 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21998 PyObject *resultobj = 0;
21999 wxDC *arg1 = (wxDC *) 0 ;
22000 wxPen *result = 0 ;
22001 void *argp1 = 0 ;
22002 int res1 = 0 ;
22003 PyObject *swig_obj[1] ;
22004
22005 if (!args) SWIG_fail;
22006 swig_obj[0] = args;
22007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22008 if (!SWIG_IsOK(res1)) {
22009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22010 }
22011 arg1 = reinterpret_cast< wxDC * >(argp1);
22012 {
22013 PyThreadState* __tstate = wxPyBeginAllowThreads();
22014 {
22015 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22016 result = (wxPen *) &_result_ref;
22017 }
22018 wxPyEndAllowThreads(__tstate);
22019 if (PyErr_Occurred()) SWIG_fail;
22020 }
22021 {
22022 wxPen* resultptr = new wxPen(*result);
22023 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22024 }
22025 return resultobj;
22026 fail:
22027 return NULL;
22028 }
22029
22030
22031 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22032 PyObject *resultobj = 0;
22033 wxDC *arg1 = (wxDC *) 0 ;
22034 wxColour *result = 0 ;
22035 void *argp1 = 0 ;
22036 int res1 = 0 ;
22037 PyObject *swig_obj[1] ;
22038
22039 if (!args) SWIG_fail;
22040 swig_obj[0] = args;
22041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22042 if (!SWIG_IsOK(res1)) {
22043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22044 }
22045 arg1 = reinterpret_cast< wxDC * >(argp1);
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 {
22049 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22050 result = (wxColour *) &_result_ref;
22051 }
22052 wxPyEndAllowThreads(__tstate);
22053 if (PyErr_Occurred()) SWIG_fail;
22054 }
22055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22056 return resultobj;
22057 fail:
22058 return NULL;
22059 }
22060
22061
22062 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22063 PyObject *resultobj = 0;
22064 wxDC *arg1 = (wxDC *) 0 ;
22065 wxColour *result = 0 ;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 PyObject *swig_obj[1] ;
22069
22070 if (!args) SWIG_fail;
22071 swig_obj[0] = args;
22072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22073 if (!SWIG_IsOK(res1)) {
22074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22075 }
22076 arg1 = reinterpret_cast< wxDC * >(argp1);
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 {
22080 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22081 result = (wxColour *) &_result_ref;
22082 }
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22087 return resultobj;
22088 fail:
22089 return NULL;
22090 }
22091
22092
22093 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22094 PyObject *resultobj = 0;
22095 wxDC *arg1 = (wxDC *) 0 ;
22096 wxColour *arg2 = 0 ;
22097 void *argp1 = 0 ;
22098 int res1 = 0 ;
22099 wxColour temp2 ;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 char * kwnames[] = {
22103 (char *) "self",(char *) "colour", NULL
22104 };
22105
22106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22110 }
22111 arg1 = reinterpret_cast< wxDC * >(argp1);
22112 {
22113 arg2 = &temp2;
22114 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22115 }
22116 {
22117 PyThreadState* __tstate = wxPyBeginAllowThreads();
22118 (arg1)->SetTextForeground((wxColour const &)*arg2);
22119 wxPyEndAllowThreads(__tstate);
22120 if (PyErr_Occurred()) SWIG_fail;
22121 }
22122 resultobj = SWIG_Py_Void();
22123 return resultobj;
22124 fail:
22125 return NULL;
22126 }
22127
22128
22129 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22130 PyObject *resultobj = 0;
22131 wxDC *arg1 = (wxDC *) 0 ;
22132 wxColour *arg2 = 0 ;
22133 void *argp1 = 0 ;
22134 int res1 = 0 ;
22135 wxColour temp2 ;
22136 PyObject * obj0 = 0 ;
22137 PyObject * obj1 = 0 ;
22138 char * kwnames[] = {
22139 (char *) "self",(char *) "colour", NULL
22140 };
22141
22142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22144 if (!SWIG_IsOK(res1)) {
22145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22146 }
22147 arg1 = reinterpret_cast< wxDC * >(argp1);
22148 {
22149 arg2 = &temp2;
22150 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22151 }
22152 {
22153 PyThreadState* __tstate = wxPyBeginAllowThreads();
22154 (arg1)->SetTextBackground((wxColour const &)*arg2);
22155 wxPyEndAllowThreads(__tstate);
22156 if (PyErr_Occurred()) SWIG_fail;
22157 }
22158 resultobj = SWIG_Py_Void();
22159 return resultobj;
22160 fail:
22161 return NULL;
22162 }
22163
22164
22165 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22166 PyObject *resultobj = 0;
22167 wxDC *arg1 = (wxDC *) 0 ;
22168 int result;
22169 void *argp1 = 0 ;
22170 int res1 = 0 ;
22171 PyObject *swig_obj[1] ;
22172
22173 if (!args) SWIG_fail;
22174 swig_obj[0] = args;
22175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22176 if (!SWIG_IsOK(res1)) {
22177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22178 }
22179 arg1 = reinterpret_cast< wxDC * >(argp1);
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (int)((wxDC const *)arg1)->GetMapMode();
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 resultobj = SWIG_From_int(static_cast< int >(result));
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj = 0;
22195 wxDC *arg1 = (wxDC *) 0 ;
22196 int arg2 ;
22197 void *argp1 = 0 ;
22198 int res1 = 0 ;
22199 int val2 ;
22200 int ecode2 = 0 ;
22201 PyObject * obj0 = 0 ;
22202 PyObject * obj1 = 0 ;
22203 char * kwnames[] = {
22204 (char *) "self",(char *) "mode", NULL
22205 };
22206
22207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22209 if (!SWIG_IsOK(res1)) {
22210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22211 }
22212 arg1 = reinterpret_cast< wxDC * >(argp1);
22213 ecode2 = SWIG_AsVal_int(obj1, &val2);
22214 if (!SWIG_IsOK(ecode2)) {
22215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22216 }
22217 arg2 = static_cast< int >(val2);
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 (arg1)->SetMapMode(arg2);
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 resultobj = SWIG_Py_Void();
22225 return resultobj;
22226 fail:
22227 return NULL;
22228 }
22229
22230
22231 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22232 PyObject *resultobj = 0;
22233 wxDC *arg1 = (wxDC *) 0 ;
22234 double *arg2 = (double *) 0 ;
22235 double *arg3 = (double *) 0 ;
22236 void *argp1 = 0 ;
22237 int res1 = 0 ;
22238 double temp2 ;
22239 int res2 = SWIG_TMPOBJ ;
22240 double temp3 ;
22241 int res3 = SWIG_TMPOBJ ;
22242 PyObject *swig_obj[1] ;
22243
22244 arg2 = &temp2;
22245 arg3 = &temp3;
22246 if (!args) SWIG_fail;
22247 swig_obj[0] = args;
22248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22249 if (!SWIG_IsOK(res1)) {
22250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22251 }
22252 arg1 = reinterpret_cast< wxDC * >(argp1);
22253 {
22254 PyThreadState* __tstate = wxPyBeginAllowThreads();
22255 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 resultobj = SWIG_Py_Void();
22260 if (SWIG_IsTmpObj(res2)) {
22261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22262 } else {
22263 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22265 }
22266 if (SWIG_IsTmpObj(res3)) {
22267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22268 } else {
22269 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22271 }
22272 return resultobj;
22273 fail:
22274 return NULL;
22275 }
22276
22277
22278 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22279 PyObject *resultobj = 0;
22280 wxDC *arg1 = (wxDC *) 0 ;
22281 double arg2 ;
22282 double arg3 ;
22283 void *argp1 = 0 ;
22284 int res1 = 0 ;
22285 double val2 ;
22286 int ecode2 = 0 ;
22287 double val3 ;
22288 int ecode3 = 0 ;
22289 PyObject * obj0 = 0 ;
22290 PyObject * obj1 = 0 ;
22291 PyObject * obj2 = 0 ;
22292 char * kwnames[] = {
22293 (char *) "self",(char *) "x",(char *) "y", NULL
22294 };
22295
22296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22298 if (!SWIG_IsOK(res1)) {
22299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22300 }
22301 arg1 = reinterpret_cast< wxDC * >(argp1);
22302 ecode2 = SWIG_AsVal_double(obj1, &val2);
22303 if (!SWIG_IsOK(ecode2)) {
22304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22305 }
22306 arg2 = static_cast< double >(val2);
22307 ecode3 = SWIG_AsVal_double(obj2, &val3);
22308 if (!SWIG_IsOK(ecode3)) {
22309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22310 }
22311 arg3 = static_cast< double >(val3);
22312 {
22313 PyThreadState* __tstate = wxPyBeginAllowThreads();
22314 (arg1)->SetUserScale(arg2,arg3);
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 resultobj = SWIG_Py_Void();
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22326 PyObject *resultobj = 0;
22327 wxDC *arg1 = (wxDC *) 0 ;
22328 double *arg2 = (double *) 0 ;
22329 double *arg3 = (double *) 0 ;
22330 void *argp1 = 0 ;
22331 int res1 = 0 ;
22332 double temp2 ;
22333 int res2 = SWIG_TMPOBJ ;
22334 double temp3 ;
22335 int res3 = SWIG_TMPOBJ ;
22336 PyObject *swig_obj[1] ;
22337
22338 arg2 = &temp2;
22339 arg3 = &temp3;
22340 if (!args) SWIG_fail;
22341 swig_obj[0] = args;
22342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22343 if (!SWIG_IsOK(res1)) {
22344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22345 }
22346 arg1 = reinterpret_cast< wxDC * >(argp1);
22347 {
22348 PyThreadState* __tstate = wxPyBeginAllowThreads();
22349 (arg1)->GetLogicalScale(arg2,arg3);
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 resultobj = SWIG_Py_Void();
22354 if (SWIG_IsTmpObj(res2)) {
22355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22356 } else {
22357 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22359 }
22360 if (SWIG_IsTmpObj(res3)) {
22361 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22362 } else {
22363 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22364 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22365 }
22366 return resultobj;
22367 fail:
22368 return NULL;
22369 }
22370
22371
22372 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22373 PyObject *resultobj = 0;
22374 wxDC *arg1 = (wxDC *) 0 ;
22375 double arg2 ;
22376 double arg3 ;
22377 void *argp1 = 0 ;
22378 int res1 = 0 ;
22379 double val2 ;
22380 int ecode2 = 0 ;
22381 double val3 ;
22382 int ecode3 = 0 ;
22383 PyObject * obj0 = 0 ;
22384 PyObject * obj1 = 0 ;
22385 PyObject * obj2 = 0 ;
22386 char * kwnames[] = {
22387 (char *) "self",(char *) "x",(char *) "y", NULL
22388 };
22389
22390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22392 if (!SWIG_IsOK(res1)) {
22393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22394 }
22395 arg1 = reinterpret_cast< wxDC * >(argp1);
22396 ecode2 = SWIG_AsVal_double(obj1, &val2);
22397 if (!SWIG_IsOK(ecode2)) {
22398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22399 }
22400 arg2 = static_cast< double >(val2);
22401 ecode3 = SWIG_AsVal_double(obj2, &val3);
22402 if (!SWIG_IsOK(ecode3)) {
22403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22404 }
22405 arg3 = static_cast< double >(val3);
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 (arg1)->SetLogicalScale(arg2,arg3);
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 resultobj = SWIG_Py_Void();
22413 return resultobj;
22414 fail:
22415 return NULL;
22416 }
22417
22418
22419 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22420 PyObject *resultobj = 0;
22421 wxDC *arg1 = (wxDC *) 0 ;
22422 wxPoint result;
22423 void *argp1 = 0 ;
22424 int res1 = 0 ;
22425 PyObject *swig_obj[1] ;
22426
22427 if (!args) SWIG_fail;
22428 swig_obj[0] = args;
22429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22430 if (!SWIG_IsOK(res1)) {
22431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22432 }
22433 arg1 = reinterpret_cast< wxDC * >(argp1);
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22441 return resultobj;
22442 fail:
22443 return NULL;
22444 }
22445
22446
22447 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22448 PyObject *resultobj = 0;
22449 wxDC *arg1 = (wxDC *) 0 ;
22450 int *arg2 = (int *) 0 ;
22451 int *arg3 = (int *) 0 ;
22452 void *argp1 = 0 ;
22453 int res1 = 0 ;
22454 int temp2 ;
22455 int res2 = SWIG_TMPOBJ ;
22456 int temp3 ;
22457 int res3 = SWIG_TMPOBJ ;
22458 PyObject *swig_obj[1] ;
22459
22460 arg2 = &temp2;
22461 arg3 = &temp3;
22462 if (!args) SWIG_fail;
22463 swig_obj[0] = args;
22464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22465 if (!SWIG_IsOK(res1)) {
22466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22467 }
22468 arg1 = reinterpret_cast< wxDC * >(argp1);
22469 {
22470 PyThreadState* __tstate = wxPyBeginAllowThreads();
22471 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22472 wxPyEndAllowThreads(__tstate);
22473 if (PyErr_Occurred()) SWIG_fail;
22474 }
22475 resultobj = SWIG_Py_Void();
22476 if (SWIG_IsTmpObj(res2)) {
22477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22478 } else {
22479 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22481 }
22482 if (SWIG_IsTmpObj(res3)) {
22483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22484 } else {
22485 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22487 }
22488 return resultobj;
22489 fail:
22490 return NULL;
22491 }
22492
22493
22494 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22495 PyObject *resultobj = 0;
22496 wxDC *arg1 = (wxDC *) 0 ;
22497 int arg2 ;
22498 int arg3 ;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 int val2 ;
22502 int ecode2 = 0 ;
22503 int val3 ;
22504 int ecode3 = 0 ;
22505 PyObject * obj0 = 0 ;
22506 PyObject * obj1 = 0 ;
22507 PyObject * obj2 = 0 ;
22508 char * kwnames[] = {
22509 (char *) "self",(char *) "x",(char *) "y", NULL
22510 };
22511
22512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22514 if (!SWIG_IsOK(res1)) {
22515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22516 }
22517 arg1 = reinterpret_cast< wxDC * >(argp1);
22518 ecode2 = SWIG_AsVal_int(obj1, &val2);
22519 if (!SWIG_IsOK(ecode2)) {
22520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22521 }
22522 arg2 = static_cast< int >(val2);
22523 ecode3 = SWIG_AsVal_int(obj2, &val3);
22524 if (!SWIG_IsOK(ecode3)) {
22525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22526 }
22527 arg3 = static_cast< int >(val3);
22528 {
22529 PyThreadState* __tstate = wxPyBeginAllowThreads();
22530 (arg1)->SetLogicalOrigin(arg2,arg3);
22531 wxPyEndAllowThreads(__tstate);
22532 if (PyErr_Occurred()) SWIG_fail;
22533 }
22534 resultobj = SWIG_Py_Void();
22535 return resultobj;
22536 fail:
22537 return NULL;
22538 }
22539
22540
22541 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22542 PyObject *resultobj = 0;
22543 wxDC *arg1 = (wxDC *) 0 ;
22544 wxPoint *arg2 = 0 ;
22545 void *argp1 = 0 ;
22546 int res1 = 0 ;
22547 wxPoint temp2 ;
22548 PyObject * obj0 = 0 ;
22549 PyObject * obj1 = 0 ;
22550 char * kwnames[] = {
22551 (char *) "self",(char *) "point", NULL
22552 };
22553
22554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22556 if (!SWIG_IsOK(res1)) {
22557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22558 }
22559 arg1 = reinterpret_cast< wxDC * >(argp1);
22560 {
22561 arg2 = &temp2;
22562 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22563 }
22564 {
22565 PyThreadState* __tstate = wxPyBeginAllowThreads();
22566 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 resultobj = SWIG_Py_Void();
22571 return resultobj;
22572 fail:
22573 return NULL;
22574 }
22575
22576
22577 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22578 PyObject *resultobj = 0;
22579 wxDC *arg1 = (wxDC *) 0 ;
22580 wxPoint result;
22581 void *argp1 = 0 ;
22582 int res1 = 0 ;
22583 PyObject *swig_obj[1] ;
22584
22585 if (!args) SWIG_fail;
22586 swig_obj[0] = args;
22587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22588 if (!SWIG_IsOK(res1)) {
22589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22590 }
22591 arg1 = reinterpret_cast< wxDC * >(argp1);
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22595 wxPyEndAllowThreads(__tstate);
22596 if (PyErr_Occurred()) SWIG_fail;
22597 }
22598 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22599 return resultobj;
22600 fail:
22601 return NULL;
22602 }
22603
22604
22605 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22606 PyObject *resultobj = 0;
22607 wxDC *arg1 = (wxDC *) 0 ;
22608 int *arg2 = (int *) 0 ;
22609 int *arg3 = (int *) 0 ;
22610 void *argp1 = 0 ;
22611 int res1 = 0 ;
22612 int temp2 ;
22613 int res2 = SWIG_TMPOBJ ;
22614 int temp3 ;
22615 int res3 = SWIG_TMPOBJ ;
22616 PyObject *swig_obj[1] ;
22617
22618 arg2 = &temp2;
22619 arg3 = &temp3;
22620 if (!args) SWIG_fail;
22621 swig_obj[0] = args;
22622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22623 if (!SWIG_IsOK(res1)) {
22624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22625 }
22626 arg1 = reinterpret_cast< wxDC * >(argp1);
22627 {
22628 PyThreadState* __tstate = wxPyBeginAllowThreads();
22629 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22630 wxPyEndAllowThreads(__tstate);
22631 if (PyErr_Occurred()) SWIG_fail;
22632 }
22633 resultobj = SWIG_Py_Void();
22634 if (SWIG_IsTmpObj(res2)) {
22635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22636 } else {
22637 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22639 }
22640 if (SWIG_IsTmpObj(res3)) {
22641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22642 } else {
22643 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22645 }
22646 return resultobj;
22647 fail:
22648 return NULL;
22649 }
22650
22651
22652 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22653 PyObject *resultobj = 0;
22654 wxDC *arg1 = (wxDC *) 0 ;
22655 int arg2 ;
22656 int arg3 ;
22657 void *argp1 = 0 ;
22658 int res1 = 0 ;
22659 int val2 ;
22660 int ecode2 = 0 ;
22661 int val3 ;
22662 int ecode3 = 0 ;
22663 PyObject * obj0 = 0 ;
22664 PyObject * obj1 = 0 ;
22665 PyObject * obj2 = 0 ;
22666 char * kwnames[] = {
22667 (char *) "self",(char *) "x",(char *) "y", NULL
22668 };
22669
22670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22672 if (!SWIG_IsOK(res1)) {
22673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22674 }
22675 arg1 = reinterpret_cast< wxDC * >(argp1);
22676 ecode2 = SWIG_AsVal_int(obj1, &val2);
22677 if (!SWIG_IsOK(ecode2)) {
22678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22679 }
22680 arg2 = static_cast< int >(val2);
22681 ecode3 = SWIG_AsVal_int(obj2, &val3);
22682 if (!SWIG_IsOK(ecode3)) {
22683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22684 }
22685 arg3 = static_cast< int >(val3);
22686 {
22687 PyThreadState* __tstate = wxPyBeginAllowThreads();
22688 (arg1)->SetDeviceOrigin(arg2,arg3);
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 resultobj = SWIG_Py_Void();
22693 return resultobj;
22694 fail:
22695 return NULL;
22696 }
22697
22698
22699 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22700 PyObject *resultobj = 0;
22701 wxDC *arg1 = (wxDC *) 0 ;
22702 wxPoint *arg2 = 0 ;
22703 void *argp1 = 0 ;
22704 int res1 = 0 ;
22705 wxPoint temp2 ;
22706 PyObject * obj0 = 0 ;
22707 PyObject * obj1 = 0 ;
22708 char * kwnames[] = {
22709 (char *) "self",(char *) "point", NULL
22710 };
22711
22712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22714 if (!SWIG_IsOK(res1)) {
22715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22716 }
22717 arg1 = reinterpret_cast< wxDC * >(argp1);
22718 {
22719 arg2 = &temp2;
22720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22721 }
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = SWIG_Py_Void();
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj = 0;
22737 wxDC *arg1 = (wxDC *) 0 ;
22738 bool arg2 ;
22739 bool arg3 ;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 bool val2 ;
22743 int ecode2 = 0 ;
22744 bool val3 ;
22745 int ecode3 = 0 ;
22746 PyObject * obj0 = 0 ;
22747 PyObject * obj1 = 0 ;
22748 PyObject * obj2 = 0 ;
22749 char * kwnames[] = {
22750 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22751 };
22752
22753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22755 if (!SWIG_IsOK(res1)) {
22756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22757 }
22758 arg1 = reinterpret_cast< wxDC * >(argp1);
22759 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22760 if (!SWIG_IsOK(ecode2)) {
22761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22762 }
22763 arg2 = static_cast< bool >(val2);
22764 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22765 if (!SWIG_IsOK(ecode3)) {
22766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22767 }
22768 arg3 = static_cast< bool >(val3);
22769 {
22770 PyThreadState* __tstate = wxPyBeginAllowThreads();
22771 (arg1)->SetAxisOrientation(arg2,arg3);
22772 wxPyEndAllowThreads(__tstate);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 }
22775 resultobj = SWIG_Py_Void();
22776 return resultobj;
22777 fail:
22778 return NULL;
22779 }
22780
22781
22782 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22783 PyObject *resultobj = 0;
22784 wxDC *arg1 = (wxDC *) 0 ;
22785 int result;
22786 void *argp1 = 0 ;
22787 int res1 = 0 ;
22788 PyObject *swig_obj[1] ;
22789
22790 if (!args) SWIG_fail;
22791 swig_obj[0] = args;
22792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22793 if (!SWIG_IsOK(res1)) {
22794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22795 }
22796 arg1 = reinterpret_cast< wxDC * >(argp1);
22797 {
22798 PyThreadState* __tstate = wxPyBeginAllowThreads();
22799 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22800 wxPyEndAllowThreads(__tstate);
22801 if (PyErr_Occurred()) SWIG_fail;
22802 }
22803 resultobj = SWIG_From_int(static_cast< int >(result));
22804 return resultobj;
22805 fail:
22806 return NULL;
22807 }
22808
22809
22810 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22811 PyObject *resultobj = 0;
22812 wxDC *arg1 = (wxDC *) 0 ;
22813 int arg2 ;
22814 void *argp1 = 0 ;
22815 int res1 = 0 ;
22816 int val2 ;
22817 int ecode2 = 0 ;
22818 PyObject * obj0 = 0 ;
22819 PyObject * obj1 = 0 ;
22820 char * kwnames[] = {
22821 (char *) "self",(char *) "function", NULL
22822 };
22823
22824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22826 if (!SWIG_IsOK(res1)) {
22827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22828 }
22829 arg1 = reinterpret_cast< wxDC * >(argp1);
22830 ecode2 = SWIG_AsVal_int(obj1, &val2);
22831 if (!SWIG_IsOK(ecode2)) {
22832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22833 }
22834 arg2 = static_cast< int >(val2);
22835 {
22836 PyThreadState* __tstate = wxPyBeginAllowThreads();
22837 (arg1)->SetLogicalFunction(arg2);
22838 wxPyEndAllowThreads(__tstate);
22839 if (PyErr_Occurred()) SWIG_fail;
22840 }
22841 resultobj = SWIG_Py_Void();
22842 return resultobj;
22843 fail:
22844 return NULL;
22845 }
22846
22847
22848 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22849 PyObject *resultobj = 0;
22850 wxDC *arg1 = (wxDC *) 0 ;
22851 void *argp1 = 0 ;
22852 int res1 = 0 ;
22853 PyObject *swig_obj[1] ;
22854
22855 if (!args) SWIG_fail;
22856 swig_obj[0] = args;
22857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22858 if (!SWIG_IsOK(res1)) {
22859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22860 }
22861 arg1 = reinterpret_cast< wxDC * >(argp1);
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 (arg1)->ComputeScaleAndOrigin();
22865 wxPyEndAllowThreads(__tstate);
22866 if (PyErr_Occurred()) SWIG_fail;
22867 }
22868 resultobj = SWIG_Py_Void();
22869 return resultobj;
22870 fail:
22871 return NULL;
22872 }
22873
22874
22875 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22876 PyObject *resultobj = 0;
22877 wxDC *arg1 = (wxDC *) 0 ;
22878 int arg2 ;
22879 int arg3 ;
22880 void *argp1 = 0 ;
22881 int res1 = 0 ;
22882 int val2 ;
22883 int ecode2 = 0 ;
22884 int val3 ;
22885 int ecode3 = 0 ;
22886 PyObject * obj0 = 0 ;
22887 PyObject * obj1 = 0 ;
22888 PyObject * obj2 = 0 ;
22889 char * kwnames[] = {
22890 (char *) "self",(char *) "x",(char *) "y", NULL
22891 };
22892
22893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22895 if (!SWIG_IsOK(res1)) {
22896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22897 }
22898 arg1 = reinterpret_cast< wxDC * >(argp1);
22899 ecode2 = SWIG_AsVal_int(obj1, &val2);
22900 if (!SWIG_IsOK(ecode2)) {
22901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22902 }
22903 arg2 = static_cast< int >(val2);
22904 ecode3 = SWIG_AsVal_int(obj2, &val3);
22905 if (!SWIG_IsOK(ecode3)) {
22906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22907 }
22908 arg3 = static_cast< int >(val3);
22909 {
22910 PyThreadState* __tstate = wxPyBeginAllowThreads();
22911 (arg1)->CalcBoundingBox(arg2,arg3);
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 resultobj = SWIG_Py_Void();
22916 return resultobj;
22917 fail:
22918 return NULL;
22919 }
22920
22921
22922 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22923 PyObject *resultobj = 0;
22924 wxDC *arg1 = (wxDC *) 0 ;
22925 wxPoint *arg2 = 0 ;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 wxPoint temp2 ;
22929 PyObject * obj0 = 0 ;
22930 PyObject * obj1 = 0 ;
22931 char * kwnames[] = {
22932 (char *) "self",(char *) "point", NULL
22933 };
22934
22935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22939 }
22940 arg1 = reinterpret_cast< wxDC * >(argp1);
22941 {
22942 arg2 = &temp2;
22943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22944 }
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_Py_Void();
22952 return resultobj;
22953 fail:
22954 return NULL;
22955 }
22956
22957
22958 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxDC *arg1 = (wxDC *) 0 ;
22961 void *argp1 = 0 ;
22962 int res1 = 0 ;
22963 PyObject *swig_obj[1] ;
22964
22965 if (!args) SWIG_fail;
22966 swig_obj[0] = args;
22967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22968 if (!SWIG_IsOK(res1)) {
22969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22970 }
22971 arg1 = reinterpret_cast< wxDC * >(argp1);
22972 {
22973 PyThreadState* __tstate = wxPyBeginAllowThreads();
22974 (arg1)->ResetBoundingBox();
22975 wxPyEndAllowThreads(__tstate);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 }
22978 resultobj = SWIG_Py_Void();
22979 return resultobj;
22980 fail:
22981 return NULL;
22982 }
22983
22984
22985 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22986 PyObject *resultobj = 0;
22987 wxDC *arg1 = (wxDC *) 0 ;
22988 int result;
22989 void *argp1 = 0 ;
22990 int res1 = 0 ;
22991 PyObject *swig_obj[1] ;
22992
22993 if (!args) SWIG_fail;
22994 swig_obj[0] = args;
22995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22996 if (!SWIG_IsOK(res1)) {
22997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22998 }
22999 arg1 = reinterpret_cast< wxDC * >(argp1);
23000 {
23001 PyThreadState* __tstate = wxPyBeginAllowThreads();
23002 result = (int)((wxDC const *)arg1)->MinX();
23003 wxPyEndAllowThreads(__tstate);
23004 if (PyErr_Occurred()) SWIG_fail;
23005 }
23006 resultobj = SWIG_From_int(static_cast< int >(result));
23007 return resultobj;
23008 fail:
23009 return NULL;
23010 }
23011
23012
23013 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23014 PyObject *resultobj = 0;
23015 wxDC *arg1 = (wxDC *) 0 ;
23016 int result;
23017 void *argp1 = 0 ;
23018 int res1 = 0 ;
23019 PyObject *swig_obj[1] ;
23020
23021 if (!args) SWIG_fail;
23022 swig_obj[0] = args;
23023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23024 if (!SWIG_IsOK(res1)) {
23025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23026 }
23027 arg1 = reinterpret_cast< wxDC * >(argp1);
23028 {
23029 PyThreadState* __tstate = wxPyBeginAllowThreads();
23030 result = (int)((wxDC const *)arg1)->MaxX();
23031 wxPyEndAllowThreads(__tstate);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 }
23034 resultobj = SWIG_From_int(static_cast< int >(result));
23035 return resultobj;
23036 fail:
23037 return NULL;
23038 }
23039
23040
23041 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23042 PyObject *resultobj = 0;
23043 wxDC *arg1 = (wxDC *) 0 ;
23044 int result;
23045 void *argp1 = 0 ;
23046 int res1 = 0 ;
23047 PyObject *swig_obj[1] ;
23048
23049 if (!args) SWIG_fail;
23050 swig_obj[0] = args;
23051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23052 if (!SWIG_IsOK(res1)) {
23053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23054 }
23055 arg1 = reinterpret_cast< wxDC * >(argp1);
23056 {
23057 PyThreadState* __tstate = wxPyBeginAllowThreads();
23058 result = (int)((wxDC const *)arg1)->MinY();
23059 wxPyEndAllowThreads(__tstate);
23060 if (PyErr_Occurred()) SWIG_fail;
23061 }
23062 resultobj = SWIG_From_int(static_cast< int >(result));
23063 return resultobj;
23064 fail:
23065 return NULL;
23066 }
23067
23068
23069 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23070 PyObject *resultobj = 0;
23071 wxDC *arg1 = (wxDC *) 0 ;
23072 int result;
23073 void *argp1 = 0 ;
23074 int res1 = 0 ;
23075 PyObject *swig_obj[1] ;
23076
23077 if (!args) SWIG_fail;
23078 swig_obj[0] = args;
23079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23080 if (!SWIG_IsOK(res1)) {
23081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23082 }
23083 arg1 = reinterpret_cast< wxDC * >(argp1);
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = (int)((wxDC const *)arg1)->MaxY();
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = SWIG_From_int(static_cast< int >(result));
23091 return resultobj;
23092 fail:
23093 return NULL;
23094 }
23095
23096
23097 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23098 PyObject *resultobj = 0;
23099 wxDC *arg1 = (wxDC *) 0 ;
23100 int *arg2 = (int *) 0 ;
23101 int *arg3 = (int *) 0 ;
23102 int *arg4 = (int *) 0 ;
23103 int *arg5 = (int *) 0 ;
23104 void *argp1 = 0 ;
23105 int res1 = 0 ;
23106 int temp2 ;
23107 int res2 = SWIG_TMPOBJ ;
23108 int temp3 ;
23109 int res3 = SWIG_TMPOBJ ;
23110 int temp4 ;
23111 int res4 = SWIG_TMPOBJ ;
23112 int temp5 ;
23113 int res5 = SWIG_TMPOBJ ;
23114 PyObject *swig_obj[1] ;
23115
23116 arg2 = &temp2;
23117 arg3 = &temp3;
23118 arg4 = &temp4;
23119 arg5 = &temp5;
23120 if (!args) SWIG_fail;
23121 swig_obj[0] = args;
23122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23123 if (!SWIG_IsOK(res1)) {
23124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23125 }
23126 arg1 = reinterpret_cast< wxDC * >(argp1);
23127 {
23128 PyThreadState* __tstate = wxPyBeginAllowThreads();
23129 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23130 wxPyEndAllowThreads(__tstate);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 }
23133 resultobj = SWIG_Py_Void();
23134 if (SWIG_IsTmpObj(res2)) {
23135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23136 } else {
23137 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23139 }
23140 if (SWIG_IsTmpObj(res3)) {
23141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23142 } else {
23143 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23145 }
23146 if (SWIG_IsTmpObj(res4)) {
23147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23148 } else {
23149 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23151 }
23152 if (SWIG_IsTmpObj(res5)) {
23153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23154 } else {
23155 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23157 }
23158 return resultobj;
23159 fail:
23160 return NULL;
23161 }
23162
23163
23164 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23165 PyObject *resultobj = 0;
23166 wxDC *arg1 = (wxDC *) 0 ;
23167 wxLayoutDirection result;
23168 void *argp1 = 0 ;
23169 int res1 = 0 ;
23170 PyObject *swig_obj[1] ;
23171
23172 if (!args) SWIG_fail;
23173 swig_obj[0] = args;
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 '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23177 }
23178 arg1 = reinterpret_cast< wxDC * >(argp1);
23179 {
23180 PyThreadState* __tstate = wxPyBeginAllowThreads();
23181 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 resultobj = SWIG_From_int(static_cast< int >(result));
23186 return resultobj;
23187 fail:
23188 return NULL;
23189 }
23190
23191
23192 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23193 PyObject *resultobj = 0;
23194 wxDC *arg1 = (wxDC *) 0 ;
23195 wxLayoutDirection arg2 ;
23196 void *argp1 = 0 ;
23197 int res1 = 0 ;
23198 int val2 ;
23199 int ecode2 = 0 ;
23200 PyObject * obj0 = 0 ;
23201 PyObject * obj1 = 0 ;
23202 char * kwnames[] = {
23203 (char *) "self",(char *) "dir", NULL
23204 };
23205
23206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23208 if (!SWIG_IsOK(res1)) {
23209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23210 }
23211 arg1 = reinterpret_cast< wxDC * >(argp1);
23212 ecode2 = SWIG_AsVal_int(obj1, &val2);
23213 if (!SWIG_IsOK(ecode2)) {
23214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23215 }
23216 arg2 = static_cast< wxLayoutDirection >(val2);
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 (arg1)->SetLayoutDirection(arg2);
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = SWIG_Py_Void();
23224 return resultobj;
23225 fail:
23226 return NULL;
23227 }
23228
23229
23230 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23231 PyObject *resultobj = 0;
23232 wxDC *arg1 = (wxDC *) 0 ;
23233 PyObject *arg2 = (PyObject *) 0 ;
23234 PyObject *arg3 = (PyObject *) 0 ;
23235 PyObject *arg4 = (PyObject *) 0 ;
23236 PyObject *result = 0 ;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 PyObject * obj0 = 0 ;
23240 PyObject * obj1 = 0 ;
23241 PyObject * obj2 = 0 ;
23242 PyObject * obj3 = 0 ;
23243 char * kwnames[] = {
23244 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23245 };
23246
23247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23249 if (!SWIG_IsOK(res1)) {
23250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23251 }
23252 arg1 = reinterpret_cast< wxDC * >(argp1);
23253 arg2 = obj1;
23254 arg3 = obj2;
23255 arg4 = obj3;
23256 {
23257 PyThreadState* __tstate = wxPyBeginAllowThreads();
23258 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23259 wxPyEndAllowThreads(__tstate);
23260 if (PyErr_Occurred()) SWIG_fail;
23261 }
23262 resultobj = result;
23263 return resultobj;
23264 fail:
23265 return NULL;
23266 }
23267
23268
23269 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23270 PyObject *resultobj = 0;
23271 wxDC *arg1 = (wxDC *) 0 ;
23272 PyObject *arg2 = (PyObject *) 0 ;
23273 PyObject *arg3 = (PyObject *) 0 ;
23274 PyObject *arg4 = (PyObject *) 0 ;
23275 PyObject *result = 0 ;
23276 void *argp1 = 0 ;
23277 int res1 = 0 ;
23278 PyObject * obj0 = 0 ;
23279 PyObject * obj1 = 0 ;
23280 PyObject * obj2 = 0 ;
23281 PyObject * obj3 = 0 ;
23282 char * kwnames[] = {
23283 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23284 };
23285
23286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23288 if (!SWIG_IsOK(res1)) {
23289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23290 }
23291 arg1 = reinterpret_cast< wxDC * >(argp1);
23292 arg2 = obj1;
23293 arg3 = obj2;
23294 arg4 = obj3;
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23298 wxPyEndAllowThreads(__tstate);
23299 if (PyErr_Occurred()) SWIG_fail;
23300 }
23301 resultobj = result;
23302 return resultobj;
23303 fail:
23304 return NULL;
23305 }
23306
23307
23308 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23309 PyObject *resultobj = 0;
23310 wxDC *arg1 = (wxDC *) 0 ;
23311 PyObject *arg2 = (PyObject *) 0 ;
23312 PyObject *arg3 = (PyObject *) 0 ;
23313 PyObject *arg4 = (PyObject *) 0 ;
23314 PyObject *result = 0 ;
23315 void *argp1 = 0 ;
23316 int res1 = 0 ;
23317 PyObject * obj0 = 0 ;
23318 PyObject * obj1 = 0 ;
23319 PyObject * obj2 = 0 ;
23320 PyObject * obj3 = 0 ;
23321 char * kwnames[] = {
23322 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23323 };
23324
23325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23327 if (!SWIG_IsOK(res1)) {
23328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23329 }
23330 arg1 = reinterpret_cast< wxDC * >(argp1);
23331 arg2 = obj1;
23332 arg3 = obj2;
23333 arg4 = obj3;
23334 {
23335 PyThreadState* __tstate = wxPyBeginAllowThreads();
23336 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = result;
23341 return resultobj;
23342 fail:
23343 return NULL;
23344 }
23345
23346
23347 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23348 PyObject *resultobj = 0;
23349 wxDC *arg1 = (wxDC *) 0 ;
23350 PyObject *arg2 = (PyObject *) 0 ;
23351 PyObject *arg3 = (PyObject *) 0 ;
23352 PyObject *arg4 = (PyObject *) 0 ;
23353 PyObject *result = 0 ;
23354 void *argp1 = 0 ;
23355 int res1 = 0 ;
23356 PyObject * obj0 = 0 ;
23357 PyObject * obj1 = 0 ;
23358 PyObject * obj2 = 0 ;
23359 PyObject * obj3 = 0 ;
23360 char * kwnames[] = {
23361 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23362 };
23363
23364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23366 if (!SWIG_IsOK(res1)) {
23367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23368 }
23369 arg1 = reinterpret_cast< wxDC * >(argp1);
23370 arg2 = obj1;
23371 arg3 = obj2;
23372 arg4 = obj3;
23373 {
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23376 wxPyEndAllowThreads(__tstate);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 }
23379 resultobj = result;
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23387 PyObject *resultobj = 0;
23388 wxDC *arg1 = (wxDC *) 0 ;
23389 PyObject *arg2 = (PyObject *) 0 ;
23390 PyObject *arg3 = (PyObject *) 0 ;
23391 PyObject *arg4 = (PyObject *) 0 ;
23392 PyObject *result = 0 ;
23393 void *argp1 = 0 ;
23394 int res1 = 0 ;
23395 PyObject * obj0 = 0 ;
23396 PyObject * obj1 = 0 ;
23397 PyObject * obj2 = 0 ;
23398 PyObject * obj3 = 0 ;
23399 char * kwnames[] = {
23400 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23401 };
23402
23403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23405 if (!SWIG_IsOK(res1)) {
23406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23407 }
23408 arg1 = reinterpret_cast< wxDC * >(argp1);
23409 arg2 = obj1;
23410 arg3 = obj2;
23411 arg4 = obj3;
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 resultobj = result;
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23426 PyObject *resultobj = 0;
23427 wxDC *arg1 = (wxDC *) 0 ;
23428 PyObject *arg2 = (PyObject *) 0 ;
23429 PyObject *arg3 = (PyObject *) 0 ;
23430 PyObject *arg4 = (PyObject *) 0 ;
23431 PyObject *arg5 = (PyObject *) 0 ;
23432 PyObject *result = 0 ;
23433 void *argp1 = 0 ;
23434 int res1 = 0 ;
23435 PyObject * obj0 = 0 ;
23436 PyObject * obj1 = 0 ;
23437 PyObject * obj2 = 0 ;
23438 PyObject * obj3 = 0 ;
23439 PyObject * obj4 = 0 ;
23440 char * kwnames[] = {
23441 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23442 };
23443
23444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23446 if (!SWIG_IsOK(res1)) {
23447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23448 }
23449 arg1 = reinterpret_cast< wxDC * >(argp1);
23450 arg2 = obj1;
23451 arg3 = obj2;
23452 arg4 = obj3;
23453 arg5 = obj4;
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 resultobj = result;
23461 return resultobj;
23462 fail:
23463 return NULL;
23464 }
23465
23466
23467 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 PyObject *obj;
23469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23470 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23471 return SWIG_Py_Void();
23472 }
23473
23474 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23475 PyObject *resultobj = 0;
23476 wxDC *arg1 = 0 ;
23477 wxColour *arg2 = 0 ;
23478 wxDCTextColourChanger *result = 0 ;
23479 void *argp1 = 0 ;
23480 int res1 = 0 ;
23481 wxColour temp2 ;
23482 PyObject * obj0 = 0 ;
23483 PyObject * obj1 = 0 ;
23484 char * kwnames[] = {
23485 (char *) "dc",(char *) "col", NULL
23486 };
23487
23488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23489 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23490 if (!SWIG_IsOK(res1)) {
23491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23492 }
23493 if (!argp1) {
23494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23495 }
23496 arg1 = reinterpret_cast< wxDC * >(argp1);
23497 {
23498 arg2 = &temp2;
23499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23500 }
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23504 wxPyEndAllowThreads(__tstate);
23505 if (PyErr_Occurred()) SWIG_fail;
23506 }
23507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23508 return resultobj;
23509 fail:
23510 return NULL;
23511 }
23512
23513
23514 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23515 PyObject *resultobj = 0;
23516 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23517 void *argp1 = 0 ;
23518 int res1 = 0 ;
23519 PyObject *swig_obj[1] ;
23520
23521 if (!args) SWIG_fail;
23522 swig_obj[0] = args;
23523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23524 if (!SWIG_IsOK(res1)) {
23525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23526 }
23527 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23528 {
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 delete arg1;
23531
23532 wxPyEndAllowThreads(__tstate);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 resultobj = SWIG_Py_Void();
23536 return resultobj;
23537 fail:
23538 return NULL;
23539 }
23540
23541
23542 SWIGINTERN PyObject *DCTextColourChanger_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_wxDCTextColourChanger, SWIG_NewClientData(obj));
23546 return SWIG_Py_Void();
23547 }
23548
23549 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23550 return SWIG_Python_InitShadowInstance(args);
23551 }
23552
23553 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23554 PyObject *resultobj = 0;
23555 wxDC *arg1 = 0 ;
23556 wxPen *arg2 = 0 ;
23557 wxDCPenChanger *result = 0 ;
23558 void *argp1 = 0 ;
23559 int res1 = 0 ;
23560 void *argp2 = 0 ;
23561 int res2 = 0 ;
23562 PyObject * obj0 = 0 ;
23563 PyObject * obj1 = 0 ;
23564 char * kwnames[] = {
23565 (char *) "dc",(char *) "pen", NULL
23566 };
23567
23568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23569 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23572 }
23573 if (!argp1) {
23574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23575 }
23576 arg1 = reinterpret_cast< wxDC * >(argp1);
23577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23578 if (!SWIG_IsOK(res2)) {
23579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23580 }
23581 if (!argp2) {
23582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23583 }
23584 arg2 = reinterpret_cast< wxPen * >(argp2);
23585 {
23586 PyThreadState* __tstate = wxPyBeginAllowThreads();
23587 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23588 wxPyEndAllowThreads(__tstate);
23589 if (PyErr_Occurred()) SWIG_fail;
23590 }
23591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23592 return resultobj;
23593 fail:
23594 return NULL;
23595 }
23596
23597
23598 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23599 PyObject *resultobj = 0;
23600 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23601 void *argp1 = 0 ;
23602 int res1 = 0 ;
23603 PyObject *swig_obj[1] ;
23604
23605 if (!args) SWIG_fail;
23606 swig_obj[0] = args;
23607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23608 if (!SWIG_IsOK(res1)) {
23609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23610 }
23611 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 delete arg1;
23615
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 resultobj = SWIG_Py_Void();
23620 return resultobj;
23621 fail:
23622 return NULL;
23623 }
23624
23625
23626 SWIGINTERN PyObject *DCPenChanger_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_wxDCPenChanger, SWIG_NewClientData(obj));
23630 return SWIG_Py_Void();
23631 }
23632
23633 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23634 return SWIG_Python_InitShadowInstance(args);
23635 }
23636
23637 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj = 0;
23639 wxDC *arg1 = 0 ;
23640 wxBrush *arg2 = 0 ;
23641 wxDCBrushChanger *result = 0 ;
23642 void *argp1 = 0 ;
23643 int res1 = 0 ;
23644 void *argp2 = 0 ;
23645 int res2 = 0 ;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23648 char * kwnames[] = {
23649 (char *) "dc",(char *) "brush", NULL
23650 };
23651
23652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",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_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23656 }
23657 if (!argp1) {
23658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23659 }
23660 arg1 = reinterpret_cast< wxDC * >(argp1);
23661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23662 if (!SWIG_IsOK(res2)) {
23663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23664 }
23665 if (!argp2) {
23666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23667 }
23668 arg2 = reinterpret_cast< wxBrush * >(argp2);
23669 {
23670 PyThreadState* __tstate = wxPyBeginAllowThreads();
23671 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23672 wxPyEndAllowThreads(__tstate);
23673 if (PyErr_Occurred()) SWIG_fail;
23674 }
23675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23676 return resultobj;
23677 fail:
23678 return NULL;
23679 }
23680
23681
23682 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23683 PyObject *resultobj = 0;
23684 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23685 void *argp1 = 0 ;
23686 int res1 = 0 ;
23687 PyObject *swig_obj[1] ;
23688
23689 if (!args) SWIG_fail;
23690 swig_obj[0] = args;
23691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23692 if (!SWIG_IsOK(res1)) {
23693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23694 }
23695 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 delete arg1;
23699
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 resultobj = SWIG_Py_Void();
23704 return resultobj;
23705 fail:
23706 return NULL;
23707 }
23708
23709
23710 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23711 PyObject *obj;
23712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23713 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23714 return SWIG_Py_Void();
23715 }
23716
23717 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23718 return SWIG_Python_InitShadowInstance(args);
23719 }
23720
23721 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23722 PyObject *resultobj = 0;
23723 wxDC *arg1 = 0 ;
23724 wxRegion *arg2 = 0 ;
23725 wxDCClipper *result = 0 ;
23726 void *argp1 = 0 ;
23727 int res1 = 0 ;
23728 void *argp2 = 0 ;
23729 int res2 = 0 ;
23730
23731 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23733 if (!SWIG_IsOK(res1)) {
23734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23735 }
23736 if (!argp1) {
23737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23738 }
23739 arg1 = reinterpret_cast< wxDC * >(argp1);
23740 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23741 if (!SWIG_IsOK(res2)) {
23742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23743 }
23744 if (!argp2) {
23745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23746 }
23747 arg2 = reinterpret_cast< wxRegion * >(argp2);
23748 {
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23751 wxPyEndAllowThreads(__tstate);
23752 if (PyErr_Occurred()) SWIG_fail;
23753 }
23754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23755 return resultobj;
23756 fail:
23757 return NULL;
23758 }
23759
23760
23761 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23762 PyObject *resultobj = 0;
23763 wxDC *arg1 = 0 ;
23764 wxRect *arg2 = 0 ;
23765 wxDCClipper *result = 0 ;
23766 void *argp1 = 0 ;
23767 int res1 = 0 ;
23768 wxRect temp2 ;
23769
23770 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23772 if (!SWIG_IsOK(res1)) {
23773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23774 }
23775 if (!argp1) {
23776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23777 }
23778 arg1 = reinterpret_cast< wxDC * >(argp1);
23779 {
23780 arg2 = &temp2;
23781 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23782 }
23783 {
23784 PyThreadState* __tstate = wxPyBeginAllowThreads();
23785 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23786 wxPyEndAllowThreads(__tstate);
23787 if (PyErr_Occurred()) SWIG_fail;
23788 }
23789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23790 return resultobj;
23791 fail:
23792 return NULL;
23793 }
23794
23795
23796 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23797 PyObject *resultobj = 0;
23798 wxDC *arg1 = 0 ;
23799 int arg2 ;
23800 int arg3 ;
23801 int arg4 ;
23802 int arg5 ;
23803 wxDCClipper *result = 0 ;
23804 void *argp1 = 0 ;
23805 int res1 = 0 ;
23806 int val2 ;
23807 int ecode2 = 0 ;
23808 int val3 ;
23809 int ecode3 = 0 ;
23810 int val4 ;
23811 int ecode4 = 0 ;
23812 int val5 ;
23813 int ecode5 = 0 ;
23814
23815 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23817 if (!SWIG_IsOK(res1)) {
23818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23819 }
23820 if (!argp1) {
23821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23822 }
23823 arg1 = reinterpret_cast< wxDC * >(argp1);
23824 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23825 if (!SWIG_IsOK(ecode2)) {
23826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23827 }
23828 arg2 = static_cast< int >(val2);
23829 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23830 if (!SWIG_IsOK(ecode3)) {
23831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23832 }
23833 arg3 = static_cast< int >(val3);
23834 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23835 if (!SWIG_IsOK(ecode4)) {
23836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23837 }
23838 arg4 = static_cast< int >(val4);
23839 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23840 if (!SWIG_IsOK(ecode5)) {
23841 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23842 }
23843 arg5 = static_cast< int >(val5);
23844 {
23845 PyThreadState* __tstate = wxPyBeginAllowThreads();
23846 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23847 wxPyEndAllowThreads(__tstate);
23848 if (PyErr_Occurred()) SWIG_fail;
23849 }
23850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23851 return resultobj;
23852 fail:
23853 return NULL;
23854 }
23855
23856
23857 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23858 int argc;
23859 PyObject *argv[6];
23860
23861 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23862 --argc;
23863 if (argc == 2) {
23864 int _v = 0;
23865 {
23866 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23867 _v = SWIG_CheckState(res);
23868 }
23869 if (!_v) goto check_1;
23870 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23871 }
23872 check_1:
23873
23874 if (argc == 2) {
23875 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23876 }
23877 if (argc == 5) {
23878 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23879 }
23880
23881 fail:
23882 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23883 return NULL;
23884 }
23885
23886
23887 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23888 PyObject *resultobj = 0;
23889 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23890 void *argp1 = 0 ;
23891 int res1 = 0 ;
23892 PyObject *swig_obj[1] ;
23893
23894 if (!args) SWIG_fail;
23895 swig_obj[0] = args;
23896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23897 if (!SWIG_IsOK(res1)) {
23898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23899 }
23900 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23901 {
23902 PyThreadState* __tstate = wxPyBeginAllowThreads();
23903 delete arg1;
23904
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 resultobj = SWIG_Py_Void();
23909 return resultobj;
23910 fail:
23911 return NULL;
23912 }
23913
23914
23915 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23916 PyObject *obj;
23917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23918 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23919 return SWIG_Py_Void();
23920 }
23921
23922 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23923 return SWIG_Python_InitShadowInstance(args);
23924 }
23925
23926 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23927 PyObject *resultobj = 0;
23928 wxScreenDC *result = 0 ;
23929
23930 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23931 {
23932 if (!wxPyCheckForApp()) SWIG_fail;
23933 PyThreadState* __tstate = wxPyBeginAllowThreads();
23934 result = (wxScreenDC *)new wxScreenDC();
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23939 return resultobj;
23940 fail:
23941 return NULL;
23942 }
23943
23944
23945 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23946 PyObject *resultobj = 0;
23947 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23948 wxWindow *arg2 = (wxWindow *) 0 ;
23949 bool result;
23950 void *argp1 = 0 ;
23951 int res1 = 0 ;
23952 void *argp2 = 0 ;
23953 int res2 = 0 ;
23954 PyObject * obj0 = 0 ;
23955 PyObject * obj1 = 0 ;
23956 char * kwnames[] = {
23957 (char *) "self",(char *) "window", NULL
23958 };
23959
23960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23962 if (!SWIG_IsOK(res1)) {
23963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23964 }
23965 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23966 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23967 if (!SWIG_IsOK(res2)) {
23968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23969 }
23970 arg2 = reinterpret_cast< wxWindow * >(argp2);
23971 {
23972 PyThreadState* __tstate = wxPyBeginAllowThreads();
23973 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23974 wxPyEndAllowThreads(__tstate);
23975 if (PyErr_Occurred()) SWIG_fail;
23976 }
23977 {
23978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23979 }
23980 return resultobj;
23981 fail:
23982 return NULL;
23983 }
23984
23985
23986 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23987 PyObject *resultobj = 0;
23988 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23989 wxRect *arg2 = (wxRect *) NULL ;
23990 bool result;
23991 void *argp1 = 0 ;
23992 int res1 = 0 ;
23993 void *argp2 = 0 ;
23994 int res2 = 0 ;
23995 PyObject * obj0 = 0 ;
23996 PyObject * obj1 = 0 ;
23997 char * kwnames[] = {
23998 (char *) "self",(char *) "rect", NULL
23999 };
24000
24001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24003 if (!SWIG_IsOK(res1)) {
24004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24005 }
24006 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24007 if (obj1) {
24008 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24009 if (!SWIG_IsOK(res2)) {
24010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24011 }
24012 arg2 = reinterpret_cast< wxRect * >(argp2);
24013 }
24014 {
24015 PyThreadState* __tstate = wxPyBeginAllowThreads();
24016 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24017 wxPyEndAllowThreads(__tstate);
24018 if (PyErr_Occurred()) SWIG_fail;
24019 }
24020 {
24021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24022 }
24023 return resultobj;
24024 fail:
24025 return NULL;
24026 }
24027
24028
24029 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24030 PyObject *resultobj = 0;
24031 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24032 bool result;
24033 void *argp1 = 0 ;
24034 int res1 = 0 ;
24035 PyObject *swig_obj[1] ;
24036
24037 if (!args) SWIG_fail;
24038 swig_obj[0] = args;
24039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24040 if (!SWIG_IsOK(res1)) {
24041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24042 }
24043 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24044 {
24045 PyThreadState* __tstate = wxPyBeginAllowThreads();
24046 result = (bool)(arg1)->EndDrawingOnTop();
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 {
24051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24052 }
24053 return resultobj;
24054 fail:
24055 return NULL;
24056 }
24057
24058
24059 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 PyObject *obj;
24061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24062 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24063 return SWIG_Py_Void();
24064 }
24065
24066 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24067 return SWIG_Python_InitShadowInstance(args);
24068 }
24069
24070 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24071 PyObject *resultobj = 0;
24072 wxWindow *arg1 = (wxWindow *) 0 ;
24073 wxWindowDC *result = 0 ;
24074 void *argp1 = 0 ;
24075 int res1 = 0 ;
24076 PyObject * obj0 = 0 ;
24077 char * kwnames[] = {
24078 (char *) "win", NULL
24079 };
24080
24081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24083 if (!SWIG_IsOK(res1)) {
24084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24085 }
24086 arg1 = reinterpret_cast< wxWindow * >(argp1);
24087 {
24088 if (!wxPyCheckForApp()) SWIG_fail;
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (wxWindowDC *)new wxWindowDC(arg1);
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24095 return resultobj;
24096 fail:
24097 return NULL;
24098 }
24099
24100
24101 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24102 PyObject *obj;
24103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24104 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24105 return SWIG_Py_Void();
24106 }
24107
24108 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24109 return SWIG_Python_InitShadowInstance(args);
24110 }
24111
24112 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24113 PyObject *resultobj = 0;
24114 wxWindow *arg1 = (wxWindow *) 0 ;
24115 wxClientDC *result = 0 ;
24116 void *argp1 = 0 ;
24117 int res1 = 0 ;
24118 PyObject * obj0 = 0 ;
24119 char * kwnames[] = {
24120 (char *) "win", NULL
24121 };
24122
24123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24125 if (!SWIG_IsOK(res1)) {
24126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24127 }
24128 arg1 = reinterpret_cast< wxWindow * >(argp1);
24129 {
24130 if (!wxPyCheckForApp()) SWIG_fail;
24131 PyThreadState* __tstate = wxPyBeginAllowThreads();
24132 result = (wxClientDC *)new wxClientDC(arg1);
24133 wxPyEndAllowThreads(__tstate);
24134 if (PyErr_Occurred()) SWIG_fail;
24135 }
24136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24137 return resultobj;
24138 fail:
24139 return NULL;
24140 }
24141
24142
24143 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24144 PyObject *obj;
24145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24146 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24147 return SWIG_Py_Void();
24148 }
24149
24150 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24151 return SWIG_Python_InitShadowInstance(args);
24152 }
24153
24154 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24155 PyObject *resultobj = 0;
24156 wxWindow *arg1 = (wxWindow *) 0 ;
24157 wxPaintDC *result = 0 ;
24158 void *argp1 = 0 ;
24159 int res1 = 0 ;
24160 PyObject * obj0 = 0 ;
24161 char * kwnames[] = {
24162 (char *) "win", NULL
24163 };
24164
24165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24167 if (!SWIG_IsOK(res1)) {
24168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24169 }
24170 arg1 = reinterpret_cast< wxWindow * >(argp1);
24171 {
24172 if (!wxPyCheckForApp()) SWIG_fail;
24173 PyThreadState* __tstate = wxPyBeginAllowThreads();
24174 result = (wxPaintDC *)new wxPaintDC(arg1);
24175 wxPyEndAllowThreads(__tstate);
24176 if (PyErr_Occurred()) SWIG_fail;
24177 }
24178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24179 return resultobj;
24180 fail:
24181 return NULL;
24182 }
24183
24184
24185 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24186 PyObject *obj;
24187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24188 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24189 return SWIG_Py_Void();
24190 }
24191
24192 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24193 return SWIG_Python_InitShadowInstance(args);
24194 }
24195
24196 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj = 0;
24198 wxBitmap &arg1_defvalue = wxNullBitmap ;
24199 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24200 wxMemoryDC *result = 0 ;
24201 void *argp1 = 0 ;
24202 int res1 = 0 ;
24203 PyObject * obj0 = 0 ;
24204 char * kwnames[] = {
24205 (char *) "bitmap", NULL
24206 };
24207
24208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24209 if (obj0) {
24210 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24211 if (!SWIG_IsOK(res1)) {
24212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24213 }
24214 if (!argp1) {
24215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24216 }
24217 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24218 }
24219 {
24220 if (!wxPyCheckForApp()) SWIG_fail;
24221 PyThreadState* __tstate = wxPyBeginAllowThreads();
24222 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24223 wxPyEndAllowThreads(__tstate);
24224 if (PyErr_Occurred()) SWIG_fail;
24225 }
24226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24227 return resultobj;
24228 fail:
24229 return NULL;
24230 }
24231
24232
24233 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24234 PyObject *resultobj = 0;
24235 wxDC *arg1 = (wxDC *) 0 ;
24236 wxMemoryDC *result = 0 ;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 PyObject * obj0 = 0 ;
24240 char * kwnames[] = {
24241 (char *) "oldDC", NULL
24242 };
24243
24244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24248 }
24249 arg1 = reinterpret_cast< wxDC * >(argp1);
24250 {
24251 if (!wxPyCheckForApp()) SWIG_fail;
24252 PyThreadState* __tstate = wxPyBeginAllowThreads();
24253 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24254 wxPyEndAllowThreads(__tstate);
24255 if (PyErr_Occurred()) SWIG_fail;
24256 }
24257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24258 return resultobj;
24259 fail:
24260 return NULL;
24261 }
24262
24263
24264 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj = 0;
24266 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24267 wxBitmap *arg2 = 0 ;
24268 void *argp1 = 0 ;
24269 int res1 = 0 ;
24270 void *argp2 = 0 ;
24271 int res2 = 0 ;
24272 PyObject * obj0 = 0 ;
24273 PyObject * obj1 = 0 ;
24274 char * kwnames[] = {
24275 (char *) "self",(char *) "bitmap", NULL
24276 };
24277
24278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24280 if (!SWIG_IsOK(res1)) {
24281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24282 }
24283 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24285 if (!SWIG_IsOK(res2)) {
24286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24287 }
24288 if (!argp2) {
24289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24290 }
24291 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24292 {
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 (arg1)->SelectObject(*arg2);
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = SWIG_Py_Void();
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj = 0;
24307 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24308 wxBitmap *arg2 = 0 ;
24309 void *argp1 = 0 ;
24310 int res1 = 0 ;
24311 void *argp2 = 0 ;
24312 int res2 = 0 ;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315 char * kwnames[] = {
24316 (char *) "self",(char *) "bmp", NULL
24317 };
24318
24319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24321 if (!SWIG_IsOK(res1)) {
24322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24323 }
24324 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24326 if (!SWIG_IsOK(res2)) {
24327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24328 }
24329 if (!argp2) {
24330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24331 }
24332 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24333 {
24334 PyThreadState* __tstate = wxPyBeginAllowThreads();
24335 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 resultobj = SWIG_Py_Void();
24340 return resultobj;
24341 fail:
24342 return NULL;
24343 }
24344
24345
24346 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24347 PyObject *obj;
24348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24349 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24350 return SWIG_Py_Void();
24351 }
24352
24353 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24354 return SWIG_Python_InitShadowInstance(args);
24355 }
24356
24357 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24358 PyObject *resultobj = 0;
24359 wxDC *arg1 = (wxDC *) 0 ;
24360 wxBitmap &arg2_defvalue = wxNullBitmap ;
24361 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24362 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24363 wxBufferedDC *result = 0 ;
24364 void *argp1 = 0 ;
24365 int res1 = 0 ;
24366 void *argp2 = 0 ;
24367 int res2 = 0 ;
24368 int val3 ;
24369 int ecode3 = 0 ;
24370
24371 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24373 if (!SWIG_IsOK(res1)) {
24374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24375 }
24376 arg1 = reinterpret_cast< wxDC * >(argp1);
24377 if (swig_obj[1]) {
24378 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24379 if (!SWIG_IsOK(res2)) {
24380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24381 }
24382 if (!argp2) {
24383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24384 }
24385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24386 }
24387 if (swig_obj[2]) {
24388 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24389 if (!SWIG_IsOK(ecode3)) {
24390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24391 }
24392 arg3 = static_cast< int >(val3);
24393 }
24394 {
24395 if (!wxPyCheckForApp()) SWIG_fail;
24396 PyThreadState* __tstate = wxPyBeginAllowThreads();
24397 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24398 wxPyEndAllowThreads(__tstate);
24399 if (PyErr_Occurred()) SWIG_fail;
24400 }
24401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24402 return resultobj;
24403 fail:
24404 return NULL;
24405 }
24406
24407
24408 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24409 PyObject *resultobj = 0;
24410 wxDC *arg1 = (wxDC *) 0 ;
24411 wxSize *arg2 = 0 ;
24412 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24413 wxBufferedDC *result = 0 ;
24414 void *argp1 = 0 ;
24415 int res1 = 0 ;
24416 wxSize temp2 ;
24417 int val3 ;
24418 int ecode3 = 0 ;
24419
24420 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24422 if (!SWIG_IsOK(res1)) {
24423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24424 }
24425 arg1 = reinterpret_cast< wxDC * >(argp1);
24426 {
24427 arg2 = &temp2;
24428 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24429 }
24430 if (swig_obj[2]) {
24431 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24432 if (!SWIG_IsOK(ecode3)) {
24433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24434 }
24435 arg3 = static_cast< int >(val3);
24436 }
24437 {
24438 if (!wxPyCheckForApp()) SWIG_fail;
24439 PyThreadState* __tstate = wxPyBeginAllowThreads();
24440 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24441 wxPyEndAllowThreads(__tstate);
24442 if (PyErr_Occurred()) SWIG_fail;
24443 }
24444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24445 return resultobj;
24446 fail:
24447 return NULL;
24448 }
24449
24450
24451 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24452 int argc;
24453 PyObject *argv[4];
24454
24455 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24456 --argc;
24457 if ((argc >= 1) && (argc <= 3)) {
24458 int _v = 0;
24459 if (argc > 1) {
24460 {
24461 void *vptr = 0;
24462 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24463 _v = SWIG_CheckState(res);
24464 }
24465 if (!_v) goto check_1;
24466 }
24467 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24468 }
24469 check_1:
24470
24471 if ((argc >= 2) && (argc <= 3)) {
24472 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24473 }
24474
24475 fail:
24476 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24477 return NULL;
24478 }
24479
24480
24481 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24482 PyObject *resultobj = 0;
24483 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24484 void *argp1 = 0 ;
24485 int res1 = 0 ;
24486 PyObject *swig_obj[1] ;
24487
24488 if (!args) SWIG_fail;
24489 swig_obj[0] = args;
24490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24491 if (!SWIG_IsOK(res1)) {
24492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24493 }
24494 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24495 {
24496 PyThreadState* __tstate = wxPyBeginAllowThreads();
24497 delete arg1;
24498
24499 wxPyEndAllowThreads(__tstate);
24500 if (PyErr_Occurred()) SWIG_fail;
24501 }
24502 resultobj = SWIG_Py_Void();
24503 return resultobj;
24504 fail:
24505 return NULL;
24506 }
24507
24508
24509 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24510 PyObject *resultobj = 0;
24511 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24512 void *argp1 = 0 ;
24513 int res1 = 0 ;
24514 PyObject *swig_obj[1] ;
24515
24516 if (!args) SWIG_fail;
24517 swig_obj[0] = args;
24518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24519 if (!SWIG_IsOK(res1)) {
24520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24521 }
24522 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 (arg1)->UnMask();
24526 wxPyEndAllowThreads(__tstate);
24527 if (PyErr_Occurred()) SWIG_fail;
24528 }
24529 resultobj = SWIG_Py_Void();
24530 return resultobj;
24531 fail:
24532 return NULL;
24533 }
24534
24535
24536 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24537 PyObject *resultobj = 0;
24538 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24539 int arg2 ;
24540 void *argp1 = 0 ;
24541 int res1 = 0 ;
24542 int val2 ;
24543 int ecode2 = 0 ;
24544 PyObject * obj0 = 0 ;
24545 PyObject * obj1 = 0 ;
24546 char * kwnames[] = {
24547 (char *) "self",(char *) "style", NULL
24548 };
24549
24550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24552 if (!SWIG_IsOK(res1)) {
24553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24554 }
24555 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24556 ecode2 = SWIG_AsVal_int(obj1, &val2);
24557 if (!SWIG_IsOK(ecode2)) {
24558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24559 }
24560 arg2 = static_cast< int >(val2);
24561 {
24562 PyThreadState* __tstate = wxPyBeginAllowThreads();
24563 (arg1)->SetStyle(arg2);
24564 wxPyEndAllowThreads(__tstate);
24565 if (PyErr_Occurred()) SWIG_fail;
24566 }
24567 resultobj = SWIG_Py_Void();
24568 return resultobj;
24569 fail:
24570 return NULL;
24571 }
24572
24573
24574 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24575 PyObject *resultobj = 0;
24576 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24577 int result;
24578 void *argp1 = 0 ;
24579 int res1 = 0 ;
24580 PyObject *swig_obj[1] ;
24581
24582 if (!args) SWIG_fail;
24583 swig_obj[0] = args;
24584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24585 if (!SWIG_IsOK(res1)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24587 }
24588 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 resultobj = SWIG_From_int(static_cast< int >(result));
24596 return resultobj;
24597 fail:
24598 return NULL;
24599 }
24600
24601
24602 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24603 PyObject *obj;
24604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24605 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24606 return SWIG_Py_Void();
24607 }
24608
24609 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24610 return SWIG_Python_InitShadowInstance(args);
24611 }
24612
24613 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24614 PyObject *resultobj = 0;
24615 wxWindow *arg1 = (wxWindow *) 0 ;
24616 wxBitmap &arg2_defvalue = wxNullBitmap ;
24617 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24618 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24619 wxBufferedPaintDC *result = 0 ;
24620 void *argp1 = 0 ;
24621 int res1 = 0 ;
24622 void *argp2 = 0 ;
24623 int res2 = 0 ;
24624 int val3 ;
24625 int ecode3 = 0 ;
24626 PyObject * obj0 = 0 ;
24627 PyObject * obj1 = 0 ;
24628 PyObject * obj2 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "window",(char *) "buffer",(char *) "style", NULL
24631 };
24632
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24635 if (!SWIG_IsOK(res1)) {
24636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24637 }
24638 arg1 = reinterpret_cast< wxWindow * >(argp1);
24639 if (obj1) {
24640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24641 if (!SWIG_IsOK(res2)) {
24642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24643 }
24644 if (!argp2) {
24645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24646 }
24647 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24648 }
24649 if (obj2) {
24650 ecode3 = SWIG_AsVal_int(obj2, &val3);
24651 if (!SWIG_IsOK(ecode3)) {
24652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24653 }
24654 arg3 = static_cast< int >(val3);
24655 }
24656 {
24657 if (!wxPyCheckForApp()) SWIG_fail;
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24660 wxPyEndAllowThreads(__tstate);
24661 if (PyErr_Occurred()) SWIG_fail;
24662 }
24663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24664 return resultobj;
24665 fail:
24666 return NULL;
24667 }
24668
24669
24670 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24671 PyObject *obj;
24672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24673 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24674 return SWIG_Py_Void();
24675 }
24676
24677 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24678 return SWIG_Python_InitShadowInstance(args);
24679 }
24680
24681 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj = 0;
24683 wxWindow *arg1 = (wxWindow *) 0 ;
24684 wxAutoBufferedPaintDC *result = 0 ;
24685 void *argp1 = 0 ;
24686 int res1 = 0 ;
24687 PyObject * obj0 = 0 ;
24688 char * kwnames[] = {
24689 (char *) "win", NULL
24690 };
24691
24692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24694 if (!SWIG_IsOK(res1)) {
24695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24696 }
24697 arg1 = reinterpret_cast< wxWindow * >(argp1);
24698 {
24699 PyThreadState* __tstate = wxPyBeginAllowThreads();
24700 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24701 wxPyEndAllowThreads(__tstate);
24702 if (PyErr_Occurred()) SWIG_fail;
24703 }
24704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24705 return resultobj;
24706 fail:
24707 return NULL;
24708 }
24709
24710
24711 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24712 PyObject *obj;
24713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24714 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24715 return SWIG_Py_Void();
24716 }
24717
24718 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24719 return SWIG_Python_InitShadowInstance(args);
24720 }
24721
24722 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24723 PyObject *resultobj = 0;
24724 wxWindow *arg1 = (wxWindow *) 0 ;
24725 wxDC *result = 0 ;
24726 void *argp1 = 0 ;
24727 int res1 = 0 ;
24728 PyObject * obj0 = 0 ;
24729 char * kwnames[] = {
24730 (char *) "window", NULL
24731 };
24732
24733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24735 if (!SWIG_IsOK(res1)) {
24736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24737 }
24738 arg1 = reinterpret_cast< wxWindow * >(argp1);
24739 {
24740 PyThreadState* __tstate = wxPyBeginAllowThreads();
24741 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24742 wxPyEndAllowThreads(__tstate);
24743 if (PyErr_Occurred()) SWIG_fail;
24744 }
24745 {
24746 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24747 }
24748 return resultobj;
24749 fail:
24750 return NULL;
24751 }
24752
24753
24754 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24755 PyObject *resultobj = 0;
24756 wxDC *arg1 = 0 ;
24757 bool arg2 ;
24758 wxMirrorDC *result = 0 ;
24759 void *argp1 = 0 ;
24760 int res1 = 0 ;
24761 bool val2 ;
24762 int ecode2 = 0 ;
24763 PyObject * obj0 = 0 ;
24764 PyObject * obj1 = 0 ;
24765 char * kwnames[] = {
24766 (char *) "dc",(char *) "mirror", NULL
24767 };
24768
24769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24770 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24771 if (!SWIG_IsOK(res1)) {
24772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24773 }
24774 if (!argp1) {
24775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24776 }
24777 arg1 = reinterpret_cast< wxDC * >(argp1);
24778 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24779 if (!SWIG_IsOK(ecode2)) {
24780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24781 }
24782 arg2 = static_cast< bool >(val2);
24783 {
24784 if (!wxPyCheckForApp()) SWIG_fail;
24785 PyThreadState* __tstate = wxPyBeginAllowThreads();
24786 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24791 return resultobj;
24792 fail:
24793 return NULL;
24794 }
24795
24796
24797 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24798 PyObject *obj;
24799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24800 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24801 return SWIG_Py_Void();
24802 }
24803
24804 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24805 return SWIG_Python_InitShadowInstance(args);
24806 }
24807
24808 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24809 PyObject *resultobj = 0;
24810 wxPrintData *arg1 = 0 ;
24811 wxPostScriptDC *result = 0 ;
24812 void *argp1 = 0 ;
24813 int res1 = 0 ;
24814 PyObject * obj0 = 0 ;
24815 char * kwnames[] = {
24816 (char *) "printData", NULL
24817 };
24818
24819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24820 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24821 if (!SWIG_IsOK(res1)) {
24822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24823 }
24824 if (!argp1) {
24825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24826 }
24827 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24828 {
24829 if (!wxPyCheckForApp()) SWIG_fail;
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24836 return resultobj;
24837 fail:
24838 return NULL;
24839 }
24840
24841
24842 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24843 PyObject *resultobj = 0;
24844 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24845 wxPrintData *result = 0 ;
24846 void *argp1 = 0 ;
24847 int res1 = 0 ;
24848 PyObject *swig_obj[1] ;
24849
24850 if (!args) SWIG_fail;
24851 swig_obj[0] = args;
24852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24853 if (!SWIG_IsOK(res1)) {
24854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24855 }
24856 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 {
24860 wxPrintData &_result_ref = (arg1)->GetPrintData();
24861 result = (wxPrintData *) &_result_ref;
24862 }
24863 wxPyEndAllowThreads(__tstate);
24864 if (PyErr_Occurred()) SWIG_fail;
24865 }
24866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24867 return resultobj;
24868 fail:
24869 return NULL;
24870 }
24871
24872
24873 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24874 PyObject *resultobj = 0;
24875 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24876 wxPrintData *arg2 = 0 ;
24877 void *argp1 = 0 ;
24878 int res1 = 0 ;
24879 void *argp2 = 0 ;
24880 int res2 = 0 ;
24881 PyObject * obj0 = 0 ;
24882 PyObject * obj1 = 0 ;
24883 char * kwnames[] = {
24884 (char *) "self",(char *) "data", NULL
24885 };
24886
24887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24889 if (!SWIG_IsOK(res1)) {
24890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24891 }
24892 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24894 if (!SWIG_IsOK(res2)) {
24895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24896 }
24897 if (!argp2) {
24898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24899 }
24900 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24901 {
24902 PyThreadState* __tstate = wxPyBeginAllowThreads();
24903 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = SWIG_Py_Void();
24908 return resultobj;
24909 fail:
24910 return NULL;
24911 }
24912
24913
24914 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24915 PyObject *resultobj = 0;
24916 int arg1 ;
24917 int val1 ;
24918 int ecode1 = 0 ;
24919 PyObject * obj0 = 0 ;
24920 char * kwnames[] = {
24921 (char *) "ppi", NULL
24922 };
24923
24924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24925 ecode1 = SWIG_AsVal_int(obj0, &val1);
24926 if (!SWIG_IsOK(ecode1)) {
24927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24928 }
24929 arg1 = static_cast< int >(val1);
24930 {
24931 PyThreadState* __tstate = wxPyBeginAllowThreads();
24932 wxPostScriptDC::SetResolution(arg1);
24933 wxPyEndAllowThreads(__tstate);
24934 if (PyErr_Occurred()) SWIG_fail;
24935 }
24936 resultobj = SWIG_Py_Void();
24937 return resultobj;
24938 fail:
24939 return NULL;
24940 }
24941
24942
24943 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24944 PyObject *resultobj = 0;
24945 int result;
24946
24947 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 result = (int)wxPostScriptDC::GetResolution();
24951 wxPyEndAllowThreads(__tstate);
24952 if (PyErr_Occurred()) SWIG_fail;
24953 }
24954 resultobj = SWIG_From_int(static_cast< int >(result));
24955 return resultobj;
24956 fail:
24957 return NULL;
24958 }
24959
24960
24961 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24962 PyObject *obj;
24963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24964 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24965 return SWIG_Py_Void();
24966 }
24967
24968 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24969 return SWIG_Python_InitShadowInstance(args);
24970 }
24971
24972 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24973 PyObject *resultobj = 0;
24974 wxString const &arg1_defvalue = wxPyEmptyString ;
24975 wxString *arg1 = (wxString *) &arg1_defvalue ;
24976 wxMetaFile *result = 0 ;
24977 bool temp1 = false ;
24978 PyObject * obj0 = 0 ;
24979 char * kwnames[] = {
24980 (char *) "filename", NULL
24981 };
24982
24983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24984 if (obj0) {
24985 {
24986 arg1 = wxString_in_helper(obj0);
24987 if (arg1 == NULL) SWIG_fail;
24988 temp1 = true;
24989 }
24990 }
24991 {
24992 if (!wxPyCheckForApp()) SWIG_fail;
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24995 wxPyEndAllowThreads(__tstate);
24996 if (PyErr_Occurred()) SWIG_fail;
24997 }
24998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24999 {
25000 if (temp1)
25001 delete arg1;
25002 }
25003 return resultobj;
25004 fail:
25005 {
25006 if (temp1)
25007 delete arg1;
25008 }
25009 return NULL;
25010 }
25011
25012
25013 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25014 PyObject *obj;
25015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25016 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25017 return SWIG_Py_Void();
25018 }
25019
25020 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25021 return SWIG_Python_InitShadowInstance(args);
25022 }
25023
25024 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25025 PyObject *resultobj = 0;
25026 wxString const &arg1_defvalue = wxPyEmptyString ;
25027 wxString *arg1 = (wxString *) &arg1_defvalue ;
25028 int arg2 = (int) 0 ;
25029 int arg3 = (int) 0 ;
25030 wxString const &arg4_defvalue = wxPyEmptyString ;
25031 wxString *arg4 = (wxString *) &arg4_defvalue ;
25032 wxMetaFileDC *result = 0 ;
25033 bool temp1 = false ;
25034 int val2 ;
25035 int ecode2 = 0 ;
25036 int val3 ;
25037 int ecode3 = 0 ;
25038 bool temp4 = false ;
25039 PyObject * obj0 = 0 ;
25040 PyObject * obj1 = 0 ;
25041 PyObject * obj2 = 0 ;
25042 PyObject * obj3 = 0 ;
25043 char * kwnames[] = {
25044 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25045 };
25046
25047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25048 if (obj0) {
25049 {
25050 arg1 = wxString_in_helper(obj0);
25051 if (arg1 == NULL) SWIG_fail;
25052 temp1 = true;
25053 }
25054 }
25055 if (obj1) {
25056 ecode2 = SWIG_AsVal_int(obj1, &val2);
25057 if (!SWIG_IsOK(ecode2)) {
25058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25059 }
25060 arg2 = static_cast< int >(val2);
25061 }
25062 if (obj2) {
25063 ecode3 = SWIG_AsVal_int(obj2, &val3);
25064 if (!SWIG_IsOK(ecode3)) {
25065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25066 }
25067 arg3 = static_cast< int >(val3);
25068 }
25069 if (obj3) {
25070 {
25071 arg4 = wxString_in_helper(obj3);
25072 if (arg4 == NULL) SWIG_fail;
25073 temp4 = true;
25074 }
25075 }
25076 {
25077 if (!wxPyCheckForApp()) SWIG_fail;
25078 PyThreadState* __tstate = wxPyBeginAllowThreads();
25079 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25080 wxPyEndAllowThreads(__tstate);
25081 if (PyErr_Occurred()) SWIG_fail;
25082 }
25083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25084 {
25085 if (temp1)
25086 delete arg1;
25087 }
25088 {
25089 if (temp4)
25090 delete arg4;
25091 }
25092 return resultobj;
25093 fail:
25094 {
25095 if (temp1)
25096 delete arg1;
25097 }
25098 {
25099 if (temp4)
25100 delete arg4;
25101 }
25102 return NULL;
25103 }
25104
25105
25106 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25107 PyObject *obj;
25108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25109 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25110 return SWIG_Py_Void();
25111 }
25112
25113 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25114 return SWIG_Python_InitShadowInstance(args);
25115 }
25116
25117 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25118 PyObject *resultobj = 0;
25119 wxPrintData *arg1 = 0 ;
25120 wxPrinterDC *result = 0 ;
25121 void *argp1 = 0 ;
25122 int res1 = 0 ;
25123 PyObject * obj0 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "printData", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25132 }
25133 if (!argp1) {
25134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25135 }
25136 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25137 {
25138 if (!wxPyCheckForApp()) SWIG_fail;
25139 PyThreadState* __tstate = wxPyBeginAllowThreads();
25140 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25141 wxPyEndAllowThreads(__tstate);
25142 if (PyErr_Occurred()) SWIG_fail;
25143 }
25144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25145 return resultobj;
25146 fail:
25147 return NULL;
25148 }
25149
25150
25151 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25152 PyObject *obj;
25153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25154 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25155 return SWIG_Py_Void();
25156 }
25157
25158 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25159 return SWIG_Python_InitShadowInstance(args);
25160 }
25161
25162 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25163 PyObject *resultobj = 0;
25164 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25165 wxGraphicsObject *result = 0 ;
25166 void *argp1 = 0 ;
25167 int res1 = 0 ;
25168 PyObject * obj0 = 0 ;
25169 char * kwnames[] = {
25170 (char *) "renderer", NULL
25171 };
25172
25173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25174 if (obj0) {
25175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25176 if (!SWIG_IsOK(res1)) {
25177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25178 }
25179 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25180 }
25181 {
25182 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25183 if (PyErr_Occurred()) SWIG_fail;
25184 }
25185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25186 return resultobj;
25187 fail:
25188 return NULL;
25189 }
25190
25191
25192 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25193 PyObject *resultobj = 0;
25194 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25195 void *argp1 = 0 ;
25196 int res1 = 0 ;
25197 PyObject *swig_obj[1] ;
25198
25199 if (!args) SWIG_fail;
25200 swig_obj[0] = args;
25201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25202 if (!SWIG_IsOK(res1)) {
25203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25204 }
25205 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25206 {
25207 delete arg1;
25208
25209 if (PyErr_Occurred()) SWIG_fail;
25210 }
25211 resultobj = SWIG_Py_Void();
25212 return resultobj;
25213 fail:
25214 return NULL;
25215 }
25216
25217
25218 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25219 PyObject *resultobj = 0;
25220 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25221 bool result;
25222 void *argp1 = 0 ;
25223 int res1 = 0 ;
25224 PyObject *swig_obj[1] ;
25225
25226 if (!args) SWIG_fail;
25227 swig_obj[0] = args;
25228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25229 if (!SWIG_IsOK(res1)) {
25230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25231 }
25232 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25233 {
25234 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25235 if (PyErr_Occurred()) SWIG_fail;
25236 }
25237 {
25238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25239 }
25240 return resultobj;
25241 fail:
25242 return NULL;
25243 }
25244
25245
25246 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25247 PyObject *resultobj = 0;
25248 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25249 wxGraphicsRenderer *result = 0 ;
25250 void *argp1 = 0 ;
25251 int res1 = 0 ;
25252 PyObject *swig_obj[1] ;
25253
25254 if (!args) SWIG_fail;
25255 swig_obj[0] = args;
25256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25257 if (!SWIG_IsOK(res1)) {
25258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25259 }
25260 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25261 {
25262 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25266 return resultobj;
25267 fail:
25268 return NULL;
25269 }
25270
25271
25272 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25273 PyObject *obj;
25274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25275 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25276 return SWIG_Py_Void();
25277 }
25278
25279 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25280 return SWIG_Python_InitShadowInstance(args);
25281 }
25282
25283 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25284 PyObject *resultobj = 0;
25285 wxGraphicsPen *result = 0 ;
25286
25287 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25288 {
25289 result = (wxGraphicsPen *)new wxGraphicsPen();
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25293 return resultobj;
25294 fail:
25295 return NULL;
25296 }
25297
25298
25299 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25300 PyObject *resultobj = 0;
25301 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25302 void *argp1 = 0 ;
25303 int res1 = 0 ;
25304 PyObject *swig_obj[1] ;
25305
25306 if (!args) SWIG_fail;
25307 swig_obj[0] = args;
25308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25309 if (!SWIG_IsOK(res1)) {
25310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25311 }
25312 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25313 {
25314 delete arg1;
25315
25316 if (PyErr_Occurred()) SWIG_fail;
25317 }
25318 resultobj = SWIG_Py_Void();
25319 return resultobj;
25320 fail:
25321 return NULL;
25322 }
25323
25324
25325 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25326 PyObject *obj;
25327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25329 return SWIG_Py_Void();
25330 }
25331
25332 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25333 return SWIG_Python_InitShadowInstance(args);
25334 }
25335
25336 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25337 PyObject *resultobj = 0;
25338 wxGraphicsBrush *result = 0 ;
25339
25340 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25341 {
25342 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
25345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25346 return resultobj;
25347 fail:
25348 return NULL;
25349 }
25350
25351
25352 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25353 PyObject *resultobj = 0;
25354 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 PyObject *swig_obj[1] ;
25358
25359 if (!args) SWIG_fail;
25360 swig_obj[0] = args;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25364 }
25365 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25366 {
25367 delete arg1;
25368
25369 if (PyErr_Occurred()) SWIG_fail;
25370 }
25371 resultobj = SWIG_Py_Void();
25372 return resultobj;
25373 fail:
25374 return NULL;
25375 }
25376
25377
25378 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25379 PyObject *obj;
25380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25381 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25382 return SWIG_Py_Void();
25383 }
25384
25385 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25386 return SWIG_Python_InitShadowInstance(args);
25387 }
25388
25389 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25390 PyObject *resultobj = 0;
25391 wxGraphicsFont *result = 0 ;
25392
25393 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25394 {
25395 result = (wxGraphicsFont *)new wxGraphicsFont();
25396 if (PyErr_Occurred()) SWIG_fail;
25397 }
25398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25399 return resultobj;
25400 fail:
25401 return NULL;
25402 }
25403
25404
25405 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25406 PyObject *resultobj = 0;
25407 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25408 void *argp1 = 0 ;
25409 int res1 = 0 ;
25410 PyObject *swig_obj[1] ;
25411
25412 if (!args) SWIG_fail;
25413 swig_obj[0] = args;
25414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25415 if (!SWIG_IsOK(res1)) {
25416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25417 }
25418 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25419 {
25420 delete arg1;
25421
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_Py_Void();
25425 return resultobj;
25426 fail:
25427 return NULL;
25428 }
25429
25430
25431 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25432 PyObject *obj;
25433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25434 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25435 return SWIG_Py_Void();
25436 }
25437
25438 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25439 return SWIG_Python_InitShadowInstance(args);
25440 }
25441
25442 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25443 PyObject *resultobj = 0;
25444 wxGraphicsMatrix *result = 0 ;
25445
25446 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25447 {
25448 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25449 if (PyErr_Occurred()) SWIG_fail;
25450 }
25451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25452 return resultobj;
25453 fail:
25454 return NULL;
25455 }
25456
25457
25458 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25459 PyObject *resultobj = 0;
25460 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25461 void *argp1 = 0 ;
25462 int res1 = 0 ;
25463 PyObject *swig_obj[1] ;
25464
25465 if (!args) SWIG_fail;
25466 swig_obj[0] = args;
25467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25470 }
25471 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25472 {
25473 delete arg1;
25474
25475 if (PyErr_Occurred()) SWIG_fail;
25476 }
25477 resultobj = SWIG_Py_Void();
25478 return resultobj;
25479 fail:
25480 return NULL;
25481 }
25482
25483
25484 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25485 PyObject *resultobj = 0;
25486 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25487 wxGraphicsMatrix *arg2 = 0 ;
25488 void *argp1 = 0 ;
25489 int res1 = 0 ;
25490 void *argp2 = 0 ;
25491 int res2 = 0 ;
25492 PyObject * obj0 = 0 ;
25493 PyObject * obj1 = 0 ;
25494 char * kwnames[] = {
25495 (char *) "self",(char *) "t", NULL
25496 };
25497
25498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25500 if (!SWIG_IsOK(res1)) {
25501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25502 }
25503 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25505 if (!SWIG_IsOK(res2)) {
25506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25507 }
25508 if (!argp2) {
25509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25510 }
25511 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25512 {
25513 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25514 if (PyErr_Occurred()) SWIG_fail;
25515 }
25516 resultobj = SWIG_Py_Void();
25517 return resultobj;
25518 fail:
25519 return NULL;
25520 }
25521
25522
25523 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25524 PyObject *resultobj = 0;
25525 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25526 wxDouble arg2 = (wxDouble) 1.0 ;
25527 wxDouble arg3 = (wxDouble) 0.0 ;
25528 wxDouble arg4 = (wxDouble) 0.0 ;
25529 wxDouble arg5 = (wxDouble) 1.0 ;
25530 wxDouble arg6 = (wxDouble) 0.0 ;
25531 wxDouble arg7 = (wxDouble) 0.0 ;
25532 void *argp1 = 0 ;
25533 int res1 = 0 ;
25534 double val2 ;
25535 int ecode2 = 0 ;
25536 double val3 ;
25537 int ecode3 = 0 ;
25538 double val4 ;
25539 int ecode4 = 0 ;
25540 double val5 ;
25541 int ecode5 = 0 ;
25542 double val6 ;
25543 int ecode6 = 0 ;
25544 double val7 ;
25545 int ecode7 = 0 ;
25546 PyObject * obj0 = 0 ;
25547 PyObject * obj1 = 0 ;
25548 PyObject * obj2 = 0 ;
25549 PyObject * obj3 = 0 ;
25550 PyObject * obj4 = 0 ;
25551 PyObject * obj5 = 0 ;
25552 PyObject * obj6 = 0 ;
25553 char * kwnames[] = {
25554 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25555 };
25556
25557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25559 if (!SWIG_IsOK(res1)) {
25560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25561 }
25562 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25563 if (obj1) {
25564 ecode2 = SWIG_AsVal_double(obj1, &val2);
25565 if (!SWIG_IsOK(ecode2)) {
25566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25567 }
25568 arg2 = static_cast< wxDouble >(val2);
25569 }
25570 if (obj2) {
25571 ecode3 = SWIG_AsVal_double(obj2, &val3);
25572 if (!SWIG_IsOK(ecode3)) {
25573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25574 }
25575 arg3 = static_cast< wxDouble >(val3);
25576 }
25577 if (obj3) {
25578 ecode4 = SWIG_AsVal_double(obj3, &val4);
25579 if (!SWIG_IsOK(ecode4)) {
25580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25581 }
25582 arg4 = static_cast< wxDouble >(val4);
25583 }
25584 if (obj4) {
25585 ecode5 = SWIG_AsVal_double(obj4, &val5);
25586 if (!SWIG_IsOK(ecode5)) {
25587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25588 }
25589 arg5 = static_cast< wxDouble >(val5);
25590 }
25591 if (obj5) {
25592 ecode6 = SWIG_AsVal_double(obj5, &val6);
25593 if (!SWIG_IsOK(ecode6)) {
25594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25595 }
25596 arg6 = static_cast< wxDouble >(val6);
25597 }
25598 if (obj6) {
25599 ecode7 = SWIG_AsVal_double(obj6, &val7);
25600 if (!SWIG_IsOK(ecode7)) {
25601 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25602 }
25603 arg7 = static_cast< wxDouble >(val7);
25604 }
25605 {
25606 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25607 if (PyErr_Occurred()) SWIG_fail;
25608 }
25609 resultobj = SWIG_Py_Void();
25610 return resultobj;
25611 fail:
25612 return NULL;
25613 }
25614
25615
25616 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25617 PyObject *resultobj = 0;
25618 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25619 void *argp1 = 0 ;
25620 int res1 = 0 ;
25621 PyObject *swig_obj[1] ;
25622
25623 if (!args) SWIG_fail;
25624 swig_obj[0] = args;
25625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25626 if (!SWIG_IsOK(res1)) {
25627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25628 }
25629 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25630 {
25631 (arg1)->Invert();
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 resultobj = SWIG_Py_Void();
25635 return resultobj;
25636 fail:
25637 return NULL;
25638 }
25639
25640
25641 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25642 PyObject *resultobj = 0;
25643 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25644 wxGraphicsMatrix *arg2 = 0 ;
25645 bool result;
25646 void *argp1 = 0 ;
25647 int res1 = 0 ;
25648 void *argp2 = 0 ;
25649 int res2 = 0 ;
25650 PyObject * obj0 = 0 ;
25651 PyObject * obj1 = 0 ;
25652 char * kwnames[] = {
25653 (char *) "self",(char *) "t", NULL
25654 };
25655
25656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25658 if (!SWIG_IsOK(res1)) {
25659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25660 }
25661 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25663 if (!SWIG_IsOK(res2)) {
25664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25665 }
25666 if (!argp2) {
25667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25668 }
25669 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25670 {
25671 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 {
25675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25676 }
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25684 PyObject *resultobj = 0;
25685 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25686 bool result;
25687 void *argp1 = 0 ;
25688 int res1 = 0 ;
25689 PyObject *swig_obj[1] ;
25690
25691 if (!args) SWIG_fail;
25692 swig_obj[0] = args;
25693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25694 if (!SWIG_IsOK(res1)) {
25695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25696 }
25697 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25698 {
25699 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 {
25703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25704 }
25705 return resultobj;
25706 fail:
25707 return NULL;
25708 }
25709
25710
25711 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25712 PyObject *resultobj = 0;
25713 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25714 wxDouble arg2 ;
25715 wxDouble arg3 ;
25716 void *argp1 = 0 ;
25717 int res1 = 0 ;
25718 double val2 ;
25719 int ecode2 = 0 ;
25720 double val3 ;
25721 int ecode3 = 0 ;
25722 PyObject * obj0 = 0 ;
25723 PyObject * obj1 = 0 ;
25724 PyObject * obj2 = 0 ;
25725 char * kwnames[] = {
25726 (char *) "self",(char *) "dx",(char *) "dy", NULL
25727 };
25728
25729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25731 if (!SWIG_IsOK(res1)) {
25732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25733 }
25734 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25735 ecode2 = SWIG_AsVal_double(obj1, &val2);
25736 if (!SWIG_IsOK(ecode2)) {
25737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25738 }
25739 arg2 = static_cast< wxDouble >(val2);
25740 ecode3 = SWIG_AsVal_double(obj2, &val3);
25741 if (!SWIG_IsOK(ecode3)) {
25742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25743 }
25744 arg3 = static_cast< wxDouble >(val3);
25745 {
25746 (arg1)->Translate(arg2,arg3);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 resultobj = SWIG_Py_Void();
25750 return resultobj;
25751 fail:
25752 return NULL;
25753 }
25754
25755
25756 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25757 PyObject *resultobj = 0;
25758 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25759 wxDouble arg2 ;
25760 wxDouble arg3 ;
25761 void *argp1 = 0 ;
25762 int res1 = 0 ;
25763 double val2 ;
25764 int ecode2 = 0 ;
25765 double val3 ;
25766 int ecode3 = 0 ;
25767 PyObject * obj0 = 0 ;
25768 PyObject * obj1 = 0 ;
25769 PyObject * obj2 = 0 ;
25770 char * kwnames[] = {
25771 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25772 };
25773
25774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25776 if (!SWIG_IsOK(res1)) {
25777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25778 }
25779 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25780 ecode2 = SWIG_AsVal_double(obj1, &val2);
25781 if (!SWIG_IsOK(ecode2)) {
25782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25783 }
25784 arg2 = static_cast< wxDouble >(val2);
25785 ecode3 = SWIG_AsVal_double(obj2, &val3);
25786 if (!SWIG_IsOK(ecode3)) {
25787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25788 }
25789 arg3 = static_cast< wxDouble >(val3);
25790 {
25791 (arg1)->Scale(arg2,arg3);
25792 if (PyErr_Occurred()) SWIG_fail;
25793 }
25794 resultobj = SWIG_Py_Void();
25795 return resultobj;
25796 fail:
25797 return NULL;
25798 }
25799
25800
25801 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25802 PyObject *resultobj = 0;
25803 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25804 wxDouble arg2 ;
25805 void *argp1 = 0 ;
25806 int res1 = 0 ;
25807 double val2 ;
25808 int ecode2 = 0 ;
25809 PyObject * obj0 = 0 ;
25810 PyObject * obj1 = 0 ;
25811 char * kwnames[] = {
25812 (char *) "self",(char *) "angle", NULL
25813 };
25814
25815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25817 if (!SWIG_IsOK(res1)) {
25818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25819 }
25820 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25821 ecode2 = SWIG_AsVal_double(obj1, &val2);
25822 if (!SWIG_IsOK(ecode2)) {
25823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25824 }
25825 arg2 = static_cast< wxDouble >(val2);
25826 {
25827 (arg1)->Rotate(arg2);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 resultobj = SWIG_Py_Void();
25831 return resultobj;
25832 fail:
25833 return NULL;
25834 }
25835
25836
25837 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25838 PyObject *resultobj = 0;
25839 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25840 wxDouble *arg2 = (wxDouble *) 0 ;
25841 wxDouble *arg3 = (wxDouble *) 0 ;
25842 void *argp1 = 0 ;
25843 int res1 = 0 ;
25844 wxDouble temp2 ;
25845 int res2 = 0 ;
25846 wxDouble temp3 ;
25847 int res3 = 0 ;
25848 PyObject * obj0 = 0 ;
25849 PyObject * obj1 = 0 ;
25850 PyObject * obj2 = 0 ;
25851 char * kwnames[] = {
25852 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25853 };
25854
25855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25857 if (!SWIG_IsOK(res1)) {
25858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25859 }
25860 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25861 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25862 double val;
25863 int ecode = SWIG_AsVal_double(obj1, &val);
25864 if (!SWIG_IsOK(ecode)) {
25865 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25866 }
25867 temp2 = static_cast< wxDouble >(val);
25868 arg2 = &temp2;
25869 res2 = SWIG_AddTmpMask(ecode);
25870 }
25871 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25872 double val;
25873 int ecode = SWIG_AsVal_double(obj2, &val);
25874 if (!SWIG_IsOK(ecode)) {
25875 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25876 }
25877 temp3 = static_cast< wxDouble >(val);
25878 arg3 = &temp3;
25879 res3 = SWIG_AddTmpMask(ecode);
25880 }
25881 {
25882 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 resultobj = SWIG_Py_Void();
25886 if (SWIG_IsTmpObj(res2)) {
25887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25888 } else {
25889 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25891 }
25892 if (SWIG_IsTmpObj(res3)) {
25893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25894 } else {
25895 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25897 }
25898 return resultobj;
25899 fail:
25900 return NULL;
25901 }
25902
25903
25904 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25905 PyObject *resultobj = 0;
25906 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25907 wxDouble *arg2 = (wxDouble *) 0 ;
25908 wxDouble *arg3 = (wxDouble *) 0 ;
25909 void *argp1 = 0 ;
25910 int res1 = 0 ;
25911 wxDouble temp2 ;
25912 int res2 = 0 ;
25913 wxDouble temp3 ;
25914 int res3 = 0 ;
25915 PyObject * obj0 = 0 ;
25916 PyObject * obj1 = 0 ;
25917 PyObject * obj2 = 0 ;
25918 char * kwnames[] = {
25919 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25920 };
25921
25922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25924 if (!SWIG_IsOK(res1)) {
25925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25926 }
25927 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25928 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25929 double val;
25930 int ecode = SWIG_AsVal_double(obj1, &val);
25931 if (!SWIG_IsOK(ecode)) {
25932 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25933 }
25934 temp2 = static_cast< wxDouble >(val);
25935 arg2 = &temp2;
25936 res2 = SWIG_AddTmpMask(ecode);
25937 }
25938 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25939 double val;
25940 int ecode = SWIG_AsVal_double(obj2, &val);
25941 if (!SWIG_IsOK(ecode)) {
25942 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25943 }
25944 temp3 = static_cast< wxDouble >(val);
25945 arg3 = &temp3;
25946 res3 = SWIG_AddTmpMask(ecode);
25947 }
25948 {
25949 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 resultobj = SWIG_Py_Void();
25953 if (SWIG_IsTmpObj(res2)) {
25954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25955 } else {
25956 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25958 }
25959 if (SWIG_IsTmpObj(res3)) {
25960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25961 } else {
25962 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25964 }
25965 return resultobj;
25966 fail:
25967 return NULL;
25968 }
25969
25970
25971 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25972 PyObject *resultobj = 0;
25973 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25974 void *result = 0 ;
25975 void *argp1 = 0 ;
25976 int res1 = 0 ;
25977 PyObject *swig_obj[1] ;
25978
25979 if (!args) SWIG_fail;
25980 swig_obj[0] = args;
25981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25982 if (!SWIG_IsOK(res1)) {
25983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25984 }
25985 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25986 {
25987 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
25988 if (PyErr_Occurred()) SWIG_fail;
25989 }
25990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25991 return resultobj;
25992 fail:
25993 return NULL;
25994 }
25995
25996
25997 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25998 PyObject *obj;
25999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26000 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26001 return SWIG_Py_Void();
26002 }
26003
26004 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26005 return SWIG_Python_InitShadowInstance(args);
26006 }
26007
26008 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26009 PyObject *resultobj = 0;
26010 wxGraphicsPath *result = 0 ;
26011
26012 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26013 {
26014 if (!wxPyCheckForApp()) SWIG_fail;
26015 PyThreadState* __tstate = wxPyBeginAllowThreads();
26016 result = (wxGraphicsPath *)new wxGraphicsPath();
26017 wxPyEndAllowThreads(__tstate);
26018 if (PyErr_Occurred()) SWIG_fail;
26019 }
26020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26021 return resultobj;
26022 fail:
26023 return NULL;
26024 }
26025
26026
26027 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26028 PyObject *resultobj = 0;
26029 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26030 void *argp1 = 0 ;
26031 int res1 = 0 ;
26032 PyObject *swig_obj[1] ;
26033
26034 if (!args) SWIG_fail;
26035 swig_obj[0] = args;
26036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26037 if (!SWIG_IsOK(res1)) {
26038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26039 }
26040 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26041 {
26042 delete arg1;
26043
26044 if (PyErr_Occurred()) SWIG_fail;
26045 }
26046 resultobj = SWIG_Py_Void();
26047 return resultobj;
26048 fail:
26049 return NULL;
26050 }
26051
26052
26053 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26054 PyObject *resultobj = 0;
26055 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26056 wxDouble arg2 ;
26057 wxDouble arg3 ;
26058 void *argp1 = 0 ;
26059 int res1 = 0 ;
26060 double val2 ;
26061 int ecode2 = 0 ;
26062 double val3 ;
26063 int ecode3 = 0 ;
26064
26065 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26067 if (!SWIG_IsOK(res1)) {
26068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26069 }
26070 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26071 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26072 if (!SWIG_IsOK(ecode2)) {
26073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26074 }
26075 arg2 = static_cast< wxDouble >(val2);
26076 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26077 if (!SWIG_IsOK(ecode3)) {
26078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26079 }
26080 arg3 = static_cast< wxDouble >(val3);
26081 {
26082 (arg1)->MoveToPoint(arg2,arg3);
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_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26093 PyObject *resultobj = 0;
26094 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26095 wxPoint2D *arg2 = 0 ;
26096 void *argp1 = 0 ;
26097 int res1 = 0 ;
26098 wxPoint2D temp2 ;
26099
26100 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26102 if (!SWIG_IsOK(res1)) {
26103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26104 }
26105 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26106 {
26107 arg2 = &temp2;
26108 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26109 }
26110 {
26111 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 resultobj = SWIG_Py_Void();
26115 return resultobj;
26116 fail:
26117 return NULL;
26118 }
26119
26120
26121 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26122 int argc;
26123 PyObject *argv[4];
26124
26125 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26126 --argc;
26127 if (argc == 2) {
26128 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26129 }
26130 if (argc == 3) {
26131 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26132 }
26133
26134 fail:
26135 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26136 return NULL;
26137 }
26138
26139
26140 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26141 PyObject *resultobj = 0;
26142 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26143 wxDouble arg2 ;
26144 wxDouble arg3 ;
26145 void *argp1 = 0 ;
26146 int res1 = 0 ;
26147 double val2 ;
26148 int ecode2 = 0 ;
26149 double val3 ;
26150 int ecode3 = 0 ;
26151
26152 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26154 if (!SWIG_IsOK(res1)) {
26155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26156 }
26157 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26158 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26159 if (!SWIG_IsOK(ecode2)) {
26160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26161 }
26162 arg2 = static_cast< wxDouble >(val2);
26163 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26164 if (!SWIG_IsOK(ecode3)) {
26165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26166 }
26167 arg3 = static_cast< wxDouble >(val3);
26168 {
26169 (arg1)->AddLineToPoint(arg2,arg3);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 resultobj = SWIG_Py_Void();
26173 return resultobj;
26174 fail:
26175 return NULL;
26176 }
26177
26178
26179 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26180 PyObject *resultobj = 0;
26181 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26182 wxPoint2D *arg2 = 0 ;
26183 void *argp1 = 0 ;
26184 int res1 = 0 ;
26185 wxPoint2D temp2 ;
26186
26187 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26189 if (!SWIG_IsOK(res1)) {
26190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26191 }
26192 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26193 {
26194 arg2 = &temp2;
26195 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26196 }
26197 {
26198 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
26201 resultobj = SWIG_Py_Void();
26202 return resultobj;
26203 fail:
26204 return NULL;
26205 }
26206
26207
26208 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26209 int argc;
26210 PyObject *argv[4];
26211
26212 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26213 --argc;
26214 if (argc == 2) {
26215 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26216 }
26217 if (argc == 3) {
26218 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26219 }
26220
26221 fail:
26222 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26223 return NULL;
26224 }
26225
26226
26227 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26228 PyObject *resultobj = 0;
26229 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26230 wxDouble arg2 ;
26231 wxDouble arg3 ;
26232 wxDouble arg4 ;
26233 wxDouble arg5 ;
26234 wxDouble arg6 ;
26235 wxDouble arg7 ;
26236 void *argp1 = 0 ;
26237 int res1 = 0 ;
26238 double val2 ;
26239 int ecode2 = 0 ;
26240 double val3 ;
26241 int ecode3 = 0 ;
26242 double val4 ;
26243 int ecode4 = 0 ;
26244 double val5 ;
26245 int ecode5 = 0 ;
26246 double val6 ;
26247 int ecode6 = 0 ;
26248 double val7 ;
26249 int ecode7 = 0 ;
26250
26251 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26255 }
26256 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26257 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26258 if (!SWIG_IsOK(ecode2)) {
26259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26260 }
26261 arg2 = static_cast< wxDouble >(val2);
26262 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26263 if (!SWIG_IsOK(ecode3)) {
26264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26265 }
26266 arg3 = static_cast< wxDouble >(val3);
26267 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26268 if (!SWIG_IsOK(ecode4)) {
26269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26270 }
26271 arg4 = static_cast< wxDouble >(val4);
26272 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26273 if (!SWIG_IsOK(ecode5)) {
26274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26275 }
26276 arg5 = static_cast< wxDouble >(val5);
26277 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26278 if (!SWIG_IsOK(ecode6)) {
26279 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26280 }
26281 arg6 = static_cast< wxDouble >(val6);
26282 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26283 if (!SWIG_IsOK(ecode7)) {
26284 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26285 }
26286 arg7 = static_cast< wxDouble >(val7);
26287 {
26288 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 resultobj = SWIG_Py_Void();
26292 return resultobj;
26293 fail:
26294 return NULL;
26295 }
26296
26297
26298 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26299 PyObject *resultobj = 0;
26300 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26301 wxPoint2D *arg2 = 0 ;
26302 wxPoint2D *arg3 = 0 ;
26303 wxPoint2D *arg4 = 0 ;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 wxPoint2D temp2 ;
26307 wxPoint2D temp3 ;
26308 wxPoint2D temp4 ;
26309
26310 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26312 if (!SWIG_IsOK(res1)) {
26313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26314 }
26315 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26316 {
26317 arg2 = &temp2;
26318 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26319 }
26320 {
26321 arg3 = &temp3;
26322 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26323 }
26324 {
26325 arg4 = &temp4;
26326 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26327 }
26328 {
26329 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 }
26332 resultobj = SWIG_Py_Void();
26333 return resultobj;
26334 fail:
26335 return NULL;
26336 }
26337
26338
26339 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26340 int argc;
26341 PyObject *argv[8];
26342
26343 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26344 --argc;
26345 if (argc == 4) {
26346 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26347 }
26348 if (argc == 7) {
26349 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26350 }
26351
26352 fail:
26353 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26354 return NULL;
26355 }
26356
26357
26358 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26359 PyObject *resultobj = 0;
26360 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26361 wxGraphicsPath *arg2 = 0 ;
26362 void *argp1 = 0 ;
26363 int res1 = 0 ;
26364 void *argp2 = 0 ;
26365 int res2 = 0 ;
26366 PyObject * obj0 = 0 ;
26367 PyObject * obj1 = 0 ;
26368 char * kwnames[] = {
26369 (char *) "self",(char *) "path", NULL
26370 };
26371
26372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26374 if (!SWIG_IsOK(res1)) {
26375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26376 }
26377 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26379 if (!SWIG_IsOK(res2)) {
26380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26381 }
26382 if (!argp2) {
26383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26384 }
26385 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26386 {
26387 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26388 if (PyErr_Occurred()) SWIG_fail;
26389 }
26390 resultobj = SWIG_Py_Void();
26391 return resultobj;
26392 fail:
26393 return NULL;
26394 }
26395
26396
26397 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26398 PyObject *resultobj = 0;
26399 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26400 void *argp1 = 0 ;
26401 int res1 = 0 ;
26402 PyObject *swig_obj[1] ;
26403
26404 if (!args) SWIG_fail;
26405 swig_obj[0] = args;
26406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26407 if (!SWIG_IsOK(res1)) {
26408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26409 }
26410 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26411 {
26412 (arg1)->CloseSubpath();
26413 if (PyErr_Occurred()) SWIG_fail;
26414 }
26415 resultobj = SWIG_Py_Void();
26416 return resultobj;
26417 fail:
26418 return NULL;
26419 }
26420
26421
26422 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26423 PyObject *resultobj = 0;
26424 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26425 wxPoint2D result;
26426 void *argp1 = 0 ;
26427 int res1 = 0 ;
26428 PyObject *swig_obj[1] ;
26429
26430 if (!args) SWIG_fail;
26431 swig_obj[0] = args;
26432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26433 if (!SWIG_IsOK(res1)) {
26434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26435 }
26436 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26437 {
26438 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26439 if (PyErr_Occurred()) SWIG_fail;
26440 }
26441 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26442 return resultobj;
26443 fail:
26444 return NULL;
26445 }
26446
26447
26448 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26449 PyObject *resultobj = 0;
26450 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26451 wxDouble arg2 ;
26452 wxDouble arg3 ;
26453 wxDouble arg4 ;
26454 wxDouble arg5 ;
26455 wxDouble arg6 ;
26456 bool arg7 ;
26457 void *argp1 = 0 ;
26458 int res1 = 0 ;
26459 double val2 ;
26460 int ecode2 = 0 ;
26461 double val3 ;
26462 int ecode3 = 0 ;
26463 double val4 ;
26464 int ecode4 = 0 ;
26465 double val5 ;
26466 int ecode5 = 0 ;
26467 double val6 ;
26468 int ecode6 = 0 ;
26469 bool val7 ;
26470 int ecode7 = 0 ;
26471
26472 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26474 if (!SWIG_IsOK(res1)) {
26475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26476 }
26477 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26478 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26479 if (!SWIG_IsOK(ecode2)) {
26480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26481 }
26482 arg2 = static_cast< wxDouble >(val2);
26483 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26484 if (!SWIG_IsOK(ecode3)) {
26485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26486 }
26487 arg3 = static_cast< wxDouble >(val3);
26488 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26489 if (!SWIG_IsOK(ecode4)) {
26490 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26491 }
26492 arg4 = static_cast< wxDouble >(val4);
26493 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26494 if (!SWIG_IsOK(ecode5)) {
26495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26496 }
26497 arg5 = static_cast< wxDouble >(val5);
26498 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26499 if (!SWIG_IsOK(ecode6)) {
26500 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26501 }
26502 arg6 = static_cast< wxDouble >(val6);
26503 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26504 if (!SWIG_IsOK(ecode7)) {
26505 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26506 }
26507 arg7 = static_cast< bool >(val7);
26508 {
26509 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26520 PyObject *resultobj = 0;
26521 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26522 wxPoint2D *arg2 = 0 ;
26523 wxDouble arg3 ;
26524 wxDouble arg4 ;
26525 wxDouble arg5 ;
26526 bool arg6 ;
26527 void *argp1 = 0 ;
26528 int res1 = 0 ;
26529 wxPoint2D temp2 ;
26530 double val3 ;
26531 int ecode3 = 0 ;
26532 double val4 ;
26533 int ecode4 = 0 ;
26534 double val5 ;
26535 int ecode5 = 0 ;
26536 bool val6 ;
26537 int ecode6 = 0 ;
26538
26539 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26543 }
26544 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26545 {
26546 arg2 = &temp2;
26547 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26548 }
26549 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26550 if (!SWIG_IsOK(ecode3)) {
26551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26552 }
26553 arg3 = static_cast< wxDouble >(val3);
26554 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26555 if (!SWIG_IsOK(ecode4)) {
26556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26557 }
26558 arg4 = static_cast< wxDouble >(val4);
26559 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26560 if (!SWIG_IsOK(ecode5)) {
26561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26562 }
26563 arg5 = static_cast< wxDouble >(val5);
26564 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26565 if (!SWIG_IsOK(ecode6)) {
26566 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26567 }
26568 arg6 = static_cast< bool >(val6);
26569 {
26570 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26571 if (PyErr_Occurred()) SWIG_fail;
26572 }
26573 resultobj = SWIG_Py_Void();
26574 return resultobj;
26575 fail:
26576 return NULL;
26577 }
26578
26579
26580 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26581 int argc;
26582 PyObject *argv[8];
26583
26584 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26585 --argc;
26586 if (argc == 6) {
26587 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26588 }
26589 if (argc == 7) {
26590 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26591 }
26592
26593 fail:
26594 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26595 return NULL;
26596 }
26597
26598
26599 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26600 PyObject *resultobj = 0;
26601 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26602 wxDouble arg2 ;
26603 wxDouble arg3 ;
26604 wxDouble arg4 ;
26605 wxDouble arg5 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 double val2 ;
26609 int ecode2 = 0 ;
26610 double val3 ;
26611 int ecode3 = 0 ;
26612 double val4 ;
26613 int ecode4 = 0 ;
26614 double val5 ;
26615 int ecode5 = 0 ;
26616 PyObject * obj0 = 0 ;
26617 PyObject * obj1 = 0 ;
26618 PyObject * obj2 = 0 ;
26619 PyObject * obj3 = 0 ;
26620 PyObject * obj4 = 0 ;
26621 char * kwnames[] = {
26622 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26623 };
26624
26625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26627 if (!SWIG_IsOK(res1)) {
26628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26629 }
26630 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26631 ecode2 = SWIG_AsVal_double(obj1, &val2);
26632 if (!SWIG_IsOK(ecode2)) {
26633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26634 }
26635 arg2 = static_cast< wxDouble >(val2);
26636 ecode3 = SWIG_AsVal_double(obj2, &val3);
26637 if (!SWIG_IsOK(ecode3)) {
26638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26639 }
26640 arg3 = static_cast< wxDouble >(val3);
26641 ecode4 = SWIG_AsVal_double(obj3, &val4);
26642 if (!SWIG_IsOK(ecode4)) {
26643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26644 }
26645 arg4 = static_cast< wxDouble >(val4);
26646 ecode5 = SWIG_AsVal_double(obj4, &val5);
26647 if (!SWIG_IsOK(ecode5)) {
26648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26649 }
26650 arg5 = static_cast< wxDouble >(val5);
26651 {
26652 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26653 if (PyErr_Occurred()) SWIG_fail;
26654 }
26655 resultobj = SWIG_Py_Void();
26656 return resultobj;
26657 fail:
26658 return NULL;
26659 }
26660
26661
26662 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26663 PyObject *resultobj = 0;
26664 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26665 wxDouble arg2 ;
26666 wxDouble arg3 ;
26667 wxDouble arg4 ;
26668 wxDouble arg5 ;
26669 void *argp1 = 0 ;
26670 int res1 = 0 ;
26671 double val2 ;
26672 int ecode2 = 0 ;
26673 double val3 ;
26674 int ecode3 = 0 ;
26675 double val4 ;
26676 int ecode4 = 0 ;
26677 double val5 ;
26678 int ecode5 = 0 ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 PyObject * obj2 = 0 ;
26682 PyObject * obj3 = 0 ;
26683 PyObject * obj4 = 0 ;
26684 char * kwnames[] = {
26685 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26686 };
26687
26688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26690 if (!SWIG_IsOK(res1)) {
26691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26692 }
26693 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26694 ecode2 = SWIG_AsVal_double(obj1, &val2);
26695 if (!SWIG_IsOK(ecode2)) {
26696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26697 }
26698 arg2 = static_cast< wxDouble >(val2);
26699 ecode3 = SWIG_AsVal_double(obj2, &val3);
26700 if (!SWIG_IsOK(ecode3)) {
26701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26702 }
26703 arg3 = static_cast< wxDouble >(val3);
26704 ecode4 = SWIG_AsVal_double(obj3, &val4);
26705 if (!SWIG_IsOK(ecode4)) {
26706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26707 }
26708 arg4 = static_cast< wxDouble >(val4);
26709 ecode5 = SWIG_AsVal_double(obj4, &val5);
26710 if (!SWIG_IsOK(ecode5)) {
26711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26712 }
26713 arg5 = static_cast< wxDouble >(val5);
26714 {
26715 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 resultobj = SWIG_Py_Void();
26719 return resultobj;
26720 fail:
26721 return NULL;
26722 }
26723
26724
26725 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26726 PyObject *resultobj = 0;
26727 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26728 wxDouble arg2 ;
26729 wxDouble arg3 ;
26730 wxDouble arg4 ;
26731 void *argp1 = 0 ;
26732 int res1 = 0 ;
26733 double val2 ;
26734 int ecode2 = 0 ;
26735 double val3 ;
26736 int ecode3 = 0 ;
26737 double val4 ;
26738 int ecode4 = 0 ;
26739 PyObject * obj0 = 0 ;
26740 PyObject * obj1 = 0 ;
26741 PyObject * obj2 = 0 ;
26742 PyObject * obj3 = 0 ;
26743 char * kwnames[] = {
26744 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26745 };
26746
26747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26749 if (!SWIG_IsOK(res1)) {
26750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26751 }
26752 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26753 ecode2 = SWIG_AsVal_double(obj1, &val2);
26754 if (!SWIG_IsOK(ecode2)) {
26755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26756 }
26757 arg2 = static_cast< wxDouble >(val2);
26758 ecode3 = SWIG_AsVal_double(obj2, &val3);
26759 if (!SWIG_IsOK(ecode3)) {
26760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26761 }
26762 arg3 = static_cast< wxDouble >(val3);
26763 ecode4 = SWIG_AsVal_double(obj3, &val4);
26764 if (!SWIG_IsOK(ecode4)) {
26765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26766 }
26767 arg4 = static_cast< wxDouble >(val4);
26768 {
26769 (arg1)->AddCircle(arg2,arg3,arg4);
26770 if (PyErr_Occurred()) SWIG_fail;
26771 }
26772 resultobj = SWIG_Py_Void();
26773 return resultobj;
26774 fail:
26775 return NULL;
26776 }
26777
26778
26779 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26780 PyObject *resultobj = 0;
26781 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26782 wxDouble arg2 ;
26783 wxDouble arg3 ;
26784 wxDouble arg4 ;
26785 wxDouble arg5 ;
26786 wxDouble arg6 ;
26787 void *argp1 = 0 ;
26788 int res1 = 0 ;
26789 double val2 ;
26790 int ecode2 = 0 ;
26791 double val3 ;
26792 int ecode3 = 0 ;
26793 double val4 ;
26794 int ecode4 = 0 ;
26795 double val5 ;
26796 int ecode5 = 0 ;
26797 double val6 ;
26798 int ecode6 = 0 ;
26799 PyObject * obj0 = 0 ;
26800 PyObject * obj1 = 0 ;
26801 PyObject * obj2 = 0 ;
26802 PyObject * obj3 = 0 ;
26803 PyObject * obj4 = 0 ;
26804 PyObject * obj5 = 0 ;
26805 char * kwnames[] = {
26806 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
26807 };
26808
26809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26811 if (!SWIG_IsOK(res1)) {
26812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26813 }
26814 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26815 ecode2 = SWIG_AsVal_double(obj1, &val2);
26816 if (!SWIG_IsOK(ecode2)) {
26817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26818 }
26819 arg2 = static_cast< wxDouble >(val2);
26820 ecode3 = SWIG_AsVal_double(obj2, &val3);
26821 if (!SWIG_IsOK(ecode3)) {
26822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26823 }
26824 arg3 = static_cast< wxDouble >(val3);
26825 ecode4 = SWIG_AsVal_double(obj3, &val4);
26826 if (!SWIG_IsOK(ecode4)) {
26827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26828 }
26829 arg4 = static_cast< wxDouble >(val4);
26830 ecode5 = SWIG_AsVal_double(obj4, &val5);
26831 if (!SWIG_IsOK(ecode5)) {
26832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26833 }
26834 arg5 = static_cast< wxDouble >(val5);
26835 ecode6 = SWIG_AsVal_double(obj5, &val6);
26836 if (!SWIG_IsOK(ecode6)) {
26837 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26838 }
26839 arg6 = static_cast< wxDouble >(val6);
26840 {
26841 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
26842 if (PyErr_Occurred()) SWIG_fail;
26843 }
26844 resultobj = SWIG_Py_Void();
26845 return resultobj;
26846 fail:
26847 return NULL;
26848 }
26849
26850
26851 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26852 PyObject *resultobj = 0;
26853 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26854 wxDouble arg2 ;
26855 wxDouble arg3 ;
26856 wxDouble arg4 ;
26857 wxDouble arg5 ;
26858 void *argp1 = 0 ;
26859 int res1 = 0 ;
26860 double val2 ;
26861 int ecode2 = 0 ;
26862 double val3 ;
26863 int ecode3 = 0 ;
26864 double val4 ;
26865 int ecode4 = 0 ;
26866 double val5 ;
26867 int ecode5 = 0 ;
26868 PyObject * obj0 = 0 ;
26869 PyObject * obj1 = 0 ;
26870 PyObject * obj2 = 0 ;
26871 PyObject * obj3 = 0 ;
26872 PyObject * obj4 = 0 ;
26873 char * kwnames[] = {
26874 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26875 };
26876
26877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26881 }
26882 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26883 ecode2 = SWIG_AsVal_double(obj1, &val2);
26884 if (!SWIG_IsOK(ecode2)) {
26885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26886 }
26887 arg2 = static_cast< wxDouble >(val2);
26888 ecode3 = SWIG_AsVal_double(obj2, &val3);
26889 if (!SWIG_IsOK(ecode3)) {
26890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26891 }
26892 arg3 = static_cast< wxDouble >(val3);
26893 ecode4 = SWIG_AsVal_double(obj3, &val4);
26894 if (!SWIG_IsOK(ecode4)) {
26895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26896 }
26897 arg4 = static_cast< wxDouble >(val4);
26898 ecode5 = SWIG_AsVal_double(obj4, &val5);
26899 if (!SWIG_IsOK(ecode5)) {
26900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26901 }
26902 arg5 = static_cast< wxDouble >(val5);
26903 {
26904 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
26905 if (PyErr_Occurred()) SWIG_fail;
26906 }
26907 resultobj = SWIG_Py_Void();
26908 return resultobj;
26909 fail:
26910 return NULL;
26911 }
26912
26913
26914 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26915 PyObject *resultobj = 0;
26916 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26917 wxDouble arg2 ;
26918 wxDouble arg3 ;
26919 wxDouble arg4 ;
26920 wxDouble arg5 ;
26921 wxDouble arg6 ;
26922 void *argp1 = 0 ;
26923 int res1 = 0 ;
26924 double val2 ;
26925 int ecode2 = 0 ;
26926 double val3 ;
26927 int ecode3 = 0 ;
26928 double val4 ;
26929 int ecode4 = 0 ;
26930 double val5 ;
26931 int ecode5 = 0 ;
26932 double val6 ;
26933 int ecode6 = 0 ;
26934 PyObject * obj0 = 0 ;
26935 PyObject * obj1 = 0 ;
26936 PyObject * obj2 = 0 ;
26937 PyObject * obj3 = 0 ;
26938 PyObject * obj4 = 0 ;
26939 PyObject * obj5 = 0 ;
26940 char * kwnames[] = {
26941 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26942 };
26943
26944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26946 if (!SWIG_IsOK(res1)) {
26947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26948 }
26949 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26950 ecode2 = SWIG_AsVal_double(obj1, &val2);
26951 if (!SWIG_IsOK(ecode2)) {
26952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26953 }
26954 arg2 = static_cast< wxDouble >(val2);
26955 ecode3 = SWIG_AsVal_double(obj2, &val3);
26956 if (!SWIG_IsOK(ecode3)) {
26957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26958 }
26959 arg3 = static_cast< wxDouble >(val3);
26960 ecode4 = SWIG_AsVal_double(obj3, &val4);
26961 if (!SWIG_IsOK(ecode4)) {
26962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26963 }
26964 arg4 = static_cast< wxDouble >(val4);
26965 ecode5 = SWIG_AsVal_double(obj4, &val5);
26966 if (!SWIG_IsOK(ecode5)) {
26967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26968 }
26969 arg5 = static_cast< wxDouble >(val5);
26970 ecode6 = SWIG_AsVal_double(obj5, &val6);
26971 if (!SWIG_IsOK(ecode6)) {
26972 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26973 }
26974 arg6 = static_cast< wxDouble >(val6);
26975 {
26976 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26977 if (PyErr_Occurred()) SWIG_fail;
26978 }
26979 resultobj = SWIG_Py_Void();
26980 return resultobj;
26981 fail:
26982 return NULL;
26983 }
26984
26985
26986 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26987 PyObject *resultobj = 0;
26988 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26989 void *result = 0 ;
26990 void *argp1 = 0 ;
26991 int res1 = 0 ;
26992 PyObject *swig_obj[1] ;
26993
26994 if (!args) SWIG_fail;
26995 swig_obj[0] = args;
26996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26997 if (!SWIG_IsOK(res1)) {
26998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26999 }
27000 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27001 {
27002 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27003 if (PyErr_Occurred()) SWIG_fail;
27004 }
27005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27006 return resultobj;
27007 fail:
27008 return NULL;
27009 }
27010
27011
27012 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27013 PyObject *resultobj = 0;
27014 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27015 void *arg2 = (void *) 0 ;
27016 void *argp1 = 0 ;
27017 int res1 = 0 ;
27018 int res2 ;
27019 PyObject * obj0 = 0 ;
27020 PyObject * obj1 = 0 ;
27021 char * kwnames[] = {
27022 (char *) "self",(char *) "p", NULL
27023 };
27024
27025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27027 if (!SWIG_IsOK(res1)) {
27028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27029 }
27030 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27031 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27032 if (!SWIG_IsOK(res2)) {
27033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27034 }
27035 {
27036 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27037 if (PyErr_Occurred()) SWIG_fail;
27038 }
27039 resultobj = SWIG_Py_Void();
27040 return resultobj;
27041 fail:
27042 return NULL;
27043 }
27044
27045
27046 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27047 PyObject *resultobj = 0;
27048 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27049 wxGraphicsMatrix *arg2 = 0 ;
27050 void *argp1 = 0 ;
27051 int res1 = 0 ;
27052 void *argp2 = 0 ;
27053 int res2 = 0 ;
27054 PyObject * obj0 = 0 ;
27055 PyObject * obj1 = 0 ;
27056 char * kwnames[] = {
27057 (char *) "self",(char *) "matrix", NULL
27058 };
27059
27060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27062 if (!SWIG_IsOK(res1)) {
27063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27064 }
27065 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27067 if (!SWIG_IsOK(res2)) {
27068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27069 }
27070 if (!argp2) {
27071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27072 }
27073 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27074 {
27075 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27076 if (PyErr_Occurred()) SWIG_fail;
27077 }
27078 resultobj = SWIG_Py_Void();
27079 return resultobj;
27080 fail:
27081 return NULL;
27082 }
27083
27084
27085 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27086 PyObject *resultobj = 0;
27087 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27088 wxRect2DDouble result;
27089 void *argp1 = 0 ;
27090 int res1 = 0 ;
27091 PyObject *swig_obj[1] ;
27092
27093 if (!args) SWIG_fail;
27094 swig_obj[0] = args;
27095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27096 if (!SWIG_IsOK(res1)) {
27097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27098 }
27099 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27100 {
27101 result = ((wxGraphicsPath const *)arg1)->GetBox();
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27105 return resultobj;
27106 fail:
27107 return NULL;
27108 }
27109
27110
27111 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27112 PyObject *resultobj = 0;
27113 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27114 wxDouble arg2 ;
27115 wxDouble arg3 ;
27116 int arg4 = (int) wxODDEVEN_RULE ;
27117 bool result;
27118 void *argp1 = 0 ;
27119 int res1 = 0 ;
27120 double val2 ;
27121 int ecode2 = 0 ;
27122 double val3 ;
27123 int ecode3 = 0 ;
27124 int val4 ;
27125 int ecode4 = 0 ;
27126
27127 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27129 if (!SWIG_IsOK(res1)) {
27130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27131 }
27132 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27133 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27134 if (!SWIG_IsOK(ecode2)) {
27135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27136 }
27137 arg2 = static_cast< wxDouble >(val2);
27138 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27139 if (!SWIG_IsOK(ecode3)) {
27140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27141 }
27142 arg3 = static_cast< wxDouble >(val3);
27143 if (swig_obj[3]) {
27144 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27145 if (!SWIG_IsOK(ecode4)) {
27146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27147 }
27148 arg4 = static_cast< int >(val4);
27149 }
27150 {
27151 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27152 if (PyErr_Occurred()) SWIG_fail;
27153 }
27154 {
27155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27156 }
27157 return resultobj;
27158 fail:
27159 return NULL;
27160 }
27161
27162
27163 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27164 PyObject *resultobj = 0;
27165 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27166 wxPoint2DDouble *arg2 = 0 ;
27167 int arg3 = (int) wxODDEVEN_RULE ;
27168 bool result;
27169 void *argp1 = 0 ;
27170 int res1 = 0 ;
27171 void *argp2 = 0 ;
27172 int res2 = 0 ;
27173 int val3 ;
27174 int ecode3 = 0 ;
27175
27176 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27178 if (!SWIG_IsOK(res1)) {
27179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27180 }
27181 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27182 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27183 if (!SWIG_IsOK(res2)) {
27184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27185 }
27186 if (!argp2) {
27187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27188 }
27189 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27190 if (swig_obj[2]) {
27191 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27192 if (!SWIG_IsOK(ecode3)) {
27193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27194 }
27195 arg3 = static_cast< int >(val3);
27196 }
27197 {
27198 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27199 if (PyErr_Occurred()) SWIG_fail;
27200 }
27201 {
27202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27203 }
27204 return resultobj;
27205 fail:
27206 return NULL;
27207 }
27208
27209
27210 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27211 int argc;
27212 PyObject *argv[5];
27213
27214 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27215 --argc;
27216 if ((argc >= 2) && (argc <= 3)) {
27217 int _v = 0;
27218 {
27219 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27220 _v = SWIG_CheckState(res);
27221 }
27222 if (!_v) goto check_1;
27223 if (argc > 2) {
27224 {
27225 {
27226 int res = SWIG_AsVal_int(argv[2], NULL);
27227 _v = SWIG_CheckState(res);
27228 }
27229 }
27230 if (!_v) goto check_1;
27231 }
27232 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27233 }
27234 check_1:
27235
27236 if ((argc >= 3) && (argc <= 4)) {
27237 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27238 }
27239
27240 fail:
27241 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27242 return NULL;
27243 }
27244
27245
27246 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27247 PyObject *obj;
27248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27249 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27250 return SWIG_Py_Void();
27251 }
27252
27253 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27254 return SWIG_Python_InitShadowInstance(args);
27255 }
27256
27257 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27258 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27259 return 1;
27260 }
27261
27262
27263 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27264 PyObject *pyobj = 0;
27265
27266 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27267 return pyobj;
27268 }
27269
27270
27271 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27272 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27273 return 1;
27274 }
27275
27276
27277 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27278 PyObject *pyobj = 0;
27279
27280 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27281 return pyobj;
27282 }
27283
27284
27285 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27286 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27287 return 1;
27288 }
27289
27290
27291 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27292 PyObject *pyobj = 0;
27293
27294 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27295 return pyobj;
27296 }
27297
27298
27299 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27300 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27301 return 1;
27302 }
27303
27304
27305 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27306 PyObject *pyobj = 0;
27307
27308 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27309 return pyobj;
27310 }
27311
27312
27313 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27314 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27315 return 1;
27316 }
27317
27318
27319 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27320 PyObject *pyobj = 0;
27321
27322 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27323 return pyobj;
27324 }
27325
27326
27327 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27328 PyObject *resultobj = 0;
27329 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27330 void *argp1 = 0 ;
27331 int res1 = 0 ;
27332 PyObject *swig_obj[1] ;
27333
27334 if (!args) SWIG_fail;
27335 swig_obj[0] = args;
27336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27337 if (!SWIG_IsOK(res1)) {
27338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27339 }
27340 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27341 {
27342 delete arg1;
27343
27344 if (PyErr_Occurred()) SWIG_fail;
27345 }
27346 resultobj = SWIG_Py_Void();
27347 return resultobj;
27348 fail:
27349 return NULL;
27350 }
27351
27352
27353 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27354 PyObject *resultobj = 0;
27355 wxWindowDC *arg1 = 0 ;
27356 wxGraphicsContext *result = 0 ;
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
27359
27360 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27362 if (!SWIG_IsOK(res1)) {
27363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27364 }
27365 if (!argp1) {
27366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27367 }
27368 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27369 {
27370 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27371 if (PyErr_Occurred()) SWIG_fail;
27372 }
27373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27374 return resultobj;
27375 fail:
27376 return NULL;
27377 }
27378
27379
27380 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27381 PyObject *resultobj = 0;
27382 wxWindow *arg1 = (wxWindow *) 0 ;
27383 wxGraphicsContext *result = 0 ;
27384 void *argp1 = 0 ;
27385 int res1 = 0 ;
27386
27387 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27391 }
27392 arg1 = reinterpret_cast< wxWindow * >(argp1);
27393 {
27394 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27395 if (PyErr_Occurred()) SWIG_fail;
27396 }
27397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27405 int argc;
27406 PyObject *argv[2];
27407
27408 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27409 --argc;
27410 if (argc == 1) {
27411 int _v = 0;
27412 {
27413 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27414 _v = SWIG_CheckState(res);
27415 }
27416 if (!_v) goto check_1;
27417 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27418 }
27419 check_1:
27420
27421 if (argc == 1) {
27422 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27423 }
27424
27425 fail:
27426 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27427 return NULL;
27428 }
27429
27430
27431 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27432 PyObject *resultobj = 0;
27433 wxGraphicsContext *result = 0 ;
27434
27435 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27436 {
27437 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27438 if (PyErr_Occurred()) SWIG_fail;
27439 }
27440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27441 return resultobj;
27442 fail:
27443 return NULL;
27444 }
27445
27446
27447 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27448 PyObject *resultobj = 0;
27449 void *arg1 = (void *) 0 ;
27450 wxGraphicsContext *result = 0 ;
27451 int res1 ;
27452 PyObject * obj0 = 0 ;
27453 char * kwnames[] = {
27454 (char *) "context", NULL
27455 };
27456
27457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27458 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27459 if (!SWIG_IsOK(res1)) {
27460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27461 }
27462 {
27463 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27464 if (PyErr_Occurred()) SWIG_fail;
27465 }
27466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27467 return resultobj;
27468 fail:
27469 return NULL;
27470 }
27471
27472
27473 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27474 PyObject *resultobj = 0;
27475 void *arg1 = (void *) 0 ;
27476 wxGraphicsContext *result = 0 ;
27477 int res1 ;
27478 PyObject * obj0 = 0 ;
27479 char * kwnames[] = {
27480 (char *) "window", NULL
27481 };
27482
27483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27484 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27485 if (!SWIG_IsOK(res1)) {
27486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27487 }
27488 {
27489 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27490 if (PyErr_Occurred()) SWIG_fail;
27491 }
27492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27493 return resultobj;
27494 fail:
27495 return NULL;
27496 }
27497
27498
27499 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27500 PyObject *resultobj = 0;
27501 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27502 wxGraphicsPath result;
27503 void *argp1 = 0 ;
27504 int res1 = 0 ;
27505 PyObject *swig_obj[1] ;
27506
27507 if (!args) SWIG_fail;
27508 swig_obj[0] = args;
27509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27510 if (!SWIG_IsOK(res1)) {
27511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27512 }
27513 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27514 {
27515 result = (arg1)->CreatePath();
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27526 PyObject *resultobj = 0;
27527 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27528 wxPen *arg2 = 0 ;
27529 wxGraphicsPen result;
27530 void *argp1 = 0 ;
27531 int res1 = 0 ;
27532 void *argp2 = 0 ;
27533 int res2 = 0 ;
27534 PyObject * obj0 = 0 ;
27535 PyObject * obj1 = 0 ;
27536 char * kwnames[] = {
27537 (char *) "self",(char *) "pen", NULL
27538 };
27539
27540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27542 if (!SWIG_IsOK(res1)) {
27543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27544 }
27545 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27546 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27547 if (!SWIG_IsOK(res2)) {
27548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27549 }
27550 if (!argp2) {
27551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27552 }
27553 arg2 = reinterpret_cast< wxPen * >(argp2);
27554 {
27555 result = (arg1)->CreatePen((wxPen const &)*arg2);
27556 if (PyErr_Occurred()) SWIG_fail;
27557 }
27558 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27559 return resultobj;
27560 fail:
27561 return NULL;
27562 }
27563
27564
27565 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27566 PyObject *resultobj = 0;
27567 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27568 wxBrush *arg2 = 0 ;
27569 wxGraphicsBrush result;
27570 void *argp1 = 0 ;
27571 int res1 = 0 ;
27572 void *argp2 = 0 ;
27573 int res2 = 0 ;
27574 PyObject * obj0 = 0 ;
27575 PyObject * obj1 = 0 ;
27576 char * kwnames[] = {
27577 (char *) "self",(char *) "brush", NULL
27578 };
27579
27580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27582 if (!SWIG_IsOK(res1)) {
27583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27584 }
27585 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27587 if (!SWIG_IsOK(res2)) {
27588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27589 }
27590 if (!argp2) {
27591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27592 }
27593 arg2 = reinterpret_cast< wxBrush * >(argp2);
27594 {
27595 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27596 if (PyErr_Occurred()) SWIG_fail;
27597 }
27598 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27599 return resultobj;
27600 fail:
27601 return NULL;
27602 }
27603
27604
27605 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27606 PyObject *resultobj = 0;
27607 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27608 wxDouble arg2 ;
27609 wxDouble arg3 ;
27610 wxDouble arg4 ;
27611 wxDouble arg5 ;
27612 wxColour *arg6 = 0 ;
27613 wxColour *arg7 = 0 ;
27614 wxGraphicsBrush result;
27615 void *argp1 = 0 ;
27616 int res1 = 0 ;
27617 double val2 ;
27618 int ecode2 = 0 ;
27619 double val3 ;
27620 int ecode3 = 0 ;
27621 double val4 ;
27622 int ecode4 = 0 ;
27623 double val5 ;
27624 int ecode5 = 0 ;
27625 wxColour temp6 ;
27626 wxColour temp7 ;
27627 PyObject * obj0 = 0 ;
27628 PyObject * obj1 = 0 ;
27629 PyObject * obj2 = 0 ;
27630 PyObject * obj3 = 0 ;
27631 PyObject * obj4 = 0 ;
27632 PyObject * obj5 = 0 ;
27633 PyObject * obj6 = 0 ;
27634 char * kwnames[] = {
27635 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27636 };
27637
27638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27640 if (!SWIG_IsOK(res1)) {
27641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27642 }
27643 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27644 ecode2 = SWIG_AsVal_double(obj1, &val2);
27645 if (!SWIG_IsOK(ecode2)) {
27646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27647 }
27648 arg2 = static_cast< wxDouble >(val2);
27649 ecode3 = SWIG_AsVal_double(obj2, &val3);
27650 if (!SWIG_IsOK(ecode3)) {
27651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27652 }
27653 arg3 = static_cast< wxDouble >(val3);
27654 ecode4 = SWIG_AsVal_double(obj3, &val4);
27655 if (!SWIG_IsOK(ecode4)) {
27656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27657 }
27658 arg4 = static_cast< wxDouble >(val4);
27659 ecode5 = SWIG_AsVal_double(obj4, &val5);
27660 if (!SWIG_IsOK(ecode5)) {
27661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27662 }
27663 arg5 = static_cast< wxDouble >(val5);
27664 {
27665 arg6 = &temp6;
27666 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27667 }
27668 {
27669 arg7 = &temp7;
27670 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27671 }
27672 {
27673 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27674 if (PyErr_Occurred()) SWIG_fail;
27675 }
27676 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27677 return resultobj;
27678 fail:
27679 return NULL;
27680 }
27681
27682
27683 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27684 PyObject *resultobj = 0;
27685 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27686 wxDouble arg2 ;
27687 wxDouble arg3 ;
27688 wxDouble arg4 ;
27689 wxDouble arg5 ;
27690 wxDouble arg6 ;
27691 wxColour *arg7 = 0 ;
27692 wxColour *arg8 = 0 ;
27693 wxGraphicsBrush result;
27694 void *argp1 = 0 ;
27695 int res1 = 0 ;
27696 double val2 ;
27697 int ecode2 = 0 ;
27698 double val3 ;
27699 int ecode3 = 0 ;
27700 double val4 ;
27701 int ecode4 = 0 ;
27702 double val5 ;
27703 int ecode5 = 0 ;
27704 double val6 ;
27705 int ecode6 = 0 ;
27706 wxColour temp7 ;
27707 wxColour temp8 ;
27708 PyObject * obj0 = 0 ;
27709 PyObject * obj1 = 0 ;
27710 PyObject * obj2 = 0 ;
27711 PyObject * obj3 = 0 ;
27712 PyObject * obj4 = 0 ;
27713 PyObject * obj5 = 0 ;
27714 PyObject * obj6 = 0 ;
27715 PyObject * obj7 = 0 ;
27716 char * kwnames[] = {
27717 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27718 };
27719
27720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27722 if (!SWIG_IsOK(res1)) {
27723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27724 }
27725 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27726 ecode2 = SWIG_AsVal_double(obj1, &val2);
27727 if (!SWIG_IsOK(ecode2)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27729 }
27730 arg2 = static_cast< wxDouble >(val2);
27731 ecode3 = SWIG_AsVal_double(obj2, &val3);
27732 if (!SWIG_IsOK(ecode3)) {
27733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27734 }
27735 arg3 = static_cast< wxDouble >(val3);
27736 ecode4 = SWIG_AsVal_double(obj3, &val4);
27737 if (!SWIG_IsOK(ecode4)) {
27738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27739 }
27740 arg4 = static_cast< wxDouble >(val4);
27741 ecode5 = SWIG_AsVal_double(obj4, &val5);
27742 if (!SWIG_IsOK(ecode5)) {
27743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27744 }
27745 arg5 = static_cast< wxDouble >(val5);
27746 ecode6 = SWIG_AsVal_double(obj5, &val6);
27747 if (!SWIG_IsOK(ecode6)) {
27748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27749 }
27750 arg6 = static_cast< wxDouble >(val6);
27751 {
27752 arg7 = &temp7;
27753 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27754 }
27755 {
27756 arg8 = &temp8;
27757 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27758 }
27759 {
27760 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27761 if (PyErr_Occurred()) SWIG_fail;
27762 }
27763 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27764 return resultobj;
27765 fail:
27766 return NULL;
27767 }
27768
27769
27770 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj = 0;
27772 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27773 wxFont *arg2 = 0 ;
27774 wxColour const &arg3_defvalue = *wxBLACK ;
27775 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27776 wxGraphicsFont result;
27777 void *argp1 = 0 ;
27778 int res1 = 0 ;
27779 void *argp2 = 0 ;
27780 int res2 = 0 ;
27781 wxColour temp3 ;
27782 PyObject * obj0 = 0 ;
27783 PyObject * obj1 = 0 ;
27784 PyObject * obj2 = 0 ;
27785 char * kwnames[] = {
27786 (char *) "self",(char *) "font",(char *) "col", NULL
27787 };
27788
27789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27791 if (!SWIG_IsOK(res1)) {
27792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27793 }
27794 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27796 if (!SWIG_IsOK(res2)) {
27797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27798 }
27799 if (!argp2) {
27800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27801 }
27802 arg2 = reinterpret_cast< wxFont * >(argp2);
27803 if (obj2) {
27804 {
27805 arg3 = &temp3;
27806 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27807 }
27808 }
27809 {
27810 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
27811 if (PyErr_Occurred()) SWIG_fail;
27812 }
27813 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
27814 return resultobj;
27815 fail:
27816 return NULL;
27817 }
27818
27819
27820 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27821 PyObject *resultobj = 0;
27822 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27823 wxDouble arg2 = (wxDouble) 1.0 ;
27824 wxDouble arg3 = (wxDouble) 0.0 ;
27825 wxDouble arg4 = (wxDouble) 0.0 ;
27826 wxDouble arg5 = (wxDouble) 1.0 ;
27827 wxDouble arg6 = (wxDouble) 0.0 ;
27828 wxDouble arg7 = (wxDouble) 0.0 ;
27829 wxGraphicsMatrix result;
27830 void *argp1 = 0 ;
27831 int res1 = 0 ;
27832 double val2 ;
27833 int ecode2 = 0 ;
27834 double val3 ;
27835 int ecode3 = 0 ;
27836 double val4 ;
27837 int ecode4 = 0 ;
27838 double val5 ;
27839 int ecode5 = 0 ;
27840 double val6 ;
27841 int ecode6 = 0 ;
27842 double val7 ;
27843 int ecode7 = 0 ;
27844 PyObject * obj0 = 0 ;
27845 PyObject * obj1 = 0 ;
27846 PyObject * obj2 = 0 ;
27847 PyObject * obj3 = 0 ;
27848 PyObject * obj4 = 0 ;
27849 PyObject * obj5 = 0 ;
27850 PyObject * obj6 = 0 ;
27851 char * kwnames[] = {
27852 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27853 };
27854
27855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27857 if (!SWIG_IsOK(res1)) {
27858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27859 }
27860 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27861 if (obj1) {
27862 ecode2 = SWIG_AsVal_double(obj1, &val2);
27863 if (!SWIG_IsOK(ecode2)) {
27864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27865 }
27866 arg2 = static_cast< wxDouble >(val2);
27867 }
27868 if (obj2) {
27869 ecode3 = SWIG_AsVal_double(obj2, &val3);
27870 if (!SWIG_IsOK(ecode3)) {
27871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27872 }
27873 arg3 = static_cast< wxDouble >(val3);
27874 }
27875 if (obj3) {
27876 ecode4 = SWIG_AsVal_double(obj3, &val4);
27877 if (!SWIG_IsOK(ecode4)) {
27878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27879 }
27880 arg4 = static_cast< wxDouble >(val4);
27881 }
27882 if (obj4) {
27883 ecode5 = SWIG_AsVal_double(obj4, &val5);
27884 if (!SWIG_IsOK(ecode5)) {
27885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27886 }
27887 arg5 = static_cast< wxDouble >(val5);
27888 }
27889 if (obj5) {
27890 ecode6 = SWIG_AsVal_double(obj5, &val6);
27891 if (!SWIG_IsOK(ecode6)) {
27892 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27893 }
27894 arg6 = static_cast< wxDouble >(val6);
27895 }
27896 if (obj6) {
27897 ecode7 = SWIG_AsVal_double(obj6, &val7);
27898 if (!SWIG_IsOK(ecode7)) {
27899 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27900 }
27901 arg7 = static_cast< wxDouble >(val7);
27902 }
27903 {
27904 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
27905 if (PyErr_Occurred()) SWIG_fail;
27906 }
27907 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
27908 return resultobj;
27909 fail:
27910 return NULL;
27911 }
27912
27913
27914 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27915 PyObject *resultobj = 0;
27916 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27917 void *argp1 = 0 ;
27918 int res1 = 0 ;
27919 PyObject *swig_obj[1] ;
27920
27921 if (!args) SWIG_fail;
27922 swig_obj[0] = args;
27923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27924 if (!SWIG_IsOK(res1)) {
27925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27926 }
27927 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27928 {
27929 (arg1)->PushState();
27930 if (PyErr_Occurred()) SWIG_fail;
27931 }
27932 resultobj = SWIG_Py_Void();
27933 return resultobj;
27934 fail:
27935 return NULL;
27936 }
27937
27938
27939 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27940 PyObject *resultobj = 0;
27941 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27942 void *argp1 = 0 ;
27943 int res1 = 0 ;
27944 PyObject *swig_obj[1] ;
27945
27946 if (!args) SWIG_fail;
27947 swig_obj[0] = args;
27948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27949 if (!SWIG_IsOK(res1)) {
27950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27951 }
27952 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27953 {
27954 (arg1)->PopState();
27955 if (PyErr_Occurred()) SWIG_fail;
27956 }
27957 resultobj = SWIG_Py_Void();
27958 return resultobj;
27959 fail:
27960 return NULL;
27961 }
27962
27963
27964 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27965 PyObject *resultobj = 0;
27966 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27967 wxRegion *arg2 = 0 ;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 void *argp2 = 0 ;
27971 int res2 = 0 ;
27972 PyObject * obj0 = 0 ;
27973 PyObject * obj1 = 0 ;
27974 char * kwnames[] = {
27975 (char *) "self",(char *) "region", NULL
27976 };
27977
27978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
27979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27980 if (!SWIG_IsOK(res1)) {
27981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27982 }
27983 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27985 if (!SWIG_IsOK(res2)) {
27986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
27987 }
27988 if (!argp2) {
27989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
27990 }
27991 arg2 = reinterpret_cast< wxRegion * >(argp2);
27992 {
27993 (arg1)->Clip((wxRegion const &)*arg2);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_Py_Void();
27997 return resultobj;
27998 fail:
27999 return NULL;
28000 }
28001
28002
28003 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28004 PyObject *resultobj = 0;
28005 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28006 wxDouble arg2 ;
28007 wxDouble arg3 ;
28008 wxDouble arg4 ;
28009 wxDouble arg5 ;
28010 void *argp1 = 0 ;
28011 int res1 = 0 ;
28012 double val2 ;
28013 int ecode2 = 0 ;
28014 double val3 ;
28015 int ecode3 = 0 ;
28016 double val4 ;
28017 int ecode4 = 0 ;
28018 double val5 ;
28019 int ecode5 = 0 ;
28020 PyObject * obj0 = 0 ;
28021 PyObject * obj1 = 0 ;
28022 PyObject * obj2 = 0 ;
28023 PyObject * obj3 = 0 ;
28024 PyObject * obj4 = 0 ;
28025 char * kwnames[] = {
28026 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28027 };
28028
28029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28031 if (!SWIG_IsOK(res1)) {
28032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28033 }
28034 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28035 ecode2 = SWIG_AsVal_double(obj1, &val2);
28036 if (!SWIG_IsOK(ecode2)) {
28037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28038 }
28039 arg2 = static_cast< wxDouble >(val2);
28040 ecode3 = SWIG_AsVal_double(obj2, &val3);
28041 if (!SWIG_IsOK(ecode3)) {
28042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28043 }
28044 arg3 = static_cast< wxDouble >(val3);
28045 ecode4 = SWIG_AsVal_double(obj3, &val4);
28046 if (!SWIG_IsOK(ecode4)) {
28047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28048 }
28049 arg4 = static_cast< wxDouble >(val4);
28050 ecode5 = SWIG_AsVal_double(obj4, &val5);
28051 if (!SWIG_IsOK(ecode5)) {
28052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28053 }
28054 arg5 = static_cast< wxDouble >(val5);
28055 {
28056 (arg1)->Clip(arg2,arg3,arg4,arg5);
28057 if (PyErr_Occurred()) SWIG_fail;
28058 }
28059 resultobj = SWIG_Py_Void();
28060 return resultobj;
28061 fail:
28062 return NULL;
28063 }
28064
28065
28066 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28067 PyObject *resultobj = 0;
28068 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28069 void *argp1 = 0 ;
28070 int res1 = 0 ;
28071 PyObject *swig_obj[1] ;
28072
28073 if (!args) SWIG_fail;
28074 swig_obj[0] = args;
28075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28076 if (!SWIG_IsOK(res1)) {
28077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28078 }
28079 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28080 {
28081 (arg1)->ResetClip();
28082 if (PyErr_Occurred()) SWIG_fail;
28083 }
28084 resultobj = SWIG_Py_Void();
28085 return resultobj;
28086 fail:
28087 return NULL;
28088 }
28089
28090
28091 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28092 PyObject *resultobj = 0;
28093 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28094 void *result = 0 ;
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
28097 PyObject *swig_obj[1] ;
28098
28099 if (!args) SWIG_fail;
28100 swig_obj[0] = args;
28101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28102 if (!SWIG_IsOK(res1)) {
28103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28104 }
28105 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28106 {
28107 result = (void *)(arg1)->GetNativeContext();
28108 if (PyErr_Occurred()) SWIG_fail;
28109 }
28110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28111 return resultobj;
28112 fail:
28113 return NULL;
28114 }
28115
28116
28117 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28118 PyObject *resultobj = 0;
28119 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28120 wxDouble arg2 ;
28121 wxDouble arg3 ;
28122 void *argp1 = 0 ;
28123 int res1 = 0 ;
28124 double val2 ;
28125 int ecode2 = 0 ;
28126 double val3 ;
28127 int ecode3 = 0 ;
28128 PyObject * obj0 = 0 ;
28129 PyObject * obj1 = 0 ;
28130 PyObject * obj2 = 0 ;
28131 char * kwnames[] = {
28132 (char *) "self",(char *) "dx",(char *) "dy", NULL
28133 };
28134
28135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28137 if (!SWIG_IsOK(res1)) {
28138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28139 }
28140 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28141 ecode2 = SWIG_AsVal_double(obj1, &val2);
28142 if (!SWIG_IsOK(ecode2)) {
28143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28144 }
28145 arg2 = static_cast< wxDouble >(val2);
28146 ecode3 = SWIG_AsVal_double(obj2, &val3);
28147 if (!SWIG_IsOK(ecode3)) {
28148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28149 }
28150 arg3 = static_cast< wxDouble >(val3);
28151 {
28152 (arg1)->Translate(arg2,arg3);
28153 if (PyErr_Occurred()) SWIG_fail;
28154 }
28155 resultobj = SWIG_Py_Void();
28156 return resultobj;
28157 fail:
28158 return NULL;
28159 }
28160
28161
28162 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28163 PyObject *resultobj = 0;
28164 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28165 wxDouble arg2 ;
28166 wxDouble arg3 ;
28167 void *argp1 = 0 ;
28168 int res1 = 0 ;
28169 double val2 ;
28170 int ecode2 = 0 ;
28171 double val3 ;
28172 int ecode3 = 0 ;
28173 PyObject * obj0 = 0 ;
28174 PyObject * obj1 = 0 ;
28175 PyObject * obj2 = 0 ;
28176 char * kwnames[] = {
28177 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28178 };
28179
28180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28182 if (!SWIG_IsOK(res1)) {
28183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28184 }
28185 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28186 ecode2 = SWIG_AsVal_double(obj1, &val2);
28187 if (!SWIG_IsOK(ecode2)) {
28188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28189 }
28190 arg2 = static_cast< wxDouble >(val2);
28191 ecode3 = SWIG_AsVal_double(obj2, &val3);
28192 if (!SWIG_IsOK(ecode3)) {
28193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28194 }
28195 arg3 = static_cast< wxDouble >(val3);
28196 {
28197 (arg1)->Scale(arg2,arg3);
28198 if (PyErr_Occurred()) SWIG_fail;
28199 }
28200 resultobj = SWIG_Py_Void();
28201 return resultobj;
28202 fail:
28203 return NULL;
28204 }
28205
28206
28207 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28208 PyObject *resultobj = 0;
28209 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28210 wxDouble arg2 ;
28211 void *argp1 = 0 ;
28212 int res1 = 0 ;
28213 double val2 ;
28214 int ecode2 = 0 ;
28215 PyObject * obj0 = 0 ;
28216 PyObject * obj1 = 0 ;
28217 char * kwnames[] = {
28218 (char *) "self",(char *) "angle", NULL
28219 };
28220
28221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28223 if (!SWIG_IsOK(res1)) {
28224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28225 }
28226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28227 ecode2 = SWIG_AsVal_double(obj1, &val2);
28228 if (!SWIG_IsOK(ecode2)) {
28229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28230 }
28231 arg2 = static_cast< wxDouble >(val2);
28232 {
28233 (arg1)->Rotate(arg2);
28234 if (PyErr_Occurred()) SWIG_fail;
28235 }
28236 resultobj = SWIG_Py_Void();
28237 return resultobj;
28238 fail:
28239 return NULL;
28240 }
28241
28242
28243 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28244 PyObject *resultobj = 0;
28245 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28246 wxGraphicsMatrix *arg2 = 0 ;
28247 void *argp1 = 0 ;
28248 int res1 = 0 ;
28249 void *argp2 = 0 ;
28250 int res2 = 0 ;
28251 PyObject * obj0 = 0 ;
28252 PyObject * obj1 = 0 ;
28253 char * kwnames[] = {
28254 (char *) "self",(char *) "matrix", NULL
28255 };
28256
28257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28259 if (!SWIG_IsOK(res1)) {
28260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28261 }
28262 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28264 if (!SWIG_IsOK(res2)) {
28265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28266 }
28267 if (!argp2) {
28268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28269 }
28270 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28271 {
28272 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28273 if (PyErr_Occurred()) SWIG_fail;
28274 }
28275 resultobj = SWIG_Py_Void();
28276 return resultobj;
28277 fail:
28278 return NULL;
28279 }
28280
28281
28282 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28283 PyObject *resultobj = 0;
28284 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28285 wxGraphicsMatrix *arg2 = 0 ;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 void *argp2 = 0 ;
28289 int res2 = 0 ;
28290 PyObject * obj0 = 0 ;
28291 PyObject * obj1 = 0 ;
28292 char * kwnames[] = {
28293 (char *) "self",(char *) "matrix", NULL
28294 };
28295
28296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28298 if (!SWIG_IsOK(res1)) {
28299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28300 }
28301 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28303 if (!SWIG_IsOK(res2)) {
28304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28305 }
28306 if (!argp2) {
28307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28308 }
28309 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28310 {
28311 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28312 if (PyErr_Occurred()) SWIG_fail;
28313 }
28314 resultobj = SWIG_Py_Void();
28315 return resultobj;
28316 fail:
28317 return NULL;
28318 }
28319
28320
28321 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28322 PyObject *resultobj = 0;
28323 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28324 wxGraphicsMatrix result;
28325 void *argp1 = 0 ;
28326 int res1 = 0 ;
28327 PyObject *swig_obj[1] ;
28328
28329 if (!args) SWIG_fail;
28330 swig_obj[0] = args;
28331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28332 if (!SWIG_IsOK(res1)) {
28333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28334 }
28335 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28336 {
28337 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28341 return resultobj;
28342 fail:
28343 return NULL;
28344 }
28345
28346
28347 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28348 PyObject *resultobj = 0;
28349 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28350 wxGraphicsPen *arg2 = 0 ;
28351 void *argp1 = 0 ;
28352 int res1 = 0 ;
28353 void *argp2 = 0 ;
28354 int res2 = 0 ;
28355
28356 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28358 if (!SWIG_IsOK(res1)) {
28359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28360 }
28361 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28362 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28363 if (!SWIG_IsOK(res2)) {
28364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28365 }
28366 if (!argp2) {
28367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28368 }
28369 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28370 {
28371 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_Py_Void();
28375 return resultobj;
28376 fail:
28377 return NULL;
28378 }
28379
28380
28381 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28382 PyObject *resultobj = 0;
28383 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28384 wxPen *arg2 = 0 ;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 void *argp2 = 0 ;
28388 int res2 = 0 ;
28389
28390 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28394 }
28395 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28396 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28397 if (!SWIG_IsOK(res2)) {
28398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28399 }
28400 if (!argp2) {
28401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28402 }
28403 arg2 = reinterpret_cast< wxPen * >(argp2);
28404 {
28405 (arg1)->SetPen((wxPen const &)*arg2);
28406 if (PyErr_Occurred()) SWIG_fail;
28407 }
28408 resultobj = SWIG_Py_Void();
28409 return resultobj;
28410 fail:
28411 return NULL;
28412 }
28413
28414
28415 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28416 int argc;
28417 PyObject *argv[3];
28418
28419 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28420 --argc;
28421 if (argc == 2) {
28422 int _v = 0;
28423 {
28424 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28425 _v = SWIG_CheckState(res);
28426 }
28427 if (!_v) goto check_1;
28428 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28429 }
28430 check_1:
28431
28432 if (argc == 2) {
28433 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28434 }
28435
28436 fail:
28437 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28438 return NULL;
28439 }
28440
28441
28442 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28443 PyObject *resultobj = 0;
28444 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28445 wxGraphicsBrush *arg2 = 0 ;
28446 void *argp1 = 0 ;
28447 int res1 = 0 ;
28448 void *argp2 = 0 ;
28449 int res2 = 0 ;
28450
28451 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28453 if (!SWIG_IsOK(res1)) {
28454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28455 }
28456 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28457 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28458 if (!SWIG_IsOK(res2)) {
28459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28460 }
28461 if (!argp2) {
28462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28463 }
28464 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28465 {
28466 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_Py_Void();
28470 return resultobj;
28471 fail:
28472 return NULL;
28473 }
28474
28475
28476 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28477 PyObject *resultobj = 0;
28478 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28479 wxBrush *arg2 = 0 ;
28480 void *argp1 = 0 ;
28481 int res1 = 0 ;
28482 void *argp2 = 0 ;
28483 int res2 = 0 ;
28484
28485 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28487 if (!SWIG_IsOK(res1)) {
28488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28489 }
28490 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28491 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28492 if (!SWIG_IsOK(res2)) {
28493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28494 }
28495 if (!argp2) {
28496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28497 }
28498 arg2 = reinterpret_cast< wxBrush * >(argp2);
28499 {
28500 (arg1)->SetBrush((wxBrush const &)*arg2);
28501 if (PyErr_Occurred()) SWIG_fail;
28502 }
28503 resultobj = SWIG_Py_Void();
28504 return resultobj;
28505 fail:
28506 return NULL;
28507 }
28508
28509
28510 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28511 int argc;
28512 PyObject *argv[3];
28513
28514 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28515 --argc;
28516 if (argc == 2) {
28517 int _v = 0;
28518 {
28519 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28520 _v = SWIG_CheckState(res);
28521 }
28522 if (!_v) goto check_1;
28523 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28524 }
28525 check_1:
28526
28527 if (argc == 2) {
28528 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28529 }
28530
28531 fail:
28532 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28533 return NULL;
28534 }
28535
28536
28537 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28538 PyObject *resultobj = 0;
28539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28540 wxGraphicsFont *arg2 = 0 ;
28541 void *argp1 = 0 ;
28542 int res1 = 0 ;
28543 void *argp2 = 0 ;
28544 int res2 = 0 ;
28545
28546 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28548 if (!SWIG_IsOK(res1)) {
28549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28550 }
28551 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28552 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28553 if (!SWIG_IsOK(res2)) {
28554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28555 }
28556 if (!argp2) {
28557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28558 }
28559 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28560 {
28561 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 resultobj = SWIG_Py_Void();
28565 return resultobj;
28566 fail:
28567 return NULL;
28568 }
28569
28570
28571 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28572 PyObject *resultobj = 0;
28573 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28574 wxFont *arg2 = 0 ;
28575 wxColour const &arg3_defvalue = *wxBLACK ;
28576 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28577 void *argp1 = 0 ;
28578 int res1 = 0 ;
28579 void *argp2 = 0 ;
28580 int res2 = 0 ;
28581 wxColour temp3 ;
28582
28583 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28585 if (!SWIG_IsOK(res1)) {
28586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28587 }
28588 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28589 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28590 if (!SWIG_IsOK(res2)) {
28591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28592 }
28593 if (!argp2) {
28594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28595 }
28596 arg2 = reinterpret_cast< wxFont * >(argp2);
28597 if (swig_obj[2]) {
28598 {
28599 arg3 = &temp3;
28600 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28601 }
28602 }
28603 {
28604 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28605 if (PyErr_Occurred()) SWIG_fail;
28606 }
28607 resultobj = SWIG_Py_Void();
28608 return resultobj;
28609 fail:
28610 return NULL;
28611 }
28612
28613
28614 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28615 int argc;
28616 PyObject *argv[4];
28617
28618 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28619 --argc;
28620 if (argc == 2) {
28621 int _v = 0;
28622 {
28623 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28624 _v = SWIG_CheckState(res);
28625 }
28626 if (!_v) goto check_1;
28627 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28628 }
28629 check_1:
28630
28631 if ((argc >= 2) && (argc <= 3)) {
28632 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28633 }
28634
28635 fail:
28636 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28637 return NULL;
28638 }
28639
28640
28641 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28642 PyObject *resultobj = 0;
28643 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28644 wxGraphicsPath *arg2 = 0 ;
28645 void *argp1 = 0 ;
28646 int res1 = 0 ;
28647 void *argp2 = 0 ;
28648 int res2 = 0 ;
28649 PyObject * obj0 = 0 ;
28650 PyObject * obj1 = 0 ;
28651 char * kwnames[] = {
28652 (char *) "self",(char *) "path", NULL
28653 };
28654
28655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28657 if (!SWIG_IsOK(res1)) {
28658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28659 }
28660 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28662 if (!SWIG_IsOK(res2)) {
28663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28664 }
28665 if (!argp2) {
28666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28667 }
28668 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28669 {
28670 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
28671 if (PyErr_Occurred()) SWIG_fail;
28672 }
28673 resultobj = SWIG_Py_Void();
28674 return resultobj;
28675 fail:
28676 return NULL;
28677 }
28678
28679
28680 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28681 PyObject *resultobj = 0;
28682 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28683 wxGraphicsPath *arg2 = 0 ;
28684 int arg3 = (int) wxODDEVEN_RULE ;
28685 void *argp1 = 0 ;
28686 int res1 = 0 ;
28687 void *argp2 = 0 ;
28688 int res2 = 0 ;
28689 int val3 ;
28690 int ecode3 = 0 ;
28691 PyObject * obj0 = 0 ;
28692 PyObject * obj1 = 0 ;
28693 PyObject * obj2 = 0 ;
28694 char * kwnames[] = {
28695 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28696 };
28697
28698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28700 if (!SWIG_IsOK(res1)) {
28701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28702 }
28703 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28705 if (!SWIG_IsOK(res2)) {
28706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28707 }
28708 if (!argp2) {
28709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28710 }
28711 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28712 if (obj2) {
28713 ecode3 = SWIG_AsVal_int(obj2, &val3);
28714 if (!SWIG_IsOK(ecode3)) {
28715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28716 }
28717 arg3 = static_cast< int >(val3);
28718 }
28719 {
28720 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 resultobj = SWIG_Py_Void();
28724 return resultobj;
28725 fail:
28726 return NULL;
28727 }
28728
28729
28730 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28731 PyObject *resultobj = 0;
28732 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28733 wxGraphicsPath *arg2 = 0 ;
28734 int arg3 = (int) wxODDEVEN_RULE ;
28735 void *argp1 = 0 ;
28736 int res1 = 0 ;
28737 void *argp2 = 0 ;
28738 int res2 = 0 ;
28739 int val3 ;
28740 int ecode3 = 0 ;
28741 PyObject * obj0 = 0 ;
28742 PyObject * obj1 = 0 ;
28743 PyObject * obj2 = 0 ;
28744 char * kwnames[] = {
28745 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28746 };
28747
28748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28750 if (!SWIG_IsOK(res1)) {
28751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28752 }
28753 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28755 if (!SWIG_IsOK(res2)) {
28756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28757 }
28758 if (!argp2) {
28759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28760 }
28761 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28762 if (obj2) {
28763 ecode3 = SWIG_AsVal_int(obj2, &val3);
28764 if (!SWIG_IsOK(ecode3)) {
28765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28766 }
28767 arg3 = static_cast< int >(val3);
28768 }
28769 {
28770 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
28771 if (PyErr_Occurred()) SWIG_fail;
28772 }
28773 resultobj = SWIG_Py_Void();
28774 return resultobj;
28775 fail:
28776 return NULL;
28777 }
28778
28779
28780 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28781 PyObject *resultobj = 0;
28782 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28783 wxString *arg2 = 0 ;
28784 wxDouble arg3 ;
28785 wxDouble arg4 ;
28786 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
28787 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
28788 void *argp1 = 0 ;
28789 int res1 = 0 ;
28790 bool temp2 = false ;
28791 double val3 ;
28792 int ecode3 = 0 ;
28793 double val4 ;
28794 int ecode4 = 0 ;
28795 void *argp5 = 0 ;
28796 int res5 = 0 ;
28797 PyObject * obj0 = 0 ;
28798 PyObject * obj1 = 0 ;
28799 PyObject * obj2 = 0 ;
28800 PyObject * obj3 = 0 ;
28801 PyObject * obj4 = 0 ;
28802 char * kwnames[] = {
28803 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
28804 };
28805
28806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28808 if (!SWIG_IsOK(res1)) {
28809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28810 }
28811 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28812 {
28813 arg2 = wxString_in_helper(obj1);
28814 if (arg2 == NULL) SWIG_fail;
28815 temp2 = true;
28816 }
28817 ecode3 = SWIG_AsVal_double(obj2, &val3);
28818 if (!SWIG_IsOK(ecode3)) {
28819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28820 }
28821 arg3 = static_cast< wxDouble >(val3);
28822 ecode4 = SWIG_AsVal_double(obj3, &val4);
28823 if (!SWIG_IsOK(ecode4)) {
28824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28825 }
28826 arg4 = static_cast< wxDouble >(val4);
28827 if (obj4) {
28828 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28829 if (!SWIG_IsOK(res5)) {
28830 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28831 }
28832 if (!argp5) {
28833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28834 }
28835 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
28836 }
28837 {
28838 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 resultobj = SWIG_Py_Void();
28842 {
28843 if (temp2)
28844 delete arg2;
28845 }
28846 return resultobj;
28847 fail:
28848 {
28849 if (temp2)
28850 delete arg2;
28851 }
28852 return NULL;
28853 }
28854
28855
28856 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28857 PyObject *resultobj = 0;
28858 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28859 wxString *arg2 = 0 ;
28860 wxDouble arg3 ;
28861 wxDouble arg4 ;
28862 wxDouble arg5 ;
28863 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
28864 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
28865 void *argp1 = 0 ;
28866 int res1 = 0 ;
28867 bool temp2 = false ;
28868 double val3 ;
28869 int ecode3 = 0 ;
28870 double val4 ;
28871 int ecode4 = 0 ;
28872 double val5 ;
28873 int ecode5 = 0 ;
28874 void *argp6 = 0 ;
28875 int res6 = 0 ;
28876 PyObject * obj0 = 0 ;
28877 PyObject * obj1 = 0 ;
28878 PyObject * obj2 = 0 ;
28879 PyObject * obj3 = 0 ;
28880 PyObject * obj4 = 0 ;
28881 PyObject * obj5 = 0 ;
28882 char * kwnames[] = {
28883 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
28884 };
28885
28886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28888 if (!SWIG_IsOK(res1)) {
28889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28890 }
28891 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28892 {
28893 arg2 = wxString_in_helper(obj1);
28894 if (arg2 == NULL) SWIG_fail;
28895 temp2 = true;
28896 }
28897 ecode3 = SWIG_AsVal_double(obj2, &val3);
28898 if (!SWIG_IsOK(ecode3)) {
28899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
28900 }
28901 arg3 = static_cast< wxDouble >(val3);
28902 ecode4 = SWIG_AsVal_double(obj3, &val4);
28903 if (!SWIG_IsOK(ecode4)) {
28904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
28905 }
28906 arg4 = static_cast< wxDouble >(val4);
28907 ecode5 = SWIG_AsVal_double(obj4, &val5);
28908 if (!SWIG_IsOK(ecode5)) {
28909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
28910 }
28911 arg5 = static_cast< wxDouble >(val5);
28912 if (obj5) {
28913 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28914 if (!SWIG_IsOK(res6)) {
28915 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28916 }
28917 if (!argp6) {
28918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28919 }
28920 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
28921 }
28922 {
28923 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
28924 if (PyErr_Occurred()) SWIG_fail;
28925 }
28926 resultobj = SWIG_Py_Void();
28927 {
28928 if (temp2)
28929 delete arg2;
28930 }
28931 return resultobj;
28932 fail:
28933 {
28934 if (temp2)
28935 delete arg2;
28936 }
28937 return NULL;
28938 }
28939
28940
28941 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28942 PyObject *resultobj = 0;
28943 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28944 wxString *arg2 = 0 ;
28945 wxDouble *arg3 = (wxDouble *) 0 ;
28946 wxDouble *arg4 = (wxDouble *) 0 ;
28947 wxDouble *arg5 = (wxDouble *) 0 ;
28948 wxDouble *arg6 = (wxDouble *) 0 ;
28949 void *argp1 = 0 ;
28950 int res1 = 0 ;
28951 bool temp2 = false ;
28952 wxDouble temp3 ;
28953 int res3 = SWIG_TMPOBJ ;
28954 wxDouble temp4 ;
28955 int res4 = SWIG_TMPOBJ ;
28956 wxDouble temp5 ;
28957 int res5 = SWIG_TMPOBJ ;
28958 wxDouble temp6 ;
28959 int res6 = SWIG_TMPOBJ ;
28960 PyObject * obj0 = 0 ;
28961 PyObject * obj1 = 0 ;
28962 char * kwnames[] = {
28963 (char *) "self",(char *) "text", NULL
28964 };
28965
28966 arg3 = &temp3;
28967 arg4 = &temp4;
28968 arg5 = &temp5;
28969 arg6 = &temp6;
28970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28972 if (!SWIG_IsOK(res1)) {
28973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28974 }
28975 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28976 {
28977 arg2 = wxString_in_helper(obj1);
28978 if (arg2 == NULL) SWIG_fail;
28979 temp2 = true;
28980 }
28981 {
28982 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
28983 if (PyErr_Occurred()) SWIG_fail;
28984 }
28985 resultobj = SWIG_Py_Void();
28986 if (SWIG_IsTmpObj(res3)) {
28987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28988 } else {
28989 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28991 }
28992 if (SWIG_IsTmpObj(res4)) {
28993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28994 } else {
28995 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28997 }
28998 if (SWIG_IsTmpObj(res5)) {
28999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29000 } else {
29001 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29003 }
29004 if (SWIG_IsTmpObj(res6)) {
29005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29006 } else {
29007 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29009 }
29010 {
29011 if (temp2)
29012 delete arg2;
29013 }
29014 return resultobj;
29015 fail:
29016 {
29017 if (temp2)
29018 delete arg2;
29019 }
29020 return NULL;
29021 }
29022
29023
29024 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29025 PyObject *resultobj = 0;
29026 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29027 wxString *arg2 = 0 ;
29028 PyObject *result = 0 ;
29029 void *argp1 = 0 ;
29030 int res1 = 0 ;
29031 bool temp2 = false ;
29032 PyObject * obj0 = 0 ;
29033 PyObject * obj1 = 0 ;
29034 char * kwnames[] = {
29035 (char *) "self",(char *) "text", NULL
29036 };
29037
29038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29040 if (!SWIG_IsOK(res1)) {
29041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29042 }
29043 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29044 {
29045 arg2 = wxString_in_helper(obj1);
29046 if (arg2 == NULL) SWIG_fail;
29047 temp2 = true;
29048 }
29049 {
29050 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29051 if (PyErr_Occurred()) SWIG_fail;
29052 }
29053 resultobj = result;
29054 {
29055 if (temp2)
29056 delete arg2;
29057 }
29058 return resultobj;
29059 fail:
29060 {
29061 if (temp2)
29062 delete arg2;
29063 }
29064 return NULL;
29065 }
29066
29067
29068 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29069 PyObject *resultobj = 0;
29070 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29071 wxString *arg2 = 0 ;
29072 wxArrayDouble result;
29073 void *argp1 = 0 ;
29074 int res1 = 0 ;
29075 bool temp2 = false ;
29076 PyObject * obj0 = 0 ;
29077 PyObject * obj1 = 0 ;
29078 char * kwnames[] = {
29079 (char *) "self",(char *) "text", NULL
29080 };
29081
29082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29084 if (!SWIG_IsOK(res1)) {
29085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29086 }
29087 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29088 {
29089 arg2 = wxString_in_helper(obj1);
29090 if (arg2 == NULL) SWIG_fail;
29091 temp2 = true;
29092 }
29093 {
29094 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29095 if (PyErr_Occurred()) SWIG_fail;
29096 }
29097 {
29098 resultobj = wxArrayDouble2PyList_helper(result);
29099 }
29100 {
29101 if (temp2)
29102 delete arg2;
29103 }
29104 return resultobj;
29105 fail:
29106 {
29107 if (temp2)
29108 delete arg2;
29109 }
29110 return NULL;
29111 }
29112
29113
29114 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29115 PyObject *resultobj = 0;
29116 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29117 wxBitmap *arg2 = 0 ;
29118 wxDouble arg3 ;
29119 wxDouble arg4 ;
29120 wxDouble arg5 ;
29121 wxDouble arg6 ;
29122 void *argp1 = 0 ;
29123 int res1 = 0 ;
29124 void *argp2 = 0 ;
29125 int res2 = 0 ;
29126 double val3 ;
29127 int ecode3 = 0 ;
29128 double val4 ;
29129 int ecode4 = 0 ;
29130 double val5 ;
29131 int ecode5 = 0 ;
29132 double val6 ;
29133 int ecode6 = 0 ;
29134 PyObject * obj0 = 0 ;
29135 PyObject * obj1 = 0 ;
29136 PyObject * obj2 = 0 ;
29137 PyObject * obj3 = 0 ;
29138 PyObject * obj4 = 0 ;
29139 PyObject * obj5 = 0 ;
29140 char * kwnames[] = {
29141 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29142 };
29143
29144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29146 if (!SWIG_IsOK(res1)) {
29147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29148 }
29149 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29151 if (!SWIG_IsOK(res2)) {
29152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29153 }
29154 if (!argp2) {
29155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29156 }
29157 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29158 ecode3 = SWIG_AsVal_double(obj2, &val3);
29159 if (!SWIG_IsOK(ecode3)) {
29160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29161 }
29162 arg3 = static_cast< wxDouble >(val3);
29163 ecode4 = SWIG_AsVal_double(obj3, &val4);
29164 if (!SWIG_IsOK(ecode4)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29166 }
29167 arg4 = static_cast< wxDouble >(val4);
29168 ecode5 = SWIG_AsVal_double(obj4, &val5);
29169 if (!SWIG_IsOK(ecode5)) {
29170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29171 }
29172 arg5 = static_cast< wxDouble >(val5);
29173 ecode6 = SWIG_AsVal_double(obj5, &val6);
29174 if (!SWIG_IsOK(ecode6)) {
29175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29176 }
29177 arg6 = static_cast< wxDouble >(val6);
29178 {
29179 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29180 if (PyErr_Occurred()) SWIG_fail;
29181 }
29182 resultobj = SWIG_Py_Void();
29183 return resultobj;
29184 fail:
29185 return NULL;
29186 }
29187
29188
29189 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29190 PyObject *resultobj = 0;
29191 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29192 wxIcon *arg2 = 0 ;
29193 wxDouble arg3 ;
29194 wxDouble arg4 ;
29195 wxDouble arg5 ;
29196 wxDouble arg6 ;
29197 void *argp1 = 0 ;
29198 int res1 = 0 ;
29199 void *argp2 = 0 ;
29200 int res2 = 0 ;
29201 double val3 ;
29202 int ecode3 = 0 ;
29203 double val4 ;
29204 int ecode4 = 0 ;
29205 double val5 ;
29206 int ecode5 = 0 ;
29207 double val6 ;
29208 int ecode6 = 0 ;
29209 PyObject * obj0 = 0 ;
29210 PyObject * obj1 = 0 ;
29211 PyObject * obj2 = 0 ;
29212 PyObject * obj3 = 0 ;
29213 PyObject * obj4 = 0 ;
29214 PyObject * obj5 = 0 ;
29215 char * kwnames[] = {
29216 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29217 };
29218
29219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29221 if (!SWIG_IsOK(res1)) {
29222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29223 }
29224 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29226 if (!SWIG_IsOK(res2)) {
29227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29228 }
29229 if (!argp2) {
29230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29231 }
29232 arg2 = reinterpret_cast< wxIcon * >(argp2);
29233 ecode3 = SWIG_AsVal_double(obj2, &val3);
29234 if (!SWIG_IsOK(ecode3)) {
29235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29236 }
29237 arg3 = static_cast< wxDouble >(val3);
29238 ecode4 = SWIG_AsVal_double(obj3, &val4);
29239 if (!SWIG_IsOK(ecode4)) {
29240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29241 }
29242 arg4 = static_cast< wxDouble >(val4);
29243 ecode5 = SWIG_AsVal_double(obj4, &val5);
29244 if (!SWIG_IsOK(ecode5)) {
29245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29246 }
29247 arg5 = static_cast< wxDouble >(val5);
29248 ecode6 = SWIG_AsVal_double(obj5, &val6);
29249 if (!SWIG_IsOK(ecode6)) {
29250 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29251 }
29252 arg6 = static_cast< wxDouble >(val6);
29253 {
29254 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29255 if (PyErr_Occurred()) SWIG_fail;
29256 }
29257 resultobj = SWIG_Py_Void();
29258 return resultobj;
29259 fail:
29260 return NULL;
29261 }
29262
29263
29264 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29265 PyObject *resultobj = 0;
29266 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29267 wxDouble arg2 ;
29268 wxDouble arg3 ;
29269 wxDouble arg4 ;
29270 wxDouble arg5 ;
29271 void *argp1 = 0 ;
29272 int res1 = 0 ;
29273 double val2 ;
29274 int ecode2 = 0 ;
29275 double val3 ;
29276 int ecode3 = 0 ;
29277 double val4 ;
29278 int ecode4 = 0 ;
29279 double val5 ;
29280 int ecode5 = 0 ;
29281 PyObject * obj0 = 0 ;
29282 PyObject * obj1 = 0 ;
29283 PyObject * obj2 = 0 ;
29284 PyObject * obj3 = 0 ;
29285 PyObject * obj4 = 0 ;
29286 char * kwnames[] = {
29287 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29288 };
29289
29290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29292 if (!SWIG_IsOK(res1)) {
29293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29294 }
29295 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29296 ecode2 = SWIG_AsVal_double(obj1, &val2);
29297 if (!SWIG_IsOK(ecode2)) {
29298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29299 }
29300 arg2 = static_cast< wxDouble >(val2);
29301 ecode3 = SWIG_AsVal_double(obj2, &val3);
29302 if (!SWIG_IsOK(ecode3)) {
29303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29304 }
29305 arg3 = static_cast< wxDouble >(val3);
29306 ecode4 = SWIG_AsVal_double(obj3, &val4);
29307 if (!SWIG_IsOK(ecode4)) {
29308 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29309 }
29310 arg4 = static_cast< wxDouble >(val4);
29311 ecode5 = SWIG_AsVal_double(obj4, &val5);
29312 if (!SWIG_IsOK(ecode5)) {
29313 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29314 }
29315 arg5 = static_cast< wxDouble >(val5);
29316 {
29317 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29318 if (PyErr_Occurred()) SWIG_fail;
29319 }
29320 resultobj = SWIG_Py_Void();
29321 return resultobj;
29322 fail:
29323 return NULL;
29324 }
29325
29326
29327 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29328 PyObject *resultobj = 0;
29329 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29330 size_t arg2 ;
29331 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29332 void *argp1 = 0 ;
29333 int res1 = 0 ;
29334 PyObject * obj0 = 0 ;
29335 PyObject * obj1 = 0 ;
29336 char * kwnames[] = {
29337 (char *) "self",(char *) "points", NULL
29338 };
29339
29340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29342 if (!SWIG_IsOK(res1)) {
29343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29344 }
29345 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29346 {
29347 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29348 if (arg3 == NULL) SWIG_fail;
29349 }
29350 {
29351 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29352 if (PyErr_Occurred()) SWIG_fail;
29353 }
29354 resultobj = SWIG_Py_Void();
29355 {
29356 if (arg3) delete [] arg3;
29357 }
29358 return resultobj;
29359 fail:
29360 {
29361 if (arg3) delete [] arg3;
29362 }
29363 return NULL;
29364 }
29365
29366
29367 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29368 PyObject *resultobj = 0;
29369 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29370 PyObject *arg2 = (PyObject *) 0 ;
29371 PyObject *arg3 = (PyObject *) 0 ;
29372 void *argp1 = 0 ;
29373 int res1 = 0 ;
29374 PyObject * obj0 = 0 ;
29375 PyObject * obj1 = 0 ;
29376 PyObject * obj2 = 0 ;
29377 char * kwnames[] = {
29378 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29379 };
29380
29381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29383 if (!SWIG_IsOK(res1)) {
29384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29385 }
29386 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29387 arg2 = obj1;
29388 arg3 = obj2;
29389 {
29390 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29391 if (PyErr_Occurred()) SWIG_fail;
29392 }
29393 resultobj = SWIG_Py_Void();
29394 return resultobj;
29395 fail:
29396 return NULL;
29397 }
29398
29399
29400 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29401 PyObject *resultobj = 0;
29402 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29403 size_t arg2 ;
29404 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29405 int arg4 = (int) wxODDEVEN_RULE ;
29406 void *argp1 = 0 ;
29407 int res1 = 0 ;
29408 int val4 ;
29409 int ecode4 = 0 ;
29410 PyObject * obj0 = 0 ;
29411 PyObject * obj1 = 0 ;
29412 PyObject * obj2 = 0 ;
29413 char * kwnames[] = {
29414 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29415 };
29416
29417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29419 if (!SWIG_IsOK(res1)) {
29420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29421 }
29422 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29423 {
29424 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29425 if (arg3 == NULL) SWIG_fail;
29426 }
29427 if (obj2) {
29428 ecode4 = SWIG_AsVal_int(obj2, &val4);
29429 if (!SWIG_IsOK(ecode4)) {
29430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29431 }
29432 arg4 = static_cast< int >(val4);
29433 }
29434 {
29435 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29436 if (PyErr_Occurred()) SWIG_fail;
29437 }
29438 resultobj = SWIG_Py_Void();
29439 {
29440 if (arg3) delete [] arg3;
29441 }
29442 return resultobj;
29443 fail:
29444 {
29445 if (arg3) delete [] arg3;
29446 }
29447 return NULL;
29448 }
29449
29450
29451 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29452 PyObject *resultobj = 0;
29453 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29454 wxDouble arg2 ;
29455 wxDouble arg3 ;
29456 wxDouble arg4 ;
29457 wxDouble arg5 ;
29458 void *argp1 = 0 ;
29459 int res1 = 0 ;
29460 double val2 ;
29461 int ecode2 = 0 ;
29462 double val3 ;
29463 int ecode3 = 0 ;
29464 double val4 ;
29465 int ecode4 = 0 ;
29466 double val5 ;
29467 int ecode5 = 0 ;
29468 PyObject * obj0 = 0 ;
29469 PyObject * obj1 = 0 ;
29470 PyObject * obj2 = 0 ;
29471 PyObject * obj3 = 0 ;
29472 PyObject * obj4 = 0 ;
29473 char * kwnames[] = {
29474 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29475 };
29476
29477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29479 if (!SWIG_IsOK(res1)) {
29480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29481 }
29482 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29483 ecode2 = SWIG_AsVal_double(obj1, &val2);
29484 if (!SWIG_IsOK(ecode2)) {
29485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29486 }
29487 arg2 = static_cast< wxDouble >(val2);
29488 ecode3 = SWIG_AsVal_double(obj2, &val3);
29489 if (!SWIG_IsOK(ecode3)) {
29490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29491 }
29492 arg3 = static_cast< wxDouble >(val3);
29493 ecode4 = SWIG_AsVal_double(obj3, &val4);
29494 if (!SWIG_IsOK(ecode4)) {
29495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29496 }
29497 arg4 = static_cast< wxDouble >(val4);
29498 ecode5 = SWIG_AsVal_double(obj4, &val5);
29499 if (!SWIG_IsOK(ecode5)) {
29500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29501 }
29502 arg5 = static_cast< wxDouble >(val5);
29503 {
29504 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29505 if (PyErr_Occurred()) SWIG_fail;
29506 }
29507 resultobj = SWIG_Py_Void();
29508 return resultobj;
29509 fail:
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29515 PyObject *resultobj = 0;
29516 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29517 wxDouble arg2 ;
29518 wxDouble arg3 ;
29519 wxDouble arg4 ;
29520 wxDouble arg5 ;
29521 void *argp1 = 0 ;
29522 int res1 = 0 ;
29523 double val2 ;
29524 int ecode2 = 0 ;
29525 double val3 ;
29526 int ecode3 = 0 ;
29527 double val4 ;
29528 int ecode4 = 0 ;
29529 double val5 ;
29530 int ecode5 = 0 ;
29531 PyObject * obj0 = 0 ;
29532 PyObject * obj1 = 0 ;
29533 PyObject * obj2 = 0 ;
29534 PyObject * obj3 = 0 ;
29535 PyObject * obj4 = 0 ;
29536 char * kwnames[] = {
29537 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29538 };
29539
29540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29542 if (!SWIG_IsOK(res1)) {
29543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29544 }
29545 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29546 ecode2 = SWIG_AsVal_double(obj1, &val2);
29547 if (!SWIG_IsOK(ecode2)) {
29548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29549 }
29550 arg2 = static_cast< wxDouble >(val2);
29551 ecode3 = SWIG_AsVal_double(obj2, &val3);
29552 if (!SWIG_IsOK(ecode3)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29554 }
29555 arg3 = static_cast< wxDouble >(val3);
29556 ecode4 = SWIG_AsVal_double(obj3, &val4);
29557 if (!SWIG_IsOK(ecode4)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29559 }
29560 arg4 = static_cast< wxDouble >(val4);
29561 ecode5 = SWIG_AsVal_double(obj4, &val5);
29562 if (!SWIG_IsOK(ecode5)) {
29563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29564 }
29565 arg5 = static_cast< wxDouble >(val5);
29566 {
29567 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29568 if (PyErr_Occurred()) SWIG_fail;
29569 }
29570 resultobj = SWIG_Py_Void();
29571 return resultobj;
29572 fail:
29573 return NULL;
29574 }
29575
29576
29577 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = 0;
29579 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29580 wxDouble arg2 ;
29581 wxDouble arg3 ;
29582 wxDouble arg4 ;
29583 wxDouble arg5 ;
29584 wxDouble arg6 ;
29585 void *argp1 = 0 ;
29586 int res1 = 0 ;
29587 double val2 ;
29588 int ecode2 = 0 ;
29589 double val3 ;
29590 int ecode3 = 0 ;
29591 double val4 ;
29592 int ecode4 = 0 ;
29593 double val5 ;
29594 int ecode5 = 0 ;
29595 double val6 ;
29596 int ecode6 = 0 ;
29597 PyObject * obj0 = 0 ;
29598 PyObject * obj1 = 0 ;
29599 PyObject * obj2 = 0 ;
29600 PyObject * obj3 = 0 ;
29601 PyObject * obj4 = 0 ;
29602 PyObject * obj5 = 0 ;
29603 char * kwnames[] = {
29604 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29605 };
29606
29607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29609 if (!SWIG_IsOK(res1)) {
29610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29611 }
29612 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29613 ecode2 = SWIG_AsVal_double(obj1, &val2);
29614 if (!SWIG_IsOK(ecode2)) {
29615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29616 }
29617 arg2 = static_cast< wxDouble >(val2);
29618 ecode3 = SWIG_AsVal_double(obj2, &val3);
29619 if (!SWIG_IsOK(ecode3)) {
29620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29621 }
29622 arg3 = static_cast< wxDouble >(val3);
29623 ecode4 = SWIG_AsVal_double(obj3, &val4);
29624 if (!SWIG_IsOK(ecode4)) {
29625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29626 }
29627 arg4 = static_cast< wxDouble >(val4);
29628 ecode5 = SWIG_AsVal_double(obj4, &val5);
29629 if (!SWIG_IsOK(ecode5)) {
29630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29631 }
29632 arg5 = static_cast< wxDouble >(val5);
29633 ecode6 = SWIG_AsVal_double(obj5, &val6);
29634 if (!SWIG_IsOK(ecode6)) {
29635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29636 }
29637 arg6 = static_cast< wxDouble >(val6);
29638 {
29639 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29640 if (PyErr_Occurred()) SWIG_fail;
29641 }
29642 resultobj = SWIG_Py_Void();
29643 return resultobj;
29644 fail:
29645 return NULL;
29646 }
29647
29648
29649 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29650 PyObject *resultobj = 0;
29651 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29652 bool result;
29653 void *argp1 = 0 ;
29654 int res1 = 0 ;
29655 PyObject *swig_obj[1] ;
29656
29657 if (!args) SWIG_fail;
29658 swig_obj[0] = args;
29659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29660 if (!SWIG_IsOK(res1)) {
29661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29662 }
29663 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29664 {
29665 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29666 if (PyErr_Occurred()) SWIG_fail;
29667 }
29668 {
29669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29670 }
29671 return resultobj;
29672 fail:
29673 return NULL;
29674 }
29675
29676
29677 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29678 PyObject *obj;
29679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29680 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29681 return SWIG_Py_Void();
29682 }
29683
29684 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29685 PyObject *resultobj = 0;
29686 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29687 void *argp1 = 0 ;
29688 int res1 = 0 ;
29689 PyObject *swig_obj[1] ;
29690
29691 if (!args) SWIG_fail;
29692 swig_obj[0] = args;
29693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29694 if (!SWIG_IsOK(res1)) {
29695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29696 }
29697 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29698 {
29699 delete arg1;
29700
29701 if (PyErr_Occurred()) SWIG_fail;
29702 }
29703 resultobj = SWIG_Py_Void();
29704 return resultobj;
29705 fail:
29706 return NULL;
29707 }
29708
29709
29710 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29711 PyObject *resultobj = 0;
29712 wxGraphicsRenderer *result = 0 ;
29713
29714 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29715 {
29716 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29717 if (PyErr_Occurred()) SWIG_fail;
29718 }
29719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29720 return resultobj;
29721 fail:
29722 return NULL;
29723 }
29724
29725
29726 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29727 PyObject *resultobj = 0;
29728 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29729 wxWindowDC *arg2 = 0 ;
29730 wxGraphicsContext *result = 0 ;
29731 void *argp1 = 0 ;
29732 int res1 = 0 ;
29733 void *argp2 = 0 ;
29734 int res2 = 0 ;
29735
29736 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29738 if (!SWIG_IsOK(res1)) {
29739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29740 }
29741 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29742 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29743 if (!SWIG_IsOK(res2)) {
29744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29745 }
29746 if (!argp2) {
29747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29748 }
29749 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29750 {
29751 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29752 if (PyErr_Occurred()) SWIG_fail;
29753 }
29754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29755 return resultobj;
29756 fail:
29757 return NULL;
29758 }
29759
29760
29761 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29762 PyObject *resultobj = 0;
29763 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29764 wxWindow *arg2 = (wxWindow *) 0 ;
29765 wxGraphicsContext *result = 0 ;
29766 void *argp1 = 0 ;
29767 int res1 = 0 ;
29768 void *argp2 = 0 ;
29769 int res2 = 0 ;
29770
29771 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29773 if (!SWIG_IsOK(res1)) {
29774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29775 }
29776 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29777 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29778 if (!SWIG_IsOK(res2)) {
29779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29780 }
29781 arg2 = reinterpret_cast< wxWindow * >(argp2);
29782 {
29783 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29787 return resultobj;
29788 fail:
29789 return NULL;
29790 }
29791
29792
29793 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29794 int argc;
29795 PyObject *argv[3];
29796
29797 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29798 --argc;
29799 if (argc == 2) {
29800 int _v = 0;
29801 {
29802 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29803 _v = SWIG_CheckState(res);
29804 }
29805 if (!_v) goto check_1;
29806 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29807 }
29808 check_1:
29809
29810 if (argc == 2) {
29811 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29812 }
29813
29814 fail:
29815 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29816 return NULL;
29817 }
29818
29819
29820 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29821 PyObject *resultobj = 0;
29822 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29823 wxGraphicsContext *result = 0 ;
29824 void *argp1 = 0 ;
29825 int res1 = 0 ;
29826 PyObject *swig_obj[1] ;
29827
29828 if (!args) SWIG_fail;
29829 swig_obj[0] = args;
29830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29831 if (!SWIG_IsOK(res1)) {
29832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29833 }
29834 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29835 {
29836 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
29837 if (PyErr_Occurred()) SWIG_fail;
29838 }
29839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29840 return resultobj;
29841 fail:
29842 return NULL;
29843 }
29844
29845
29846 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29847 PyObject *resultobj = 0;
29848 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29849 void *arg2 = (void *) 0 ;
29850 wxGraphicsContext *result = 0 ;
29851 void *argp1 = 0 ;
29852 int res1 = 0 ;
29853 int res2 ;
29854 PyObject * obj0 = 0 ;
29855 PyObject * obj1 = 0 ;
29856 char * kwnames[] = {
29857 (char *) "self",(char *) "context", NULL
29858 };
29859
29860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29862 if (!SWIG_IsOK(res1)) {
29863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29864 }
29865 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29866 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29867 if (!SWIG_IsOK(res2)) {
29868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
29869 }
29870 {
29871 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
29872 if (PyErr_Occurred()) SWIG_fail;
29873 }
29874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29875 return resultobj;
29876 fail:
29877 return NULL;
29878 }
29879
29880
29881 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29882 PyObject *resultobj = 0;
29883 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29884 void *arg2 = (void *) 0 ;
29885 wxGraphicsContext *result = 0 ;
29886 void *argp1 = 0 ;
29887 int res1 = 0 ;
29888 int res2 ;
29889 PyObject * obj0 = 0 ;
29890 PyObject * obj1 = 0 ;
29891 char * kwnames[] = {
29892 (char *) "self",(char *) "window", NULL
29893 };
29894
29895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29897 if (!SWIG_IsOK(res1)) {
29898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29899 }
29900 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29901 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29902 if (!SWIG_IsOK(res2)) {
29903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
29904 }
29905 {
29906 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
29907 if (PyErr_Occurred()) SWIG_fail;
29908 }
29909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29910 return resultobj;
29911 fail:
29912 return NULL;
29913 }
29914
29915
29916 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29917 PyObject *resultobj = 0;
29918 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29919 wxGraphicsPath result;
29920 void *argp1 = 0 ;
29921 int res1 = 0 ;
29922 PyObject *swig_obj[1] ;
29923
29924 if (!args) SWIG_fail;
29925 swig_obj[0] = args;
29926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29927 if (!SWIG_IsOK(res1)) {
29928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29929 }
29930 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29931 {
29932 result = (arg1)->CreatePath();
29933 if (PyErr_Occurred()) SWIG_fail;
29934 }
29935 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29936 return resultobj;
29937 fail:
29938 return NULL;
29939 }
29940
29941
29942 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29943 PyObject *resultobj = 0;
29944 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29945 wxDouble arg2 = (wxDouble) 1.0 ;
29946 wxDouble arg3 = (wxDouble) 0.0 ;
29947 wxDouble arg4 = (wxDouble) 0.0 ;
29948 wxDouble arg5 = (wxDouble) 1.0 ;
29949 wxDouble arg6 = (wxDouble) 0.0 ;
29950 wxDouble arg7 = (wxDouble) 0.0 ;
29951 wxGraphicsMatrix result;
29952 void *argp1 = 0 ;
29953 int res1 = 0 ;
29954 double val2 ;
29955 int ecode2 = 0 ;
29956 double val3 ;
29957 int ecode3 = 0 ;
29958 double val4 ;
29959 int ecode4 = 0 ;
29960 double val5 ;
29961 int ecode5 = 0 ;
29962 double val6 ;
29963 int ecode6 = 0 ;
29964 double val7 ;
29965 int ecode7 = 0 ;
29966 PyObject * obj0 = 0 ;
29967 PyObject * obj1 = 0 ;
29968 PyObject * obj2 = 0 ;
29969 PyObject * obj3 = 0 ;
29970 PyObject * obj4 = 0 ;
29971 PyObject * obj5 = 0 ;
29972 PyObject * obj6 = 0 ;
29973 char * kwnames[] = {
29974 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
29975 };
29976
29977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29979 if (!SWIG_IsOK(res1)) {
29980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29981 }
29982 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29983 if (obj1) {
29984 ecode2 = SWIG_AsVal_double(obj1, &val2);
29985 if (!SWIG_IsOK(ecode2)) {
29986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29987 }
29988 arg2 = static_cast< wxDouble >(val2);
29989 }
29990 if (obj2) {
29991 ecode3 = SWIG_AsVal_double(obj2, &val3);
29992 if (!SWIG_IsOK(ecode3)) {
29993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29994 }
29995 arg3 = static_cast< wxDouble >(val3);
29996 }
29997 if (obj3) {
29998 ecode4 = SWIG_AsVal_double(obj3, &val4);
29999 if (!SWIG_IsOK(ecode4)) {
30000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30001 }
30002 arg4 = static_cast< wxDouble >(val4);
30003 }
30004 if (obj4) {
30005 ecode5 = SWIG_AsVal_double(obj4, &val5);
30006 if (!SWIG_IsOK(ecode5)) {
30007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30008 }
30009 arg5 = static_cast< wxDouble >(val5);
30010 }
30011 if (obj5) {
30012 ecode6 = SWIG_AsVal_double(obj5, &val6);
30013 if (!SWIG_IsOK(ecode6)) {
30014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30015 }
30016 arg6 = static_cast< wxDouble >(val6);
30017 }
30018 if (obj6) {
30019 ecode7 = SWIG_AsVal_double(obj6, &val7);
30020 if (!SWIG_IsOK(ecode7)) {
30021 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30022 }
30023 arg7 = static_cast< wxDouble >(val7);
30024 }
30025 {
30026 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30027 if (PyErr_Occurred()) SWIG_fail;
30028 }
30029 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30030 return resultobj;
30031 fail:
30032 return NULL;
30033 }
30034
30035
30036 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30037 PyObject *resultobj = 0;
30038 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30039 wxPen *arg2 = 0 ;
30040 wxGraphicsPen result;
30041 void *argp1 = 0 ;
30042 int res1 = 0 ;
30043 void *argp2 = 0 ;
30044 int res2 = 0 ;
30045 PyObject * obj0 = 0 ;
30046 PyObject * obj1 = 0 ;
30047 char * kwnames[] = {
30048 (char *) "self",(char *) "pen", NULL
30049 };
30050
30051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30053 if (!SWIG_IsOK(res1)) {
30054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30055 }
30056 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30057 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30058 if (!SWIG_IsOK(res2)) {
30059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30060 }
30061 if (!argp2) {
30062 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30063 }
30064 arg2 = reinterpret_cast< wxPen * >(argp2);
30065 {
30066 result = (arg1)->CreatePen((wxPen const &)*arg2);
30067 if (PyErr_Occurred()) SWIG_fail;
30068 }
30069 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30070 return resultobj;
30071 fail:
30072 return NULL;
30073 }
30074
30075
30076 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30077 PyObject *resultobj = 0;
30078 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30079 wxBrush *arg2 = 0 ;
30080 wxGraphicsBrush result;
30081 void *argp1 = 0 ;
30082 int res1 = 0 ;
30083 void *argp2 = 0 ;
30084 int res2 = 0 ;
30085 PyObject * obj0 = 0 ;
30086 PyObject * obj1 = 0 ;
30087 char * kwnames[] = {
30088 (char *) "self",(char *) "brush", NULL
30089 };
30090
30091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30093 if (!SWIG_IsOK(res1)) {
30094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30095 }
30096 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30098 if (!SWIG_IsOK(res2)) {
30099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30100 }
30101 if (!argp2) {
30102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30103 }
30104 arg2 = reinterpret_cast< wxBrush * >(argp2);
30105 {
30106 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30107 if (PyErr_Occurred()) SWIG_fail;
30108 }
30109 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30110 return resultobj;
30111 fail:
30112 return NULL;
30113 }
30114
30115
30116 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30117 PyObject *resultobj = 0;
30118 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30119 wxDouble arg2 ;
30120 wxDouble arg3 ;
30121 wxDouble arg4 ;
30122 wxDouble arg5 ;
30123 wxColour *arg6 = 0 ;
30124 wxColour *arg7 = 0 ;
30125 wxGraphicsBrush result;
30126 void *argp1 = 0 ;
30127 int res1 = 0 ;
30128 double val2 ;
30129 int ecode2 = 0 ;
30130 double val3 ;
30131 int ecode3 = 0 ;
30132 double val4 ;
30133 int ecode4 = 0 ;
30134 double val5 ;
30135 int ecode5 = 0 ;
30136 wxColour temp6 ;
30137 wxColour temp7 ;
30138 PyObject * obj0 = 0 ;
30139 PyObject * obj1 = 0 ;
30140 PyObject * obj2 = 0 ;
30141 PyObject * obj3 = 0 ;
30142 PyObject * obj4 = 0 ;
30143 PyObject * obj5 = 0 ;
30144 PyObject * obj6 = 0 ;
30145 char * kwnames[] = {
30146 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30147 };
30148
30149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30151 if (!SWIG_IsOK(res1)) {
30152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30153 }
30154 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30155 ecode2 = SWIG_AsVal_double(obj1, &val2);
30156 if (!SWIG_IsOK(ecode2)) {
30157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30158 }
30159 arg2 = static_cast< wxDouble >(val2);
30160 ecode3 = SWIG_AsVal_double(obj2, &val3);
30161 if (!SWIG_IsOK(ecode3)) {
30162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30163 }
30164 arg3 = static_cast< wxDouble >(val3);
30165 ecode4 = SWIG_AsVal_double(obj3, &val4);
30166 if (!SWIG_IsOK(ecode4)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30168 }
30169 arg4 = static_cast< wxDouble >(val4);
30170 ecode5 = SWIG_AsVal_double(obj4, &val5);
30171 if (!SWIG_IsOK(ecode5)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30173 }
30174 arg5 = static_cast< wxDouble >(val5);
30175 {
30176 arg6 = &temp6;
30177 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30178 }
30179 {
30180 arg7 = &temp7;
30181 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30182 }
30183 {
30184 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30185 if (PyErr_Occurred()) SWIG_fail;
30186 }
30187 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30188 return resultobj;
30189 fail:
30190 return NULL;
30191 }
30192
30193
30194 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30195 PyObject *resultobj = 0;
30196 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30197 wxDouble arg2 ;
30198 wxDouble arg3 ;
30199 wxDouble arg4 ;
30200 wxDouble arg5 ;
30201 wxDouble arg6 ;
30202 wxColour *arg7 = 0 ;
30203 wxColour *arg8 = 0 ;
30204 wxGraphicsBrush result;
30205 void *argp1 = 0 ;
30206 int res1 = 0 ;
30207 double val2 ;
30208 int ecode2 = 0 ;
30209 double val3 ;
30210 int ecode3 = 0 ;
30211 double val4 ;
30212 int ecode4 = 0 ;
30213 double val5 ;
30214 int ecode5 = 0 ;
30215 double val6 ;
30216 int ecode6 = 0 ;
30217 wxColour temp7 ;
30218 wxColour temp8 ;
30219 PyObject * obj0 = 0 ;
30220 PyObject * obj1 = 0 ;
30221 PyObject * obj2 = 0 ;
30222 PyObject * obj3 = 0 ;
30223 PyObject * obj4 = 0 ;
30224 PyObject * obj5 = 0 ;
30225 PyObject * obj6 = 0 ;
30226 PyObject * obj7 = 0 ;
30227 char * kwnames[] = {
30228 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30229 };
30230
30231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30233 if (!SWIG_IsOK(res1)) {
30234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30235 }
30236 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30237 ecode2 = SWIG_AsVal_double(obj1, &val2);
30238 if (!SWIG_IsOK(ecode2)) {
30239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30240 }
30241 arg2 = static_cast< wxDouble >(val2);
30242 ecode3 = SWIG_AsVal_double(obj2, &val3);
30243 if (!SWIG_IsOK(ecode3)) {
30244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30245 }
30246 arg3 = static_cast< wxDouble >(val3);
30247 ecode4 = SWIG_AsVal_double(obj3, &val4);
30248 if (!SWIG_IsOK(ecode4)) {
30249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30250 }
30251 arg4 = static_cast< wxDouble >(val4);
30252 ecode5 = SWIG_AsVal_double(obj4, &val5);
30253 if (!SWIG_IsOK(ecode5)) {
30254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30255 }
30256 arg5 = static_cast< wxDouble >(val5);
30257 ecode6 = SWIG_AsVal_double(obj5, &val6);
30258 if (!SWIG_IsOK(ecode6)) {
30259 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30260 }
30261 arg6 = static_cast< wxDouble >(val6);
30262 {
30263 arg7 = &temp7;
30264 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30265 }
30266 {
30267 arg8 = &temp8;
30268 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30269 }
30270 {
30271 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30272 if (PyErr_Occurred()) SWIG_fail;
30273 }
30274 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30275 return resultobj;
30276 fail:
30277 return NULL;
30278 }
30279
30280
30281 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30282 PyObject *resultobj = 0;
30283 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30284 wxFont *arg2 = 0 ;
30285 wxColour const &arg3_defvalue = *wxBLACK ;
30286 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30287 wxGraphicsFont result;
30288 void *argp1 = 0 ;
30289 int res1 = 0 ;
30290 void *argp2 = 0 ;
30291 int res2 = 0 ;
30292 wxColour temp3 ;
30293 PyObject * obj0 = 0 ;
30294 PyObject * obj1 = 0 ;
30295 PyObject * obj2 = 0 ;
30296 char * kwnames[] = {
30297 (char *) "self",(char *) "font",(char *) "col", NULL
30298 };
30299
30300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30302 if (!SWIG_IsOK(res1)) {
30303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30304 }
30305 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30307 if (!SWIG_IsOK(res2)) {
30308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30309 }
30310 if (!argp2) {
30311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30312 }
30313 arg2 = reinterpret_cast< wxFont * >(argp2);
30314 if (obj2) {
30315 {
30316 arg3 = &temp3;
30317 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30318 }
30319 }
30320 {
30321 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30322 if (PyErr_Occurred()) SWIG_fail;
30323 }
30324 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30325 return resultobj;
30326 fail:
30327 return NULL;
30328 }
30329
30330
30331 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30332 PyObject *obj;
30333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30334 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30335 return SWIG_Py_Void();
30336 }
30337
30338 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30339 PyObject *resultobj = 0;
30340 wxWindowDC *arg1 = 0 ;
30341 wxGCDC *result = 0 ;
30342 void *argp1 = 0 ;
30343 int res1 = 0 ;
30344 PyObject * obj0 = 0 ;
30345 char * kwnames[] = {
30346 (char *) "dc", NULL
30347 };
30348
30349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30350 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30351 if (!SWIG_IsOK(res1)) {
30352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30353 }
30354 if (!argp1) {
30355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30356 }
30357 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30358 {
30359 if (!wxPyCheckForApp()) SWIG_fail;
30360 PyThreadState* __tstate = wxPyBeginAllowThreads();
30361 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30362 wxPyEndAllowThreads(__tstate);
30363 if (PyErr_Occurred()) SWIG_fail;
30364 }
30365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30366 return resultobj;
30367 fail:
30368 return NULL;
30369 }
30370
30371
30372 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30373 PyObject *resultobj = 0;
30374 wxGCDC *arg1 = (wxGCDC *) 0 ;
30375 void *argp1 = 0 ;
30376 int res1 = 0 ;
30377 PyObject *swig_obj[1] ;
30378
30379 if (!args) SWIG_fail;
30380 swig_obj[0] = args;
30381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30382 if (!SWIG_IsOK(res1)) {
30383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30384 }
30385 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30386 {
30387 delete arg1;
30388
30389 if (PyErr_Occurred()) SWIG_fail;
30390 }
30391 resultobj = SWIG_Py_Void();
30392 return resultobj;
30393 fail:
30394 return NULL;
30395 }
30396
30397
30398 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30399 PyObject *resultobj = 0;
30400 wxGCDC *arg1 = (wxGCDC *) 0 ;
30401 wxGraphicsContext *result = 0 ;
30402 void *argp1 = 0 ;
30403 int res1 = 0 ;
30404 PyObject *swig_obj[1] ;
30405
30406 if (!args) SWIG_fail;
30407 swig_obj[0] = args;
30408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30409 if (!SWIG_IsOK(res1)) {
30410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30411 }
30412 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30413 {
30414 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30415 if (PyErr_Occurred()) SWIG_fail;
30416 }
30417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30418 return resultobj;
30419 fail:
30420 return NULL;
30421 }
30422
30423
30424 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30425 PyObject *resultobj = 0;
30426 wxGCDC *arg1 = (wxGCDC *) 0 ;
30427 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30428 void *argp1 = 0 ;
30429 int res1 = 0 ;
30430 void *argp2 = 0 ;
30431 int res2 = 0 ;
30432 PyObject * obj0 = 0 ;
30433 PyObject * obj1 = 0 ;
30434 char * kwnames[] = {
30435 (char *) "self",(char *) "ctx", NULL
30436 };
30437
30438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30440 if (!SWIG_IsOK(res1)) {
30441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30442 }
30443 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30445 if (!SWIG_IsOK(res2)) {
30446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30447 }
30448 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30449 {
30450 (arg1)->SetGraphicsContext(arg2);
30451 if (PyErr_Occurred()) SWIG_fail;
30452 }
30453 resultobj = SWIG_Py_Void();
30454 return resultobj;
30455 fail:
30456 return NULL;
30457 }
30458
30459
30460 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30461 PyObject *obj;
30462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30463 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30464 return SWIG_Py_Void();
30465 }
30466
30467 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30468 return SWIG_Python_InitShadowInstance(args);
30469 }
30470
30471 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30472 PyObject *resultobj = 0;
30473 wxOverlay *result = 0 ;
30474
30475 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30476 {
30477 PyThreadState* __tstate = wxPyBeginAllowThreads();
30478 result = (wxOverlay *)new wxOverlay();
30479 wxPyEndAllowThreads(__tstate);
30480 if (PyErr_Occurred()) SWIG_fail;
30481 }
30482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30483 return resultobj;
30484 fail:
30485 return NULL;
30486 }
30487
30488
30489 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30490 PyObject *resultobj = 0;
30491 wxOverlay *arg1 = (wxOverlay *) 0 ;
30492 void *argp1 = 0 ;
30493 int res1 = 0 ;
30494 PyObject *swig_obj[1] ;
30495
30496 if (!args) SWIG_fail;
30497 swig_obj[0] = args;
30498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30499 if (!SWIG_IsOK(res1)) {
30500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30501 }
30502 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30503 {
30504 PyThreadState* __tstate = wxPyBeginAllowThreads();
30505 delete arg1;
30506
30507 wxPyEndAllowThreads(__tstate);
30508 if (PyErr_Occurred()) SWIG_fail;
30509 }
30510 resultobj = SWIG_Py_Void();
30511 return resultobj;
30512 fail:
30513 return NULL;
30514 }
30515
30516
30517 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30518 PyObject *resultobj = 0;
30519 wxOverlay *arg1 = (wxOverlay *) 0 ;
30520 void *argp1 = 0 ;
30521 int res1 = 0 ;
30522 PyObject *swig_obj[1] ;
30523
30524 if (!args) SWIG_fail;
30525 swig_obj[0] = args;
30526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30527 if (!SWIG_IsOK(res1)) {
30528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30529 }
30530 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30531 {
30532 PyThreadState* __tstate = wxPyBeginAllowThreads();
30533 (arg1)->Reset();
30534 wxPyEndAllowThreads(__tstate);
30535 if (PyErr_Occurred()) SWIG_fail;
30536 }
30537 resultobj = SWIG_Py_Void();
30538 return resultobj;
30539 fail:
30540 return NULL;
30541 }
30542
30543
30544 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30545 PyObject *obj;
30546 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30547 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30548 return SWIG_Py_Void();
30549 }
30550
30551 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30552 return SWIG_Python_InitShadowInstance(args);
30553 }
30554
30555 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30556 PyObject *resultobj = 0;
30557 wxOverlay *arg1 = 0 ;
30558 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30559 int arg3 ;
30560 int arg4 ;
30561 int arg5 ;
30562 int arg6 ;
30563 wxDCOverlay *result = 0 ;
30564 void *argp1 = 0 ;
30565 int res1 = 0 ;
30566 void *argp2 = 0 ;
30567 int res2 = 0 ;
30568 int val3 ;
30569 int ecode3 = 0 ;
30570 int val4 ;
30571 int ecode4 = 0 ;
30572 int val5 ;
30573 int ecode5 = 0 ;
30574 int val6 ;
30575 int ecode6 = 0 ;
30576
30577 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30579 if (!SWIG_IsOK(res1)) {
30580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30581 }
30582 if (!argp1) {
30583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30584 }
30585 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30586 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30587 if (!SWIG_IsOK(res2)) {
30588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30589 }
30590 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30591 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30592 if (!SWIG_IsOK(ecode3)) {
30593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30594 }
30595 arg3 = static_cast< int >(val3);
30596 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30597 if (!SWIG_IsOK(ecode4)) {
30598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30599 }
30600 arg4 = static_cast< int >(val4);
30601 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30602 if (!SWIG_IsOK(ecode5)) {
30603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30604 }
30605 arg5 = static_cast< int >(val5);
30606 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30607 if (!SWIG_IsOK(ecode6)) {
30608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30609 }
30610 arg6 = static_cast< int >(val6);
30611 {
30612 PyThreadState* __tstate = wxPyBeginAllowThreads();
30613 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30614 wxPyEndAllowThreads(__tstate);
30615 if (PyErr_Occurred()) SWIG_fail;
30616 }
30617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30618 return resultobj;
30619 fail:
30620 return NULL;
30621 }
30622
30623
30624 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30625 PyObject *resultobj = 0;
30626 wxOverlay *arg1 = 0 ;
30627 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30628 wxDCOverlay *result = 0 ;
30629 void *argp1 = 0 ;
30630 int res1 = 0 ;
30631 void *argp2 = 0 ;
30632 int res2 = 0 ;
30633
30634 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30636 if (!SWIG_IsOK(res1)) {
30637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30638 }
30639 if (!argp1) {
30640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30641 }
30642 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30643 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30644 if (!SWIG_IsOK(res2)) {
30645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30646 }
30647 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30648 {
30649 PyThreadState* __tstate = wxPyBeginAllowThreads();
30650 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30651 wxPyEndAllowThreads(__tstate);
30652 if (PyErr_Occurred()) SWIG_fail;
30653 }
30654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30655 return resultobj;
30656 fail:
30657 return NULL;
30658 }
30659
30660
30661 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30662 int argc;
30663 PyObject *argv[7];
30664
30665 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30666 --argc;
30667 if (argc == 2) {
30668 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30669 }
30670 if (argc == 6) {
30671 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30672 }
30673
30674 fail:
30675 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30676 return NULL;
30677 }
30678
30679
30680 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30681 PyObject *resultobj = 0;
30682 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30683 void *argp1 = 0 ;
30684 int res1 = 0 ;
30685 PyObject *swig_obj[1] ;
30686
30687 if (!args) SWIG_fail;
30688 swig_obj[0] = args;
30689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30690 if (!SWIG_IsOK(res1)) {
30691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30692 }
30693 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30694 {
30695 PyThreadState* __tstate = wxPyBeginAllowThreads();
30696 delete arg1;
30697
30698 wxPyEndAllowThreads(__tstate);
30699 if (PyErr_Occurred()) SWIG_fail;
30700 }
30701 resultobj = SWIG_Py_Void();
30702 return resultobj;
30703 fail:
30704 return NULL;
30705 }
30706
30707
30708 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30709 PyObject *resultobj = 0;
30710 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30711 void *argp1 = 0 ;
30712 int res1 = 0 ;
30713 PyObject *swig_obj[1] ;
30714
30715 if (!args) SWIG_fail;
30716 swig_obj[0] = args;
30717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30718 if (!SWIG_IsOK(res1)) {
30719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30720 }
30721 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30722 {
30723 PyThreadState* __tstate = wxPyBeginAllowThreads();
30724 (arg1)->Clear();
30725 wxPyEndAllowThreads(__tstate);
30726 if (PyErr_Occurred()) SWIG_fail;
30727 }
30728 resultobj = SWIG_Py_Void();
30729 return resultobj;
30730 fail:
30731 return NULL;
30732 }
30733
30734
30735 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30736 PyObject *obj;
30737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30738 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30739 return SWIG_Py_Void();
30740 }
30741
30742 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30743 return SWIG_Python_InitShadowInstance(args);
30744 }
30745
30746 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30747 PyObject *resultobj = 0;
30748 int arg1 ;
30749 int arg2 ;
30750 int arg3 = (int) true ;
30751 int arg4 = (int) 1 ;
30752 wxImageList *result = 0 ;
30753 int val1 ;
30754 int ecode1 = 0 ;
30755 int val2 ;
30756 int ecode2 = 0 ;
30757 int val3 ;
30758 int ecode3 = 0 ;
30759 int val4 ;
30760 int ecode4 = 0 ;
30761 PyObject * obj0 = 0 ;
30762 PyObject * obj1 = 0 ;
30763 PyObject * obj2 = 0 ;
30764 PyObject * obj3 = 0 ;
30765 char * kwnames[] = {
30766 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30767 };
30768
30769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30770 ecode1 = SWIG_AsVal_int(obj0, &val1);
30771 if (!SWIG_IsOK(ecode1)) {
30772 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30773 }
30774 arg1 = static_cast< int >(val1);
30775 ecode2 = SWIG_AsVal_int(obj1, &val2);
30776 if (!SWIG_IsOK(ecode2)) {
30777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30778 }
30779 arg2 = static_cast< int >(val2);
30780 if (obj2) {
30781 ecode3 = SWIG_AsVal_int(obj2, &val3);
30782 if (!SWIG_IsOK(ecode3)) {
30783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30784 }
30785 arg3 = static_cast< int >(val3);
30786 }
30787 if (obj3) {
30788 ecode4 = SWIG_AsVal_int(obj3, &val4);
30789 if (!SWIG_IsOK(ecode4)) {
30790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30791 }
30792 arg4 = static_cast< int >(val4);
30793 }
30794 {
30795 if (!wxPyCheckForApp()) SWIG_fail;
30796 PyThreadState* __tstate = wxPyBeginAllowThreads();
30797 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30798 wxPyEndAllowThreads(__tstate);
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
30802 return resultobj;
30803 fail:
30804 return NULL;
30805 }
30806
30807
30808 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30809 PyObject *resultobj = 0;
30810 wxImageList *arg1 = (wxImageList *) 0 ;
30811 void *argp1 = 0 ;
30812 int res1 = 0 ;
30813 PyObject *swig_obj[1] ;
30814
30815 if (!args) SWIG_fail;
30816 swig_obj[0] = args;
30817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30818 if (!SWIG_IsOK(res1)) {
30819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30820 }
30821 arg1 = reinterpret_cast< wxImageList * >(argp1);
30822 {
30823 PyThreadState* __tstate = wxPyBeginAllowThreads();
30824 delete arg1;
30825
30826 wxPyEndAllowThreads(__tstate);
30827 if (PyErr_Occurred()) SWIG_fail;
30828 }
30829 resultobj = SWIG_Py_Void();
30830 return resultobj;
30831 fail:
30832 return NULL;
30833 }
30834
30835
30836 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30837 PyObject *resultobj = 0;
30838 wxImageList *arg1 = (wxImageList *) 0 ;
30839 wxBitmap *arg2 = 0 ;
30840 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30841 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30842 int result;
30843 void *argp1 = 0 ;
30844 int res1 = 0 ;
30845 void *argp2 = 0 ;
30846 int res2 = 0 ;
30847 void *argp3 = 0 ;
30848 int res3 = 0 ;
30849 PyObject * obj0 = 0 ;
30850 PyObject * obj1 = 0 ;
30851 PyObject * obj2 = 0 ;
30852 char * kwnames[] = {
30853 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30854 };
30855
30856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30858 if (!SWIG_IsOK(res1)) {
30859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30860 }
30861 arg1 = reinterpret_cast< wxImageList * >(argp1);
30862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30863 if (!SWIG_IsOK(res2)) {
30864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30865 }
30866 if (!argp2) {
30867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30868 }
30869 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30870 if (obj2) {
30871 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30872 if (!SWIG_IsOK(res3)) {
30873 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30874 }
30875 if (!argp3) {
30876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30877 }
30878 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30879 }
30880 {
30881 PyThreadState* __tstate = wxPyBeginAllowThreads();
30882 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30883 wxPyEndAllowThreads(__tstate);
30884 if (PyErr_Occurred()) SWIG_fail;
30885 }
30886 resultobj = SWIG_From_int(static_cast< int >(result));
30887 return resultobj;
30888 fail:
30889 return NULL;
30890 }
30891
30892
30893 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30894 PyObject *resultobj = 0;
30895 wxImageList *arg1 = (wxImageList *) 0 ;
30896 wxBitmap *arg2 = 0 ;
30897 wxColour *arg3 = 0 ;
30898 int result;
30899 void *argp1 = 0 ;
30900 int res1 = 0 ;
30901 void *argp2 = 0 ;
30902 int res2 = 0 ;
30903 wxColour temp3 ;
30904 PyObject * obj0 = 0 ;
30905 PyObject * obj1 = 0 ;
30906 PyObject * obj2 = 0 ;
30907 char * kwnames[] = {
30908 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30909 };
30910
30911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30913 if (!SWIG_IsOK(res1)) {
30914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30915 }
30916 arg1 = reinterpret_cast< wxImageList * >(argp1);
30917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30918 if (!SWIG_IsOK(res2)) {
30919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30920 }
30921 if (!argp2) {
30922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30923 }
30924 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30925 {
30926 arg3 = &temp3;
30927 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30928 }
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_From_int(static_cast< int >(result));
30936 return resultobj;
30937 fail:
30938 return NULL;
30939 }
30940
30941
30942 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxImageList *arg1 = (wxImageList *) 0 ;
30945 wxIcon *arg2 = 0 ;
30946 int result;
30947 void *argp1 = 0 ;
30948 int res1 = 0 ;
30949 void *argp2 = 0 ;
30950 int res2 = 0 ;
30951 PyObject * obj0 = 0 ;
30952 PyObject * obj1 = 0 ;
30953 char * kwnames[] = {
30954 (char *) "self",(char *) "icon", NULL
30955 };
30956
30957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30959 if (!SWIG_IsOK(res1)) {
30960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30961 }
30962 arg1 = reinterpret_cast< wxImageList * >(argp1);
30963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30964 if (!SWIG_IsOK(res2)) {
30965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30966 }
30967 if (!argp2) {
30968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30969 }
30970 arg2 = reinterpret_cast< wxIcon * >(argp2);
30971 {
30972 PyThreadState* __tstate = wxPyBeginAllowThreads();
30973 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30974 wxPyEndAllowThreads(__tstate);
30975 if (PyErr_Occurred()) SWIG_fail;
30976 }
30977 resultobj = SWIG_From_int(static_cast< int >(result));
30978 return resultobj;
30979 fail:
30980 return NULL;
30981 }
30982
30983
30984 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30985 PyObject *resultobj = 0;
30986 wxImageList *arg1 = (wxImageList *) 0 ;
30987 int arg2 ;
30988 SwigValueWrapper<wxBitmap > result;
30989 void *argp1 = 0 ;
30990 int res1 = 0 ;
30991 int val2 ;
30992 int ecode2 = 0 ;
30993 PyObject * obj0 = 0 ;
30994 PyObject * obj1 = 0 ;
30995 char * kwnames[] = {
30996 (char *) "self",(char *) "index", NULL
30997 };
30998
30999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31001 if (!SWIG_IsOK(res1)) {
31002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31003 }
31004 arg1 = reinterpret_cast< wxImageList * >(argp1);
31005 ecode2 = SWIG_AsVal_int(obj1, &val2);
31006 if (!SWIG_IsOK(ecode2)) {
31007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31008 }
31009 arg2 = static_cast< int >(val2);
31010 {
31011 PyThreadState* __tstate = wxPyBeginAllowThreads();
31012 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31013 wxPyEndAllowThreads(__tstate);
31014 if (PyErr_Occurred()) SWIG_fail;
31015 }
31016 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31017 return resultobj;
31018 fail:
31019 return NULL;
31020 }
31021
31022
31023 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj = 0;
31025 wxImageList *arg1 = (wxImageList *) 0 ;
31026 int arg2 ;
31027 wxIcon result;
31028 void *argp1 = 0 ;
31029 int res1 = 0 ;
31030 int val2 ;
31031 int ecode2 = 0 ;
31032 PyObject * obj0 = 0 ;
31033 PyObject * obj1 = 0 ;
31034 char * kwnames[] = {
31035 (char *) "self",(char *) "index", NULL
31036 };
31037
31038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31040 if (!SWIG_IsOK(res1)) {
31041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31042 }
31043 arg1 = reinterpret_cast< wxImageList * >(argp1);
31044 ecode2 = SWIG_AsVal_int(obj1, &val2);
31045 if (!SWIG_IsOK(ecode2)) {
31046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31047 }
31048 arg2 = static_cast< int >(val2);
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31056 return resultobj;
31057 fail:
31058 return NULL;
31059 }
31060
31061
31062 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31063 PyObject *resultobj = 0;
31064 wxImageList *arg1 = (wxImageList *) 0 ;
31065 int arg2 ;
31066 wxBitmap *arg3 = 0 ;
31067 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31068 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31069 bool result;
31070 void *argp1 = 0 ;
31071 int res1 = 0 ;
31072 int val2 ;
31073 int ecode2 = 0 ;
31074 void *argp3 = 0 ;
31075 int res3 = 0 ;
31076 void *argp4 = 0 ;
31077 int res4 = 0 ;
31078 PyObject * obj0 = 0 ;
31079 PyObject * obj1 = 0 ;
31080 PyObject * obj2 = 0 ;
31081 PyObject * obj3 = 0 ;
31082 char * kwnames[] = {
31083 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31084 };
31085
31086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31088 if (!SWIG_IsOK(res1)) {
31089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31090 }
31091 arg1 = reinterpret_cast< wxImageList * >(argp1);
31092 ecode2 = SWIG_AsVal_int(obj1, &val2);
31093 if (!SWIG_IsOK(ecode2)) {
31094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31095 }
31096 arg2 = static_cast< int >(val2);
31097 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31098 if (!SWIG_IsOK(res3)) {
31099 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31100 }
31101 if (!argp3) {
31102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31103 }
31104 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31105 if (obj3) {
31106 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31107 if (!SWIG_IsOK(res4)) {
31108 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31109 }
31110 if (!argp4) {
31111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31112 }
31113 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31114 }
31115 {
31116 PyThreadState* __tstate = wxPyBeginAllowThreads();
31117 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31118 wxPyEndAllowThreads(__tstate);
31119 if (PyErr_Occurred()) SWIG_fail;
31120 }
31121 {
31122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31123 }
31124 return resultobj;
31125 fail:
31126 return NULL;
31127 }
31128
31129
31130 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31131 PyObject *resultobj = 0;
31132 wxImageList *arg1 = (wxImageList *) 0 ;
31133 int arg2 ;
31134 wxDC *arg3 = 0 ;
31135 int arg4 ;
31136 int arg5 ;
31137 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31138 bool arg7 = (bool) (bool)false ;
31139 bool result;
31140 void *argp1 = 0 ;
31141 int res1 = 0 ;
31142 int val2 ;
31143 int ecode2 = 0 ;
31144 void *argp3 = 0 ;
31145 int res3 = 0 ;
31146 int val4 ;
31147 int ecode4 = 0 ;
31148 int val5 ;
31149 int ecode5 = 0 ;
31150 int val6 ;
31151 int ecode6 = 0 ;
31152 bool val7 ;
31153 int ecode7 = 0 ;
31154 PyObject * obj0 = 0 ;
31155 PyObject * obj1 = 0 ;
31156 PyObject * obj2 = 0 ;
31157 PyObject * obj3 = 0 ;
31158 PyObject * obj4 = 0 ;
31159 PyObject * obj5 = 0 ;
31160 PyObject * obj6 = 0 ;
31161 char * kwnames[] = {
31162 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31163 };
31164
31165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31167 if (!SWIG_IsOK(res1)) {
31168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31169 }
31170 arg1 = reinterpret_cast< wxImageList * >(argp1);
31171 ecode2 = SWIG_AsVal_int(obj1, &val2);
31172 if (!SWIG_IsOK(ecode2)) {
31173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31174 }
31175 arg2 = static_cast< int >(val2);
31176 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31177 if (!SWIG_IsOK(res3)) {
31178 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31179 }
31180 if (!argp3) {
31181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31182 }
31183 arg3 = reinterpret_cast< wxDC * >(argp3);
31184 ecode4 = SWIG_AsVal_int(obj3, &val4);
31185 if (!SWIG_IsOK(ecode4)) {
31186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31187 }
31188 arg4 = static_cast< int >(val4);
31189 ecode5 = SWIG_AsVal_int(obj4, &val5);
31190 if (!SWIG_IsOK(ecode5)) {
31191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31192 }
31193 arg5 = static_cast< int >(val5);
31194 if (obj5) {
31195 ecode6 = SWIG_AsVal_int(obj5, &val6);
31196 if (!SWIG_IsOK(ecode6)) {
31197 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31198 }
31199 arg6 = static_cast< int >(val6);
31200 }
31201 if (obj6) {
31202 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31203 if (!SWIG_IsOK(ecode7)) {
31204 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31205 }
31206 arg7 = static_cast< bool >(val7);
31207 }
31208 {
31209 PyThreadState* __tstate = wxPyBeginAllowThreads();
31210 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31211 wxPyEndAllowThreads(__tstate);
31212 if (PyErr_Occurred()) SWIG_fail;
31213 }
31214 {
31215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31216 }
31217 return resultobj;
31218 fail:
31219 return NULL;
31220 }
31221
31222
31223 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31224 PyObject *resultobj = 0;
31225 wxImageList *arg1 = (wxImageList *) 0 ;
31226 int result;
31227 void *argp1 = 0 ;
31228 int res1 = 0 ;
31229 PyObject *swig_obj[1] ;
31230
31231 if (!args) SWIG_fail;
31232 swig_obj[0] = args;
31233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31234 if (!SWIG_IsOK(res1)) {
31235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31236 }
31237 arg1 = reinterpret_cast< wxImageList * >(argp1);
31238 {
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = (int)(arg1)->GetImageCount();
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 resultobj = SWIG_From_int(static_cast< int >(result));
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31252 PyObject *resultobj = 0;
31253 wxImageList *arg1 = (wxImageList *) 0 ;
31254 int arg2 ;
31255 bool result;
31256 void *argp1 = 0 ;
31257 int res1 = 0 ;
31258 int val2 ;
31259 int ecode2 = 0 ;
31260 PyObject * obj0 = 0 ;
31261 PyObject * obj1 = 0 ;
31262 char * kwnames[] = {
31263 (char *) "self",(char *) "index", NULL
31264 };
31265
31266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31268 if (!SWIG_IsOK(res1)) {
31269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31270 }
31271 arg1 = reinterpret_cast< wxImageList * >(argp1);
31272 ecode2 = SWIG_AsVal_int(obj1, &val2);
31273 if (!SWIG_IsOK(ecode2)) {
31274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31275 }
31276 arg2 = static_cast< int >(val2);
31277 {
31278 PyThreadState* __tstate = wxPyBeginAllowThreads();
31279 result = (bool)(arg1)->Remove(arg2);
31280 wxPyEndAllowThreads(__tstate);
31281 if (PyErr_Occurred()) SWIG_fail;
31282 }
31283 {
31284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31285 }
31286 return resultobj;
31287 fail:
31288 return NULL;
31289 }
31290
31291
31292 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31293 PyObject *resultobj = 0;
31294 wxImageList *arg1 = (wxImageList *) 0 ;
31295 bool result;
31296 void *argp1 = 0 ;
31297 int res1 = 0 ;
31298 PyObject *swig_obj[1] ;
31299
31300 if (!args) SWIG_fail;
31301 swig_obj[0] = args;
31302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31303 if (!SWIG_IsOK(res1)) {
31304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31305 }
31306 arg1 = reinterpret_cast< wxImageList * >(argp1);
31307 {
31308 PyThreadState* __tstate = wxPyBeginAllowThreads();
31309 result = (bool)(arg1)->RemoveAll();
31310 wxPyEndAllowThreads(__tstate);
31311 if (PyErr_Occurred()) SWIG_fail;
31312 }
31313 {
31314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31315 }
31316 return resultobj;
31317 fail:
31318 return NULL;
31319 }
31320
31321
31322 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31323 PyObject *resultobj = 0;
31324 wxImageList *arg1 = (wxImageList *) 0 ;
31325 int arg2 ;
31326 int *arg3 = 0 ;
31327 int *arg4 = 0 ;
31328 void *argp1 = 0 ;
31329 int res1 = 0 ;
31330 int val2 ;
31331 int ecode2 = 0 ;
31332 int temp3 ;
31333 int res3 = SWIG_TMPOBJ ;
31334 int temp4 ;
31335 int res4 = SWIG_TMPOBJ ;
31336 PyObject * obj0 = 0 ;
31337 PyObject * obj1 = 0 ;
31338 char * kwnames[] = {
31339 (char *) "self",(char *) "index", NULL
31340 };
31341
31342 arg3 = &temp3;
31343 arg4 = &temp4;
31344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31346 if (!SWIG_IsOK(res1)) {
31347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31348 }
31349 arg1 = reinterpret_cast< wxImageList * >(argp1);
31350 ecode2 = SWIG_AsVal_int(obj1, &val2);
31351 if (!SWIG_IsOK(ecode2)) {
31352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31353 }
31354 arg2 = static_cast< int >(val2);
31355 {
31356 PyThreadState* __tstate = wxPyBeginAllowThreads();
31357 (arg1)->GetSize(arg2,*arg3,*arg4);
31358 wxPyEndAllowThreads(__tstate);
31359 if (PyErr_Occurred()) SWIG_fail;
31360 }
31361 resultobj = SWIG_Py_Void();
31362 if (SWIG_IsTmpObj(res3)) {
31363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31364 } else {
31365 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31367 }
31368 if (SWIG_IsTmpObj(res4)) {
31369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31370 } else {
31371 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31373 }
31374 return resultobj;
31375 fail:
31376 return NULL;
31377 }
31378
31379
31380 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31381 PyObject *obj;
31382 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31383 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31384 return SWIG_Py_Void();
31385 }
31386
31387 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31388 return SWIG_Python_InitShadowInstance(args);
31389 }
31390
31391 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31392 PyObject *resultobj = 0;
31393 wxStockGDI *result = 0 ;
31394
31395 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31396 {
31397 PyThreadState* __tstate = wxPyBeginAllowThreads();
31398 result = (wxStockGDI *)new wxStockGDI();
31399 wxPyEndAllowThreads(__tstate);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 }
31402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31403 return resultobj;
31404 fail:
31405 return NULL;
31406 }
31407
31408
31409 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31410 PyObject *resultobj = 0;
31411 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31412 void *argp1 = 0 ;
31413 int res1 = 0 ;
31414 PyObject *swig_obj[1] ;
31415
31416 if (!args) SWIG_fail;
31417 swig_obj[0] = args;
31418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31419 if (!SWIG_IsOK(res1)) {
31420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31421 }
31422 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31423 {
31424 PyThreadState* __tstate = wxPyBeginAllowThreads();
31425 delete arg1;
31426
31427 wxPyEndAllowThreads(__tstate);
31428 if (PyErr_Occurred()) SWIG_fail;
31429 }
31430 resultobj = SWIG_Py_Void();
31431 return resultobj;
31432 fail:
31433 return NULL;
31434 }
31435
31436
31437 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31438 PyObject *resultobj = 0;
31439
31440 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31441 {
31442 PyThreadState* __tstate = wxPyBeginAllowThreads();
31443 wxStockGDI::DeleteAll();
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_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31455 PyObject *resultobj = 0;
31456 wxStockGDI *result = 0 ;
31457
31458 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31459 {
31460 PyThreadState* __tstate = wxPyBeginAllowThreads();
31461 {
31462 wxStockGDI &_result_ref = wxStockGDI::instance();
31463 result = (wxStockGDI *) &_result_ref;
31464 }
31465 wxPyEndAllowThreads(__tstate);
31466 if (PyErr_Occurred()) SWIG_fail;
31467 }
31468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31469 return resultobj;
31470 fail:
31471 return NULL;
31472 }
31473
31474
31475 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31476 PyObject *resultobj = 0;
31477 wxStockGDI::Item arg1 ;
31478 wxBrush *result = 0 ;
31479 int val1 ;
31480 int ecode1 = 0 ;
31481 PyObject * obj0 = 0 ;
31482 char * kwnames[] = {
31483 (char *) "item", NULL
31484 };
31485
31486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31487 ecode1 = SWIG_AsVal_int(obj0, &val1);
31488 if (!SWIG_IsOK(ecode1)) {
31489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31490 }
31491 arg1 = static_cast< wxStockGDI::Item >(val1);
31492 {
31493 PyThreadState* __tstate = wxPyBeginAllowThreads();
31494 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31495 wxPyEndAllowThreads(__tstate);
31496 if (PyErr_Occurred()) SWIG_fail;
31497 }
31498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31499 return resultobj;
31500 fail:
31501 return NULL;
31502 }
31503
31504
31505 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31506 PyObject *resultobj = 0;
31507 wxStockGDI::Item arg1 ;
31508 wxColour *result = 0 ;
31509 int val1 ;
31510 int ecode1 = 0 ;
31511 PyObject * obj0 = 0 ;
31512 char * kwnames[] = {
31513 (char *) "item", NULL
31514 };
31515
31516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31517 ecode1 = SWIG_AsVal_int(obj0, &val1);
31518 if (!SWIG_IsOK(ecode1)) {
31519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31520 }
31521 arg1 = static_cast< wxStockGDI::Item >(val1);
31522 {
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 result = (wxColour *)wxStockGDI::GetColour(arg1);
31525 wxPyEndAllowThreads(__tstate);
31526 if (PyErr_Occurred()) SWIG_fail;
31527 }
31528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31529 return resultobj;
31530 fail:
31531 return NULL;
31532 }
31533
31534
31535 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31536 PyObject *resultobj = 0;
31537 wxStockGDI::Item arg1 ;
31538 wxCursor *result = 0 ;
31539 int val1 ;
31540 int ecode1 = 0 ;
31541 PyObject * obj0 = 0 ;
31542 char * kwnames[] = {
31543 (char *) "item", NULL
31544 };
31545
31546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31547 ecode1 = SWIG_AsVal_int(obj0, &val1);
31548 if (!SWIG_IsOK(ecode1)) {
31549 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31550 }
31551 arg1 = static_cast< wxStockGDI::Item >(val1);
31552 {
31553 PyThreadState* __tstate = wxPyBeginAllowThreads();
31554 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31555 wxPyEndAllowThreads(__tstate);
31556 if (PyErr_Occurred()) SWIG_fail;
31557 }
31558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31559 return resultobj;
31560 fail:
31561 return NULL;
31562 }
31563
31564
31565 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31566 PyObject *resultobj = 0;
31567 wxStockGDI::Item arg1 ;
31568 wxPen *result = 0 ;
31569 int val1 ;
31570 int ecode1 = 0 ;
31571 PyObject * obj0 = 0 ;
31572 char * kwnames[] = {
31573 (char *) "item", NULL
31574 };
31575
31576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31577 ecode1 = SWIG_AsVal_int(obj0, &val1);
31578 if (!SWIG_IsOK(ecode1)) {
31579 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31580 }
31581 arg1 = static_cast< wxStockGDI::Item >(val1);
31582 {
31583 PyThreadState* __tstate = wxPyBeginAllowThreads();
31584 result = (wxPen *)wxStockGDI::GetPen(arg1);
31585 wxPyEndAllowThreads(__tstate);
31586 if (PyErr_Occurred()) SWIG_fail;
31587 }
31588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31589 return resultobj;
31590 fail:
31591 return NULL;
31592 }
31593
31594
31595 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31596 PyObject *resultobj = 0;
31597 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31598 wxStockGDI::Item arg2 ;
31599 wxFont *result = 0 ;
31600 void *argp1 = 0 ;
31601 int res1 = 0 ;
31602 int val2 ;
31603 int ecode2 = 0 ;
31604 PyObject * obj0 = 0 ;
31605 PyObject * obj1 = 0 ;
31606 char * kwnames[] = {
31607 (char *) "self",(char *) "item", NULL
31608 };
31609
31610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31612 if (!SWIG_IsOK(res1)) {
31613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31614 }
31615 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31616 ecode2 = SWIG_AsVal_int(obj1, &val2);
31617 if (!SWIG_IsOK(ecode2)) {
31618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31619 }
31620 arg2 = static_cast< wxStockGDI::Item >(val2);
31621 {
31622 PyThreadState* __tstate = wxPyBeginAllowThreads();
31623 result = (wxFont *)(arg1)->GetFont(arg2);
31624 wxPyEndAllowThreads(__tstate);
31625 if (PyErr_Occurred()) SWIG_fail;
31626 }
31627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31628 return resultobj;
31629 fail:
31630 return NULL;
31631 }
31632
31633
31634 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31635 PyObject *obj;
31636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31637 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31638 return SWIG_Py_Void();
31639 }
31640
31641 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31642 return SWIG_Python_InitShadowInstance(args);
31643 }
31644
31645 SWIGINTERN int NullBitmap_set(PyObject *) {
31646 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31647 return 1;
31648 }
31649
31650
31651 SWIGINTERN PyObject *NullBitmap_get(void) {
31652 PyObject *pyobj = 0;
31653
31654 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31655 return pyobj;
31656 }
31657
31658
31659 SWIGINTERN int NullIcon_set(PyObject *) {
31660 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31661 return 1;
31662 }
31663
31664
31665 SWIGINTERN PyObject *NullIcon_get(void) {
31666 PyObject *pyobj = 0;
31667
31668 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31669 return pyobj;
31670 }
31671
31672
31673 SWIGINTERN int NullCursor_set(PyObject *) {
31674 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31675 return 1;
31676 }
31677
31678
31679 SWIGINTERN PyObject *NullCursor_get(void) {
31680 PyObject *pyobj = 0;
31681
31682 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31683 return pyobj;
31684 }
31685
31686
31687 SWIGINTERN int NullPen_set(PyObject *) {
31688 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31689 return 1;
31690 }
31691
31692
31693 SWIGINTERN PyObject *NullPen_get(void) {
31694 PyObject *pyobj = 0;
31695
31696 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31697 return pyobj;
31698 }
31699
31700
31701 SWIGINTERN int NullBrush_set(PyObject *) {
31702 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31703 return 1;
31704 }
31705
31706
31707 SWIGINTERN PyObject *NullBrush_get(void) {
31708 PyObject *pyobj = 0;
31709
31710 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31711 return pyobj;
31712 }
31713
31714
31715 SWIGINTERN int NullPalette_set(PyObject *) {
31716 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31717 return 1;
31718 }
31719
31720
31721 SWIGINTERN PyObject *NullPalette_get(void) {
31722 PyObject *pyobj = 0;
31723
31724 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31725 return pyobj;
31726 }
31727
31728
31729 SWIGINTERN int NullFont_set(PyObject *) {
31730 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31731 return 1;
31732 }
31733
31734
31735 SWIGINTERN PyObject *NullFont_get(void) {
31736 PyObject *pyobj = 0;
31737
31738 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31739 return pyobj;
31740 }
31741
31742
31743 SWIGINTERN int NullColour_set(PyObject *) {
31744 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31745 return 1;
31746 }
31747
31748
31749 SWIGINTERN PyObject *NullColour_get(void) {
31750 PyObject *pyobj = 0;
31751
31752 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31753 return pyobj;
31754 }
31755
31756
31757 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31758 PyObject *resultobj = 0;
31759 wxGDIObjListBase *result = 0 ;
31760
31761 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31762 {
31763 PyThreadState* __tstate = wxPyBeginAllowThreads();
31764 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31765 wxPyEndAllowThreads(__tstate);
31766 if (PyErr_Occurred()) SWIG_fail;
31767 }
31768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31769 return resultobj;
31770 fail:
31771 return NULL;
31772 }
31773
31774
31775 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31776 PyObject *resultobj = 0;
31777 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
31778 void *argp1 = 0 ;
31779 int res1 = 0 ;
31780 PyObject *swig_obj[1] ;
31781
31782 if (!args) SWIG_fail;
31783 swig_obj[0] = args;
31784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
31785 if (!SWIG_IsOK(res1)) {
31786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
31787 }
31788 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
31789 {
31790 PyThreadState* __tstate = wxPyBeginAllowThreads();
31791 delete arg1;
31792
31793 wxPyEndAllowThreads(__tstate);
31794 if (PyErr_Occurred()) SWIG_fail;
31795 }
31796 resultobj = SWIG_Py_Void();
31797 return resultobj;
31798 fail:
31799 return NULL;
31800 }
31801
31802
31803 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31804 PyObject *obj;
31805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31806 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31807 return SWIG_Py_Void();
31808 }
31809
31810 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31811 return SWIG_Python_InitShadowInstance(args);
31812 }
31813
31814 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31815 PyObject *resultobj = 0;
31816 wxPenList *arg1 = (wxPenList *) 0 ;
31817 wxColour *arg2 = 0 ;
31818 int arg3 ;
31819 int arg4 ;
31820 wxPen *result = 0 ;
31821 void *argp1 = 0 ;
31822 int res1 = 0 ;
31823 wxColour temp2 ;
31824 int val3 ;
31825 int ecode3 = 0 ;
31826 int val4 ;
31827 int ecode4 = 0 ;
31828 PyObject * obj0 = 0 ;
31829 PyObject * obj1 = 0 ;
31830 PyObject * obj2 = 0 ;
31831 PyObject * obj3 = 0 ;
31832 char * kwnames[] = {
31833 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31834 };
31835
31836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31838 if (!SWIG_IsOK(res1)) {
31839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31840 }
31841 arg1 = reinterpret_cast< wxPenList * >(argp1);
31842 {
31843 arg2 = &temp2;
31844 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31845 }
31846 ecode3 = SWIG_AsVal_int(obj2, &val3);
31847 if (!SWIG_IsOK(ecode3)) {
31848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31849 }
31850 arg3 = static_cast< int >(val3);
31851 ecode4 = SWIG_AsVal_int(obj3, &val4);
31852 if (!SWIG_IsOK(ecode4)) {
31853 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31854 }
31855 arg4 = static_cast< int >(val4);
31856 {
31857 PyThreadState* __tstate = wxPyBeginAllowThreads();
31858 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31859 wxPyEndAllowThreads(__tstate);
31860 if (PyErr_Occurred()) SWIG_fail;
31861 }
31862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31863 return resultobj;
31864 fail:
31865 return NULL;
31866 }
31867
31868
31869 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31870 PyObject *resultobj = 0;
31871 wxPenList *arg1 = (wxPenList *) 0 ;
31872 wxPen *arg2 = (wxPen *) 0 ;
31873 void *argp1 = 0 ;
31874 int res1 = 0 ;
31875 void *argp2 = 0 ;
31876 int res2 = 0 ;
31877 PyObject * obj0 = 0 ;
31878 PyObject * obj1 = 0 ;
31879 char * kwnames[] = {
31880 (char *) "self",(char *) "pen", NULL
31881 };
31882
31883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
31884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31885 if (!SWIG_IsOK(res1)) {
31886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
31887 }
31888 arg1 = reinterpret_cast< wxPenList * >(argp1);
31889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31890 if (!SWIG_IsOK(res2)) {
31891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
31892 }
31893 arg2 = reinterpret_cast< wxPen * >(argp2);
31894 {
31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
31896 (arg1)->AddPen(arg2);
31897 wxPyEndAllowThreads(__tstate);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 resultobj = SWIG_Py_Void();
31901 return resultobj;
31902 fail:
31903 return NULL;
31904 }
31905
31906
31907 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31908 PyObject *resultobj = 0;
31909 wxPenList *arg1 = (wxPenList *) 0 ;
31910 wxPen *arg2 = (wxPen *) 0 ;
31911 void *argp1 = 0 ;
31912 int res1 = 0 ;
31913 void *argp2 = 0 ;
31914 int res2 = 0 ;
31915 PyObject * obj0 = 0 ;
31916 PyObject * obj1 = 0 ;
31917 char * kwnames[] = {
31918 (char *) "self",(char *) "pen", NULL
31919 };
31920
31921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31923 if (!SWIG_IsOK(res1)) {
31924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31925 }
31926 arg1 = reinterpret_cast< wxPenList * >(argp1);
31927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31928 if (!SWIG_IsOK(res2)) {
31929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31930 }
31931 arg2 = reinterpret_cast< wxPen * >(argp2);
31932 {
31933 PyThreadState* __tstate = wxPyBeginAllowThreads();
31934 (arg1)->RemovePen(arg2);
31935 wxPyEndAllowThreads(__tstate);
31936 if (PyErr_Occurred()) SWIG_fail;
31937 }
31938 resultobj = SWIG_Py_Void();
31939 return resultobj;
31940 fail:
31941 return NULL;
31942 }
31943
31944
31945 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31946 PyObject *obj;
31947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31948 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31949 return SWIG_Py_Void();
31950 }
31951
31952 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31953 PyObject *resultobj = 0;
31954 wxBrushList *arg1 = (wxBrushList *) 0 ;
31955 wxColour *arg2 = 0 ;
31956 int arg3 = (int) wxSOLID ;
31957 wxBrush *result = 0 ;
31958 void *argp1 = 0 ;
31959 int res1 = 0 ;
31960 wxColour temp2 ;
31961 int val3 ;
31962 int ecode3 = 0 ;
31963 PyObject * obj0 = 0 ;
31964 PyObject * obj1 = 0 ;
31965 PyObject * obj2 = 0 ;
31966 char * kwnames[] = {
31967 (char *) "self",(char *) "colour",(char *) "style", NULL
31968 };
31969
31970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31972 if (!SWIG_IsOK(res1)) {
31973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31974 }
31975 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31976 {
31977 arg2 = &temp2;
31978 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31979 }
31980 if (obj2) {
31981 ecode3 = SWIG_AsVal_int(obj2, &val3);
31982 if (!SWIG_IsOK(ecode3)) {
31983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31984 }
31985 arg3 = static_cast< int >(val3);
31986 }
31987 {
31988 PyThreadState* __tstate = wxPyBeginAllowThreads();
31989 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31990 wxPyEndAllowThreads(__tstate);
31991 if (PyErr_Occurred()) SWIG_fail;
31992 }
31993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31994 return resultobj;
31995 fail:
31996 return NULL;
31997 }
31998
31999
32000 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32001 PyObject *resultobj = 0;
32002 wxBrushList *arg1 = (wxBrushList *) 0 ;
32003 wxBrush *arg2 = (wxBrush *) 0 ;
32004 void *argp1 = 0 ;
32005 int res1 = 0 ;
32006 void *argp2 = 0 ;
32007 int res2 = 0 ;
32008 PyObject * obj0 = 0 ;
32009 PyObject * obj1 = 0 ;
32010 char * kwnames[] = {
32011 (char *) "self",(char *) "brush", NULL
32012 };
32013
32014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32016 if (!SWIG_IsOK(res1)) {
32017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32018 }
32019 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32020 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32021 if (!SWIG_IsOK(res2)) {
32022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32023 }
32024 arg2 = reinterpret_cast< wxBrush * >(argp2);
32025 {
32026 PyThreadState* __tstate = wxPyBeginAllowThreads();
32027 (arg1)->AddBrush(arg2);
32028 wxPyEndAllowThreads(__tstate);
32029 if (PyErr_Occurred()) SWIG_fail;
32030 }
32031 resultobj = SWIG_Py_Void();
32032 return resultobj;
32033 fail:
32034 return NULL;
32035 }
32036
32037
32038 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32039 PyObject *resultobj = 0;
32040 wxBrushList *arg1 = (wxBrushList *) 0 ;
32041 wxBrush *arg2 = (wxBrush *) 0 ;
32042 void *argp1 = 0 ;
32043 int res1 = 0 ;
32044 void *argp2 = 0 ;
32045 int res2 = 0 ;
32046 PyObject * obj0 = 0 ;
32047 PyObject * obj1 = 0 ;
32048 char * kwnames[] = {
32049 (char *) "self",(char *) "brush", NULL
32050 };
32051
32052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32054 if (!SWIG_IsOK(res1)) {
32055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32056 }
32057 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32059 if (!SWIG_IsOK(res2)) {
32060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32061 }
32062 arg2 = reinterpret_cast< wxBrush * >(argp2);
32063 {
32064 PyThreadState* __tstate = wxPyBeginAllowThreads();
32065 (arg1)->RemoveBrush(arg2);
32066 wxPyEndAllowThreads(__tstate);
32067 if (PyErr_Occurred()) SWIG_fail;
32068 }
32069 resultobj = SWIG_Py_Void();
32070 return resultobj;
32071 fail:
32072 return NULL;
32073 }
32074
32075
32076 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32077 PyObject *obj;
32078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32079 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32080 return SWIG_Py_Void();
32081 }
32082
32083 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32084 PyObject *resultobj = 0;
32085 wxFontList *arg1 = (wxFontList *) 0 ;
32086 int arg2 ;
32087 int arg3 ;
32088 int arg4 ;
32089 int arg5 ;
32090 bool arg6 = (bool) false ;
32091 wxString const &arg7_defvalue = wxPyEmptyString ;
32092 wxString *arg7 = (wxString *) &arg7_defvalue ;
32093 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32094 wxFont *result = 0 ;
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 bool val6 ;
32106 int ecode6 = 0 ;
32107 bool temp7 = false ;
32108 int val8 ;
32109 int ecode8 = 0 ;
32110 PyObject * obj0 = 0 ;
32111 PyObject * obj1 = 0 ;
32112 PyObject * obj2 = 0 ;
32113 PyObject * obj3 = 0 ;
32114 PyObject * obj4 = 0 ;
32115 PyObject * obj5 = 0 ;
32116 PyObject * obj6 = 0 ;
32117 PyObject * obj7 = 0 ;
32118 char * kwnames[] = {
32119 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32120 };
32121
32122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32124 if (!SWIG_IsOK(res1)) {
32125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32126 }
32127 arg1 = reinterpret_cast< wxFontList * >(argp1);
32128 ecode2 = SWIG_AsVal_int(obj1, &val2);
32129 if (!SWIG_IsOK(ecode2)) {
32130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32131 }
32132 arg2 = static_cast< int >(val2);
32133 ecode3 = SWIG_AsVal_int(obj2, &val3);
32134 if (!SWIG_IsOK(ecode3)) {
32135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32136 }
32137 arg3 = static_cast< int >(val3);
32138 ecode4 = SWIG_AsVal_int(obj3, &val4);
32139 if (!SWIG_IsOK(ecode4)) {
32140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32141 }
32142 arg4 = static_cast< int >(val4);
32143 ecode5 = SWIG_AsVal_int(obj4, &val5);
32144 if (!SWIG_IsOK(ecode5)) {
32145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32146 }
32147 arg5 = static_cast< int >(val5);
32148 if (obj5) {
32149 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32150 if (!SWIG_IsOK(ecode6)) {
32151 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32152 }
32153 arg6 = static_cast< bool >(val6);
32154 }
32155 if (obj6) {
32156 {
32157 arg7 = wxString_in_helper(obj6);
32158 if (arg7 == NULL) SWIG_fail;
32159 temp7 = true;
32160 }
32161 }
32162 if (obj7) {
32163 ecode8 = SWIG_AsVal_int(obj7, &val8);
32164 if (!SWIG_IsOK(ecode8)) {
32165 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32166 }
32167 arg8 = static_cast< wxFontEncoding >(val8);
32168 }
32169 {
32170 PyThreadState* __tstate = wxPyBeginAllowThreads();
32171 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32172 wxPyEndAllowThreads(__tstate);
32173 if (PyErr_Occurred()) SWIG_fail;
32174 }
32175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32176 {
32177 if (temp7)
32178 delete arg7;
32179 }
32180 return resultobj;
32181 fail:
32182 {
32183 if (temp7)
32184 delete arg7;
32185 }
32186 return NULL;
32187 }
32188
32189
32190 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32191 PyObject *resultobj = 0;
32192 wxFontList *arg1 = (wxFontList *) 0 ;
32193 wxFont *arg2 = (wxFont *) 0 ;
32194 void *argp1 = 0 ;
32195 int res1 = 0 ;
32196 void *argp2 = 0 ;
32197 int res2 = 0 ;
32198 PyObject * obj0 = 0 ;
32199 PyObject * obj1 = 0 ;
32200 char * kwnames[] = {
32201 (char *) "self",(char *) "font", NULL
32202 };
32203
32204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32206 if (!SWIG_IsOK(res1)) {
32207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32208 }
32209 arg1 = reinterpret_cast< wxFontList * >(argp1);
32210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32211 if (!SWIG_IsOK(res2)) {
32212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32213 }
32214 arg2 = reinterpret_cast< wxFont * >(argp2);
32215 {
32216 PyThreadState* __tstate = wxPyBeginAllowThreads();
32217 (arg1)->AddFont(arg2);
32218 wxPyEndAllowThreads(__tstate);
32219 if (PyErr_Occurred()) SWIG_fail;
32220 }
32221 resultobj = SWIG_Py_Void();
32222 return resultobj;
32223 fail:
32224 return NULL;
32225 }
32226
32227
32228 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32229 PyObject *resultobj = 0;
32230 wxFontList *arg1 = (wxFontList *) 0 ;
32231 wxFont *arg2 = (wxFont *) 0 ;
32232 void *argp1 = 0 ;
32233 int res1 = 0 ;
32234 void *argp2 = 0 ;
32235 int res2 = 0 ;
32236 PyObject * obj0 = 0 ;
32237 PyObject * obj1 = 0 ;
32238 char * kwnames[] = {
32239 (char *) "self",(char *) "font", NULL
32240 };
32241
32242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32244 if (!SWIG_IsOK(res1)) {
32245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32246 }
32247 arg1 = reinterpret_cast< wxFontList * >(argp1);
32248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32249 if (!SWIG_IsOK(res2)) {
32250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32251 }
32252 arg2 = reinterpret_cast< wxFont * >(argp2);
32253 {
32254 PyThreadState* __tstate = wxPyBeginAllowThreads();
32255 (arg1)->RemoveFont(arg2);
32256 wxPyEndAllowThreads(__tstate);
32257 if (PyErr_Occurred()) SWIG_fail;
32258 }
32259 resultobj = SWIG_Py_Void();
32260 return resultobj;
32261 fail:
32262 return NULL;
32263 }
32264
32265
32266 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32267 PyObject *obj;
32268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32269 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32270 return SWIG_Py_Void();
32271 }
32272
32273 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32274 PyObject *resultobj = 0;
32275 wxColourDatabase *result = 0 ;
32276
32277 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32278 {
32279 if (!wxPyCheckForApp()) SWIG_fail;
32280 PyThreadState* __tstate = wxPyBeginAllowThreads();
32281 result = (wxColourDatabase *)new wxColourDatabase();
32282 wxPyEndAllowThreads(__tstate);
32283 if (PyErr_Occurred()) SWIG_fail;
32284 }
32285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32286 return resultobj;
32287 fail:
32288 return NULL;
32289 }
32290
32291
32292 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32293 PyObject *resultobj = 0;
32294 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32295 void *argp1 = 0 ;
32296 int res1 = 0 ;
32297 PyObject *swig_obj[1] ;
32298
32299 if (!args) SWIG_fail;
32300 swig_obj[0] = args;
32301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32302 if (!SWIG_IsOK(res1)) {
32303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32304 }
32305 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32306 {
32307 PyThreadState* __tstate = wxPyBeginAllowThreads();
32308 delete arg1;
32309
32310 wxPyEndAllowThreads(__tstate);
32311 if (PyErr_Occurred()) SWIG_fail;
32312 }
32313 resultobj = SWIG_Py_Void();
32314 return resultobj;
32315 fail:
32316 return NULL;
32317 }
32318
32319
32320 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32321 PyObject *resultobj = 0;
32322 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32323 wxString *arg2 = 0 ;
32324 wxColour result;
32325 void *argp1 = 0 ;
32326 int res1 = 0 ;
32327 bool temp2 = false ;
32328 PyObject * obj0 = 0 ;
32329 PyObject * obj1 = 0 ;
32330 char * kwnames[] = {
32331 (char *) "self",(char *) "name", NULL
32332 };
32333
32334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32336 if (!SWIG_IsOK(res1)) {
32337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32338 }
32339 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32340 {
32341 arg2 = wxString_in_helper(obj1);
32342 if (arg2 == NULL) SWIG_fail;
32343 temp2 = true;
32344 }
32345 {
32346 PyThreadState* __tstate = wxPyBeginAllowThreads();
32347 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32348 wxPyEndAllowThreads(__tstate);
32349 if (PyErr_Occurred()) SWIG_fail;
32350 }
32351 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32352 {
32353 if (temp2)
32354 delete arg2;
32355 }
32356 return resultobj;
32357 fail:
32358 {
32359 if (temp2)
32360 delete arg2;
32361 }
32362 return NULL;
32363 }
32364
32365
32366 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32367 PyObject *resultobj = 0;
32368 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32369 wxColour *arg2 = 0 ;
32370 wxString result;
32371 void *argp1 = 0 ;
32372 int res1 = 0 ;
32373 wxColour temp2 ;
32374 PyObject * obj0 = 0 ;
32375 PyObject * obj1 = 0 ;
32376 char * kwnames[] = {
32377 (char *) "self",(char *) "colour", NULL
32378 };
32379
32380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32382 if (!SWIG_IsOK(res1)) {
32383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32384 }
32385 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32386 {
32387 arg2 = &temp2;
32388 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32389 }
32390 {
32391 PyThreadState* __tstate = wxPyBeginAllowThreads();
32392 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32393 wxPyEndAllowThreads(__tstate);
32394 if (PyErr_Occurred()) SWIG_fail;
32395 }
32396 {
32397 #if wxUSE_UNICODE
32398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32399 #else
32400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32401 #endif
32402 }
32403 return resultobj;
32404 fail:
32405 return NULL;
32406 }
32407
32408
32409 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32410 PyObject *resultobj = 0;
32411 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32412 wxString *arg2 = 0 ;
32413 wxColour *arg3 = 0 ;
32414 void *argp1 = 0 ;
32415 int res1 = 0 ;
32416 bool temp2 = false ;
32417 wxColour temp3 ;
32418 PyObject * obj0 = 0 ;
32419 PyObject * obj1 = 0 ;
32420 PyObject * obj2 = 0 ;
32421 char * kwnames[] = {
32422 (char *) "self",(char *) "name",(char *) "colour", NULL
32423 };
32424
32425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32427 if (!SWIG_IsOK(res1)) {
32428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32429 }
32430 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32431 {
32432 arg2 = wxString_in_helper(obj1);
32433 if (arg2 == NULL) SWIG_fail;
32434 temp2 = true;
32435 }
32436 {
32437 arg3 = &temp3;
32438 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32439 }
32440 {
32441 PyThreadState* __tstate = wxPyBeginAllowThreads();
32442 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32443 wxPyEndAllowThreads(__tstate);
32444 if (PyErr_Occurred()) SWIG_fail;
32445 }
32446 resultobj = SWIG_Py_Void();
32447 {
32448 if (temp2)
32449 delete arg2;
32450 }
32451 return resultobj;
32452 fail:
32453 {
32454 if (temp2)
32455 delete arg2;
32456 }
32457 return NULL;
32458 }
32459
32460
32461 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32462 PyObject *resultobj = 0;
32463 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32464 wxString *arg2 = 0 ;
32465 int arg3 ;
32466 int arg4 ;
32467 int arg5 ;
32468 void *argp1 = 0 ;
32469 int res1 = 0 ;
32470 bool temp2 = false ;
32471 int val3 ;
32472 int ecode3 = 0 ;
32473 int val4 ;
32474 int ecode4 = 0 ;
32475 int val5 ;
32476 int ecode5 = 0 ;
32477 PyObject * obj0 = 0 ;
32478 PyObject * obj1 = 0 ;
32479 PyObject * obj2 = 0 ;
32480 PyObject * obj3 = 0 ;
32481 PyObject * obj4 = 0 ;
32482 char * kwnames[] = {
32483 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32484 };
32485
32486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32488 if (!SWIG_IsOK(res1)) {
32489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32490 }
32491 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32492 {
32493 arg2 = wxString_in_helper(obj1);
32494 if (arg2 == NULL) SWIG_fail;
32495 temp2 = true;
32496 }
32497 ecode3 = SWIG_AsVal_int(obj2, &val3);
32498 if (!SWIG_IsOK(ecode3)) {
32499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32500 }
32501 arg3 = static_cast< int >(val3);
32502 ecode4 = SWIG_AsVal_int(obj3, &val4);
32503 if (!SWIG_IsOK(ecode4)) {
32504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32505 }
32506 arg4 = static_cast< int >(val4);
32507 ecode5 = SWIG_AsVal_int(obj4, &val5);
32508 if (!SWIG_IsOK(ecode5)) {
32509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32510 }
32511 arg5 = static_cast< int >(val5);
32512 {
32513 PyThreadState* __tstate = wxPyBeginAllowThreads();
32514 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32515 wxPyEndAllowThreads(__tstate);
32516 if (PyErr_Occurred()) SWIG_fail;
32517 }
32518 resultobj = SWIG_Py_Void();
32519 {
32520 if (temp2)
32521 delete arg2;
32522 }
32523 return resultobj;
32524 fail:
32525 {
32526 if (temp2)
32527 delete arg2;
32528 }
32529 return NULL;
32530 }
32531
32532
32533 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32534 PyObject *obj;
32535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32536 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32537 return SWIG_Py_Void();
32538 }
32539
32540 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32541 return SWIG_Python_InitShadowInstance(args);
32542 }
32543
32544 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32545 PyObject *resultobj = 0;
32546 wxFontList *result = 0 ;
32547
32548 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32549 {
32550 PyThreadState* __tstate = wxPyBeginAllowThreads();
32551 result = (wxFontList *)_wxPyInitTheFontList();
32552 wxPyEndAllowThreads(__tstate);
32553 if (PyErr_Occurred()) SWIG_fail;
32554 }
32555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32556 return resultobj;
32557 fail:
32558 return NULL;
32559 }
32560
32561
32562 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32563 PyObject *resultobj = 0;
32564 wxPenList *result = 0 ;
32565
32566 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32567 {
32568 PyThreadState* __tstate = wxPyBeginAllowThreads();
32569 result = (wxPenList *)_wxPyInitThePenList();
32570 wxPyEndAllowThreads(__tstate);
32571 if (PyErr_Occurred()) SWIG_fail;
32572 }
32573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32574 return resultobj;
32575 fail:
32576 return NULL;
32577 }
32578
32579
32580 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32581 PyObject *resultobj = 0;
32582 wxBrushList *result = 0 ;
32583
32584 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32585 {
32586 PyThreadState* __tstate = wxPyBeginAllowThreads();
32587 result = (wxBrushList *)_wxPyInitTheBrushList();
32588 wxPyEndAllowThreads(__tstate);
32589 if (PyErr_Occurred()) SWIG_fail;
32590 }
32591 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32592 return resultobj;
32593 fail:
32594 return NULL;
32595 }
32596
32597
32598 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32599 PyObject *resultobj = 0;
32600 wxColourDatabase *result = 0 ;
32601
32602 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32603 {
32604 PyThreadState* __tstate = wxPyBeginAllowThreads();
32605 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32606 wxPyEndAllowThreads(__tstate);
32607 if (PyErr_Occurred()) SWIG_fail;
32608 }
32609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32610 return resultobj;
32611 fail:
32612 return NULL;
32613 }
32614
32615
32616 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32617 PyObject *resultobj = 0;
32618 wxEffects *result = 0 ;
32619
32620 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32621 {
32622 PyThreadState* __tstate = wxPyBeginAllowThreads();
32623 result = (wxEffects *)new wxEffects();
32624 wxPyEndAllowThreads(__tstate);
32625 if (PyErr_Occurred()) SWIG_fail;
32626 }
32627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32635 PyObject *resultobj = 0;
32636 wxEffects *arg1 = (wxEffects *) 0 ;
32637 wxColour result;
32638 void *argp1 = 0 ;
32639 int res1 = 0 ;
32640 PyObject *swig_obj[1] ;
32641
32642 if (!args) SWIG_fail;
32643 swig_obj[0] = args;
32644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32645 if (!SWIG_IsOK(res1)) {
32646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32647 }
32648 arg1 = reinterpret_cast< wxEffects * >(argp1);
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
32651 result = ((wxEffects const *)arg1)->GetHighlightColour();
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32656 return resultobj;
32657 fail:
32658 return NULL;
32659 }
32660
32661
32662 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32663 PyObject *resultobj = 0;
32664 wxEffects *arg1 = (wxEffects *) 0 ;
32665 wxColour result;
32666 void *argp1 = 0 ;
32667 int res1 = 0 ;
32668 PyObject *swig_obj[1] ;
32669
32670 if (!args) SWIG_fail;
32671 swig_obj[0] = args;
32672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32673 if (!SWIG_IsOK(res1)) {
32674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32675 }
32676 arg1 = reinterpret_cast< wxEffects * >(argp1);
32677 {
32678 PyThreadState* __tstate = wxPyBeginAllowThreads();
32679 result = ((wxEffects const *)arg1)->GetLightShadow();
32680 wxPyEndAllowThreads(__tstate);
32681 if (PyErr_Occurred()) SWIG_fail;
32682 }
32683 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32684 return resultobj;
32685 fail:
32686 return NULL;
32687 }
32688
32689
32690 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32691 PyObject *resultobj = 0;
32692 wxEffects *arg1 = (wxEffects *) 0 ;
32693 wxColour result;
32694 void *argp1 = 0 ;
32695 int res1 = 0 ;
32696 PyObject *swig_obj[1] ;
32697
32698 if (!args) SWIG_fail;
32699 swig_obj[0] = args;
32700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32701 if (!SWIG_IsOK(res1)) {
32702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32703 }
32704 arg1 = reinterpret_cast< wxEffects * >(argp1);
32705 {
32706 PyThreadState* __tstate = wxPyBeginAllowThreads();
32707 result = ((wxEffects const *)arg1)->GetFaceColour();
32708 wxPyEndAllowThreads(__tstate);
32709 if (PyErr_Occurred()) SWIG_fail;
32710 }
32711 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32712 return resultobj;
32713 fail:
32714 return NULL;
32715 }
32716
32717
32718 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32719 PyObject *resultobj = 0;
32720 wxEffects *arg1 = (wxEffects *) 0 ;
32721 wxColour result;
32722 void *argp1 = 0 ;
32723 int res1 = 0 ;
32724 PyObject *swig_obj[1] ;
32725
32726 if (!args) SWIG_fail;
32727 swig_obj[0] = args;
32728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32729 if (!SWIG_IsOK(res1)) {
32730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32731 }
32732 arg1 = reinterpret_cast< wxEffects * >(argp1);
32733 {
32734 PyThreadState* __tstate = wxPyBeginAllowThreads();
32735 result = ((wxEffects const *)arg1)->GetMediumShadow();
32736 wxPyEndAllowThreads(__tstate);
32737 if (PyErr_Occurred()) SWIG_fail;
32738 }
32739 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32740 return resultobj;
32741 fail:
32742 return NULL;
32743 }
32744
32745
32746 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32747 PyObject *resultobj = 0;
32748 wxEffects *arg1 = (wxEffects *) 0 ;
32749 wxColour result;
32750 void *argp1 = 0 ;
32751 int res1 = 0 ;
32752 PyObject *swig_obj[1] ;
32753
32754 if (!args) SWIG_fail;
32755 swig_obj[0] = args;
32756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32757 if (!SWIG_IsOK(res1)) {
32758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32759 }
32760 arg1 = reinterpret_cast< wxEffects * >(argp1);
32761 {
32762 PyThreadState* __tstate = wxPyBeginAllowThreads();
32763 result = ((wxEffects const *)arg1)->GetDarkShadow();
32764 wxPyEndAllowThreads(__tstate);
32765 if (PyErr_Occurred()) SWIG_fail;
32766 }
32767 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32768 return resultobj;
32769 fail:
32770 return NULL;
32771 }
32772
32773
32774 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32775 PyObject *resultobj = 0;
32776 wxEffects *arg1 = (wxEffects *) 0 ;
32777 wxColour *arg2 = 0 ;
32778 void *argp1 = 0 ;
32779 int res1 = 0 ;
32780 wxColour temp2 ;
32781 PyObject * obj0 = 0 ;
32782 PyObject * obj1 = 0 ;
32783 char * kwnames[] = {
32784 (char *) "self",(char *) "c", NULL
32785 };
32786
32787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32789 if (!SWIG_IsOK(res1)) {
32790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32791 }
32792 arg1 = reinterpret_cast< wxEffects * >(argp1);
32793 {
32794 arg2 = &temp2;
32795 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32796 }
32797 {
32798 PyThreadState* __tstate = wxPyBeginAllowThreads();
32799 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32800 wxPyEndAllowThreads(__tstate);
32801 if (PyErr_Occurred()) SWIG_fail;
32802 }
32803 resultobj = SWIG_Py_Void();
32804 return resultobj;
32805 fail:
32806 return NULL;
32807 }
32808
32809
32810 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32811 PyObject *resultobj = 0;
32812 wxEffects *arg1 = (wxEffects *) 0 ;
32813 wxColour *arg2 = 0 ;
32814 void *argp1 = 0 ;
32815 int res1 = 0 ;
32816 wxColour temp2 ;
32817 PyObject * obj0 = 0 ;
32818 PyObject * obj1 = 0 ;
32819 char * kwnames[] = {
32820 (char *) "self",(char *) "c", NULL
32821 };
32822
32823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32825 if (!SWIG_IsOK(res1)) {
32826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32827 }
32828 arg1 = reinterpret_cast< wxEffects * >(argp1);
32829 {
32830 arg2 = &temp2;
32831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32832 }
32833 {
32834 PyThreadState* __tstate = wxPyBeginAllowThreads();
32835 (arg1)->SetLightShadow((wxColour const &)*arg2);
32836 wxPyEndAllowThreads(__tstate);
32837 if (PyErr_Occurred()) SWIG_fail;
32838 }
32839 resultobj = SWIG_Py_Void();
32840 return resultobj;
32841 fail:
32842 return NULL;
32843 }
32844
32845
32846 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32847 PyObject *resultobj = 0;
32848 wxEffects *arg1 = (wxEffects *) 0 ;
32849 wxColour *arg2 = 0 ;
32850 void *argp1 = 0 ;
32851 int res1 = 0 ;
32852 wxColour temp2 ;
32853 PyObject * obj0 = 0 ;
32854 PyObject * obj1 = 0 ;
32855 char * kwnames[] = {
32856 (char *) "self",(char *) "c", NULL
32857 };
32858
32859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32861 if (!SWIG_IsOK(res1)) {
32862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32863 }
32864 arg1 = reinterpret_cast< wxEffects * >(argp1);
32865 {
32866 arg2 = &temp2;
32867 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32868 }
32869 {
32870 PyThreadState* __tstate = wxPyBeginAllowThreads();
32871 (arg1)->SetFaceColour((wxColour const &)*arg2);
32872 wxPyEndAllowThreads(__tstate);
32873 if (PyErr_Occurred()) SWIG_fail;
32874 }
32875 resultobj = SWIG_Py_Void();
32876 return resultobj;
32877 fail:
32878 return NULL;
32879 }
32880
32881
32882 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32883 PyObject *resultobj = 0;
32884 wxEffects *arg1 = (wxEffects *) 0 ;
32885 wxColour *arg2 = 0 ;
32886 void *argp1 = 0 ;
32887 int res1 = 0 ;
32888 wxColour temp2 ;
32889 PyObject * obj0 = 0 ;
32890 PyObject * obj1 = 0 ;
32891 char * kwnames[] = {
32892 (char *) "self",(char *) "c", NULL
32893 };
32894
32895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32897 if (!SWIG_IsOK(res1)) {
32898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32899 }
32900 arg1 = reinterpret_cast< wxEffects * >(argp1);
32901 {
32902 arg2 = &temp2;
32903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32904 }
32905 {
32906 PyThreadState* __tstate = wxPyBeginAllowThreads();
32907 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32908 wxPyEndAllowThreads(__tstate);
32909 if (PyErr_Occurred()) SWIG_fail;
32910 }
32911 resultobj = SWIG_Py_Void();
32912 return resultobj;
32913 fail:
32914 return NULL;
32915 }
32916
32917
32918 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32919 PyObject *resultobj = 0;
32920 wxEffects *arg1 = (wxEffects *) 0 ;
32921 wxColour *arg2 = 0 ;
32922 void *argp1 = 0 ;
32923 int res1 = 0 ;
32924 wxColour temp2 ;
32925 PyObject * obj0 = 0 ;
32926 PyObject * obj1 = 0 ;
32927 char * kwnames[] = {
32928 (char *) "self",(char *) "c", NULL
32929 };
32930
32931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32933 if (!SWIG_IsOK(res1)) {
32934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32935 }
32936 arg1 = reinterpret_cast< wxEffects * >(argp1);
32937 {
32938 arg2 = &temp2;
32939 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32940 }
32941 {
32942 PyThreadState* __tstate = wxPyBeginAllowThreads();
32943 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32944 wxPyEndAllowThreads(__tstate);
32945 if (PyErr_Occurred()) SWIG_fail;
32946 }
32947 resultobj = SWIG_Py_Void();
32948 return resultobj;
32949 fail:
32950 return NULL;
32951 }
32952
32953
32954 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32955 PyObject *resultobj = 0;
32956 wxEffects *arg1 = (wxEffects *) 0 ;
32957 wxColour *arg2 = 0 ;
32958 wxColour *arg3 = 0 ;
32959 wxColour *arg4 = 0 ;
32960 wxColour *arg5 = 0 ;
32961 wxColour *arg6 = 0 ;
32962 void *argp1 = 0 ;
32963 int res1 = 0 ;
32964 wxColour temp2 ;
32965 wxColour temp3 ;
32966 wxColour temp4 ;
32967 wxColour temp5 ;
32968 wxColour temp6 ;
32969 PyObject * obj0 = 0 ;
32970 PyObject * obj1 = 0 ;
32971 PyObject * obj2 = 0 ;
32972 PyObject * obj3 = 0 ;
32973 PyObject * obj4 = 0 ;
32974 PyObject * obj5 = 0 ;
32975 char * kwnames[] = {
32976 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32977 };
32978
32979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32981 if (!SWIG_IsOK(res1)) {
32982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32983 }
32984 arg1 = reinterpret_cast< wxEffects * >(argp1);
32985 {
32986 arg2 = &temp2;
32987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32988 }
32989 {
32990 arg3 = &temp3;
32991 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32992 }
32993 {
32994 arg4 = &temp4;
32995 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32996 }
32997 {
32998 arg5 = &temp5;
32999 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33000 }
33001 {
33002 arg6 = &temp6;
33003 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33004 }
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
33007 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33008 wxPyEndAllowThreads(__tstate);
33009 if (PyErr_Occurred()) SWIG_fail;
33010 }
33011 resultobj = SWIG_Py_Void();
33012 return resultobj;
33013 fail:
33014 return NULL;
33015 }
33016
33017
33018 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33019 PyObject *resultobj = 0;
33020 wxEffects *arg1 = (wxEffects *) 0 ;
33021 wxDC *arg2 = 0 ;
33022 wxRect *arg3 = 0 ;
33023 int arg4 = (int) 1 ;
33024 void *argp1 = 0 ;
33025 int res1 = 0 ;
33026 void *argp2 = 0 ;
33027 int res2 = 0 ;
33028 wxRect temp3 ;
33029 int val4 ;
33030 int ecode4 = 0 ;
33031 PyObject * obj0 = 0 ;
33032 PyObject * obj1 = 0 ;
33033 PyObject * obj2 = 0 ;
33034 PyObject * obj3 = 0 ;
33035 char * kwnames[] = {
33036 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33037 };
33038
33039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33041 if (!SWIG_IsOK(res1)) {
33042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33043 }
33044 arg1 = reinterpret_cast< wxEffects * >(argp1);
33045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33046 if (!SWIG_IsOK(res2)) {
33047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33048 }
33049 if (!argp2) {
33050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33051 }
33052 arg2 = reinterpret_cast< wxDC * >(argp2);
33053 {
33054 arg3 = &temp3;
33055 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33056 }
33057 if (obj3) {
33058 ecode4 = SWIG_AsVal_int(obj3, &val4);
33059 if (!SWIG_IsOK(ecode4)) {
33060 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33061 }
33062 arg4 = static_cast< int >(val4);
33063 }
33064 {
33065 PyThreadState* __tstate = wxPyBeginAllowThreads();
33066 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33067 wxPyEndAllowThreads(__tstate);
33068 if (PyErr_Occurred()) SWIG_fail;
33069 }
33070 resultobj = SWIG_Py_Void();
33071 return resultobj;
33072 fail:
33073 return NULL;
33074 }
33075
33076
33077 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33078 PyObject *resultobj = 0;
33079 wxEffects *arg1 = (wxEffects *) 0 ;
33080 wxRect *arg2 = 0 ;
33081 wxDC *arg3 = 0 ;
33082 wxBitmap *arg4 = 0 ;
33083 bool result;
33084 void *argp1 = 0 ;
33085 int res1 = 0 ;
33086 wxRect temp2 ;
33087 void *argp3 = 0 ;
33088 int res3 = 0 ;
33089 void *argp4 = 0 ;
33090 int res4 = 0 ;
33091 PyObject * obj0 = 0 ;
33092 PyObject * obj1 = 0 ;
33093 PyObject * obj2 = 0 ;
33094 PyObject * obj3 = 0 ;
33095 char * kwnames[] = {
33096 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33097 };
33098
33099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33101 if (!SWIG_IsOK(res1)) {
33102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33103 }
33104 arg1 = reinterpret_cast< wxEffects * >(argp1);
33105 {
33106 arg2 = &temp2;
33107 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33108 }
33109 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33110 if (!SWIG_IsOK(res3)) {
33111 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33112 }
33113 if (!argp3) {
33114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33115 }
33116 arg3 = reinterpret_cast< wxDC * >(argp3);
33117 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33118 if (!SWIG_IsOK(res4)) {
33119 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33120 }
33121 if (!argp4) {
33122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33123 }
33124 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33125 {
33126 PyThreadState* __tstate = wxPyBeginAllowThreads();
33127 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33128 wxPyEndAllowThreads(__tstate);
33129 if (PyErr_Occurred()) SWIG_fail;
33130 }
33131 {
33132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33133 }
33134 return resultobj;
33135 fail:
33136 return NULL;
33137 }
33138
33139
33140 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33141 PyObject *obj;
33142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33143 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33144 return SWIG_Py_Void();
33145 }
33146
33147 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33148 return SWIG_Python_InitShadowInstance(args);
33149 }
33150
33151 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33152 PyObject *resultobj = 0;
33153 int arg1 ;
33154 int arg2 ;
33155 bool arg3 ;
33156 wxSplitterRenderParams *result = 0 ;
33157 int val1 ;
33158 int ecode1 = 0 ;
33159 int val2 ;
33160 int ecode2 = 0 ;
33161 bool val3 ;
33162 int ecode3 = 0 ;
33163 PyObject * obj0 = 0 ;
33164 PyObject * obj1 = 0 ;
33165 PyObject * obj2 = 0 ;
33166 char * kwnames[] = {
33167 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33168 };
33169
33170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33171 ecode1 = SWIG_AsVal_int(obj0, &val1);
33172 if (!SWIG_IsOK(ecode1)) {
33173 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33174 }
33175 arg1 = static_cast< int >(val1);
33176 ecode2 = SWIG_AsVal_int(obj1, &val2);
33177 if (!SWIG_IsOK(ecode2)) {
33178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33179 }
33180 arg2 = static_cast< int >(val2);
33181 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33182 if (!SWIG_IsOK(ecode3)) {
33183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33184 }
33185 arg3 = static_cast< bool >(val3);
33186 {
33187 PyThreadState* __tstate = wxPyBeginAllowThreads();
33188 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33189 wxPyEndAllowThreads(__tstate);
33190 if (PyErr_Occurred()) SWIG_fail;
33191 }
33192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33193 return resultobj;
33194 fail:
33195 return NULL;
33196 }
33197
33198
33199 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33200 PyObject *resultobj = 0;
33201 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33202 void *argp1 = 0 ;
33203 int res1 = 0 ;
33204 PyObject *swig_obj[1] ;
33205
33206 if (!args) SWIG_fail;
33207 swig_obj[0] = args;
33208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33209 if (!SWIG_IsOK(res1)) {
33210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33211 }
33212 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33213 {
33214 PyThreadState* __tstate = wxPyBeginAllowThreads();
33215 delete arg1;
33216
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 resultobj = SWIG_Py_Void();
33221 return resultobj;
33222 fail:
33223 return NULL;
33224 }
33225
33226
33227 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33228 PyObject *resultobj = 0;
33229 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33230 int result;
33231 void *argp1 = 0 ;
33232 int res1 = 0 ;
33233 PyObject *swig_obj[1] ;
33234
33235 if (!args) SWIG_fail;
33236 swig_obj[0] = args;
33237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33238 if (!SWIG_IsOK(res1)) {
33239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33240 }
33241 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33242 result = (int)(int) ((arg1)->widthSash);
33243 resultobj = SWIG_From_int(static_cast< int >(result));
33244 return resultobj;
33245 fail:
33246 return NULL;
33247 }
33248
33249
33250 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33251 PyObject *resultobj = 0;
33252 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33253 int result;
33254 void *argp1 = 0 ;
33255 int res1 = 0 ;
33256 PyObject *swig_obj[1] ;
33257
33258 if (!args) SWIG_fail;
33259 swig_obj[0] = args;
33260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33261 if (!SWIG_IsOK(res1)) {
33262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33263 }
33264 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33265 result = (int)(int) ((arg1)->border);
33266 resultobj = SWIG_From_int(static_cast< int >(result));
33267 return resultobj;
33268 fail:
33269 return NULL;
33270 }
33271
33272
33273 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33274 PyObject *resultobj = 0;
33275 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33276 bool result;
33277 void *argp1 = 0 ;
33278 int res1 = 0 ;
33279 PyObject *swig_obj[1] ;
33280
33281 if (!args) SWIG_fail;
33282 swig_obj[0] = args;
33283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33284 if (!SWIG_IsOK(res1)) {
33285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33286 }
33287 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33288 result = (bool)(bool) ((arg1)->isHotSensitive);
33289 resultobj = SWIG_From_bool(static_cast< bool >(result));
33290 return resultobj;
33291 fail:
33292 return NULL;
33293 }
33294
33295
33296 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33297 PyObject *obj;
33298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33299 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33300 return SWIG_Py_Void();
33301 }
33302
33303 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33304 return SWIG_Python_InitShadowInstance(args);
33305 }
33306
33307 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33308 PyObject *resultobj = 0;
33309 wxHeaderButtonParams *result = 0 ;
33310
33311 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33315 wxPyEndAllowThreads(__tstate);
33316 if (PyErr_Occurred()) SWIG_fail;
33317 }
33318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33319 return resultobj;
33320 fail:
33321 return NULL;
33322 }
33323
33324
33325 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33326 PyObject *resultobj = 0;
33327 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33328 void *argp1 = 0 ;
33329 int res1 = 0 ;
33330 PyObject *swig_obj[1] ;
33331
33332 if (!args) SWIG_fail;
33333 swig_obj[0] = args;
33334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33335 if (!SWIG_IsOK(res1)) {
33336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33337 }
33338 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33339 {
33340 PyThreadState* __tstate = wxPyBeginAllowThreads();
33341 delete arg1;
33342
33343 wxPyEndAllowThreads(__tstate);
33344 if (PyErr_Occurred()) SWIG_fail;
33345 }
33346 resultobj = SWIG_Py_Void();
33347 return resultobj;
33348 fail:
33349 return NULL;
33350 }
33351
33352
33353 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33354 PyObject *resultobj = 0;
33355 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33356 wxColour *arg2 = (wxColour *) 0 ;
33357 void *argp1 = 0 ;
33358 int res1 = 0 ;
33359 wxColour temp2 ;
33360 PyObject *swig_obj[2] ;
33361
33362 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33364 if (!SWIG_IsOK(res1)) {
33365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33366 }
33367 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33368 {
33369 arg2 = &temp2;
33370 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33371 }
33372 if (arg1) (arg1)->m_arrowColour = *arg2;
33373
33374 resultobj = SWIG_Py_Void();
33375 return resultobj;
33376 fail:
33377 return NULL;
33378 }
33379
33380
33381 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33382 PyObject *resultobj = 0;
33383 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33384 wxColour *result = 0 ;
33385 void *argp1 = 0 ;
33386 int res1 = 0 ;
33387 PyObject *swig_obj[1] ;
33388
33389 if (!args) SWIG_fail;
33390 swig_obj[0] = args;
33391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33392 if (!SWIG_IsOK(res1)) {
33393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33394 }
33395 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33396 result = (wxColour *)& ((arg1)->m_arrowColour);
33397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33398 return resultobj;
33399 fail:
33400 return NULL;
33401 }
33402
33403
33404 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33405 PyObject *resultobj = 0;
33406 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33407 wxColour *arg2 = (wxColour *) 0 ;
33408 void *argp1 = 0 ;
33409 int res1 = 0 ;
33410 wxColour temp2 ;
33411 PyObject *swig_obj[2] ;
33412
33413 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33415 if (!SWIG_IsOK(res1)) {
33416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33417 }
33418 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33419 {
33420 arg2 = &temp2;
33421 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33422 }
33423 if (arg1) (arg1)->m_selectionColour = *arg2;
33424
33425 resultobj = SWIG_Py_Void();
33426 return resultobj;
33427 fail:
33428 return NULL;
33429 }
33430
33431
33432 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33433 PyObject *resultobj = 0;
33434 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33435 wxColour *result = 0 ;
33436 void *argp1 = 0 ;
33437 int res1 = 0 ;
33438 PyObject *swig_obj[1] ;
33439
33440 if (!args) SWIG_fail;
33441 swig_obj[0] = args;
33442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33443 if (!SWIG_IsOK(res1)) {
33444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33445 }
33446 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33447 result = (wxColour *)& ((arg1)->m_selectionColour);
33448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33449 return resultobj;
33450 fail:
33451 return NULL;
33452 }
33453
33454
33455 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33456 PyObject *resultobj = 0;
33457 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33458 wxString *arg2 = (wxString *) 0 ;
33459 void *argp1 = 0 ;
33460 int res1 = 0 ;
33461 bool temp2 = false ;
33462 PyObject *swig_obj[2] ;
33463
33464 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33466 if (!SWIG_IsOK(res1)) {
33467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33468 }
33469 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33470 {
33471 arg2 = wxString_in_helper(swig_obj[1]);
33472 if (arg2 == NULL) SWIG_fail;
33473 temp2 = true;
33474 }
33475 if (arg1) (arg1)->m_labelText = *arg2;
33476
33477 resultobj = SWIG_Py_Void();
33478 {
33479 if (temp2)
33480 delete arg2;
33481 }
33482 return resultobj;
33483 fail:
33484 {
33485 if (temp2)
33486 delete arg2;
33487 }
33488 return NULL;
33489 }
33490
33491
33492 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33493 PyObject *resultobj = 0;
33494 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33495 wxString *result = 0 ;
33496 void *argp1 = 0 ;
33497 int res1 = 0 ;
33498 PyObject *swig_obj[1] ;
33499
33500 if (!args) SWIG_fail;
33501 swig_obj[0] = args;
33502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33503 if (!SWIG_IsOK(res1)) {
33504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33505 }
33506 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33507 result = (wxString *)& ((arg1)->m_labelText);
33508 {
33509 #if wxUSE_UNICODE
33510 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33511 #else
33512 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33513 #endif
33514 }
33515 return resultobj;
33516 fail:
33517 return NULL;
33518 }
33519
33520
33521 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33522 PyObject *resultobj = 0;
33523 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33524 wxFont *arg2 = (wxFont *) 0 ;
33525 void *argp1 = 0 ;
33526 int res1 = 0 ;
33527 void *argp2 = 0 ;
33528 int res2 = 0 ;
33529 PyObject *swig_obj[2] ;
33530
33531 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33533 if (!SWIG_IsOK(res1)) {
33534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33535 }
33536 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33537 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33538 if (!SWIG_IsOK(res2)) {
33539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33540 }
33541 arg2 = reinterpret_cast< wxFont * >(argp2);
33542 if (arg1) (arg1)->m_labelFont = *arg2;
33543
33544 resultobj = SWIG_Py_Void();
33545 return resultobj;
33546 fail:
33547 return NULL;
33548 }
33549
33550
33551 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33552 PyObject *resultobj = 0;
33553 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33554 wxFont *result = 0 ;
33555 void *argp1 = 0 ;
33556 int res1 = 0 ;
33557 PyObject *swig_obj[1] ;
33558
33559 if (!args) SWIG_fail;
33560 swig_obj[0] = args;
33561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33562 if (!SWIG_IsOK(res1)) {
33563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33564 }
33565 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33566 result = (wxFont *)& ((arg1)->m_labelFont);
33567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33568 return resultobj;
33569 fail:
33570 return NULL;
33571 }
33572
33573
33574 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33575 PyObject *resultobj = 0;
33576 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33577 wxColour *arg2 = (wxColour *) 0 ;
33578 void *argp1 = 0 ;
33579 int res1 = 0 ;
33580 wxColour temp2 ;
33581 PyObject *swig_obj[2] ;
33582
33583 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33585 if (!SWIG_IsOK(res1)) {
33586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33587 }
33588 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33589 {
33590 arg2 = &temp2;
33591 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33592 }
33593 if (arg1) (arg1)->m_labelColour = *arg2;
33594
33595 resultobj = SWIG_Py_Void();
33596 return resultobj;
33597 fail:
33598 return NULL;
33599 }
33600
33601
33602 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33603 PyObject *resultobj = 0;
33604 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33605 wxColour *result = 0 ;
33606 void *argp1 = 0 ;
33607 int res1 = 0 ;
33608 PyObject *swig_obj[1] ;
33609
33610 if (!args) SWIG_fail;
33611 swig_obj[0] = args;
33612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33613 if (!SWIG_IsOK(res1)) {
33614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33615 }
33616 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33617 result = (wxColour *)& ((arg1)->m_labelColour);
33618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33619 return resultobj;
33620 fail:
33621 return NULL;
33622 }
33623
33624
33625 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33626 PyObject *resultobj = 0;
33627 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33628 wxBitmap *arg2 = (wxBitmap *) 0 ;
33629 void *argp1 = 0 ;
33630 int res1 = 0 ;
33631 void *argp2 = 0 ;
33632 int res2 = 0 ;
33633 PyObject *swig_obj[2] ;
33634
33635 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33637 if (!SWIG_IsOK(res1)) {
33638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33639 }
33640 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33641 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33642 if (!SWIG_IsOK(res2)) {
33643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33644 }
33645 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33646 if (arg1) (arg1)->m_labelBitmap = *arg2;
33647
33648 resultobj = SWIG_Py_Void();
33649 return resultobj;
33650 fail:
33651 return NULL;
33652 }
33653
33654
33655 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33656 PyObject *resultobj = 0;
33657 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33658 wxBitmap *result = 0 ;
33659 void *argp1 = 0 ;
33660 int res1 = 0 ;
33661 PyObject *swig_obj[1] ;
33662
33663 if (!args) SWIG_fail;
33664 swig_obj[0] = args;
33665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33666 if (!SWIG_IsOK(res1)) {
33667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33668 }
33669 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33670 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33672 return resultobj;
33673 fail:
33674 return NULL;
33675 }
33676
33677
33678 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33679 PyObject *resultobj = 0;
33680 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33681 int arg2 ;
33682 void *argp1 = 0 ;
33683 int res1 = 0 ;
33684 int val2 ;
33685 int ecode2 = 0 ;
33686 PyObject *swig_obj[2] ;
33687
33688 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33690 if (!SWIG_IsOK(res1)) {
33691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33692 }
33693 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33694 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33695 if (!SWIG_IsOK(ecode2)) {
33696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33697 }
33698 arg2 = static_cast< int >(val2);
33699 if (arg1) (arg1)->m_labelAlignment = arg2;
33700
33701 resultobj = SWIG_Py_Void();
33702 return resultobj;
33703 fail:
33704 return NULL;
33705 }
33706
33707
33708 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33709 PyObject *resultobj = 0;
33710 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33711 int result;
33712 void *argp1 = 0 ;
33713 int res1 = 0 ;
33714 PyObject *swig_obj[1] ;
33715
33716 if (!args) SWIG_fail;
33717 swig_obj[0] = args;
33718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33719 if (!SWIG_IsOK(res1)) {
33720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33721 }
33722 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33723 result = (int) ((arg1)->m_labelAlignment);
33724 resultobj = SWIG_From_int(static_cast< int >(result));
33725 return resultobj;
33726 fail:
33727 return NULL;
33728 }
33729
33730
33731 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33732 PyObject *obj;
33733 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33734 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33735 return SWIG_Py_Void();
33736 }
33737
33738 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33739 return SWIG_Python_InitShadowInstance(args);
33740 }
33741
33742 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33743 PyObject *resultobj = 0;
33744 int arg1 ;
33745 int arg2 ;
33746 wxRendererVersion *result = 0 ;
33747 int val1 ;
33748 int ecode1 = 0 ;
33749 int val2 ;
33750 int ecode2 = 0 ;
33751 PyObject * obj0 = 0 ;
33752 PyObject * obj1 = 0 ;
33753 char * kwnames[] = {
33754 (char *) "version_",(char *) "age_", NULL
33755 };
33756
33757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33758 ecode1 = SWIG_AsVal_int(obj0, &val1);
33759 if (!SWIG_IsOK(ecode1)) {
33760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33761 }
33762 arg1 = static_cast< int >(val1);
33763 ecode2 = SWIG_AsVal_int(obj1, &val2);
33764 if (!SWIG_IsOK(ecode2)) {
33765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33766 }
33767 arg2 = static_cast< int >(val2);
33768 {
33769 PyThreadState* __tstate = wxPyBeginAllowThreads();
33770 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33771 wxPyEndAllowThreads(__tstate);
33772 if (PyErr_Occurred()) SWIG_fail;
33773 }
33774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33775 return resultobj;
33776 fail:
33777 return NULL;
33778 }
33779
33780
33781 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33782 PyObject *resultobj = 0;
33783 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 PyObject *swig_obj[1] ;
33787
33788 if (!args) SWIG_fail;
33789 swig_obj[0] = args;
33790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33791 if (!SWIG_IsOK(res1)) {
33792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33793 }
33794 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33795 {
33796 PyThreadState* __tstate = wxPyBeginAllowThreads();
33797 delete arg1;
33798
33799 wxPyEndAllowThreads(__tstate);
33800 if (PyErr_Occurred()) SWIG_fail;
33801 }
33802 resultobj = SWIG_Py_Void();
33803 return resultobj;
33804 fail:
33805 return NULL;
33806 }
33807
33808
33809 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33810 PyObject *resultobj = 0;
33811 wxRendererVersion *arg1 = 0 ;
33812 bool result;
33813 void *argp1 = 0 ;
33814 int res1 = 0 ;
33815 PyObject * obj0 = 0 ;
33816 char * kwnames[] = {
33817 (char *) "ver", NULL
33818 };
33819
33820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33821 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33822 if (!SWIG_IsOK(res1)) {
33823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33824 }
33825 if (!argp1) {
33826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33827 }
33828 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33829 {
33830 PyThreadState* __tstate = wxPyBeginAllowThreads();
33831 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33832 wxPyEndAllowThreads(__tstate);
33833 if (PyErr_Occurred()) SWIG_fail;
33834 }
33835 {
33836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33837 }
33838 return resultobj;
33839 fail:
33840 return NULL;
33841 }
33842
33843
33844 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33845 PyObject *resultobj = 0;
33846 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33847 int result;
33848 void *argp1 = 0 ;
33849 int res1 = 0 ;
33850 PyObject *swig_obj[1] ;
33851
33852 if (!args) SWIG_fail;
33853 swig_obj[0] = args;
33854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33855 if (!SWIG_IsOK(res1)) {
33856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33857 }
33858 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33859 result = (int)(int) ((arg1)->version);
33860 resultobj = SWIG_From_int(static_cast< int >(result));
33861 return resultobj;
33862 fail:
33863 return NULL;
33864 }
33865
33866
33867 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33868 PyObject *resultobj = 0;
33869 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33870 int result;
33871 void *argp1 = 0 ;
33872 int res1 = 0 ;
33873 PyObject *swig_obj[1] ;
33874
33875 if (!args) SWIG_fail;
33876 swig_obj[0] = args;
33877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33878 if (!SWIG_IsOK(res1)) {
33879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33880 }
33881 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33882 result = (int)(int) ((arg1)->age);
33883 resultobj = SWIG_From_int(static_cast< int >(result));
33884 return resultobj;
33885 fail:
33886 return NULL;
33887 }
33888
33889
33890 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33891 PyObject *obj;
33892 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33893 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33894 return SWIG_Py_Void();
33895 }
33896
33897 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33898 return SWIG_Python_InitShadowInstance(args);
33899 }
33900
33901 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33902 PyObject *resultobj = 0;
33903 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33904 wxWindow *arg2 = (wxWindow *) 0 ;
33905 wxDC *arg3 = 0 ;
33906 wxRect *arg4 = 0 ;
33907 int arg5 = (int) 0 ;
33908 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33909 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33910 void *argp1 = 0 ;
33911 int res1 = 0 ;
33912 void *argp2 = 0 ;
33913 int res2 = 0 ;
33914 void *argp3 = 0 ;
33915 int res3 = 0 ;
33916 wxRect temp4 ;
33917 int val5 ;
33918 int ecode5 = 0 ;
33919 int val6 ;
33920 int ecode6 = 0 ;
33921 void *argp7 = 0 ;
33922 int res7 = 0 ;
33923 PyObject * obj0 = 0 ;
33924 PyObject * obj1 = 0 ;
33925 PyObject * obj2 = 0 ;
33926 PyObject * obj3 = 0 ;
33927 PyObject * obj4 = 0 ;
33928 PyObject * obj5 = 0 ;
33929 PyObject * obj6 = 0 ;
33930 char * kwnames[] = {
33931 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33932 };
33933
33934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33936 if (!SWIG_IsOK(res1)) {
33937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33938 }
33939 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33941 if (!SWIG_IsOK(res2)) {
33942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33943 }
33944 arg2 = reinterpret_cast< wxWindow * >(argp2);
33945 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33946 if (!SWIG_IsOK(res3)) {
33947 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33948 }
33949 if (!argp3) {
33950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33951 }
33952 arg3 = reinterpret_cast< wxDC * >(argp3);
33953 {
33954 arg4 = &temp4;
33955 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33956 }
33957 if (obj4) {
33958 ecode5 = SWIG_AsVal_int(obj4, &val5);
33959 if (!SWIG_IsOK(ecode5)) {
33960 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33961 }
33962 arg5 = static_cast< int >(val5);
33963 }
33964 if (obj5) {
33965 ecode6 = SWIG_AsVal_int(obj5, &val6);
33966 if (!SWIG_IsOK(ecode6)) {
33967 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33968 }
33969 arg6 = static_cast< wxHeaderSortIconType >(val6);
33970 }
33971 if (obj6) {
33972 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33973 if (!SWIG_IsOK(res7)) {
33974 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33975 }
33976 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33977 }
33978 {
33979 PyThreadState* __tstate = wxPyBeginAllowThreads();
33980 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33981 wxPyEndAllowThreads(__tstate);
33982 if (PyErr_Occurred()) SWIG_fail;
33983 }
33984 resultobj = SWIG_Py_Void();
33985 return resultobj;
33986 fail:
33987 return NULL;
33988 }
33989
33990
33991 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33992 PyObject *resultobj = 0;
33993 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33994 wxWindow *arg2 = (wxWindow *) 0 ;
33995 wxDC *arg3 = 0 ;
33996 wxRect *arg4 = 0 ;
33997 int arg5 = (int) 0 ;
33998 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33999 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34000 void *argp1 = 0 ;
34001 int res1 = 0 ;
34002 void *argp2 = 0 ;
34003 int res2 = 0 ;
34004 void *argp3 = 0 ;
34005 int res3 = 0 ;
34006 wxRect temp4 ;
34007 int val5 ;
34008 int ecode5 = 0 ;
34009 int val6 ;
34010 int ecode6 = 0 ;
34011 void *argp7 = 0 ;
34012 int res7 = 0 ;
34013 PyObject * obj0 = 0 ;
34014 PyObject * obj1 = 0 ;
34015 PyObject * obj2 = 0 ;
34016 PyObject * obj3 = 0 ;
34017 PyObject * obj4 = 0 ;
34018 PyObject * obj5 = 0 ;
34019 PyObject * obj6 = 0 ;
34020 char * kwnames[] = {
34021 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34022 };
34023
34024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34026 if (!SWIG_IsOK(res1)) {
34027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34028 }
34029 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34030 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34031 if (!SWIG_IsOK(res2)) {
34032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34033 }
34034 arg2 = reinterpret_cast< wxWindow * >(argp2);
34035 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34036 if (!SWIG_IsOK(res3)) {
34037 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34038 }
34039 if (!argp3) {
34040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34041 }
34042 arg3 = reinterpret_cast< wxDC * >(argp3);
34043 {
34044 arg4 = &temp4;
34045 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34046 }
34047 if (obj4) {
34048 ecode5 = SWIG_AsVal_int(obj4, &val5);
34049 if (!SWIG_IsOK(ecode5)) {
34050 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34051 }
34052 arg5 = static_cast< int >(val5);
34053 }
34054 if (obj5) {
34055 ecode6 = SWIG_AsVal_int(obj5, &val6);
34056 if (!SWIG_IsOK(ecode6)) {
34057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34058 }
34059 arg6 = static_cast< wxHeaderSortIconType >(val6);
34060 }
34061 if (obj6) {
34062 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34063 if (!SWIG_IsOK(res7)) {
34064 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34065 }
34066 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34067 }
34068 {
34069 PyThreadState* __tstate = wxPyBeginAllowThreads();
34070 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34071 wxPyEndAllowThreads(__tstate);
34072 if (PyErr_Occurred()) SWIG_fail;
34073 }
34074 resultobj = SWIG_Py_Void();
34075 return resultobj;
34076 fail:
34077 return NULL;
34078 }
34079
34080
34081 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34082 PyObject *resultobj = 0;
34083 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34084 wxWindow *arg2 = (wxWindow *) 0 ;
34085 int result;
34086 void *argp1 = 0 ;
34087 int res1 = 0 ;
34088 void *argp2 = 0 ;
34089 int res2 = 0 ;
34090 PyObject * obj0 = 0 ;
34091 PyObject * obj1 = 0 ;
34092 char * kwnames[] = {
34093 (char *) "self",(char *) "win", NULL
34094 };
34095
34096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34098 if (!SWIG_IsOK(res1)) {
34099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34100 }
34101 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34102 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34103 if (!SWIG_IsOK(res2)) {
34104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34105 }
34106 arg2 = reinterpret_cast< wxWindow * >(argp2);
34107 {
34108 PyThreadState* __tstate = wxPyBeginAllowThreads();
34109 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34110 wxPyEndAllowThreads(__tstate);
34111 if (PyErr_Occurred()) SWIG_fail;
34112 }
34113 resultobj = SWIG_From_int(static_cast< int >(result));
34114 return resultobj;
34115 fail:
34116 return NULL;
34117 }
34118
34119
34120 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34121 PyObject *resultobj = 0;
34122 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34123 wxWindow *arg2 = (wxWindow *) 0 ;
34124 wxDC *arg3 = 0 ;
34125 wxRect *arg4 = 0 ;
34126 int arg5 = (int) 0 ;
34127 void *argp1 = 0 ;
34128 int res1 = 0 ;
34129 void *argp2 = 0 ;
34130 int res2 = 0 ;
34131 void *argp3 = 0 ;
34132 int res3 = 0 ;
34133 wxRect temp4 ;
34134 int val5 ;
34135 int ecode5 = 0 ;
34136 PyObject * obj0 = 0 ;
34137 PyObject * obj1 = 0 ;
34138 PyObject * obj2 = 0 ;
34139 PyObject * obj3 = 0 ;
34140 PyObject * obj4 = 0 ;
34141 char * kwnames[] = {
34142 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34143 };
34144
34145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34147 if (!SWIG_IsOK(res1)) {
34148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34149 }
34150 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34151 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34152 if (!SWIG_IsOK(res2)) {
34153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34154 }
34155 arg2 = reinterpret_cast< wxWindow * >(argp2);
34156 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34157 if (!SWIG_IsOK(res3)) {
34158 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34159 }
34160 if (!argp3) {
34161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34162 }
34163 arg3 = reinterpret_cast< wxDC * >(argp3);
34164 {
34165 arg4 = &temp4;
34166 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34167 }
34168 if (obj4) {
34169 ecode5 = SWIG_AsVal_int(obj4, &val5);
34170 if (!SWIG_IsOK(ecode5)) {
34171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34172 }
34173 arg5 = static_cast< int >(val5);
34174 }
34175 {
34176 PyThreadState* __tstate = wxPyBeginAllowThreads();
34177 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34178 wxPyEndAllowThreads(__tstate);
34179 if (PyErr_Occurred()) SWIG_fail;
34180 }
34181 resultobj = SWIG_Py_Void();
34182 return resultobj;
34183 fail:
34184 return NULL;
34185 }
34186
34187
34188 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34189 PyObject *resultobj = 0;
34190 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34191 wxWindow *arg2 = (wxWindow *) 0 ;
34192 wxDC *arg3 = 0 ;
34193 wxRect *arg4 = 0 ;
34194 int arg5 = (int) 0 ;
34195 void *argp1 = 0 ;
34196 int res1 = 0 ;
34197 void *argp2 = 0 ;
34198 int res2 = 0 ;
34199 void *argp3 = 0 ;
34200 int res3 = 0 ;
34201 wxRect temp4 ;
34202 int val5 ;
34203 int ecode5 = 0 ;
34204 PyObject * obj0 = 0 ;
34205 PyObject * obj1 = 0 ;
34206 PyObject * obj2 = 0 ;
34207 PyObject * obj3 = 0 ;
34208 PyObject * obj4 = 0 ;
34209 char * kwnames[] = {
34210 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34211 };
34212
34213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34215 if (!SWIG_IsOK(res1)) {
34216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34217 }
34218 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34219 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34220 if (!SWIG_IsOK(res2)) {
34221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34222 }
34223 arg2 = reinterpret_cast< wxWindow * >(argp2);
34224 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34225 if (!SWIG_IsOK(res3)) {
34226 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34227 }
34228 if (!argp3) {
34229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34230 }
34231 arg3 = reinterpret_cast< wxDC * >(argp3);
34232 {
34233 arg4 = &temp4;
34234 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34235 }
34236 if (obj4) {
34237 ecode5 = SWIG_AsVal_int(obj4, &val5);
34238 if (!SWIG_IsOK(ecode5)) {
34239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34240 }
34241 arg5 = static_cast< int >(val5);
34242 }
34243 {
34244 PyThreadState* __tstate = wxPyBeginAllowThreads();
34245 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34246 wxPyEndAllowThreads(__tstate);
34247 if (PyErr_Occurred()) SWIG_fail;
34248 }
34249 resultobj = SWIG_Py_Void();
34250 return resultobj;
34251 fail:
34252 return NULL;
34253 }
34254
34255
34256 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34257 PyObject *resultobj = 0;
34258 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34259 wxWindow *arg2 = (wxWindow *) 0 ;
34260 wxDC *arg3 = 0 ;
34261 wxSize *arg4 = 0 ;
34262 int arg5 ;
34263 wxOrientation arg6 ;
34264 int arg7 = (int) 0 ;
34265 void *argp1 = 0 ;
34266 int res1 = 0 ;
34267 void *argp2 = 0 ;
34268 int res2 = 0 ;
34269 void *argp3 = 0 ;
34270 int res3 = 0 ;
34271 wxSize temp4 ;
34272 int val5 ;
34273 int ecode5 = 0 ;
34274 int val6 ;
34275 int ecode6 = 0 ;
34276 int val7 ;
34277 int ecode7 = 0 ;
34278 PyObject * obj0 = 0 ;
34279 PyObject * obj1 = 0 ;
34280 PyObject * obj2 = 0 ;
34281 PyObject * obj3 = 0 ;
34282 PyObject * obj4 = 0 ;
34283 PyObject * obj5 = 0 ;
34284 PyObject * obj6 = 0 ;
34285 char * kwnames[] = {
34286 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34287 };
34288
34289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34291 if (!SWIG_IsOK(res1)) {
34292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34293 }
34294 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34296 if (!SWIG_IsOK(res2)) {
34297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34298 }
34299 arg2 = reinterpret_cast< wxWindow * >(argp2);
34300 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34301 if (!SWIG_IsOK(res3)) {
34302 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34303 }
34304 if (!argp3) {
34305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34306 }
34307 arg3 = reinterpret_cast< wxDC * >(argp3);
34308 {
34309 arg4 = &temp4;
34310 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34311 }
34312 ecode5 = SWIG_AsVal_int(obj4, &val5);
34313 if (!SWIG_IsOK(ecode5)) {
34314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34315 }
34316 arg5 = static_cast< int >(val5);
34317 ecode6 = SWIG_AsVal_int(obj5, &val6);
34318 if (!SWIG_IsOK(ecode6)) {
34319 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34320 }
34321 arg6 = static_cast< wxOrientation >(val6);
34322 if (obj6) {
34323 ecode7 = SWIG_AsVal_int(obj6, &val7);
34324 if (!SWIG_IsOK(ecode7)) {
34325 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34326 }
34327 arg7 = static_cast< int >(val7);
34328 }
34329 {
34330 PyThreadState* __tstate = wxPyBeginAllowThreads();
34331 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34332 wxPyEndAllowThreads(__tstate);
34333 if (PyErr_Occurred()) SWIG_fail;
34334 }
34335 resultobj = SWIG_Py_Void();
34336 return resultobj;
34337 fail:
34338 return NULL;
34339 }
34340
34341
34342 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34343 PyObject *resultobj = 0;
34344 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34345 wxWindow *arg2 = (wxWindow *) 0 ;
34346 wxDC *arg3 = 0 ;
34347 wxRect *arg4 = 0 ;
34348 int arg5 = (int) 0 ;
34349 void *argp1 = 0 ;
34350 int res1 = 0 ;
34351 void *argp2 = 0 ;
34352 int res2 = 0 ;
34353 void *argp3 = 0 ;
34354 int res3 = 0 ;
34355 wxRect temp4 ;
34356 int val5 ;
34357 int ecode5 = 0 ;
34358 PyObject * obj0 = 0 ;
34359 PyObject * obj1 = 0 ;
34360 PyObject * obj2 = 0 ;
34361 PyObject * obj3 = 0 ;
34362 PyObject * obj4 = 0 ;
34363 char * kwnames[] = {
34364 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34365 };
34366
34367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34369 if (!SWIG_IsOK(res1)) {
34370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34371 }
34372 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34374 if (!SWIG_IsOK(res2)) {
34375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34376 }
34377 arg2 = reinterpret_cast< wxWindow * >(argp2);
34378 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34379 if (!SWIG_IsOK(res3)) {
34380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34381 }
34382 if (!argp3) {
34383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34384 }
34385 arg3 = reinterpret_cast< wxDC * >(argp3);
34386 {
34387 arg4 = &temp4;
34388 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34389 }
34390 if (obj4) {
34391 ecode5 = SWIG_AsVal_int(obj4, &val5);
34392 if (!SWIG_IsOK(ecode5)) {
34393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34394 }
34395 arg5 = static_cast< int >(val5);
34396 }
34397 {
34398 PyThreadState* __tstate = wxPyBeginAllowThreads();
34399 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34400 wxPyEndAllowThreads(__tstate);
34401 if (PyErr_Occurred()) SWIG_fail;
34402 }
34403 resultobj = SWIG_Py_Void();
34404 return resultobj;
34405 fail:
34406 return NULL;
34407 }
34408
34409
34410 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34411 PyObject *resultobj = 0;
34412 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34413 wxWindow *arg2 = (wxWindow *) 0 ;
34414 wxDC *arg3 = 0 ;
34415 wxRect *arg4 = 0 ;
34416 int arg5 = (int) 0 ;
34417 void *argp1 = 0 ;
34418 int res1 = 0 ;
34419 void *argp2 = 0 ;
34420 int res2 = 0 ;
34421 void *argp3 = 0 ;
34422 int res3 = 0 ;
34423 wxRect temp4 ;
34424 int val5 ;
34425 int ecode5 = 0 ;
34426 PyObject * obj0 = 0 ;
34427 PyObject * obj1 = 0 ;
34428 PyObject * obj2 = 0 ;
34429 PyObject * obj3 = 0 ;
34430 PyObject * obj4 = 0 ;
34431 char * kwnames[] = {
34432 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34433 };
34434
34435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34437 if (!SWIG_IsOK(res1)) {
34438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34439 }
34440 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34442 if (!SWIG_IsOK(res2)) {
34443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34444 }
34445 arg2 = reinterpret_cast< wxWindow * >(argp2);
34446 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34447 if (!SWIG_IsOK(res3)) {
34448 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34449 }
34450 if (!argp3) {
34451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34452 }
34453 arg3 = reinterpret_cast< wxDC * >(argp3);
34454 {
34455 arg4 = &temp4;
34456 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34457 }
34458 if (obj4) {
34459 ecode5 = SWIG_AsVal_int(obj4, &val5);
34460 if (!SWIG_IsOK(ecode5)) {
34461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34462 }
34463 arg5 = static_cast< int >(val5);
34464 }
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34468 wxPyEndAllowThreads(__tstate);
34469 if (PyErr_Occurred()) SWIG_fail;
34470 }
34471 resultobj = SWIG_Py_Void();
34472 return resultobj;
34473 fail:
34474 return NULL;
34475 }
34476
34477
34478 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34479 PyObject *resultobj = 0;
34480 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34481 wxWindow *arg2 = (wxWindow *) 0 ;
34482 wxDC *arg3 = 0 ;
34483 wxRect *arg4 = 0 ;
34484 int arg5 = (int) 0 ;
34485 void *argp1 = 0 ;
34486 int res1 = 0 ;
34487 void *argp2 = 0 ;
34488 int res2 = 0 ;
34489 void *argp3 = 0 ;
34490 int res3 = 0 ;
34491 wxRect temp4 ;
34492 int val5 ;
34493 int ecode5 = 0 ;
34494 PyObject * obj0 = 0 ;
34495 PyObject * obj1 = 0 ;
34496 PyObject * obj2 = 0 ;
34497 PyObject * obj3 = 0 ;
34498 PyObject * obj4 = 0 ;
34499 char * kwnames[] = {
34500 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34501 };
34502
34503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34505 if (!SWIG_IsOK(res1)) {
34506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34507 }
34508 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34509 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34510 if (!SWIG_IsOK(res2)) {
34511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34512 }
34513 arg2 = reinterpret_cast< wxWindow * >(argp2);
34514 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34515 if (!SWIG_IsOK(res3)) {
34516 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34517 }
34518 if (!argp3) {
34519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34520 }
34521 arg3 = reinterpret_cast< wxDC * >(argp3);
34522 {
34523 arg4 = &temp4;
34524 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34525 }
34526 if (obj4) {
34527 ecode5 = SWIG_AsVal_int(obj4, &val5);
34528 if (!SWIG_IsOK(ecode5)) {
34529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34530 }
34531 arg5 = static_cast< int >(val5);
34532 }
34533 {
34534 PyThreadState* __tstate = wxPyBeginAllowThreads();
34535 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34536 wxPyEndAllowThreads(__tstate);
34537 if (PyErr_Occurred()) SWIG_fail;
34538 }
34539 resultobj = SWIG_Py_Void();
34540 return resultobj;
34541 fail:
34542 return NULL;
34543 }
34544
34545
34546 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34547 PyObject *resultobj = 0;
34548 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34549 wxWindow *arg2 = (wxWindow *) 0 ;
34550 wxDC *arg3 = 0 ;
34551 wxRect *arg4 = 0 ;
34552 int arg5 = (int) 0 ;
34553 void *argp1 = 0 ;
34554 int res1 = 0 ;
34555 void *argp2 = 0 ;
34556 int res2 = 0 ;
34557 void *argp3 = 0 ;
34558 int res3 = 0 ;
34559 wxRect temp4 ;
34560 int val5 ;
34561 int ecode5 = 0 ;
34562 PyObject * obj0 = 0 ;
34563 PyObject * obj1 = 0 ;
34564 PyObject * obj2 = 0 ;
34565 PyObject * obj3 = 0 ;
34566 PyObject * obj4 = 0 ;
34567 char * kwnames[] = {
34568 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34569 };
34570
34571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34573 if (!SWIG_IsOK(res1)) {
34574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34575 }
34576 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34577 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34578 if (!SWIG_IsOK(res2)) {
34579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34580 }
34581 arg2 = reinterpret_cast< wxWindow * >(argp2);
34582 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34583 if (!SWIG_IsOK(res3)) {
34584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34585 }
34586 if (!argp3) {
34587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34588 }
34589 arg3 = reinterpret_cast< wxDC * >(argp3);
34590 {
34591 arg4 = &temp4;
34592 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34593 }
34594 if (obj4) {
34595 ecode5 = SWIG_AsVal_int(obj4, &val5);
34596 if (!SWIG_IsOK(ecode5)) {
34597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34598 }
34599 arg5 = static_cast< int >(val5);
34600 }
34601 {
34602 PyThreadState* __tstate = wxPyBeginAllowThreads();
34603 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34604 wxPyEndAllowThreads(__tstate);
34605 if (PyErr_Occurred()) SWIG_fail;
34606 }
34607 resultobj = SWIG_Py_Void();
34608 return resultobj;
34609 fail:
34610 return NULL;
34611 }
34612
34613
34614 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34615 PyObject *resultobj = 0;
34616 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34617 wxWindow *arg2 = (wxWindow *) 0 ;
34618 wxDC *arg3 = 0 ;
34619 wxRect *arg4 = 0 ;
34620 int arg5 = (int) 0 ;
34621 void *argp1 = 0 ;
34622 int res1 = 0 ;
34623 void *argp2 = 0 ;
34624 int res2 = 0 ;
34625 void *argp3 = 0 ;
34626 int res3 = 0 ;
34627 wxRect temp4 ;
34628 int val5 ;
34629 int ecode5 = 0 ;
34630 PyObject * obj0 = 0 ;
34631 PyObject * obj1 = 0 ;
34632 PyObject * obj2 = 0 ;
34633 PyObject * obj3 = 0 ;
34634 PyObject * obj4 = 0 ;
34635 char * kwnames[] = {
34636 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34637 };
34638
34639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34641 if (!SWIG_IsOK(res1)) {
34642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34643 }
34644 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34646 if (!SWIG_IsOK(res2)) {
34647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34648 }
34649 arg2 = reinterpret_cast< wxWindow * >(argp2);
34650 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34651 if (!SWIG_IsOK(res3)) {
34652 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34653 }
34654 if (!argp3) {
34655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34656 }
34657 arg3 = reinterpret_cast< wxDC * >(argp3);
34658 {
34659 arg4 = &temp4;
34660 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34661 }
34662 if (obj4) {
34663 ecode5 = SWIG_AsVal_int(obj4, &val5);
34664 if (!SWIG_IsOK(ecode5)) {
34665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34666 }
34667 arg5 = static_cast< int >(val5);
34668 }
34669 {
34670 PyThreadState* __tstate = wxPyBeginAllowThreads();
34671 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34672 wxPyEndAllowThreads(__tstate);
34673 if (PyErr_Occurred()) SWIG_fail;
34674 }
34675 resultobj = SWIG_Py_Void();
34676 return resultobj;
34677 fail:
34678 return NULL;
34679 }
34680
34681
34682 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34683 PyObject *resultobj = 0;
34684 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34685 wxWindow *arg2 = (wxWindow *) 0 ;
34686 SwigValueWrapper<wxSplitterRenderParams > result;
34687 void *argp1 = 0 ;
34688 int res1 = 0 ;
34689 void *argp2 = 0 ;
34690 int res2 = 0 ;
34691 PyObject * obj0 = 0 ;
34692 PyObject * obj1 = 0 ;
34693 char * kwnames[] = {
34694 (char *) "self",(char *) "win", NULL
34695 };
34696
34697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34699 if (!SWIG_IsOK(res1)) {
34700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34701 }
34702 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34704 if (!SWIG_IsOK(res2)) {
34705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34706 }
34707 arg2 = reinterpret_cast< wxWindow * >(argp2);
34708 {
34709 PyThreadState* __tstate = wxPyBeginAllowThreads();
34710 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34711 wxPyEndAllowThreads(__tstate);
34712 if (PyErr_Occurred()) SWIG_fail;
34713 }
34714 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34715 return resultobj;
34716 fail:
34717 return NULL;
34718 }
34719
34720
34721 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34722 PyObject *resultobj = 0;
34723 wxRendererNative *result = 0 ;
34724
34725 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34726 {
34727 if (!wxPyCheckForApp()) SWIG_fail;
34728 PyThreadState* __tstate = wxPyBeginAllowThreads();
34729 {
34730 wxRendererNative &_result_ref = wxRendererNative::Get();
34731 result = (wxRendererNative *) &_result_ref;
34732 }
34733 wxPyEndAllowThreads(__tstate);
34734 if (PyErr_Occurred()) SWIG_fail;
34735 }
34736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34737 return resultobj;
34738 fail:
34739 return NULL;
34740 }
34741
34742
34743 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34744 PyObject *resultobj = 0;
34745 wxRendererNative *result = 0 ;
34746
34747 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34748 {
34749 if (!wxPyCheckForApp()) SWIG_fail;
34750 PyThreadState* __tstate = wxPyBeginAllowThreads();
34751 {
34752 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34753 result = (wxRendererNative *) &_result_ref;
34754 }
34755 wxPyEndAllowThreads(__tstate);
34756 if (PyErr_Occurred()) SWIG_fail;
34757 }
34758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34759 return resultobj;
34760 fail:
34761 return NULL;
34762 }
34763
34764
34765 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34766 PyObject *resultobj = 0;
34767 wxRendererNative *result = 0 ;
34768
34769 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34770 {
34771 if (!wxPyCheckForApp()) SWIG_fail;
34772 PyThreadState* __tstate = wxPyBeginAllowThreads();
34773 {
34774 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34775 result = (wxRendererNative *) &_result_ref;
34776 }
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34781 return resultobj;
34782 fail:
34783 return NULL;
34784 }
34785
34786
34787 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34788 PyObject *resultobj = 0;
34789 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34790 wxRendererNative *result = 0 ;
34791 void *argp1 = 0 ;
34792 int res1 = 0 ;
34793 PyObject * obj0 = 0 ;
34794 char * kwnames[] = {
34795 (char *) "renderer", NULL
34796 };
34797
34798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34800 if (!SWIG_IsOK(res1)) {
34801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34802 }
34803 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34804 {
34805 if (!wxPyCheckForApp()) SWIG_fail;
34806 PyThreadState* __tstate = wxPyBeginAllowThreads();
34807 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34808 wxPyEndAllowThreads(__tstate);
34809 if (PyErr_Occurred()) SWIG_fail;
34810 }
34811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34812 return resultobj;
34813 fail:
34814 return NULL;
34815 }
34816
34817
34818 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34819 PyObject *resultobj = 0;
34820 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34821 SwigValueWrapper<wxRendererVersion > result;
34822 void *argp1 = 0 ;
34823 int res1 = 0 ;
34824 PyObject *swig_obj[1] ;
34825
34826 if (!args) SWIG_fail;
34827 swig_obj[0] = args;
34828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34829 if (!SWIG_IsOK(res1)) {
34830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34831 }
34832 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34833 {
34834 PyThreadState* __tstate = wxPyBeginAllowThreads();
34835 result = ((wxRendererNative const *)arg1)->GetVersion();
34836 wxPyEndAllowThreads(__tstate);
34837 if (PyErr_Occurred()) SWIG_fail;
34838 }
34839 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34840 return resultobj;
34841 fail:
34842 return NULL;
34843 }
34844
34845
34846 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34847 PyObject *obj;
34848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34849 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34850 return SWIG_Py_Void();
34851 }
34852
34853 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34854 PyObject *resultobj = 0;
34855 wxPseudoDC *result = 0 ;
34856
34857 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34858 {
34859 PyThreadState* __tstate = wxPyBeginAllowThreads();
34860 result = (wxPseudoDC *)new wxPseudoDC();
34861 wxPyEndAllowThreads(__tstate);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34865 return resultobj;
34866 fail:
34867 return NULL;
34868 }
34869
34870
34871 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34872 PyObject *resultobj = 0;
34873 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34874 void *argp1 = 0 ;
34875 int res1 = 0 ;
34876 PyObject *swig_obj[1] ;
34877
34878 if (!args) SWIG_fail;
34879 swig_obj[0] = args;
34880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34881 if (!SWIG_IsOK(res1)) {
34882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34883 }
34884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34885 {
34886 PyThreadState* __tstate = wxPyBeginAllowThreads();
34887 (arg1)->BeginDrawing();
34888 wxPyEndAllowThreads(__tstate);
34889 if (PyErr_Occurred()) SWIG_fail;
34890 }
34891 resultobj = SWIG_Py_Void();
34892 return resultobj;
34893 fail:
34894 return NULL;
34895 }
34896
34897
34898 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34899 PyObject *resultobj = 0;
34900 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34901 void *argp1 = 0 ;
34902 int res1 = 0 ;
34903 PyObject *swig_obj[1] ;
34904
34905 if (!args) SWIG_fail;
34906 swig_obj[0] = args;
34907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34908 if (!SWIG_IsOK(res1)) {
34909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34910 }
34911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34912 {
34913 PyThreadState* __tstate = wxPyBeginAllowThreads();
34914 (arg1)->EndDrawing();
34915 wxPyEndAllowThreads(__tstate);
34916 if (PyErr_Occurred()) SWIG_fail;
34917 }
34918 resultobj = SWIG_Py_Void();
34919 return resultobj;
34920 fail:
34921 return NULL;
34922 }
34923
34924
34925 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34926 PyObject *resultobj = 0;
34927 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34928 void *argp1 = 0 ;
34929 int res1 = 0 ;
34930 PyObject *swig_obj[1] ;
34931
34932 if (!args) SWIG_fail;
34933 swig_obj[0] = args;
34934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34935 if (!SWIG_IsOK(res1)) {
34936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34937 }
34938 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34939 {
34940 PyThreadState* __tstate = wxPyBeginAllowThreads();
34941 delete arg1;
34942
34943 wxPyEndAllowThreads(__tstate);
34944 if (PyErr_Occurred()) SWIG_fail;
34945 }
34946 resultobj = SWIG_Py_Void();
34947 return resultobj;
34948 fail:
34949 return NULL;
34950 }
34951
34952
34953 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34954 PyObject *resultobj = 0;
34955 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34956 void *argp1 = 0 ;
34957 int res1 = 0 ;
34958 PyObject *swig_obj[1] ;
34959
34960 if (!args) SWIG_fail;
34961 swig_obj[0] = args;
34962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34963 if (!SWIG_IsOK(res1)) {
34964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34965 }
34966 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 (arg1)->RemoveAll();
34970 wxPyEndAllowThreads(__tstate);
34971 if (PyErr_Occurred()) SWIG_fail;
34972 }
34973 resultobj = SWIG_Py_Void();
34974 return resultobj;
34975 fail:
34976 return NULL;
34977 }
34978
34979
34980 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34981 PyObject *resultobj = 0;
34982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34983 int result;
34984 void *argp1 = 0 ;
34985 int res1 = 0 ;
34986 PyObject *swig_obj[1] ;
34987
34988 if (!args) SWIG_fail;
34989 swig_obj[0] = args;
34990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34991 if (!SWIG_IsOK(res1)) {
34992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34993 }
34994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34995 {
34996 PyThreadState* __tstate = wxPyBeginAllowThreads();
34997 result = (int)(arg1)->GetLen();
34998 wxPyEndAllowThreads(__tstate);
34999 if (PyErr_Occurred()) SWIG_fail;
35000 }
35001 resultobj = SWIG_From_int(static_cast< int >(result));
35002 return resultobj;
35003 fail:
35004 return NULL;
35005 }
35006
35007
35008 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35009 PyObject *resultobj = 0;
35010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35011 int arg2 ;
35012 void *argp1 = 0 ;
35013 int res1 = 0 ;
35014 int val2 ;
35015 int ecode2 = 0 ;
35016 PyObject * obj0 = 0 ;
35017 PyObject * obj1 = 0 ;
35018 char * kwnames[] = {
35019 (char *) "self",(char *) "id", NULL
35020 };
35021
35022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35024 if (!SWIG_IsOK(res1)) {
35025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35026 }
35027 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35028 ecode2 = SWIG_AsVal_int(obj1, &val2);
35029 if (!SWIG_IsOK(ecode2)) {
35030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35031 }
35032 arg2 = static_cast< int >(val2);
35033 {
35034 PyThreadState* __tstate = wxPyBeginAllowThreads();
35035 (arg1)->SetId(arg2);
35036 wxPyEndAllowThreads(__tstate);
35037 if (PyErr_Occurred()) SWIG_fail;
35038 }
35039 resultobj = SWIG_Py_Void();
35040 return resultobj;
35041 fail:
35042 return NULL;
35043 }
35044
35045
35046 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35047 PyObject *resultobj = 0;
35048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35049 int arg2 ;
35050 void *argp1 = 0 ;
35051 int res1 = 0 ;
35052 int val2 ;
35053 int ecode2 = 0 ;
35054 PyObject * obj0 = 0 ;
35055 PyObject * obj1 = 0 ;
35056 char * kwnames[] = {
35057 (char *) "self",(char *) "id", NULL
35058 };
35059
35060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35062 if (!SWIG_IsOK(res1)) {
35063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35064 }
35065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35066 ecode2 = SWIG_AsVal_int(obj1, &val2);
35067 if (!SWIG_IsOK(ecode2)) {
35068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35069 }
35070 arg2 = static_cast< int >(val2);
35071 {
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 (arg1)->ClearId(arg2);
35074 wxPyEndAllowThreads(__tstate);
35075 if (PyErr_Occurred()) SWIG_fail;
35076 }
35077 resultobj = SWIG_Py_Void();
35078 return resultobj;
35079 fail:
35080 return NULL;
35081 }
35082
35083
35084 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35085 PyObject *resultobj = 0;
35086 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35087 int arg2 ;
35088 void *argp1 = 0 ;
35089 int res1 = 0 ;
35090 int val2 ;
35091 int ecode2 = 0 ;
35092 PyObject * obj0 = 0 ;
35093 PyObject * obj1 = 0 ;
35094 char * kwnames[] = {
35095 (char *) "self",(char *) "id", NULL
35096 };
35097
35098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35100 if (!SWIG_IsOK(res1)) {
35101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35102 }
35103 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35104 ecode2 = SWIG_AsVal_int(obj1, &val2);
35105 if (!SWIG_IsOK(ecode2)) {
35106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35107 }
35108 arg2 = static_cast< int >(val2);
35109 {
35110 PyThreadState* __tstate = wxPyBeginAllowThreads();
35111 (arg1)->RemoveId(arg2);
35112 wxPyEndAllowThreads(__tstate);
35113 if (PyErr_Occurred()) SWIG_fail;
35114 }
35115 resultobj = SWIG_Py_Void();
35116 return resultobj;
35117 fail:
35118 return NULL;
35119 }
35120
35121
35122 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35123 PyObject *resultobj = 0;
35124 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35125 int arg2 ;
35126 int arg3 ;
35127 int arg4 ;
35128 void *argp1 = 0 ;
35129 int res1 = 0 ;
35130 int val2 ;
35131 int ecode2 = 0 ;
35132 int val3 ;
35133 int ecode3 = 0 ;
35134 int val4 ;
35135 int ecode4 = 0 ;
35136 PyObject * obj0 = 0 ;
35137 PyObject * obj1 = 0 ;
35138 PyObject * obj2 = 0 ;
35139 PyObject * obj3 = 0 ;
35140 char * kwnames[] = {
35141 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35142 };
35143
35144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35146 if (!SWIG_IsOK(res1)) {
35147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35148 }
35149 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35150 ecode2 = SWIG_AsVal_int(obj1, &val2);
35151 if (!SWIG_IsOK(ecode2)) {
35152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35153 }
35154 arg2 = static_cast< int >(val2);
35155 ecode3 = SWIG_AsVal_int(obj2, &val3);
35156 if (!SWIG_IsOK(ecode3)) {
35157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35158 }
35159 arg3 = static_cast< int >(val3);
35160 ecode4 = SWIG_AsVal_int(obj3, &val4);
35161 if (!SWIG_IsOK(ecode4)) {
35162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35163 }
35164 arg4 = static_cast< int >(val4);
35165 {
35166 PyThreadState* __tstate = wxPyBeginAllowThreads();
35167 (arg1)->TranslateId(arg2,arg3,arg4);
35168 wxPyEndAllowThreads(__tstate);
35169 if (PyErr_Occurred()) SWIG_fail;
35170 }
35171 resultobj = SWIG_Py_Void();
35172 return resultobj;
35173 fail:
35174 return NULL;
35175 }
35176
35177
35178 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35179 PyObject *resultobj = 0;
35180 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35181 int arg2 ;
35182 bool arg3 = (bool) true ;
35183 void *argp1 = 0 ;
35184 int res1 = 0 ;
35185 int val2 ;
35186 int ecode2 = 0 ;
35187 bool val3 ;
35188 int ecode3 = 0 ;
35189 PyObject * obj0 = 0 ;
35190 PyObject * obj1 = 0 ;
35191 PyObject * obj2 = 0 ;
35192 char * kwnames[] = {
35193 (char *) "self",(char *) "id",(char *) "greyout", NULL
35194 };
35195
35196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35198 if (!SWIG_IsOK(res1)) {
35199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35200 }
35201 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35202 ecode2 = SWIG_AsVal_int(obj1, &val2);
35203 if (!SWIG_IsOK(ecode2)) {
35204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35205 }
35206 arg2 = static_cast< int >(val2);
35207 if (obj2) {
35208 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35209 if (!SWIG_IsOK(ecode3)) {
35210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35211 }
35212 arg3 = static_cast< bool >(val3);
35213 }
35214 {
35215 PyThreadState* __tstate = wxPyBeginAllowThreads();
35216 (arg1)->SetIdGreyedOut(arg2,arg3);
35217 wxPyEndAllowThreads(__tstate);
35218 if (PyErr_Occurred()) SWIG_fail;
35219 }
35220 resultobj = SWIG_Py_Void();
35221 return resultobj;
35222 fail:
35223 return NULL;
35224 }
35225
35226
35227 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35228 PyObject *resultobj = 0;
35229 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35230 int arg2 ;
35231 bool result;
35232 void *argp1 = 0 ;
35233 int res1 = 0 ;
35234 int val2 ;
35235 int ecode2 = 0 ;
35236 PyObject * obj0 = 0 ;
35237 PyObject * obj1 = 0 ;
35238 char * kwnames[] = {
35239 (char *) "self",(char *) "id", NULL
35240 };
35241
35242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35244 if (!SWIG_IsOK(res1)) {
35245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35246 }
35247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35248 ecode2 = SWIG_AsVal_int(obj1, &val2);
35249 if (!SWIG_IsOK(ecode2)) {
35250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35251 }
35252 arg2 = static_cast< int >(val2);
35253 {
35254 PyThreadState* __tstate = wxPyBeginAllowThreads();
35255 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35256 wxPyEndAllowThreads(__tstate);
35257 if (PyErr_Occurred()) SWIG_fail;
35258 }
35259 {
35260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35261 }
35262 return resultobj;
35263 fail:
35264 return NULL;
35265 }
35266
35267
35268 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35269 PyObject *resultobj = 0;
35270 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35271 int arg2 ;
35272 int arg3 ;
35273 int arg4 = (int) 1 ;
35274 wxColor const &arg5_defvalue = *wxWHITE ;
35275 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35276 PyObject *result = 0 ;
35277 void *argp1 = 0 ;
35278 int res1 = 0 ;
35279 int val2 ;
35280 int ecode2 = 0 ;
35281 int val3 ;
35282 int ecode3 = 0 ;
35283 int val4 ;
35284 int ecode4 = 0 ;
35285 void *argp5 = 0 ;
35286 int res5 = 0 ;
35287 PyObject * obj0 = 0 ;
35288 PyObject * obj1 = 0 ;
35289 PyObject * obj2 = 0 ;
35290 PyObject * obj3 = 0 ;
35291 PyObject * obj4 = 0 ;
35292 char * kwnames[] = {
35293 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35294 };
35295
35296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35298 if (!SWIG_IsOK(res1)) {
35299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35300 }
35301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35302 ecode2 = SWIG_AsVal_int(obj1, &val2);
35303 if (!SWIG_IsOK(ecode2)) {
35304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35305 }
35306 arg2 = static_cast< int >(val2);
35307 ecode3 = SWIG_AsVal_int(obj2, &val3);
35308 if (!SWIG_IsOK(ecode3)) {
35309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35310 }
35311 arg3 = static_cast< int >(val3);
35312 if (obj3) {
35313 ecode4 = SWIG_AsVal_int(obj3, &val4);
35314 if (!SWIG_IsOK(ecode4)) {
35315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35316 }
35317 arg4 = static_cast< int >(val4);
35318 }
35319 if (obj4) {
35320 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35321 if (!SWIG_IsOK(res5)) {
35322 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35323 }
35324 if (!argp5) {
35325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35326 }
35327 arg5 = reinterpret_cast< wxColor * >(argp5);
35328 }
35329 {
35330 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35331 if (PyErr_Occurred()) SWIG_fail;
35332 }
35333 resultobj = result;
35334 return resultobj;
35335 fail:
35336 return NULL;
35337 }
35338
35339
35340 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35341 PyObject *resultobj = 0;
35342 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35343 int arg2 ;
35344 int arg3 ;
35345 PyObject *result = 0 ;
35346 void *argp1 = 0 ;
35347 int res1 = 0 ;
35348 int val2 ;
35349 int ecode2 = 0 ;
35350 int val3 ;
35351 int ecode3 = 0 ;
35352 PyObject * obj0 = 0 ;
35353 PyObject * obj1 = 0 ;
35354 PyObject * obj2 = 0 ;
35355 char * kwnames[] = {
35356 (char *) "self",(char *) "x",(char *) "y", NULL
35357 };
35358
35359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35361 if (!SWIG_IsOK(res1)) {
35362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35363 }
35364 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35365 ecode2 = SWIG_AsVal_int(obj1, &val2);
35366 if (!SWIG_IsOK(ecode2)) {
35367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35368 }
35369 arg2 = static_cast< int >(val2);
35370 ecode3 = SWIG_AsVal_int(obj2, &val3);
35371 if (!SWIG_IsOK(ecode3)) {
35372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35373 }
35374 arg3 = static_cast< int >(val3);
35375 {
35376 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35377 if (PyErr_Occurred()) SWIG_fail;
35378 }
35379 resultobj = result;
35380 return resultobj;
35381 fail:
35382 return NULL;
35383 }
35384
35385
35386 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35387 PyObject *resultobj = 0;
35388 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35389 int arg2 ;
35390 wxDC *arg3 = (wxDC *) 0 ;
35391 void *argp1 = 0 ;
35392 int res1 = 0 ;
35393 int val2 ;
35394 int ecode2 = 0 ;
35395 void *argp3 = 0 ;
35396 int res3 = 0 ;
35397 PyObject * obj0 = 0 ;
35398 PyObject * obj1 = 0 ;
35399 PyObject * obj2 = 0 ;
35400 char * kwnames[] = {
35401 (char *) "self",(char *) "id",(char *) "dc", NULL
35402 };
35403
35404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35406 if (!SWIG_IsOK(res1)) {
35407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35408 }
35409 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35410 ecode2 = SWIG_AsVal_int(obj1, &val2);
35411 if (!SWIG_IsOK(ecode2)) {
35412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35413 }
35414 arg2 = static_cast< int >(val2);
35415 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35416 if (!SWIG_IsOK(res3)) {
35417 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35418 }
35419 arg3 = reinterpret_cast< wxDC * >(argp3);
35420 {
35421 PyThreadState* __tstate = wxPyBeginAllowThreads();
35422 (arg1)->DrawIdToDC(arg2,arg3);
35423 wxPyEndAllowThreads(__tstate);
35424 if (PyErr_Occurred()) SWIG_fail;
35425 }
35426 resultobj = SWIG_Py_Void();
35427 return resultobj;
35428 fail:
35429 return NULL;
35430 }
35431
35432
35433 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35434 PyObject *resultobj = 0;
35435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35436 int arg2 ;
35437 wxRect *arg3 = 0 ;
35438 void *argp1 = 0 ;
35439 int res1 = 0 ;
35440 int val2 ;
35441 int ecode2 = 0 ;
35442 wxRect temp3 ;
35443 PyObject * obj0 = 0 ;
35444 PyObject * obj1 = 0 ;
35445 PyObject * obj2 = 0 ;
35446 char * kwnames[] = {
35447 (char *) "self",(char *) "id",(char *) "rect", NULL
35448 };
35449
35450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35452 if (!SWIG_IsOK(res1)) {
35453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35454 }
35455 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35456 ecode2 = SWIG_AsVal_int(obj1, &val2);
35457 if (!SWIG_IsOK(ecode2)) {
35458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35459 }
35460 arg2 = static_cast< int >(val2);
35461 {
35462 arg3 = &temp3;
35463 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35464 }
35465 {
35466 PyThreadState* __tstate = wxPyBeginAllowThreads();
35467 (arg1)->SetIdBounds(arg2,*arg3);
35468 wxPyEndAllowThreads(__tstate);
35469 if (PyErr_Occurred()) SWIG_fail;
35470 }
35471 resultobj = SWIG_Py_Void();
35472 return resultobj;
35473 fail:
35474 return NULL;
35475 }
35476
35477
35478 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35479 PyObject *resultobj = 0;
35480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35481 int arg2 ;
35482 wxRect result;
35483 void *argp1 = 0 ;
35484 int res1 = 0 ;
35485 int val2 ;
35486 int ecode2 = 0 ;
35487 PyObject * obj0 = 0 ;
35488 PyObject * obj1 = 0 ;
35489 char * kwnames[] = {
35490 (char *) "self",(char *) "id", NULL
35491 };
35492
35493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35495 if (!SWIG_IsOK(res1)) {
35496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35497 }
35498 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35499 ecode2 = SWIG_AsVal_int(obj1, &val2);
35500 if (!SWIG_IsOK(ecode2)) {
35501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35502 }
35503 arg2 = static_cast< int >(val2);
35504 {
35505 PyThreadState* __tstate = wxPyBeginAllowThreads();
35506 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35507 wxPyEndAllowThreads(__tstate);
35508 if (PyErr_Occurred()) SWIG_fail;
35509 }
35510 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35511 return resultobj;
35512 fail:
35513 return NULL;
35514 }
35515
35516
35517 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35518 PyObject *resultobj = 0;
35519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35520 wxDC *arg2 = (wxDC *) 0 ;
35521 wxRect *arg3 = 0 ;
35522 void *argp1 = 0 ;
35523 int res1 = 0 ;
35524 void *argp2 = 0 ;
35525 int res2 = 0 ;
35526 wxRect temp3 ;
35527 PyObject * obj0 = 0 ;
35528 PyObject * obj1 = 0 ;
35529 PyObject * obj2 = 0 ;
35530 char * kwnames[] = {
35531 (char *) "self",(char *) "dc",(char *) "rect", NULL
35532 };
35533
35534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35536 if (!SWIG_IsOK(res1)) {
35537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35538 }
35539 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35541 if (!SWIG_IsOK(res2)) {
35542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35543 }
35544 arg2 = reinterpret_cast< wxDC * >(argp2);
35545 {
35546 arg3 = &temp3;
35547 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35548 }
35549 {
35550 PyThreadState* __tstate = wxPyBeginAllowThreads();
35551 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35552 wxPyEndAllowThreads(__tstate);
35553 if (PyErr_Occurred()) SWIG_fail;
35554 }
35555 resultobj = SWIG_Py_Void();
35556 return resultobj;
35557 fail:
35558 return NULL;
35559 }
35560
35561
35562 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35563 PyObject *resultobj = 0;
35564 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35565 wxDC *arg2 = (wxDC *) 0 ;
35566 wxRegion *arg3 = 0 ;
35567 void *argp1 = 0 ;
35568 int res1 = 0 ;
35569 void *argp2 = 0 ;
35570 int res2 = 0 ;
35571 void *argp3 = 0 ;
35572 int res3 = 0 ;
35573 PyObject * obj0 = 0 ;
35574 PyObject * obj1 = 0 ;
35575 PyObject * obj2 = 0 ;
35576 char * kwnames[] = {
35577 (char *) "self",(char *) "dc",(char *) "region", NULL
35578 };
35579
35580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35582 if (!SWIG_IsOK(res1)) {
35583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35584 }
35585 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35587 if (!SWIG_IsOK(res2)) {
35588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35589 }
35590 arg2 = reinterpret_cast< wxDC * >(argp2);
35591 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35592 if (!SWIG_IsOK(res3)) {
35593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35594 }
35595 if (!argp3) {
35596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35597 }
35598 arg3 = reinterpret_cast< wxRegion * >(argp3);
35599 {
35600 PyThreadState* __tstate = wxPyBeginAllowThreads();
35601 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35602 wxPyEndAllowThreads(__tstate);
35603 if (PyErr_Occurred()) SWIG_fail;
35604 }
35605 resultobj = SWIG_Py_Void();
35606 return resultobj;
35607 fail:
35608 return NULL;
35609 }
35610
35611
35612 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35613 PyObject *resultobj = 0;
35614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35615 wxDC *arg2 = (wxDC *) 0 ;
35616 void *argp1 = 0 ;
35617 int res1 = 0 ;
35618 void *argp2 = 0 ;
35619 int res2 = 0 ;
35620 PyObject * obj0 = 0 ;
35621 PyObject * obj1 = 0 ;
35622 char * kwnames[] = {
35623 (char *) "self",(char *) "dc", NULL
35624 };
35625
35626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35628 if (!SWIG_IsOK(res1)) {
35629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35630 }
35631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35632 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35633 if (!SWIG_IsOK(res2)) {
35634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35635 }
35636 arg2 = reinterpret_cast< wxDC * >(argp2);
35637 {
35638 PyThreadState* __tstate = wxPyBeginAllowThreads();
35639 (arg1)->DrawToDC(arg2);
35640 wxPyEndAllowThreads(__tstate);
35641 if (PyErr_Occurred()) SWIG_fail;
35642 }
35643 resultobj = SWIG_Py_Void();
35644 return resultobj;
35645 fail:
35646 return NULL;
35647 }
35648
35649
35650 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35651 PyObject *resultobj = 0;
35652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35653 int arg2 ;
35654 int arg3 ;
35655 wxColour *arg4 = 0 ;
35656 int arg5 = (int) wxFLOOD_SURFACE ;
35657 void *argp1 = 0 ;
35658 int res1 = 0 ;
35659 int val2 ;
35660 int ecode2 = 0 ;
35661 int val3 ;
35662 int ecode3 = 0 ;
35663 wxColour temp4 ;
35664 int val5 ;
35665 int ecode5 = 0 ;
35666 PyObject * obj0 = 0 ;
35667 PyObject * obj1 = 0 ;
35668 PyObject * obj2 = 0 ;
35669 PyObject * obj3 = 0 ;
35670 PyObject * obj4 = 0 ;
35671 char * kwnames[] = {
35672 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35673 };
35674
35675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35677 if (!SWIG_IsOK(res1)) {
35678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35679 }
35680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35681 ecode2 = SWIG_AsVal_int(obj1, &val2);
35682 if (!SWIG_IsOK(ecode2)) {
35683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35684 }
35685 arg2 = static_cast< int >(val2);
35686 ecode3 = SWIG_AsVal_int(obj2, &val3);
35687 if (!SWIG_IsOK(ecode3)) {
35688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35689 }
35690 arg3 = static_cast< int >(val3);
35691 {
35692 arg4 = &temp4;
35693 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35694 }
35695 if (obj4) {
35696 ecode5 = SWIG_AsVal_int(obj4, &val5);
35697 if (!SWIG_IsOK(ecode5)) {
35698 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35699 }
35700 arg5 = static_cast< int >(val5);
35701 }
35702 {
35703 PyThreadState* __tstate = wxPyBeginAllowThreads();
35704 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35705 wxPyEndAllowThreads(__tstate);
35706 if (PyErr_Occurred()) SWIG_fail;
35707 }
35708 resultobj = SWIG_Py_Void();
35709 return resultobj;
35710 fail:
35711 return NULL;
35712 }
35713
35714
35715 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35716 PyObject *resultobj = 0;
35717 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35718 wxPoint *arg2 = 0 ;
35719 wxColour *arg3 = 0 ;
35720 int arg4 = (int) wxFLOOD_SURFACE ;
35721 void *argp1 = 0 ;
35722 int res1 = 0 ;
35723 wxPoint temp2 ;
35724 wxColour temp3 ;
35725 int val4 ;
35726 int ecode4 = 0 ;
35727 PyObject * obj0 = 0 ;
35728 PyObject * obj1 = 0 ;
35729 PyObject * obj2 = 0 ;
35730 PyObject * obj3 = 0 ;
35731 char * kwnames[] = {
35732 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35733 };
35734
35735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35737 if (!SWIG_IsOK(res1)) {
35738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35739 }
35740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35741 {
35742 arg2 = &temp2;
35743 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35744 }
35745 {
35746 arg3 = &temp3;
35747 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35748 }
35749 if (obj3) {
35750 ecode4 = SWIG_AsVal_int(obj3, &val4);
35751 if (!SWIG_IsOK(ecode4)) {
35752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35753 }
35754 arg4 = static_cast< int >(val4);
35755 }
35756 {
35757 PyThreadState* __tstate = wxPyBeginAllowThreads();
35758 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35759 wxPyEndAllowThreads(__tstate);
35760 if (PyErr_Occurred()) SWIG_fail;
35761 }
35762 resultobj = SWIG_Py_Void();
35763 return resultobj;
35764 fail:
35765 return NULL;
35766 }
35767
35768
35769 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35770 PyObject *resultobj = 0;
35771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35772 int arg2 ;
35773 int arg3 ;
35774 int arg4 ;
35775 int arg5 ;
35776 void *argp1 = 0 ;
35777 int res1 = 0 ;
35778 int val2 ;
35779 int ecode2 = 0 ;
35780 int val3 ;
35781 int ecode3 = 0 ;
35782 int val4 ;
35783 int ecode4 = 0 ;
35784 int val5 ;
35785 int ecode5 = 0 ;
35786 PyObject * obj0 = 0 ;
35787 PyObject * obj1 = 0 ;
35788 PyObject * obj2 = 0 ;
35789 PyObject * obj3 = 0 ;
35790 PyObject * obj4 = 0 ;
35791 char * kwnames[] = {
35792 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35793 };
35794
35795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35797 if (!SWIG_IsOK(res1)) {
35798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35799 }
35800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35801 ecode2 = SWIG_AsVal_int(obj1, &val2);
35802 if (!SWIG_IsOK(ecode2)) {
35803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35804 }
35805 arg2 = static_cast< int >(val2);
35806 ecode3 = SWIG_AsVal_int(obj2, &val3);
35807 if (!SWIG_IsOK(ecode3)) {
35808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35809 }
35810 arg3 = static_cast< int >(val3);
35811 ecode4 = SWIG_AsVal_int(obj3, &val4);
35812 if (!SWIG_IsOK(ecode4)) {
35813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35814 }
35815 arg4 = static_cast< int >(val4);
35816 ecode5 = SWIG_AsVal_int(obj4, &val5);
35817 if (!SWIG_IsOK(ecode5)) {
35818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35819 }
35820 arg5 = static_cast< int >(val5);
35821 {
35822 PyThreadState* __tstate = wxPyBeginAllowThreads();
35823 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35824 wxPyEndAllowThreads(__tstate);
35825 if (PyErr_Occurred()) SWIG_fail;
35826 }
35827 resultobj = SWIG_Py_Void();
35828 return resultobj;
35829 fail:
35830 return NULL;
35831 }
35832
35833
35834 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35835 PyObject *resultobj = 0;
35836 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35837 wxPoint *arg2 = 0 ;
35838 wxPoint *arg3 = 0 ;
35839 void *argp1 = 0 ;
35840 int res1 = 0 ;
35841 wxPoint temp2 ;
35842 wxPoint temp3 ;
35843 PyObject * obj0 = 0 ;
35844 PyObject * obj1 = 0 ;
35845 PyObject * obj2 = 0 ;
35846 char * kwnames[] = {
35847 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35848 };
35849
35850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35852 if (!SWIG_IsOK(res1)) {
35853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35854 }
35855 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35856 {
35857 arg2 = &temp2;
35858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35859 }
35860 {
35861 arg3 = &temp3;
35862 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35863 }
35864 {
35865 PyThreadState* __tstate = wxPyBeginAllowThreads();
35866 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35867 wxPyEndAllowThreads(__tstate);
35868 if (PyErr_Occurred()) SWIG_fail;
35869 }
35870 resultobj = SWIG_Py_Void();
35871 return resultobj;
35872 fail:
35873 return NULL;
35874 }
35875
35876
35877 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35878 PyObject *resultobj = 0;
35879 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35880 int arg2 ;
35881 int arg3 ;
35882 void *argp1 = 0 ;
35883 int res1 = 0 ;
35884 int val2 ;
35885 int ecode2 = 0 ;
35886 int val3 ;
35887 int ecode3 = 0 ;
35888 PyObject * obj0 = 0 ;
35889 PyObject * obj1 = 0 ;
35890 PyObject * obj2 = 0 ;
35891 char * kwnames[] = {
35892 (char *) "self",(char *) "x",(char *) "y", NULL
35893 };
35894
35895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35897 if (!SWIG_IsOK(res1)) {
35898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35899 }
35900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35901 ecode2 = SWIG_AsVal_int(obj1, &val2);
35902 if (!SWIG_IsOK(ecode2)) {
35903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35904 }
35905 arg2 = static_cast< int >(val2);
35906 ecode3 = SWIG_AsVal_int(obj2, &val3);
35907 if (!SWIG_IsOK(ecode3)) {
35908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35909 }
35910 arg3 = static_cast< int >(val3);
35911 {
35912 PyThreadState* __tstate = wxPyBeginAllowThreads();
35913 (arg1)->CrossHair(arg2,arg3);
35914 wxPyEndAllowThreads(__tstate);
35915 if (PyErr_Occurred()) SWIG_fail;
35916 }
35917 resultobj = SWIG_Py_Void();
35918 return resultobj;
35919 fail:
35920 return NULL;
35921 }
35922
35923
35924 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35925 PyObject *resultobj = 0;
35926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35927 wxPoint *arg2 = 0 ;
35928 void *argp1 = 0 ;
35929 int res1 = 0 ;
35930 wxPoint temp2 ;
35931 PyObject * obj0 = 0 ;
35932 PyObject * obj1 = 0 ;
35933 char * kwnames[] = {
35934 (char *) "self",(char *) "pt", NULL
35935 };
35936
35937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35939 if (!SWIG_IsOK(res1)) {
35940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35941 }
35942 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35943 {
35944 arg2 = &temp2;
35945 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35946 }
35947 {
35948 PyThreadState* __tstate = wxPyBeginAllowThreads();
35949 (arg1)->CrossHair((wxPoint const &)*arg2);
35950 wxPyEndAllowThreads(__tstate);
35951 if (PyErr_Occurred()) SWIG_fail;
35952 }
35953 resultobj = SWIG_Py_Void();
35954 return resultobj;
35955 fail:
35956 return NULL;
35957 }
35958
35959
35960 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35961 PyObject *resultobj = 0;
35962 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35963 int arg2 ;
35964 int arg3 ;
35965 int arg4 ;
35966 int arg5 ;
35967 int arg6 ;
35968 int arg7 ;
35969 void *argp1 = 0 ;
35970 int res1 = 0 ;
35971 int val2 ;
35972 int ecode2 = 0 ;
35973 int val3 ;
35974 int ecode3 = 0 ;
35975 int val4 ;
35976 int ecode4 = 0 ;
35977 int val5 ;
35978 int ecode5 = 0 ;
35979 int val6 ;
35980 int ecode6 = 0 ;
35981 int val7 ;
35982 int ecode7 = 0 ;
35983 PyObject * obj0 = 0 ;
35984 PyObject * obj1 = 0 ;
35985 PyObject * obj2 = 0 ;
35986 PyObject * obj3 = 0 ;
35987 PyObject * obj4 = 0 ;
35988 PyObject * obj5 = 0 ;
35989 PyObject * obj6 = 0 ;
35990 char * kwnames[] = {
35991 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35992 };
35993
35994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35996 if (!SWIG_IsOK(res1)) {
35997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35998 }
35999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36000 ecode2 = SWIG_AsVal_int(obj1, &val2);
36001 if (!SWIG_IsOK(ecode2)) {
36002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36003 }
36004 arg2 = static_cast< int >(val2);
36005 ecode3 = SWIG_AsVal_int(obj2, &val3);
36006 if (!SWIG_IsOK(ecode3)) {
36007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36008 }
36009 arg3 = static_cast< int >(val3);
36010 ecode4 = SWIG_AsVal_int(obj3, &val4);
36011 if (!SWIG_IsOK(ecode4)) {
36012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36013 }
36014 arg4 = static_cast< int >(val4);
36015 ecode5 = SWIG_AsVal_int(obj4, &val5);
36016 if (!SWIG_IsOK(ecode5)) {
36017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36018 }
36019 arg5 = static_cast< int >(val5);
36020 ecode6 = SWIG_AsVal_int(obj5, &val6);
36021 if (!SWIG_IsOK(ecode6)) {
36022 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36023 }
36024 arg6 = static_cast< int >(val6);
36025 ecode7 = SWIG_AsVal_int(obj6, &val7);
36026 if (!SWIG_IsOK(ecode7)) {
36027 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36028 }
36029 arg7 = static_cast< int >(val7);
36030 {
36031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36032 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36033 wxPyEndAllowThreads(__tstate);
36034 if (PyErr_Occurred()) SWIG_fail;
36035 }
36036 resultobj = SWIG_Py_Void();
36037 return resultobj;
36038 fail:
36039 return NULL;
36040 }
36041
36042
36043 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36044 PyObject *resultobj = 0;
36045 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36046 wxPoint *arg2 = 0 ;
36047 wxPoint *arg3 = 0 ;
36048 wxPoint *arg4 = 0 ;
36049 void *argp1 = 0 ;
36050 int res1 = 0 ;
36051 wxPoint temp2 ;
36052 wxPoint temp3 ;
36053 wxPoint temp4 ;
36054 PyObject * obj0 = 0 ;
36055 PyObject * obj1 = 0 ;
36056 PyObject * obj2 = 0 ;
36057 PyObject * obj3 = 0 ;
36058 char * kwnames[] = {
36059 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36060 };
36061
36062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36064 if (!SWIG_IsOK(res1)) {
36065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36066 }
36067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36068 {
36069 arg2 = &temp2;
36070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36071 }
36072 {
36073 arg3 = &temp3;
36074 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36075 }
36076 {
36077 arg4 = &temp4;
36078 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36079 }
36080 {
36081 PyThreadState* __tstate = wxPyBeginAllowThreads();
36082 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36083 wxPyEndAllowThreads(__tstate);
36084 if (PyErr_Occurred()) SWIG_fail;
36085 }
36086 resultobj = SWIG_Py_Void();
36087 return resultobj;
36088 fail:
36089 return NULL;
36090 }
36091
36092
36093 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36094 PyObject *resultobj = 0;
36095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36096 int arg2 ;
36097 int arg3 ;
36098 int arg4 ;
36099 int arg5 ;
36100 void *argp1 = 0 ;
36101 int res1 = 0 ;
36102 int val2 ;
36103 int ecode2 = 0 ;
36104 int val3 ;
36105 int ecode3 = 0 ;
36106 int val4 ;
36107 int ecode4 = 0 ;
36108 int val5 ;
36109 int ecode5 = 0 ;
36110 PyObject * obj0 = 0 ;
36111 PyObject * obj1 = 0 ;
36112 PyObject * obj2 = 0 ;
36113 PyObject * obj3 = 0 ;
36114 PyObject * obj4 = 0 ;
36115 char * kwnames[] = {
36116 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36117 };
36118
36119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36121 if (!SWIG_IsOK(res1)) {
36122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36125 ecode2 = SWIG_AsVal_int(obj1, &val2);
36126 if (!SWIG_IsOK(ecode2)) {
36127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36128 }
36129 arg2 = static_cast< int >(val2);
36130 ecode3 = SWIG_AsVal_int(obj2, &val3);
36131 if (!SWIG_IsOK(ecode3)) {
36132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36133 }
36134 arg3 = static_cast< int >(val3);
36135 ecode4 = SWIG_AsVal_int(obj3, &val4);
36136 if (!SWIG_IsOK(ecode4)) {
36137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36138 }
36139 arg4 = static_cast< int >(val4);
36140 ecode5 = SWIG_AsVal_int(obj4, &val5);
36141 if (!SWIG_IsOK(ecode5)) {
36142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36143 }
36144 arg5 = static_cast< int >(val5);
36145 {
36146 PyThreadState* __tstate = wxPyBeginAllowThreads();
36147 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36148 wxPyEndAllowThreads(__tstate);
36149 if (PyErr_Occurred()) SWIG_fail;
36150 }
36151 resultobj = SWIG_Py_Void();
36152 return resultobj;
36153 fail:
36154 return NULL;
36155 }
36156
36157
36158 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36159 PyObject *resultobj = 0;
36160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36161 wxRect *arg2 = 0 ;
36162 void *argp1 = 0 ;
36163 int res1 = 0 ;
36164 wxRect temp2 ;
36165 PyObject * obj0 = 0 ;
36166 PyObject * obj1 = 0 ;
36167 char * kwnames[] = {
36168 (char *) "self",(char *) "rect", NULL
36169 };
36170
36171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36173 if (!SWIG_IsOK(res1)) {
36174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36175 }
36176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36177 {
36178 arg2 = &temp2;
36179 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36180 }
36181 {
36182 PyThreadState* __tstate = wxPyBeginAllowThreads();
36183 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36184 wxPyEndAllowThreads(__tstate);
36185 if (PyErr_Occurred()) SWIG_fail;
36186 }
36187 resultobj = SWIG_Py_Void();
36188 return resultobj;
36189 fail:
36190 return NULL;
36191 }
36192
36193
36194 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36195 PyObject *resultobj = 0;
36196 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36197 int arg2 ;
36198 int arg3 ;
36199 int arg4 ;
36200 int arg5 ;
36201 double arg6 ;
36202 double arg7 ;
36203 void *argp1 = 0 ;
36204 int res1 = 0 ;
36205 int val2 ;
36206 int ecode2 = 0 ;
36207 int val3 ;
36208 int ecode3 = 0 ;
36209 int val4 ;
36210 int ecode4 = 0 ;
36211 int val5 ;
36212 int ecode5 = 0 ;
36213 double val6 ;
36214 int ecode6 = 0 ;
36215 double val7 ;
36216 int ecode7 = 0 ;
36217 PyObject * obj0 = 0 ;
36218 PyObject * obj1 = 0 ;
36219 PyObject * obj2 = 0 ;
36220 PyObject * obj3 = 0 ;
36221 PyObject * obj4 = 0 ;
36222 PyObject * obj5 = 0 ;
36223 PyObject * obj6 = 0 ;
36224 char * kwnames[] = {
36225 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36226 };
36227
36228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36230 if (!SWIG_IsOK(res1)) {
36231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36232 }
36233 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36234 ecode2 = SWIG_AsVal_int(obj1, &val2);
36235 if (!SWIG_IsOK(ecode2)) {
36236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36237 }
36238 arg2 = static_cast< int >(val2);
36239 ecode3 = SWIG_AsVal_int(obj2, &val3);
36240 if (!SWIG_IsOK(ecode3)) {
36241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36242 }
36243 arg3 = static_cast< int >(val3);
36244 ecode4 = SWIG_AsVal_int(obj3, &val4);
36245 if (!SWIG_IsOK(ecode4)) {
36246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36247 }
36248 arg4 = static_cast< int >(val4);
36249 ecode5 = SWIG_AsVal_int(obj4, &val5);
36250 if (!SWIG_IsOK(ecode5)) {
36251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36252 }
36253 arg5 = static_cast< int >(val5);
36254 ecode6 = SWIG_AsVal_double(obj5, &val6);
36255 if (!SWIG_IsOK(ecode6)) {
36256 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36257 }
36258 arg6 = static_cast< double >(val6);
36259 ecode7 = SWIG_AsVal_double(obj6, &val7);
36260 if (!SWIG_IsOK(ecode7)) {
36261 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36262 }
36263 arg7 = static_cast< double >(val7);
36264 {
36265 PyThreadState* __tstate = wxPyBeginAllowThreads();
36266 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36267 wxPyEndAllowThreads(__tstate);
36268 if (PyErr_Occurred()) SWIG_fail;
36269 }
36270 resultobj = SWIG_Py_Void();
36271 return resultobj;
36272 fail:
36273 return NULL;
36274 }
36275
36276
36277 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36278 PyObject *resultobj = 0;
36279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36280 wxPoint *arg2 = 0 ;
36281 wxSize *arg3 = 0 ;
36282 double arg4 ;
36283 double arg5 ;
36284 void *argp1 = 0 ;
36285 int res1 = 0 ;
36286 wxPoint temp2 ;
36287 wxSize temp3 ;
36288 double val4 ;
36289 int ecode4 = 0 ;
36290 double val5 ;
36291 int ecode5 = 0 ;
36292 PyObject * obj0 = 0 ;
36293 PyObject * obj1 = 0 ;
36294 PyObject * obj2 = 0 ;
36295 PyObject * obj3 = 0 ;
36296 PyObject * obj4 = 0 ;
36297 char * kwnames[] = {
36298 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36299 };
36300
36301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36303 if (!SWIG_IsOK(res1)) {
36304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36305 }
36306 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36307 {
36308 arg2 = &temp2;
36309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36310 }
36311 {
36312 arg3 = &temp3;
36313 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36314 }
36315 ecode4 = SWIG_AsVal_double(obj3, &val4);
36316 if (!SWIG_IsOK(ecode4)) {
36317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36318 }
36319 arg4 = static_cast< double >(val4);
36320 ecode5 = SWIG_AsVal_double(obj4, &val5);
36321 if (!SWIG_IsOK(ecode5)) {
36322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36323 }
36324 arg5 = static_cast< double >(val5);
36325 {
36326 PyThreadState* __tstate = wxPyBeginAllowThreads();
36327 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36328 wxPyEndAllowThreads(__tstate);
36329 if (PyErr_Occurred()) SWIG_fail;
36330 }
36331 resultobj = SWIG_Py_Void();
36332 return resultobj;
36333 fail:
36334 return NULL;
36335 }
36336
36337
36338 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36339 PyObject *resultobj = 0;
36340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36341 int arg2 ;
36342 int arg3 ;
36343 void *argp1 = 0 ;
36344 int res1 = 0 ;
36345 int val2 ;
36346 int ecode2 = 0 ;
36347 int val3 ;
36348 int ecode3 = 0 ;
36349 PyObject * obj0 = 0 ;
36350 PyObject * obj1 = 0 ;
36351 PyObject * obj2 = 0 ;
36352 char * kwnames[] = {
36353 (char *) "self",(char *) "x",(char *) "y", NULL
36354 };
36355
36356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36358 if (!SWIG_IsOK(res1)) {
36359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36360 }
36361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36362 ecode2 = SWIG_AsVal_int(obj1, &val2);
36363 if (!SWIG_IsOK(ecode2)) {
36364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36365 }
36366 arg2 = static_cast< int >(val2);
36367 ecode3 = SWIG_AsVal_int(obj2, &val3);
36368 if (!SWIG_IsOK(ecode3)) {
36369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36370 }
36371 arg3 = static_cast< int >(val3);
36372 {
36373 PyThreadState* __tstate = wxPyBeginAllowThreads();
36374 (arg1)->DrawPoint(arg2,arg3);
36375 wxPyEndAllowThreads(__tstate);
36376 if (PyErr_Occurred()) SWIG_fail;
36377 }
36378 resultobj = SWIG_Py_Void();
36379 return resultobj;
36380 fail:
36381 return NULL;
36382 }
36383
36384
36385 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36386 PyObject *resultobj = 0;
36387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36388 wxPoint *arg2 = 0 ;
36389 void *argp1 = 0 ;
36390 int res1 = 0 ;
36391 wxPoint temp2 ;
36392 PyObject * obj0 = 0 ;
36393 PyObject * obj1 = 0 ;
36394 char * kwnames[] = {
36395 (char *) "self",(char *) "pt", NULL
36396 };
36397
36398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36400 if (!SWIG_IsOK(res1)) {
36401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36402 }
36403 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36404 {
36405 arg2 = &temp2;
36406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36407 }
36408 {
36409 PyThreadState* __tstate = wxPyBeginAllowThreads();
36410 (arg1)->DrawPoint((wxPoint const &)*arg2);
36411 wxPyEndAllowThreads(__tstate);
36412 if (PyErr_Occurred()) SWIG_fail;
36413 }
36414 resultobj = SWIG_Py_Void();
36415 return resultobj;
36416 fail:
36417 return NULL;
36418 }
36419
36420
36421 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36422 PyObject *resultobj = 0;
36423 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36424 int arg2 ;
36425 int arg3 ;
36426 int arg4 ;
36427 int arg5 ;
36428 void *argp1 = 0 ;
36429 int res1 = 0 ;
36430 int val2 ;
36431 int ecode2 = 0 ;
36432 int val3 ;
36433 int ecode3 = 0 ;
36434 int val4 ;
36435 int ecode4 = 0 ;
36436 int val5 ;
36437 int ecode5 = 0 ;
36438 PyObject * obj0 = 0 ;
36439 PyObject * obj1 = 0 ;
36440 PyObject * obj2 = 0 ;
36441 PyObject * obj3 = 0 ;
36442 PyObject * obj4 = 0 ;
36443 char * kwnames[] = {
36444 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36445 };
36446
36447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36449 if (!SWIG_IsOK(res1)) {
36450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36451 }
36452 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36453 ecode2 = SWIG_AsVal_int(obj1, &val2);
36454 if (!SWIG_IsOK(ecode2)) {
36455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36456 }
36457 arg2 = static_cast< int >(val2);
36458 ecode3 = SWIG_AsVal_int(obj2, &val3);
36459 if (!SWIG_IsOK(ecode3)) {
36460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36461 }
36462 arg3 = static_cast< int >(val3);
36463 ecode4 = SWIG_AsVal_int(obj3, &val4);
36464 if (!SWIG_IsOK(ecode4)) {
36465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36466 }
36467 arg4 = static_cast< int >(val4);
36468 ecode5 = SWIG_AsVal_int(obj4, &val5);
36469 if (!SWIG_IsOK(ecode5)) {
36470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36471 }
36472 arg5 = static_cast< int >(val5);
36473 {
36474 PyThreadState* __tstate = wxPyBeginAllowThreads();
36475 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36476 wxPyEndAllowThreads(__tstate);
36477 if (PyErr_Occurred()) SWIG_fail;
36478 }
36479 resultobj = SWIG_Py_Void();
36480 return resultobj;
36481 fail:
36482 return NULL;
36483 }
36484
36485
36486 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36487 PyObject *resultobj = 0;
36488 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36489 wxRect *arg2 = 0 ;
36490 void *argp1 = 0 ;
36491 int res1 = 0 ;
36492 wxRect temp2 ;
36493 PyObject * obj0 = 0 ;
36494 PyObject * obj1 = 0 ;
36495 char * kwnames[] = {
36496 (char *) "self",(char *) "rect", NULL
36497 };
36498
36499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36501 if (!SWIG_IsOK(res1)) {
36502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36503 }
36504 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36505 {
36506 arg2 = &temp2;
36507 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36508 }
36509 {
36510 PyThreadState* __tstate = wxPyBeginAllowThreads();
36511 (arg1)->DrawRectangle((wxRect const &)*arg2);
36512 wxPyEndAllowThreads(__tstate);
36513 if (PyErr_Occurred()) SWIG_fail;
36514 }
36515 resultobj = SWIG_Py_Void();
36516 return resultobj;
36517 fail:
36518 return NULL;
36519 }
36520
36521
36522 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36523 PyObject *resultobj = 0;
36524 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36525 wxPoint *arg2 = 0 ;
36526 wxSize *arg3 = 0 ;
36527 void *argp1 = 0 ;
36528 int res1 = 0 ;
36529 wxPoint temp2 ;
36530 wxSize temp3 ;
36531 PyObject * obj0 = 0 ;
36532 PyObject * obj1 = 0 ;
36533 PyObject * obj2 = 0 ;
36534 char * kwnames[] = {
36535 (char *) "self",(char *) "pt",(char *) "sz", NULL
36536 };
36537
36538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36540 if (!SWIG_IsOK(res1)) {
36541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36542 }
36543 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36544 {
36545 arg2 = &temp2;
36546 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36547 }
36548 {
36549 arg3 = &temp3;
36550 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36551 }
36552 {
36553 PyThreadState* __tstate = wxPyBeginAllowThreads();
36554 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36555 wxPyEndAllowThreads(__tstate);
36556 if (PyErr_Occurred()) SWIG_fail;
36557 }
36558 resultobj = SWIG_Py_Void();
36559 return resultobj;
36560 fail:
36561 return NULL;
36562 }
36563
36564
36565 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36566 PyObject *resultobj = 0;
36567 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36568 int arg2 ;
36569 int arg3 ;
36570 int arg4 ;
36571 int arg5 ;
36572 double arg6 ;
36573 void *argp1 = 0 ;
36574 int res1 = 0 ;
36575 int val2 ;
36576 int ecode2 = 0 ;
36577 int val3 ;
36578 int ecode3 = 0 ;
36579 int val4 ;
36580 int ecode4 = 0 ;
36581 int val5 ;
36582 int ecode5 = 0 ;
36583 double val6 ;
36584 int ecode6 = 0 ;
36585 PyObject * obj0 = 0 ;
36586 PyObject * obj1 = 0 ;
36587 PyObject * obj2 = 0 ;
36588 PyObject * obj3 = 0 ;
36589 PyObject * obj4 = 0 ;
36590 PyObject * obj5 = 0 ;
36591 char * kwnames[] = {
36592 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36593 };
36594
36595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36597 if (!SWIG_IsOK(res1)) {
36598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36599 }
36600 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36601 ecode2 = SWIG_AsVal_int(obj1, &val2);
36602 if (!SWIG_IsOK(ecode2)) {
36603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36604 }
36605 arg2 = static_cast< int >(val2);
36606 ecode3 = SWIG_AsVal_int(obj2, &val3);
36607 if (!SWIG_IsOK(ecode3)) {
36608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36609 }
36610 arg3 = static_cast< int >(val3);
36611 ecode4 = SWIG_AsVal_int(obj3, &val4);
36612 if (!SWIG_IsOK(ecode4)) {
36613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36614 }
36615 arg4 = static_cast< int >(val4);
36616 ecode5 = SWIG_AsVal_int(obj4, &val5);
36617 if (!SWIG_IsOK(ecode5)) {
36618 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36619 }
36620 arg5 = static_cast< int >(val5);
36621 ecode6 = SWIG_AsVal_double(obj5, &val6);
36622 if (!SWIG_IsOK(ecode6)) {
36623 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36624 }
36625 arg6 = static_cast< double >(val6);
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = SWIG_Py_Void();
36633 return resultobj;
36634 fail:
36635 return NULL;
36636 }
36637
36638
36639 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36640 PyObject *resultobj = 0;
36641 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36642 wxRect *arg2 = 0 ;
36643 double arg3 ;
36644 void *argp1 = 0 ;
36645 int res1 = 0 ;
36646 wxRect temp2 ;
36647 double val3 ;
36648 int ecode3 = 0 ;
36649 PyObject * obj0 = 0 ;
36650 PyObject * obj1 = 0 ;
36651 PyObject * obj2 = 0 ;
36652 char * kwnames[] = {
36653 (char *) "self",(char *) "r",(char *) "radius", NULL
36654 };
36655
36656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36658 if (!SWIG_IsOK(res1)) {
36659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36660 }
36661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36662 {
36663 arg2 = &temp2;
36664 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36665 }
36666 ecode3 = SWIG_AsVal_double(obj2, &val3);
36667 if (!SWIG_IsOK(ecode3)) {
36668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36669 }
36670 arg3 = static_cast< double >(val3);
36671 {
36672 PyThreadState* __tstate = wxPyBeginAllowThreads();
36673 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36674 wxPyEndAllowThreads(__tstate);
36675 if (PyErr_Occurred()) SWIG_fail;
36676 }
36677 resultobj = SWIG_Py_Void();
36678 return resultobj;
36679 fail:
36680 return NULL;
36681 }
36682
36683
36684 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36685 PyObject *resultobj = 0;
36686 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36687 wxPoint *arg2 = 0 ;
36688 wxSize *arg3 = 0 ;
36689 double arg4 ;
36690 void *argp1 = 0 ;
36691 int res1 = 0 ;
36692 wxPoint temp2 ;
36693 wxSize temp3 ;
36694 double val4 ;
36695 int ecode4 = 0 ;
36696 PyObject * obj0 = 0 ;
36697 PyObject * obj1 = 0 ;
36698 PyObject * obj2 = 0 ;
36699 PyObject * obj3 = 0 ;
36700 char * kwnames[] = {
36701 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36702 };
36703
36704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36706 if (!SWIG_IsOK(res1)) {
36707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36708 }
36709 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36710 {
36711 arg2 = &temp2;
36712 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36713 }
36714 {
36715 arg3 = &temp3;
36716 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36717 }
36718 ecode4 = SWIG_AsVal_double(obj3, &val4);
36719 if (!SWIG_IsOK(ecode4)) {
36720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36721 }
36722 arg4 = static_cast< double >(val4);
36723 {
36724 PyThreadState* __tstate = wxPyBeginAllowThreads();
36725 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36726 wxPyEndAllowThreads(__tstate);
36727 if (PyErr_Occurred()) SWIG_fail;
36728 }
36729 resultobj = SWIG_Py_Void();
36730 return resultobj;
36731 fail:
36732 return NULL;
36733 }
36734
36735
36736 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36737 PyObject *resultobj = 0;
36738 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36739 int arg2 ;
36740 int arg3 ;
36741 int arg4 ;
36742 void *argp1 = 0 ;
36743 int res1 = 0 ;
36744 int val2 ;
36745 int ecode2 = 0 ;
36746 int val3 ;
36747 int ecode3 = 0 ;
36748 int val4 ;
36749 int ecode4 = 0 ;
36750 PyObject * obj0 = 0 ;
36751 PyObject * obj1 = 0 ;
36752 PyObject * obj2 = 0 ;
36753 PyObject * obj3 = 0 ;
36754 char * kwnames[] = {
36755 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36756 };
36757
36758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36760 if (!SWIG_IsOK(res1)) {
36761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36762 }
36763 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36764 ecode2 = SWIG_AsVal_int(obj1, &val2);
36765 if (!SWIG_IsOK(ecode2)) {
36766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36767 }
36768 arg2 = static_cast< int >(val2);
36769 ecode3 = SWIG_AsVal_int(obj2, &val3);
36770 if (!SWIG_IsOK(ecode3)) {
36771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36772 }
36773 arg3 = static_cast< int >(val3);
36774 ecode4 = SWIG_AsVal_int(obj3, &val4);
36775 if (!SWIG_IsOK(ecode4)) {
36776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36777 }
36778 arg4 = static_cast< int >(val4);
36779 {
36780 PyThreadState* __tstate = wxPyBeginAllowThreads();
36781 (arg1)->DrawCircle(arg2,arg3,arg4);
36782 wxPyEndAllowThreads(__tstate);
36783 if (PyErr_Occurred()) SWIG_fail;
36784 }
36785 resultobj = SWIG_Py_Void();
36786 return resultobj;
36787 fail:
36788 return NULL;
36789 }
36790
36791
36792 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36793 PyObject *resultobj = 0;
36794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36795 wxPoint *arg2 = 0 ;
36796 int arg3 ;
36797 void *argp1 = 0 ;
36798 int res1 = 0 ;
36799 wxPoint temp2 ;
36800 int val3 ;
36801 int ecode3 = 0 ;
36802 PyObject * obj0 = 0 ;
36803 PyObject * obj1 = 0 ;
36804 PyObject * obj2 = 0 ;
36805 char * kwnames[] = {
36806 (char *) "self",(char *) "pt",(char *) "radius", NULL
36807 };
36808
36809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36811 if (!SWIG_IsOK(res1)) {
36812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36813 }
36814 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36815 {
36816 arg2 = &temp2;
36817 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36818 }
36819 ecode3 = SWIG_AsVal_int(obj2, &val3);
36820 if (!SWIG_IsOK(ecode3)) {
36821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36822 }
36823 arg3 = static_cast< int >(val3);
36824 {
36825 PyThreadState* __tstate = wxPyBeginAllowThreads();
36826 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36827 wxPyEndAllowThreads(__tstate);
36828 if (PyErr_Occurred()) SWIG_fail;
36829 }
36830 resultobj = SWIG_Py_Void();
36831 return resultobj;
36832 fail:
36833 return NULL;
36834 }
36835
36836
36837 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36838 PyObject *resultobj = 0;
36839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36840 int arg2 ;
36841 int arg3 ;
36842 int arg4 ;
36843 int arg5 ;
36844 void *argp1 = 0 ;
36845 int res1 = 0 ;
36846 int val2 ;
36847 int ecode2 = 0 ;
36848 int val3 ;
36849 int ecode3 = 0 ;
36850 int val4 ;
36851 int ecode4 = 0 ;
36852 int val5 ;
36853 int ecode5 = 0 ;
36854 PyObject * obj0 = 0 ;
36855 PyObject * obj1 = 0 ;
36856 PyObject * obj2 = 0 ;
36857 PyObject * obj3 = 0 ;
36858 PyObject * obj4 = 0 ;
36859 char * kwnames[] = {
36860 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36861 };
36862
36863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36865 if (!SWIG_IsOK(res1)) {
36866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36867 }
36868 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36869 ecode2 = SWIG_AsVal_int(obj1, &val2);
36870 if (!SWIG_IsOK(ecode2)) {
36871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36872 }
36873 arg2 = static_cast< int >(val2);
36874 ecode3 = SWIG_AsVal_int(obj2, &val3);
36875 if (!SWIG_IsOK(ecode3)) {
36876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36877 }
36878 arg3 = static_cast< int >(val3);
36879 ecode4 = SWIG_AsVal_int(obj3, &val4);
36880 if (!SWIG_IsOK(ecode4)) {
36881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36882 }
36883 arg4 = static_cast< int >(val4);
36884 ecode5 = SWIG_AsVal_int(obj4, &val5);
36885 if (!SWIG_IsOK(ecode5)) {
36886 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36887 }
36888 arg5 = static_cast< int >(val5);
36889 {
36890 PyThreadState* __tstate = wxPyBeginAllowThreads();
36891 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36892 wxPyEndAllowThreads(__tstate);
36893 if (PyErr_Occurred()) SWIG_fail;
36894 }
36895 resultobj = SWIG_Py_Void();
36896 return resultobj;
36897 fail:
36898 return NULL;
36899 }
36900
36901
36902 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36903 PyObject *resultobj = 0;
36904 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36905 wxRect *arg2 = 0 ;
36906 void *argp1 = 0 ;
36907 int res1 = 0 ;
36908 wxRect temp2 ;
36909 PyObject * obj0 = 0 ;
36910 PyObject * obj1 = 0 ;
36911 char * kwnames[] = {
36912 (char *) "self",(char *) "rect", NULL
36913 };
36914
36915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36917 if (!SWIG_IsOK(res1)) {
36918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36919 }
36920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36921 {
36922 arg2 = &temp2;
36923 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36924 }
36925 {
36926 PyThreadState* __tstate = wxPyBeginAllowThreads();
36927 (arg1)->DrawEllipse((wxRect const &)*arg2);
36928 wxPyEndAllowThreads(__tstate);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 }
36931 resultobj = SWIG_Py_Void();
36932 return resultobj;
36933 fail:
36934 return NULL;
36935 }
36936
36937
36938 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36939 PyObject *resultobj = 0;
36940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36941 wxPoint *arg2 = 0 ;
36942 wxSize *arg3 = 0 ;
36943 void *argp1 = 0 ;
36944 int res1 = 0 ;
36945 wxPoint temp2 ;
36946 wxSize temp3 ;
36947 PyObject * obj0 = 0 ;
36948 PyObject * obj1 = 0 ;
36949 PyObject * obj2 = 0 ;
36950 char * kwnames[] = {
36951 (char *) "self",(char *) "pt",(char *) "sz", NULL
36952 };
36953
36954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36956 if (!SWIG_IsOK(res1)) {
36957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36958 }
36959 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36960 {
36961 arg2 = &temp2;
36962 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36963 }
36964 {
36965 arg3 = &temp3;
36966 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36967 }
36968 {
36969 PyThreadState* __tstate = wxPyBeginAllowThreads();
36970 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36971 wxPyEndAllowThreads(__tstate);
36972 if (PyErr_Occurred()) SWIG_fail;
36973 }
36974 resultobj = SWIG_Py_Void();
36975 return resultobj;
36976 fail:
36977 return NULL;
36978 }
36979
36980
36981 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36982 PyObject *resultobj = 0;
36983 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36984 wxIcon *arg2 = 0 ;
36985 int arg3 ;
36986 int arg4 ;
36987 void *argp1 = 0 ;
36988 int res1 = 0 ;
36989 void *argp2 = 0 ;
36990 int res2 = 0 ;
36991 int val3 ;
36992 int ecode3 = 0 ;
36993 int val4 ;
36994 int ecode4 = 0 ;
36995 PyObject * obj0 = 0 ;
36996 PyObject * obj1 = 0 ;
36997 PyObject * obj2 = 0 ;
36998 PyObject * obj3 = 0 ;
36999 char * kwnames[] = {
37000 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37001 };
37002
37003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37005 if (!SWIG_IsOK(res1)) {
37006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37007 }
37008 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37010 if (!SWIG_IsOK(res2)) {
37011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37012 }
37013 if (!argp2) {
37014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37015 }
37016 arg2 = reinterpret_cast< wxIcon * >(argp2);
37017 ecode3 = SWIG_AsVal_int(obj2, &val3);
37018 if (!SWIG_IsOK(ecode3)) {
37019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37020 }
37021 arg3 = static_cast< int >(val3);
37022 ecode4 = SWIG_AsVal_int(obj3, &val4);
37023 if (!SWIG_IsOK(ecode4)) {
37024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37025 }
37026 arg4 = static_cast< int >(val4);
37027 {
37028 PyThreadState* __tstate = wxPyBeginAllowThreads();
37029 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37030 wxPyEndAllowThreads(__tstate);
37031 if (PyErr_Occurred()) SWIG_fail;
37032 }
37033 resultobj = SWIG_Py_Void();
37034 return resultobj;
37035 fail:
37036 return NULL;
37037 }
37038
37039
37040 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37041 PyObject *resultobj = 0;
37042 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37043 wxIcon *arg2 = 0 ;
37044 wxPoint *arg3 = 0 ;
37045 void *argp1 = 0 ;
37046 int res1 = 0 ;
37047 void *argp2 = 0 ;
37048 int res2 = 0 ;
37049 wxPoint temp3 ;
37050 PyObject * obj0 = 0 ;
37051 PyObject * obj1 = 0 ;
37052 PyObject * obj2 = 0 ;
37053 char * kwnames[] = {
37054 (char *) "self",(char *) "icon",(char *) "pt", NULL
37055 };
37056
37057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37059 if (!SWIG_IsOK(res1)) {
37060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37061 }
37062 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37064 if (!SWIG_IsOK(res2)) {
37065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37066 }
37067 if (!argp2) {
37068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37069 }
37070 arg2 = reinterpret_cast< wxIcon * >(argp2);
37071 {
37072 arg3 = &temp3;
37073 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37074 }
37075 {
37076 PyThreadState* __tstate = wxPyBeginAllowThreads();
37077 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37078 wxPyEndAllowThreads(__tstate);
37079 if (PyErr_Occurred()) SWIG_fail;
37080 }
37081 resultobj = SWIG_Py_Void();
37082 return resultobj;
37083 fail:
37084 return NULL;
37085 }
37086
37087
37088 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37089 PyObject *resultobj = 0;
37090 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37091 wxBitmap *arg2 = 0 ;
37092 int arg3 ;
37093 int arg4 ;
37094 bool arg5 = (bool) false ;
37095 void *argp1 = 0 ;
37096 int res1 = 0 ;
37097 void *argp2 = 0 ;
37098 int res2 = 0 ;
37099 int val3 ;
37100 int ecode3 = 0 ;
37101 int val4 ;
37102 int ecode4 = 0 ;
37103 bool val5 ;
37104 int ecode5 = 0 ;
37105 PyObject * obj0 = 0 ;
37106 PyObject * obj1 = 0 ;
37107 PyObject * obj2 = 0 ;
37108 PyObject * obj3 = 0 ;
37109 PyObject * obj4 = 0 ;
37110 char * kwnames[] = {
37111 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37112 };
37113
37114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37116 if (!SWIG_IsOK(res1)) {
37117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37118 }
37119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37121 if (!SWIG_IsOK(res2)) {
37122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37123 }
37124 if (!argp2) {
37125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37126 }
37127 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37128 ecode3 = SWIG_AsVal_int(obj2, &val3);
37129 if (!SWIG_IsOK(ecode3)) {
37130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37131 }
37132 arg3 = static_cast< int >(val3);
37133 ecode4 = SWIG_AsVal_int(obj3, &val4);
37134 if (!SWIG_IsOK(ecode4)) {
37135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37136 }
37137 arg4 = static_cast< int >(val4);
37138 if (obj4) {
37139 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37140 if (!SWIG_IsOK(ecode5)) {
37141 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37142 }
37143 arg5 = static_cast< bool >(val5);
37144 }
37145 {
37146 PyThreadState* __tstate = wxPyBeginAllowThreads();
37147 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37148 wxPyEndAllowThreads(__tstate);
37149 if (PyErr_Occurred()) SWIG_fail;
37150 }
37151 resultobj = SWIG_Py_Void();
37152 return resultobj;
37153 fail:
37154 return NULL;
37155 }
37156
37157
37158 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37159 PyObject *resultobj = 0;
37160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37161 wxBitmap *arg2 = 0 ;
37162 wxPoint *arg3 = 0 ;
37163 bool arg4 = (bool) false ;
37164 void *argp1 = 0 ;
37165 int res1 = 0 ;
37166 void *argp2 = 0 ;
37167 int res2 = 0 ;
37168 wxPoint temp3 ;
37169 bool val4 ;
37170 int ecode4 = 0 ;
37171 PyObject * obj0 = 0 ;
37172 PyObject * obj1 = 0 ;
37173 PyObject * obj2 = 0 ;
37174 PyObject * obj3 = 0 ;
37175 char * kwnames[] = {
37176 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37177 };
37178
37179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37181 if (!SWIG_IsOK(res1)) {
37182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37183 }
37184 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37186 if (!SWIG_IsOK(res2)) {
37187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37188 }
37189 if (!argp2) {
37190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37191 }
37192 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37193 {
37194 arg3 = &temp3;
37195 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37196 }
37197 if (obj3) {
37198 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37199 if (!SWIG_IsOK(ecode4)) {
37200 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37201 }
37202 arg4 = static_cast< bool >(val4);
37203 }
37204 {
37205 PyThreadState* __tstate = wxPyBeginAllowThreads();
37206 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37207 wxPyEndAllowThreads(__tstate);
37208 if (PyErr_Occurred()) SWIG_fail;
37209 }
37210 resultobj = SWIG_Py_Void();
37211 return resultobj;
37212 fail:
37213 return NULL;
37214 }
37215
37216
37217 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37218 PyObject *resultobj = 0;
37219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37220 wxString *arg2 = 0 ;
37221 int arg3 ;
37222 int arg4 ;
37223 void *argp1 = 0 ;
37224 int res1 = 0 ;
37225 bool temp2 = false ;
37226 int val3 ;
37227 int ecode3 = 0 ;
37228 int val4 ;
37229 int ecode4 = 0 ;
37230 PyObject * obj0 = 0 ;
37231 PyObject * obj1 = 0 ;
37232 PyObject * obj2 = 0 ;
37233 PyObject * obj3 = 0 ;
37234 char * kwnames[] = {
37235 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37236 };
37237
37238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37240 if (!SWIG_IsOK(res1)) {
37241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37242 }
37243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37244 {
37245 arg2 = wxString_in_helper(obj1);
37246 if (arg2 == NULL) SWIG_fail;
37247 temp2 = true;
37248 }
37249 ecode3 = SWIG_AsVal_int(obj2, &val3);
37250 if (!SWIG_IsOK(ecode3)) {
37251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37252 }
37253 arg3 = static_cast< int >(val3);
37254 ecode4 = SWIG_AsVal_int(obj3, &val4);
37255 if (!SWIG_IsOK(ecode4)) {
37256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37257 }
37258 arg4 = static_cast< int >(val4);
37259 {
37260 PyThreadState* __tstate = wxPyBeginAllowThreads();
37261 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37262 wxPyEndAllowThreads(__tstate);
37263 if (PyErr_Occurred()) SWIG_fail;
37264 }
37265 resultobj = SWIG_Py_Void();
37266 {
37267 if (temp2)
37268 delete arg2;
37269 }
37270 return resultobj;
37271 fail:
37272 {
37273 if (temp2)
37274 delete arg2;
37275 }
37276 return NULL;
37277 }
37278
37279
37280 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37281 PyObject *resultobj = 0;
37282 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37283 wxString *arg2 = 0 ;
37284 wxPoint *arg3 = 0 ;
37285 void *argp1 = 0 ;
37286 int res1 = 0 ;
37287 bool temp2 = false ;
37288 wxPoint temp3 ;
37289 PyObject * obj0 = 0 ;
37290 PyObject * obj1 = 0 ;
37291 PyObject * obj2 = 0 ;
37292 char * kwnames[] = {
37293 (char *) "self",(char *) "text",(char *) "pt", NULL
37294 };
37295
37296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37298 if (!SWIG_IsOK(res1)) {
37299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37300 }
37301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37302 {
37303 arg2 = wxString_in_helper(obj1);
37304 if (arg2 == NULL) SWIG_fail;
37305 temp2 = true;
37306 }
37307 {
37308 arg3 = &temp3;
37309 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37310 }
37311 {
37312 PyThreadState* __tstate = wxPyBeginAllowThreads();
37313 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37314 wxPyEndAllowThreads(__tstate);
37315 if (PyErr_Occurred()) SWIG_fail;
37316 }
37317 resultobj = SWIG_Py_Void();
37318 {
37319 if (temp2)
37320 delete arg2;
37321 }
37322 return resultobj;
37323 fail:
37324 {
37325 if (temp2)
37326 delete arg2;
37327 }
37328 return NULL;
37329 }
37330
37331
37332 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37333 PyObject *resultobj = 0;
37334 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37335 wxString *arg2 = 0 ;
37336 int arg3 ;
37337 int arg4 ;
37338 double arg5 ;
37339 void *argp1 = 0 ;
37340 int res1 = 0 ;
37341 bool temp2 = false ;
37342 int val3 ;
37343 int ecode3 = 0 ;
37344 int val4 ;
37345 int ecode4 = 0 ;
37346 double val5 ;
37347 int ecode5 = 0 ;
37348 PyObject * obj0 = 0 ;
37349 PyObject * obj1 = 0 ;
37350 PyObject * obj2 = 0 ;
37351 PyObject * obj3 = 0 ;
37352 PyObject * obj4 = 0 ;
37353 char * kwnames[] = {
37354 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37355 };
37356
37357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37359 if (!SWIG_IsOK(res1)) {
37360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37361 }
37362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37363 {
37364 arg2 = wxString_in_helper(obj1);
37365 if (arg2 == NULL) SWIG_fail;
37366 temp2 = true;
37367 }
37368 ecode3 = SWIG_AsVal_int(obj2, &val3);
37369 if (!SWIG_IsOK(ecode3)) {
37370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37371 }
37372 arg3 = static_cast< int >(val3);
37373 ecode4 = SWIG_AsVal_int(obj3, &val4);
37374 if (!SWIG_IsOK(ecode4)) {
37375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37376 }
37377 arg4 = static_cast< int >(val4);
37378 ecode5 = SWIG_AsVal_double(obj4, &val5);
37379 if (!SWIG_IsOK(ecode5)) {
37380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37381 }
37382 arg5 = static_cast< double >(val5);
37383 {
37384 PyThreadState* __tstate = wxPyBeginAllowThreads();
37385 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37386 wxPyEndAllowThreads(__tstate);
37387 if (PyErr_Occurred()) SWIG_fail;
37388 }
37389 resultobj = SWIG_Py_Void();
37390 {
37391 if (temp2)
37392 delete arg2;
37393 }
37394 return resultobj;
37395 fail:
37396 {
37397 if (temp2)
37398 delete arg2;
37399 }
37400 return NULL;
37401 }
37402
37403
37404 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37405 PyObject *resultobj = 0;
37406 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37407 wxString *arg2 = 0 ;
37408 wxPoint *arg3 = 0 ;
37409 double arg4 ;
37410 void *argp1 = 0 ;
37411 int res1 = 0 ;
37412 bool temp2 = false ;
37413 wxPoint temp3 ;
37414 double val4 ;
37415 int ecode4 = 0 ;
37416 PyObject * obj0 = 0 ;
37417 PyObject * obj1 = 0 ;
37418 PyObject * obj2 = 0 ;
37419 PyObject * obj3 = 0 ;
37420 char * kwnames[] = {
37421 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37422 };
37423
37424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37426 if (!SWIG_IsOK(res1)) {
37427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37428 }
37429 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37430 {
37431 arg2 = wxString_in_helper(obj1);
37432 if (arg2 == NULL) SWIG_fail;
37433 temp2 = true;
37434 }
37435 {
37436 arg3 = &temp3;
37437 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37438 }
37439 ecode4 = SWIG_AsVal_double(obj3, &val4);
37440 if (!SWIG_IsOK(ecode4)) {
37441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37442 }
37443 arg4 = static_cast< double >(val4);
37444 {
37445 PyThreadState* __tstate = wxPyBeginAllowThreads();
37446 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37447 wxPyEndAllowThreads(__tstate);
37448 if (PyErr_Occurred()) SWIG_fail;
37449 }
37450 resultobj = SWIG_Py_Void();
37451 {
37452 if (temp2)
37453 delete arg2;
37454 }
37455 return resultobj;
37456 fail:
37457 {
37458 if (temp2)
37459 delete arg2;
37460 }
37461 return NULL;
37462 }
37463
37464
37465 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37466 PyObject *resultobj = 0;
37467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37468 int arg2 ;
37469 wxPoint *arg3 = (wxPoint *) 0 ;
37470 int arg4 = (int) 0 ;
37471 int arg5 = (int) 0 ;
37472 void *argp1 = 0 ;
37473 int res1 = 0 ;
37474 int val4 ;
37475 int ecode4 = 0 ;
37476 int val5 ;
37477 int ecode5 = 0 ;
37478 PyObject * obj0 = 0 ;
37479 PyObject * obj1 = 0 ;
37480 PyObject * obj2 = 0 ;
37481 PyObject * obj3 = 0 ;
37482 char * kwnames[] = {
37483 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37484 };
37485
37486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37488 if (!SWIG_IsOK(res1)) {
37489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37490 }
37491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37492 {
37493 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37494 if (arg3 == NULL) SWIG_fail;
37495 }
37496 if (obj2) {
37497 ecode4 = SWIG_AsVal_int(obj2, &val4);
37498 if (!SWIG_IsOK(ecode4)) {
37499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37500 }
37501 arg4 = static_cast< int >(val4);
37502 }
37503 if (obj3) {
37504 ecode5 = SWIG_AsVal_int(obj3, &val5);
37505 if (!SWIG_IsOK(ecode5)) {
37506 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37507 }
37508 arg5 = static_cast< int >(val5);
37509 }
37510 {
37511 PyThreadState* __tstate = wxPyBeginAllowThreads();
37512 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37513 wxPyEndAllowThreads(__tstate);
37514 if (PyErr_Occurred()) SWIG_fail;
37515 }
37516 resultobj = SWIG_Py_Void();
37517 {
37518 if (arg3) delete [] arg3;
37519 }
37520 return resultobj;
37521 fail:
37522 {
37523 if (arg3) delete [] arg3;
37524 }
37525 return NULL;
37526 }
37527
37528
37529 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37530 PyObject *resultobj = 0;
37531 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37532 int arg2 ;
37533 wxPoint *arg3 = (wxPoint *) 0 ;
37534 int arg4 = (int) 0 ;
37535 int arg5 = (int) 0 ;
37536 int arg6 = (int) wxODDEVEN_RULE ;
37537 void *argp1 = 0 ;
37538 int res1 = 0 ;
37539 int val4 ;
37540 int ecode4 = 0 ;
37541 int val5 ;
37542 int ecode5 = 0 ;
37543 int val6 ;
37544 int ecode6 = 0 ;
37545 PyObject * obj0 = 0 ;
37546 PyObject * obj1 = 0 ;
37547 PyObject * obj2 = 0 ;
37548 PyObject * obj3 = 0 ;
37549 PyObject * obj4 = 0 ;
37550 char * kwnames[] = {
37551 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37552 };
37553
37554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37556 if (!SWIG_IsOK(res1)) {
37557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37558 }
37559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37560 {
37561 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37562 if (arg3 == NULL) SWIG_fail;
37563 }
37564 if (obj2) {
37565 ecode4 = SWIG_AsVal_int(obj2, &val4);
37566 if (!SWIG_IsOK(ecode4)) {
37567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37568 }
37569 arg4 = static_cast< int >(val4);
37570 }
37571 if (obj3) {
37572 ecode5 = SWIG_AsVal_int(obj3, &val5);
37573 if (!SWIG_IsOK(ecode5)) {
37574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37575 }
37576 arg5 = static_cast< int >(val5);
37577 }
37578 if (obj4) {
37579 ecode6 = SWIG_AsVal_int(obj4, &val6);
37580 if (!SWIG_IsOK(ecode6)) {
37581 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37582 }
37583 arg6 = static_cast< int >(val6);
37584 }
37585 {
37586 PyThreadState* __tstate = wxPyBeginAllowThreads();
37587 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37588 wxPyEndAllowThreads(__tstate);
37589 if (PyErr_Occurred()) SWIG_fail;
37590 }
37591 resultobj = SWIG_Py_Void();
37592 {
37593 if (arg3) delete [] arg3;
37594 }
37595 return resultobj;
37596 fail:
37597 {
37598 if (arg3) delete [] arg3;
37599 }
37600 return NULL;
37601 }
37602
37603
37604 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37605 PyObject *resultobj = 0;
37606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37607 wxString *arg2 = 0 ;
37608 wxRect *arg3 = 0 ;
37609 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37610 int arg5 = (int) -1 ;
37611 void *argp1 = 0 ;
37612 int res1 = 0 ;
37613 bool temp2 = false ;
37614 wxRect temp3 ;
37615 int val4 ;
37616 int ecode4 = 0 ;
37617 int val5 ;
37618 int ecode5 = 0 ;
37619 PyObject * obj0 = 0 ;
37620 PyObject * obj1 = 0 ;
37621 PyObject * obj2 = 0 ;
37622 PyObject * obj3 = 0 ;
37623 PyObject * obj4 = 0 ;
37624 char * kwnames[] = {
37625 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37626 };
37627
37628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37630 if (!SWIG_IsOK(res1)) {
37631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37632 }
37633 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37634 {
37635 arg2 = wxString_in_helper(obj1);
37636 if (arg2 == NULL) SWIG_fail;
37637 temp2 = true;
37638 }
37639 {
37640 arg3 = &temp3;
37641 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37642 }
37643 if (obj3) {
37644 ecode4 = SWIG_AsVal_int(obj3, &val4);
37645 if (!SWIG_IsOK(ecode4)) {
37646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37647 }
37648 arg4 = static_cast< int >(val4);
37649 }
37650 if (obj4) {
37651 ecode5 = SWIG_AsVal_int(obj4, &val5);
37652 if (!SWIG_IsOK(ecode5)) {
37653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37654 }
37655 arg5 = static_cast< int >(val5);
37656 }
37657 {
37658 PyThreadState* __tstate = wxPyBeginAllowThreads();
37659 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37660 wxPyEndAllowThreads(__tstate);
37661 if (PyErr_Occurred()) SWIG_fail;
37662 }
37663 resultobj = SWIG_Py_Void();
37664 {
37665 if (temp2)
37666 delete arg2;
37667 }
37668 return resultobj;
37669 fail:
37670 {
37671 if (temp2)
37672 delete arg2;
37673 }
37674 return NULL;
37675 }
37676
37677
37678 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37679 PyObject *resultobj = 0;
37680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37681 wxString *arg2 = 0 ;
37682 wxBitmap *arg3 = 0 ;
37683 wxRect *arg4 = 0 ;
37684 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37685 int arg6 = (int) -1 ;
37686 void *argp1 = 0 ;
37687 int res1 = 0 ;
37688 bool temp2 = false ;
37689 void *argp3 = 0 ;
37690 int res3 = 0 ;
37691 wxRect temp4 ;
37692 int val5 ;
37693 int ecode5 = 0 ;
37694 int val6 ;
37695 int ecode6 = 0 ;
37696 PyObject * obj0 = 0 ;
37697 PyObject * obj1 = 0 ;
37698 PyObject * obj2 = 0 ;
37699 PyObject * obj3 = 0 ;
37700 PyObject * obj4 = 0 ;
37701 PyObject * obj5 = 0 ;
37702 char * kwnames[] = {
37703 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37704 };
37705
37706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37708 if (!SWIG_IsOK(res1)) {
37709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37710 }
37711 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37712 {
37713 arg2 = wxString_in_helper(obj1);
37714 if (arg2 == NULL) SWIG_fail;
37715 temp2 = true;
37716 }
37717 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37718 if (!SWIG_IsOK(res3)) {
37719 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37720 }
37721 if (!argp3) {
37722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37723 }
37724 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37725 {
37726 arg4 = &temp4;
37727 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37728 }
37729 if (obj4) {
37730 ecode5 = SWIG_AsVal_int(obj4, &val5);
37731 if (!SWIG_IsOK(ecode5)) {
37732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37733 }
37734 arg5 = static_cast< int >(val5);
37735 }
37736 if (obj5) {
37737 ecode6 = SWIG_AsVal_int(obj5, &val6);
37738 if (!SWIG_IsOK(ecode6)) {
37739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37740 }
37741 arg6 = static_cast< int >(val6);
37742 }
37743 {
37744 PyThreadState* __tstate = wxPyBeginAllowThreads();
37745 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37746 wxPyEndAllowThreads(__tstate);
37747 if (PyErr_Occurred()) SWIG_fail;
37748 }
37749 resultobj = SWIG_Py_Void();
37750 {
37751 if (temp2)
37752 delete arg2;
37753 }
37754 return resultobj;
37755 fail:
37756 {
37757 if (temp2)
37758 delete arg2;
37759 }
37760 return NULL;
37761 }
37762
37763
37764 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37765 PyObject *resultobj = 0;
37766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37767 int arg2 ;
37768 wxPoint *arg3 = (wxPoint *) 0 ;
37769 void *argp1 = 0 ;
37770 int res1 = 0 ;
37771 PyObject * obj0 = 0 ;
37772 PyObject * obj1 = 0 ;
37773 char * kwnames[] = {
37774 (char *) "self",(char *) "points", NULL
37775 };
37776
37777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37779 if (!SWIG_IsOK(res1)) {
37780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37781 }
37782 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37783 {
37784 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37785 if (arg3 == NULL) SWIG_fail;
37786 }
37787 {
37788 PyThreadState* __tstate = wxPyBeginAllowThreads();
37789 (arg1)->DrawSpline(arg2,arg3);
37790 wxPyEndAllowThreads(__tstate);
37791 if (PyErr_Occurred()) SWIG_fail;
37792 }
37793 resultobj = SWIG_Py_Void();
37794 {
37795 if (arg3) delete [] arg3;
37796 }
37797 return resultobj;
37798 fail:
37799 {
37800 if (arg3) delete [] arg3;
37801 }
37802 return NULL;
37803 }
37804
37805
37806 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37807 PyObject *resultobj = 0;
37808 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37809 void *argp1 = 0 ;
37810 int res1 = 0 ;
37811 PyObject *swig_obj[1] ;
37812
37813 if (!args) SWIG_fail;
37814 swig_obj[0] = args;
37815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37816 if (!SWIG_IsOK(res1)) {
37817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37818 }
37819 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37820 {
37821 PyThreadState* __tstate = wxPyBeginAllowThreads();
37822 (arg1)->Clear();
37823 wxPyEndAllowThreads(__tstate);
37824 if (PyErr_Occurred()) SWIG_fail;
37825 }
37826 resultobj = SWIG_Py_Void();
37827 return resultobj;
37828 fail:
37829 return NULL;
37830 }
37831
37832
37833 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37834 PyObject *resultobj = 0;
37835 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37836 wxFont *arg2 = 0 ;
37837 void *argp1 = 0 ;
37838 int res1 = 0 ;
37839 void *argp2 = 0 ;
37840 int res2 = 0 ;
37841 PyObject * obj0 = 0 ;
37842 PyObject * obj1 = 0 ;
37843 char * kwnames[] = {
37844 (char *) "self",(char *) "font", NULL
37845 };
37846
37847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37849 if (!SWIG_IsOK(res1)) {
37850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37851 }
37852 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37854 if (!SWIG_IsOK(res2)) {
37855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37856 }
37857 if (!argp2) {
37858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37859 }
37860 arg2 = reinterpret_cast< wxFont * >(argp2);
37861 {
37862 PyThreadState* __tstate = wxPyBeginAllowThreads();
37863 (arg1)->SetFont((wxFont const &)*arg2);
37864 wxPyEndAllowThreads(__tstate);
37865 if (PyErr_Occurred()) SWIG_fail;
37866 }
37867 resultobj = SWIG_Py_Void();
37868 return resultobj;
37869 fail:
37870 return NULL;
37871 }
37872
37873
37874 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37875 PyObject *resultobj = 0;
37876 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37877 wxPen *arg2 = 0 ;
37878 void *argp1 = 0 ;
37879 int res1 = 0 ;
37880 void *argp2 = 0 ;
37881 int res2 = 0 ;
37882 PyObject * obj0 = 0 ;
37883 PyObject * obj1 = 0 ;
37884 char * kwnames[] = {
37885 (char *) "self",(char *) "pen", NULL
37886 };
37887
37888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37890 if (!SWIG_IsOK(res1)) {
37891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37892 }
37893 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37895 if (!SWIG_IsOK(res2)) {
37896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37897 }
37898 if (!argp2) {
37899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37900 }
37901 arg2 = reinterpret_cast< wxPen * >(argp2);
37902 {
37903 PyThreadState* __tstate = wxPyBeginAllowThreads();
37904 (arg1)->SetPen((wxPen const &)*arg2);
37905 wxPyEndAllowThreads(__tstate);
37906 if (PyErr_Occurred()) SWIG_fail;
37907 }
37908 resultobj = SWIG_Py_Void();
37909 return resultobj;
37910 fail:
37911 return NULL;
37912 }
37913
37914
37915 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37916 PyObject *resultobj = 0;
37917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37918 wxBrush *arg2 = 0 ;
37919 void *argp1 = 0 ;
37920 int res1 = 0 ;
37921 void *argp2 = 0 ;
37922 int res2 = 0 ;
37923 PyObject * obj0 = 0 ;
37924 PyObject * obj1 = 0 ;
37925 char * kwnames[] = {
37926 (char *) "self",(char *) "brush", NULL
37927 };
37928
37929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37931 if (!SWIG_IsOK(res1)) {
37932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37933 }
37934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37936 if (!SWIG_IsOK(res2)) {
37937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37938 }
37939 if (!argp2) {
37940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37941 }
37942 arg2 = reinterpret_cast< wxBrush * >(argp2);
37943 {
37944 PyThreadState* __tstate = wxPyBeginAllowThreads();
37945 (arg1)->SetBrush((wxBrush const &)*arg2);
37946 wxPyEndAllowThreads(__tstate);
37947 if (PyErr_Occurred()) SWIG_fail;
37948 }
37949 resultobj = SWIG_Py_Void();
37950 return resultobj;
37951 fail:
37952 return NULL;
37953 }
37954
37955
37956 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37957 PyObject *resultobj = 0;
37958 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37959 wxBrush *arg2 = 0 ;
37960 void *argp1 = 0 ;
37961 int res1 = 0 ;
37962 void *argp2 = 0 ;
37963 int res2 = 0 ;
37964 PyObject * obj0 = 0 ;
37965 PyObject * obj1 = 0 ;
37966 char * kwnames[] = {
37967 (char *) "self",(char *) "brush", NULL
37968 };
37969
37970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37972 if (!SWIG_IsOK(res1)) {
37973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37974 }
37975 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37977 if (!SWIG_IsOK(res2)) {
37978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37979 }
37980 if (!argp2) {
37981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37982 }
37983 arg2 = reinterpret_cast< wxBrush * >(argp2);
37984 {
37985 PyThreadState* __tstate = wxPyBeginAllowThreads();
37986 (arg1)->SetBackground((wxBrush const &)*arg2);
37987 wxPyEndAllowThreads(__tstate);
37988 if (PyErr_Occurred()) SWIG_fail;
37989 }
37990 resultobj = SWIG_Py_Void();
37991 return resultobj;
37992 fail:
37993 return NULL;
37994 }
37995
37996
37997 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37998 PyObject *resultobj = 0;
37999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38000 int arg2 ;
38001 void *argp1 = 0 ;
38002 int res1 = 0 ;
38003 int val2 ;
38004 int ecode2 = 0 ;
38005 PyObject * obj0 = 0 ;
38006 PyObject * obj1 = 0 ;
38007 char * kwnames[] = {
38008 (char *) "self",(char *) "mode", NULL
38009 };
38010
38011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38013 if (!SWIG_IsOK(res1)) {
38014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38015 }
38016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38017 ecode2 = SWIG_AsVal_int(obj1, &val2);
38018 if (!SWIG_IsOK(ecode2)) {
38019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38020 }
38021 arg2 = static_cast< int >(val2);
38022 {
38023 PyThreadState* __tstate = wxPyBeginAllowThreads();
38024 (arg1)->SetBackgroundMode(arg2);
38025 wxPyEndAllowThreads(__tstate);
38026 if (PyErr_Occurred()) SWIG_fail;
38027 }
38028 resultobj = SWIG_Py_Void();
38029 return resultobj;
38030 fail:
38031 return NULL;
38032 }
38033
38034
38035 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38036 PyObject *resultobj = 0;
38037 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38038 wxPalette *arg2 = 0 ;
38039 void *argp1 = 0 ;
38040 int res1 = 0 ;
38041 void *argp2 = 0 ;
38042 int res2 = 0 ;
38043 PyObject * obj0 = 0 ;
38044 PyObject * obj1 = 0 ;
38045 char * kwnames[] = {
38046 (char *) "self",(char *) "palette", NULL
38047 };
38048
38049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38051 if (!SWIG_IsOK(res1)) {
38052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38053 }
38054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38056 if (!SWIG_IsOK(res2)) {
38057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38058 }
38059 if (!argp2) {
38060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38061 }
38062 arg2 = reinterpret_cast< wxPalette * >(argp2);
38063 {
38064 PyThreadState* __tstate = wxPyBeginAllowThreads();
38065 (arg1)->SetPalette((wxPalette const &)*arg2);
38066 wxPyEndAllowThreads(__tstate);
38067 if (PyErr_Occurred()) SWIG_fail;
38068 }
38069 resultobj = SWIG_Py_Void();
38070 return resultobj;
38071 fail:
38072 return NULL;
38073 }
38074
38075
38076 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38077 PyObject *resultobj = 0;
38078 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38079 wxColour *arg2 = 0 ;
38080 void *argp1 = 0 ;
38081 int res1 = 0 ;
38082 wxColour temp2 ;
38083 PyObject * obj0 = 0 ;
38084 PyObject * obj1 = 0 ;
38085 char * kwnames[] = {
38086 (char *) "self",(char *) "colour", NULL
38087 };
38088
38089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38091 if (!SWIG_IsOK(res1)) {
38092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38093 }
38094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38095 {
38096 arg2 = &temp2;
38097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38098 }
38099 {
38100 PyThreadState* __tstate = wxPyBeginAllowThreads();
38101 (arg1)->SetTextForeground((wxColour const &)*arg2);
38102 wxPyEndAllowThreads(__tstate);
38103 if (PyErr_Occurred()) SWIG_fail;
38104 }
38105 resultobj = SWIG_Py_Void();
38106 return resultobj;
38107 fail:
38108 return NULL;
38109 }
38110
38111
38112 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38113 PyObject *resultobj = 0;
38114 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38115 wxColour *arg2 = 0 ;
38116 void *argp1 = 0 ;
38117 int res1 = 0 ;
38118 wxColour temp2 ;
38119 PyObject * obj0 = 0 ;
38120 PyObject * obj1 = 0 ;
38121 char * kwnames[] = {
38122 (char *) "self",(char *) "colour", NULL
38123 };
38124
38125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38127 if (!SWIG_IsOK(res1)) {
38128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38129 }
38130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38131 {
38132 arg2 = &temp2;
38133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38134 }
38135 {
38136 PyThreadState* __tstate = wxPyBeginAllowThreads();
38137 (arg1)->SetTextBackground((wxColour const &)*arg2);
38138 wxPyEndAllowThreads(__tstate);
38139 if (PyErr_Occurred()) SWIG_fail;
38140 }
38141 resultobj = SWIG_Py_Void();
38142 return resultobj;
38143 fail:
38144 return NULL;
38145 }
38146
38147
38148 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38149 PyObject *resultobj = 0;
38150 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38151 int arg2 ;
38152 void *argp1 = 0 ;
38153 int res1 = 0 ;
38154 int val2 ;
38155 int ecode2 = 0 ;
38156 PyObject * obj0 = 0 ;
38157 PyObject * obj1 = 0 ;
38158 char * kwnames[] = {
38159 (char *) "self",(char *) "function", NULL
38160 };
38161
38162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38164 if (!SWIG_IsOK(res1)) {
38165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38166 }
38167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38168 ecode2 = SWIG_AsVal_int(obj1, &val2);
38169 if (!SWIG_IsOK(ecode2)) {
38170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38171 }
38172 arg2 = static_cast< int >(val2);
38173 {
38174 PyThreadState* __tstate = wxPyBeginAllowThreads();
38175 (arg1)->SetLogicalFunction(arg2);
38176 wxPyEndAllowThreads(__tstate);
38177 if (PyErr_Occurred()) SWIG_fail;
38178 }
38179 resultobj = SWIG_Py_Void();
38180 return resultobj;
38181 fail:
38182 return NULL;
38183 }
38184
38185
38186 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38187 PyObject *obj;
38188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38189 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38190 return SWIG_Py_Void();
38191 }
38192
38193 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38194 return SWIG_Python_InitShadowInstance(args);
38195 }
38196
38197 static PyMethodDef SwigMethods[] = {
38198 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38199 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38200 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38201 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38202 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38203 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38204 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38205 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38206 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38207 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38208 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38209 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38210 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38211 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38212 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38213 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38214 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38215 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38216 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38217 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38218 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38219 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38220 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38221 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38222 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38223 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38224 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38225 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38226 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38227 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38228 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38229 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38230 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38231 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38232 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38233 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38234 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38235 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38236 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38237 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38238 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38239 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38240 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38241 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38242 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38243 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38244 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38245 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38246 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38247 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38248 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38249 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38250 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38251 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38252 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38253 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38254 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38255 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38256 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38257 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38258 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38259 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38260 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38261 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38262 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38263 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38264 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38265 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38266 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38267 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38268 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38269 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38270 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38271 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38272 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38273 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38274 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38275 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38276 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38277 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38278 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38279 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38280 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38281 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38282 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38283 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38285 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38286 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38287 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38288 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38289 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38290 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38291 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38292 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38294 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38295 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38296 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38297 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38299 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38300 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38301 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38302 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38303 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38304 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38305 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38306 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38307 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38308 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38309 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38310 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38311 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38312 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38313 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38314 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38316 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38317 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38318 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38319 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38320 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38322 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38323 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38324 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38325 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38326 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38327 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38328 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38329 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38330 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38331 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38332 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38333 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38334 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38335 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38336 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38337 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38342 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38343 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38344 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38345 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38347 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38348 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38349 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38351 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38352 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38353 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38354 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38355 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38357 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38358 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38359 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38360 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38361 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38365 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38366 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38368 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38369 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38371 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38373 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38374 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38375 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38376 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38379 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38383 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38384 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38385 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38386 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38387 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38388 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38389 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38390 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38391 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38392 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38393 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38395 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38396 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38397 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38401 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38402 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38403 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38404 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38405 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38406 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38407 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38416 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38417 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38418 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38421 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38422 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38424 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38425 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38426 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38427 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38428 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38429 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38430 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38431 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38432 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38433 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38434 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38435 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38436 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38437 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38438 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38439 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38440 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38442 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38443 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38444 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38445 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38446 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38447 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38448 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38453 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38457 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38458 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38460 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38461 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38462 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38463 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38464 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38465 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38466 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38467 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38468 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38469 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38470 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38471 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38472 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38474 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38475 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38476 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38477 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38480 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38486 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38491 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38492 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38494 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38500 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38503 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38504 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38505 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38506 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38507 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38508 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38509 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38510 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38511 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38512 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38513 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38514 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38515 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38520 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38524 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38525 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38526 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38527 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38528 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38529 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38531 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38532 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38534 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38535 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38536 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38537 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38541 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38542 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38543 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38544 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38545 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38546 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38547 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38548 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38549 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38550 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38551 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38552 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38554 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38557 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38558 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38559 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38560 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38561 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38562 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38563 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38564 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38574 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38575 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38576 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38578 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38582 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38583 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38584 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38585 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38586 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38587 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38592 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38593 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38594 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38595 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38605 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38607 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38614 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38624 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38635 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38639 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38645 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38647 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38648 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38649 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38653 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38656 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38657 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38658 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38659 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38660 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38665 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38666 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38667 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38668 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38675 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38677 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38678 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38679 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38680 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38681 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38682 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38683 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38684 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38685 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38686 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38687 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38688 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38691 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38693 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38695 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38697 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38698 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38701 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38702 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38706 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38708 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38711 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38712 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38713 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38714 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38715 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38716 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38717 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38725 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38727 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38728 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38729 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38731 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38732 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38733 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38735 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38736 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38737 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38738 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38739 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38740 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
38741 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38742 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38745 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38746 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
38747 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38749 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
38750 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38752 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38753 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38755 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
38756 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38760 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38761 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
38762 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38763 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38764 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38765 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
38767 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38768 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38769 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38771 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38772 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38774 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
38775 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38778 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38779 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38781 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38784 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38785 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38786 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38788 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38789 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38791 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38792 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38794 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
38795 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38797 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38798 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38799 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38800 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38801 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38802 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38803 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38804 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38805 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38806 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38807 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38808 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38809 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38810 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38811 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38812 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
38813 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
38814 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38815 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38818 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38820 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38826 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
38827 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38828 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
38829 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
38830 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38831 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38832 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38833 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38835 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
38836 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
38837 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38844 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38847 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
38848 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
38849 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
38850 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
38851 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38852 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
38853 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
38856 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38863 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
38864 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38867 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
38868 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
38874 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38875 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38876 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
38877 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
38895 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
38896 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38897 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38898 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38899 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
38900 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38903 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
38910 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
38912 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38913 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38915 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
38916 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38917 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38918 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38919 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38920 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38921 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38922 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38923 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38924 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38925 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
38926 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38928 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38936 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38938 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38940 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
38941 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38942 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38943 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38944 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38945 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38951 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38952 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38953 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38954 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38955 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
38956 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
38960 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
38964 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
38968 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38969 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38970 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38975 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
38976 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38977 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38978 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38979 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
38980 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38981 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38982 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38983 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38984 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38985 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38986 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38995 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38996 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38998 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38999 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39000 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39001 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39002 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39003 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39004 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39005 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39006 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39007 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39008 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39009 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39010 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39011 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39012 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39013 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39014 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39015 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39016 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39017 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39018 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39019 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39020 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39021 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39023 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39025 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39026 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39027 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39028 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39041 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39042 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39043 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39045 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39046 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39047 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39048 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39049 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39050 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39051 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39052 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39105 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39115 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39116 { NULL, NULL, 0, NULL }
39117 };
39118
39119
39120 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39121
39122 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39123 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39124 }
39125 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39126 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39127 }
39128 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39129 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39130 }
39131 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39132 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39133 }
39134 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39135 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39136 }
39137 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39138 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39139 }
39140 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39141 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39142 }
39143 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39144 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39145 }
39146 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39147 return (void *)((wxLocale *) ((wxPyLocale *) x));
39148 }
39149 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39150 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39151 }
39152 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39153 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39154 }
39155 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39156 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39157 }
39158 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39159 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39160 }
39161 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39162 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39163 }
39164 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39165 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39166 }
39167 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39168 return (void *)((wxGDIObject *) ((wxIcon *) x));
39169 }
39170 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39171 return (void *)((wxGDIObject *) ((wxPalette *) x));
39172 }
39173 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39174 return (void *)((wxGDIObject *) ((wxPen *) x));
39175 }
39176 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39177 return (void *)((wxGDIObject *) ((wxFont *) x));
39178 }
39179 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39180 return (void *)((wxGDIObject *) ((wxCursor *) x));
39181 }
39182 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39183 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39184 }
39185 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39186 return (void *)((wxGDIObject *) ((wxRegion *) x));
39187 }
39188 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39189 return (void *)((wxGDIObject *) ((wxBrush *) x));
39190 }
39191 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39192 return (void *)((wxDC *) ((wxGCDC *) x));
39193 }
39194 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39195 return (void *)((wxDC *) ((wxScreenDC *) x));
39196 }
39197 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39198 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39199 }
39200 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39201 return (void *)((wxDC *) ((wxMirrorDC *) x));
39202 }
39203 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39204 return (void *)((wxDC *) ((wxWindowDC *) x));
39205 }
39206 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39207 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39208 }
39209 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39210 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39211 }
39212 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39213 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39214 }
39215 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39216 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39217 }
39218 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39219 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39220 }
39221 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39222 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39223 }
39224 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39225 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39226 }
39227 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39228 return (void *)((wxDC *) ((wxPrinterDC *) x));
39229 }
39230 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39231 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39232 }
39233 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39234 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39235 }
39236 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39237 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39238 }
39239 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39240 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39241 }
39242 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39243 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39244 }
39245 static void *_p_wxPenTo_p_wxObject(void *x) {
39246 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39247 }
39248 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39249 return (void *)((wxObject *) ((wxRegionIterator *) x));
39250 }
39251 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39252 return (void *)((wxObject *) ((wxSizerItem *) x));
39253 }
39254 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39255 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39256 }
39257 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39258 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39259 }
39260 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39261 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39262 }
39263 static void *_p_wxIconTo_p_wxObject(void *x) {
39264 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39265 }
39266 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39267 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39268 }
39269 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39270 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39271 }
39272 static void *_p_wxSizerTo_p_wxObject(void *x) {
39273 return (void *)((wxObject *) ((wxSizer *) x));
39274 }
39275 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39276 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39277 }
39278 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39279 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39280 }
39281 static void *_p_wxEventTo_p_wxObject(void *x) {
39282 return (void *)((wxObject *) ((wxEvent *) x));
39283 }
39284 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39285 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39286 }
39287 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39288 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39289 }
39290 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39291 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39292 }
39293 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39294 return (void *)((wxObject *) ((wxPseudoDC *) x));
39295 }
39296 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39297 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39298 }
39299 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39300 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39301 }
39302 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39303 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39304 }
39305 static void *_p_wxDCTo_p_wxObject(void *x) {
39306 return (void *)((wxObject *) ((wxDC *) x));
39307 }
39308 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39309 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39310 }
39311 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39312 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39313 }
39314 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39315 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39316 }
39317 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39318 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39319 }
39320 static void *_p_wxControlTo_p_wxObject(void *x) {
39321 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39322 }
39323 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39324 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39325 }
39326 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39327 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39328 }
39329 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39330 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39331 }
39332 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39333 return (void *)((wxObject *) ((wxFSFile *) x));
39334 }
39335 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39336 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39337 }
39338 static void *_p_wxRegionTo_p_wxObject(void *x) {
39339 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39340 }
39341 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39342 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39343 }
39344 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39345 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39346 }
39347 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39348 return (void *)((wxObject *) ((wxGDIObject *) x));
39349 }
39350 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39351 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39352 }
39353 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39354 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39355 }
39356 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39357 return (void *)((wxObject *) ((wxEffects *) x));
39358 }
39359 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39360 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39361 }
39362 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39364 }
39365 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39366 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39367 }
39368 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39369 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39370 }
39371 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39372 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39373 }
39374 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39375 return (void *)((wxObject *) ((wxMenuItem *) x));
39376 }
39377 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39378 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39379 }
39380 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39381 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39382 }
39383 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39384 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39385 }
39386 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39387 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39388 }
39389 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39390 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39391 }
39392 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39393 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39394 }
39395 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39396 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39397 }
39398 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39399 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39400 }
39401 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39402 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39403 }
39404 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39405 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39406 }
39407 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39408 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39409 }
39410 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39411 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39412 }
39413 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39414 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39415 }
39416 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39417 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39418 }
39419 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39420 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39421 }
39422 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39423 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39424 }
39425 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39426 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39427 }
39428 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39429 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39430 }
39431 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39432 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39433 }
39434 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39435 return (void *)((wxObject *) ((wxImageHandler *) x));
39436 }
39437 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39438 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39439 }
39440 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39441 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39442 }
39443 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39444 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39445 }
39446 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39447 return (void *)((wxObject *) ((wxEvtHandler *) x));
39448 }
39449 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39450 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39451 }
39452 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39453 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39454 }
39455 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39456 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39457 }
39458 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39459 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39460 }
39461 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39462 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39463 }
39464 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39465 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39466 }
39467 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39468 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39469 }
39470 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39471 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39472 }
39473 static void *_p_wxImageTo_p_wxObject(void *x) {
39474 return (void *)((wxObject *) ((wxImage *) x));
39475 }
39476 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39477 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39478 }
39479 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39480 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39481 }
39482 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39483 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39484 }
39485 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39486 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39487 }
39488 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39489 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39490 }
39491 static void *_p_wxImageListTo_p_wxObject(void *x) {
39492 return (void *)((wxObject *) ((wxImageList *) x));
39493 }
39494 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39495 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39496 }
39497 static void *_p_wxCursorTo_p_wxObject(void *x) {
39498 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39499 }
39500 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39501 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39502 }
39503 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39504 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39505 }
39506 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39507 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39508 }
39509 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39510 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39511 }
39512 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39513 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39514 }
39515 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39516 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39517 }
39518 static void *_p_wxWindowTo_p_wxObject(void *x) {
39519 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39520 }
39521 static void *_p_wxMenuTo_p_wxObject(void *x) {
39522 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39523 }
39524 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39525 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39526 }
39527 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39528 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39529 }
39530 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39531 return (void *)((wxObject *) ((wxFileSystem *) x));
39532 }
39533 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39534 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39535 }
39536 static void *_p_wxMaskTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) ((wxMask *) x));
39538 }
39539 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39541 }
39542 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39544 }
39545 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39546 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39547 }
39548 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39550 }
39551 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39553 }
39554 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39556 }
39557 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39559 }
39560 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39562 }
39563 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39564 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39565 }
39566 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39567 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39568 }
39569 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39570 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39571 }
39572 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39574 }
39575 static void *_p_wxFontTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39577 }
39578 static void *_p_wxBrushTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39580 }
39581 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) ((wxMetaFile *) x));
39583 }
39584 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39586 }
39587 static void *_p_wxColourTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) ((wxColour *) x));
39589 }
39590 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39592 }
39593 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39595 }
39596 static void *_p_wxControlTo_p_wxWindow(void *x) {
39597 return (void *)((wxWindow *) ((wxControl *) x));
39598 }
39599 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39600 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39601 }
39602 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39603 return (void *)((wxWindow *) ((wxMenuBar *) x));
39604 }
39605 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39606 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39607 }
39608 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39609 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39610 }
39611 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39612 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39613 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39614 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};
39615 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39616 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39617 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39618 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39619 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39620 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39621 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39622 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39623 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39624 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39625 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39626 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39627 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39628 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39629 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39630 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39631 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39632 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39633 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39634 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39635 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39636 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39637 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39638 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39639 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39640 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39641 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39642 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39643 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39644 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39645 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39646 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39647 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39648 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39649 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39650 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39651 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39652 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39653 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39654 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39655 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39656 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39657 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39658 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39659 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39660 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39661 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39662 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39663 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39664 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39665 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39666 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39667 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39668 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39669 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39670 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39671 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39672 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39673 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39674 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39675 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39676 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39677 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39678 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39679 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39680 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39681 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39682 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39683 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39684 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39685 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39686 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39687 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39688 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39689 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39690 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39691 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39692 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39693 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39694 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39695 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39696 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39697 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39698 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39699 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39700 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39701 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39702 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39703 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39704 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39705 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39706 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39707 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39708 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39709 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39710 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39711 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39712 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39713 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39714 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39715 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39716 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
39717 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39718 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39719 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39720 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39721 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39722 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39723 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39724 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39725 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39726 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
39727 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39728 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39729 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
39730 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
39731 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39732 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39733 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39734 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39735 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39736 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39737 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39738 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39739 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39740 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39741 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39742 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39743 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39744 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39745 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39746 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39747 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39748 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39749 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39750 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39751 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39752 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
39753 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
39754 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39755 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39756 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39757 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39758 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
39759 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
39760 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
39761 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
39762 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
39763 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39764 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39765 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
39766 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
39767 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
39768 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
39769 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
39770 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
39771 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39772 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39773 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39774 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39775 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39776 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39777 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
39778 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
39779 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39780 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39781 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39782
39783 static swig_type_info *swig_type_initial[] = {
39784 &_swigt__p_buffer,
39785 &_swigt__p_char,
39786 &_swigt__p_double,
39787 &_swigt__p_form_ops_t,
39788 &_swigt__p_int,
39789 &_swigt__p_unsigned_char,
39790 &_swigt__p_unsigned_int,
39791 &_swigt__p_unsigned_long,
39792 &_swigt__p_void,
39793 &_swigt__p_wxANIHandler,
39794 &_swigt__p_wxAcceleratorTable,
39795 &_swigt__p_wxActivateEvent,
39796 &_swigt__p_wxAlphaPixelData,
39797 &_swigt__p_wxAlphaPixelData_Accessor,
39798 &_swigt__p_wxAutoBufferedPaintDC,
39799 &_swigt__p_wxBMPHandler,
39800 &_swigt__p_wxBitmap,
39801 &_swigt__p_wxBoxSizer,
39802 &_swigt__p_wxBrush,
39803 &_swigt__p_wxBrushList,
39804 &_swigt__p_wxBufferedDC,
39805 &_swigt__p_wxBufferedPaintDC,
39806 &_swigt__p_wxCURHandler,
39807 &_swigt__p_wxChar,
39808 &_swigt__p_wxChildFocusEvent,
39809 &_swigt__p_wxClientDC,
39810 &_swigt__p_wxClipboardTextEvent,
39811 &_swigt__p_wxCloseEvent,
39812 &_swigt__p_wxColor,
39813 &_swigt__p_wxColour,
39814 &_swigt__p_wxColourDatabase,
39815 &_swigt__p_wxCommandEvent,
39816 &_swigt__p_wxContextMenuEvent,
39817 &_swigt__p_wxControl,
39818 &_swigt__p_wxControlWithItems,
39819 &_swigt__p_wxCursor,
39820 &_swigt__p_wxDC,
39821 &_swigt__p_wxDCBrushChanger,
39822 &_swigt__p_wxDCClipper,
39823 &_swigt__p_wxDCOverlay,
39824 &_swigt__p_wxDCPenChanger,
39825 &_swigt__p_wxDCTextColourChanger,
39826 &_swigt__p_wxDash,
39827 &_swigt__p_wxDateEvent,
39828 &_swigt__p_wxDisplayChangedEvent,
39829 &_swigt__p_wxDropFilesEvent,
39830 &_swigt__p_wxDuplexMode,
39831 &_swigt__p_wxEffects,
39832 &_swigt__p_wxEncodingConverter,
39833 &_swigt__p_wxEraseEvent,
39834 &_swigt__p_wxEvent,
39835 &_swigt__p_wxEvtHandler,
39836 &_swigt__p_wxFSFile,
39837 &_swigt__p_wxFileSystem,
39838 &_swigt__p_wxFlexGridSizer,
39839 &_swigt__p_wxFocusEvent,
39840 &_swigt__p_wxFont,
39841 &_swigt__p_wxFontList,
39842 &_swigt__p_wxFontMapper,
39843 &_swigt__p_wxGBSizerItem,
39844 &_swigt__p_wxGCDC,
39845 &_swigt__p_wxGDIObjListBase,
39846 &_swigt__p_wxGDIObject,
39847 &_swigt__p_wxGIFHandler,
39848 &_swigt__p_wxGraphicsBrush,
39849 &_swigt__p_wxGraphicsContext,
39850 &_swigt__p_wxGraphicsFont,
39851 &_swigt__p_wxGraphicsMatrix,
39852 &_swigt__p_wxGraphicsObject,
39853 &_swigt__p_wxGraphicsPath,
39854 &_swigt__p_wxGraphicsPen,
39855 &_swigt__p_wxGraphicsRenderer,
39856 &_swigt__p_wxGridBagSizer,
39857 &_swigt__p_wxGridSizer,
39858 &_swigt__p_wxHeaderButtonParams,
39859 &_swigt__p_wxICOHandler,
39860 &_swigt__p_wxIcon,
39861 &_swigt__p_wxIconBundle,
39862 &_swigt__p_wxIconLocation,
39863 &_swigt__p_wxIconizeEvent,
39864 &_swigt__p_wxIdleEvent,
39865 &_swigt__p_wxImage,
39866 &_swigt__p_wxImageHandler,
39867 &_swigt__p_wxImageList,
39868 &_swigt__p_wxIndividualLayoutConstraint,
39869 &_swigt__p_wxInitDialogEvent,
39870 &_swigt__p_wxJPEGHandler,
39871 &_swigt__p_wxKeyEvent,
39872 &_swigt__p_wxLanguageInfo,
39873 &_swigt__p_wxLayoutConstraints,
39874 &_swigt__p_wxLocale,
39875 &_swigt__p_wxMask,
39876 &_swigt__p_wxMaximizeEvent,
39877 &_swigt__p_wxMemoryDC,
39878 &_swigt__p_wxMenu,
39879 &_swigt__p_wxMenuBar,
39880 &_swigt__p_wxMenuEvent,
39881 &_swigt__p_wxMenuItem,
39882 &_swigt__p_wxMetaFile,
39883 &_swigt__p_wxMetaFileDC,
39884 &_swigt__p_wxMirrorDC,
39885 &_swigt__p_wxMouseCaptureChangedEvent,
39886 &_swigt__p_wxMouseCaptureLostEvent,
39887 &_swigt__p_wxMouseEvent,
39888 &_swigt__p_wxMoveEvent,
39889 &_swigt__p_wxNativeEncodingInfo,
39890 &_swigt__p_wxNativeFontInfo,
39891 &_swigt__p_wxNativePixelData,
39892 &_swigt__p_wxNativePixelData_Accessor,
39893 &_swigt__p_wxNavigationKeyEvent,
39894 &_swigt__p_wxNcPaintEvent,
39895 &_swigt__p_wxNotifyEvent,
39896 &_swigt__p_wxObject,
39897 &_swigt__p_wxOverlay,
39898 &_swigt__p_wxPCXHandler,
39899 &_swigt__p_wxPNGHandler,
39900 &_swigt__p_wxPNMHandler,
39901 &_swigt__p_wxPaintDC,
39902 &_swigt__p_wxPaintEvent,
39903 &_swigt__p_wxPalette,
39904 &_swigt__p_wxPaletteChangedEvent,
39905 &_swigt__p_wxPaperSize,
39906 &_swigt__p_wxPen,
39907 &_swigt__p_wxPenList,
39908 &_swigt__p_wxPixelDataBase,
39909 &_swigt__p_wxPoint,
39910 &_swigt__p_wxPoint2D,
39911 &_swigt__p_wxPoint2DDouble,
39912 &_swigt__p_wxPostScriptDC,
39913 &_swigt__p_wxPrintData,
39914 &_swigt__p_wxPrinterDC,
39915 &_swigt__p_wxPseudoDC,
39916 &_swigt__p_wxPyApp,
39917 &_swigt__p_wxPyCommandEvent,
39918 &_swigt__p_wxPyEvent,
39919 &_swigt__p_wxPyFontEnumerator,
39920 &_swigt__p_wxPyImageHandler,
39921 &_swigt__p_wxPyLocale,
39922 &_swigt__p_wxPySizer,
39923 &_swigt__p_wxPyValidator,
39924 &_swigt__p_wxQueryNewPaletteEvent,
39925 &_swigt__p_wxRect,
39926 &_swigt__p_wxRect2DDouble,
39927 &_swigt__p_wxRegion,
39928 &_swigt__p_wxRegionIterator,
39929 &_swigt__p_wxRendererNative,
39930 &_swigt__p_wxRendererVersion,
39931 &_swigt__p_wxScreenDC,
39932 &_swigt__p_wxScrollEvent,
39933 &_swigt__p_wxScrollWinEvent,
39934 &_swigt__p_wxSetCursorEvent,
39935 &_swigt__p_wxShowEvent,
39936 &_swigt__p_wxSize,
39937 &_swigt__p_wxSizeEvent,
39938 &_swigt__p_wxSizer,
39939 &_swigt__p_wxSizerItem,
39940 &_swigt__p_wxSplitterRenderParams,
39941 &_swigt__p_wxStaticBoxSizer,
39942 &_swigt__p_wxStdDialogButtonSizer,
39943 &_swigt__p_wxStockGDI,
39944 &_swigt__p_wxString,
39945 &_swigt__p_wxSysColourChangedEvent,
39946 &_swigt__p_wxTGAHandler,
39947 &_swigt__p_wxTIFFHandler,
39948 &_swigt__p_wxUpdateUIEvent,
39949 &_swigt__p_wxValidator,
39950 &_swigt__p_wxWindow,
39951 &_swigt__p_wxWindowCreateEvent,
39952 &_swigt__p_wxWindowDC,
39953 &_swigt__p_wxWindowDestroyEvent,
39954 &_swigt__p_wxXPMHandler,
39955 };
39956
39957 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
39958 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39959 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39960 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39961 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39962 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39963 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39964 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
39965 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
39966 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39967 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
39968 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39969 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39970 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39971 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39972 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}};
39973 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39974 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
39975 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}};
39976 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
39977 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39978 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39979 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
39980 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
39981 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39982 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
39983 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
39984 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39985 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
39986 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39987 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39988 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39989 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39990 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39991 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39992 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
39993 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
39994 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}};
39995 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}};
39996 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
39997 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
39998 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39999 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40000 static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
40001 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40002 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40003 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40004 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40005 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40006 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40007 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40008 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40009 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40010 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40011 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}};
40012 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40013 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}};
40014 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40015 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40016 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40017 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40018 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40019 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40020 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40021 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40022 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40023 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40024 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40025 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40026 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40027 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40028 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40029 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40030 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40031 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40032 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40033 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40034 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40035 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40036 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40037 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40038 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40039 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40040 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40041 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40042 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40043 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40044 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40045 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40046 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40047 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40048 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40049 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40050 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40051 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40052 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40053 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40054 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40055 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40056 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40057 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40058 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40059 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40060 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40061 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40062 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40063 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40064 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40065 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40066 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40067 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40068 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40069 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40070 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40071 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40072 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40073 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40074 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40075 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40076 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40077 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40078 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40079 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40080 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40081 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40082 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40083 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40084 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40085 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40086 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40087 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40088 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40089 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40090 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40091 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40092 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40093 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40094 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40095 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40096 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40097 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40098 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_wxGraphicsPen, _p_wxGraphicsPenTo_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_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_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_wxGraphicsContext, _p_wxGraphicsContextTo_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_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_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_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 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_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_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}};
40099 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40100 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40101 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40102 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40103 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40104 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40105 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}};
40106 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40107 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40108 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40109 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40110 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40111 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40112 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40113 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40114 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40115 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40116 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40117 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40118 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40119 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40120 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40121 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40122 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40123 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40124 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40125 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40126 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}};
40127 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
40128
40129 static swig_cast_info *swig_cast_initial[] = {
40130 _swigc__p_buffer,
40131 _swigc__p_char,
40132 _swigc__p_double,
40133 _swigc__p_form_ops_t,
40134 _swigc__p_int,
40135 _swigc__p_unsigned_char,
40136 _swigc__p_unsigned_int,
40137 _swigc__p_unsigned_long,
40138 _swigc__p_void,
40139 _swigc__p_wxANIHandler,
40140 _swigc__p_wxAcceleratorTable,
40141 _swigc__p_wxActivateEvent,
40142 _swigc__p_wxAlphaPixelData,
40143 _swigc__p_wxAlphaPixelData_Accessor,
40144 _swigc__p_wxAutoBufferedPaintDC,
40145 _swigc__p_wxBMPHandler,
40146 _swigc__p_wxBitmap,
40147 _swigc__p_wxBoxSizer,
40148 _swigc__p_wxBrush,
40149 _swigc__p_wxBrushList,
40150 _swigc__p_wxBufferedDC,
40151 _swigc__p_wxBufferedPaintDC,
40152 _swigc__p_wxCURHandler,
40153 _swigc__p_wxChar,
40154 _swigc__p_wxChildFocusEvent,
40155 _swigc__p_wxClientDC,
40156 _swigc__p_wxClipboardTextEvent,
40157 _swigc__p_wxCloseEvent,
40158 _swigc__p_wxColor,
40159 _swigc__p_wxColour,
40160 _swigc__p_wxColourDatabase,
40161 _swigc__p_wxCommandEvent,
40162 _swigc__p_wxContextMenuEvent,
40163 _swigc__p_wxControl,
40164 _swigc__p_wxControlWithItems,
40165 _swigc__p_wxCursor,
40166 _swigc__p_wxDC,
40167 _swigc__p_wxDCBrushChanger,
40168 _swigc__p_wxDCClipper,
40169 _swigc__p_wxDCOverlay,
40170 _swigc__p_wxDCPenChanger,
40171 _swigc__p_wxDCTextColourChanger,
40172 _swigc__p_wxDash,
40173 _swigc__p_wxDateEvent,
40174 _swigc__p_wxDisplayChangedEvent,
40175 _swigc__p_wxDropFilesEvent,
40176 _swigc__p_wxDuplexMode,
40177 _swigc__p_wxEffects,
40178 _swigc__p_wxEncodingConverter,
40179 _swigc__p_wxEraseEvent,
40180 _swigc__p_wxEvent,
40181 _swigc__p_wxEvtHandler,
40182 _swigc__p_wxFSFile,
40183 _swigc__p_wxFileSystem,
40184 _swigc__p_wxFlexGridSizer,
40185 _swigc__p_wxFocusEvent,
40186 _swigc__p_wxFont,
40187 _swigc__p_wxFontList,
40188 _swigc__p_wxFontMapper,
40189 _swigc__p_wxGBSizerItem,
40190 _swigc__p_wxGCDC,
40191 _swigc__p_wxGDIObjListBase,
40192 _swigc__p_wxGDIObject,
40193 _swigc__p_wxGIFHandler,
40194 _swigc__p_wxGraphicsBrush,
40195 _swigc__p_wxGraphicsContext,
40196 _swigc__p_wxGraphicsFont,
40197 _swigc__p_wxGraphicsMatrix,
40198 _swigc__p_wxGraphicsObject,
40199 _swigc__p_wxGraphicsPath,
40200 _swigc__p_wxGraphicsPen,
40201 _swigc__p_wxGraphicsRenderer,
40202 _swigc__p_wxGridBagSizer,
40203 _swigc__p_wxGridSizer,
40204 _swigc__p_wxHeaderButtonParams,
40205 _swigc__p_wxICOHandler,
40206 _swigc__p_wxIcon,
40207 _swigc__p_wxIconBundle,
40208 _swigc__p_wxIconLocation,
40209 _swigc__p_wxIconizeEvent,
40210 _swigc__p_wxIdleEvent,
40211 _swigc__p_wxImage,
40212 _swigc__p_wxImageHandler,
40213 _swigc__p_wxImageList,
40214 _swigc__p_wxIndividualLayoutConstraint,
40215 _swigc__p_wxInitDialogEvent,
40216 _swigc__p_wxJPEGHandler,
40217 _swigc__p_wxKeyEvent,
40218 _swigc__p_wxLanguageInfo,
40219 _swigc__p_wxLayoutConstraints,
40220 _swigc__p_wxLocale,
40221 _swigc__p_wxMask,
40222 _swigc__p_wxMaximizeEvent,
40223 _swigc__p_wxMemoryDC,
40224 _swigc__p_wxMenu,
40225 _swigc__p_wxMenuBar,
40226 _swigc__p_wxMenuEvent,
40227 _swigc__p_wxMenuItem,
40228 _swigc__p_wxMetaFile,
40229 _swigc__p_wxMetaFileDC,
40230 _swigc__p_wxMirrorDC,
40231 _swigc__p_wxMouseCaptureChangedEvent,
40232 _swigc__p_wxMouseCaptureLostEvent,
40233 _swigc__p_wxMouseEvent,
40234 _swigc__p_wxMoveEvent,
40235 _swigc__p_wxNativeEncodingInfo,
40236 _swigc__p_wxNativeFontInfo,
40237 _swigc__p_wxNativePixelData,
40238 _swigc__p_wxNativePixelData_Accessor,
40239 _swigc__p_wxNavigationKeyEvent,
40240 _swigc__p_wxNcPaintEvent,
40241 _swigc__p_wxNotifyEvent,
40242 _swigc__p_wxObject,
40243 _swigc__p_wxOverlay,
40244 _swigc__p_wxPCXHandler,
40245 _swigc__p_wxPNGHandler,
40246 _swigc__p_wxPNMHandler,
40247 _swigc__p_wxPaintDC,
40248 _swigc__p_wxPaintEvent,
40249 _swigc__p_wxPalette,
40250 _swigc__p_wxPaletteChangedEvent,
40251 _swigc__p_wxPaperSize,
40252 _swigc__p_wxPen,
40253 _swigc__p_wxPenList,
40254 _swigc__p_wxPixelDataBase,
40255 _swigc__p_wxPoint,
40256 _swigc__p_wxPoint2D,
40257 _swigc__p_wxPoint2DDouble,
40258 _swigc__p_wxPostScriptDC,
40259 _swigc__p_wxPrintData,
40260 _swigc__p_wxPrinterDC,
40261 _swigc__p_wxPseudoDC,
40262 _swigc__p_wxPyApp,
40263 _swigc__p_wxPyCommandEvent,
40264 _swigc__p_wxPyEvent,
40265 _swigc__p_wxPyFontEnumerator,
40266 _swigc__p_wxPyImageHandler,
40267 _swigc__p_wxPyLocale,
40268 _swigc__p_wxPySizer,
40269 _swigc__p_wxPyValidator,
40270 _swigc__p_wxQueryNewPaletteEvent,
40271 _swigc__p_wxRect,
40272 _swigc__p_wxRect2DDouble,
40273 _swigc__p_wxRegion,
40274 _swigc__p_wxRegionIterator,
40275 _swigc__p_wxRendererNative,
40276 _swigc__p_wxRendererVersion,
40277 _swigc__p_wxScreenDC,
40278 _swigc__p_wxScrollEvent,
40279 _swigc__p_wxScrollWinEvent,
40280 _swigc__p_wxSetCursorEvent,
40281 _swigc__p_wxShowEvent,
40282 _swigc__p_wxSize,
40283 _swigc__p_wxSizeEvent,
40284 _swigc__p_wxSizer,
40285 _swigc__p_wxSizerItem,
40286 _swigc__p_wxSplitterRenderParams,
40287 _swigc__p_wxStaticBoxSizer,
40288 _swigc__p_wxStdDialogButtonSizer,
40289 _swigc__p_wxStockGDI,
40290 _swigc__p_wxString,
40291 _swigc__p_wxSysColourChangedEvent,
40292 _swigc__p_wxTGAHandler,
40293 _swigc__p_wxTIFFHandler,
40294 _swigc__p_wxUpdateUIEvent,
40295 _swigc__p_wxValidator,
40296 _swigc__p_wxWindow,
40297 _swigc__p_wxWindowCreateEvent,
40298 _swigc__p_wxWindowDC,
40299 _swigc__p_wxWindowDestroyEvent,
40300 _swigc__p_wxXPMHandler,
40301 };
40302
40303
40304 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40305
40306 static swig_const_info swig_const_table[] = {
40307 {0, 0, 0, 0.0, 0, 0}};
40308
40309 #ifdef __cplusplus
40310 }
40311 #endif
40312 /* -----------------------------------------------------------------------------
40313 * Type initialization:
40314 * This problem is tough by the requirement that no dynamic
40315 * memory is used. Also, since swig_type_info structures store pointers to
40316 * swig_cast_info structures and swig_cast_info structures store pointers back
40317 * to swig_type_info structures, we need some lookup code at initialization.
40318 * The idea is that swig generates all the structures that are needed.
40319 * The runtime then collects these partially filled structures.
40320 * The SWIG_InitializeModule function takes these initial arrays out of
40321 * swig_module, and does all the lookup, filling in the swig_module.types
40322 * array with the correct data and linking the correct swig_cast_info
40323 * structures together.
40324 *
40325 * The generated swig_type_info structures are assigned staticly to an initial
40326 * array. We just loop though that array, and handle each type individually.
40327 * First we lookup if this type has been already loaded, and if so, use the
40328 * loaded structure instead of the generated one. Then we have to fill in the
40329 * cast linked list. The cast data is initially stored in something like a
40330 * two-dimensional array. Each row corresponds to a type (there are the same
40331 * number of rows as there are in the swig_type_initial array). Each entry in
40332 * a column is one of the swig_cast_info structures for that type.
40333 * The cast_initial array is actually an array of arrays, because each row has
40334 * a variable number of columns. So to actually build the cast linked list,
40335 * we find the array of casts associated with the type, and loop through it
40336 * adding the casts to the list. The one last trick we need to do is making
40337 * sure the type pointer in the swig_cast_info struct is correct.
40338 *
40339 * First off, we lookup the cast->type name to see if it is already loaded.
40340 * There are three cases to handle:
40341 * 1) If the cast->type has already been loaded AND the type we are adding
40342 * casting info to has not been loaded (it is in this module), THEN we
40343 * replace the cast->type pointer with the type pointer that has already
40344 * been loaded.
40345 * 2) If BOTH types (the one we are adding casting info to, and the
40346 * cast->type) are loaded, THEN the cast info has already been loaded by
40347 * the previous module so we just ignore it.
40348 * 3) Finally, if cast->type has not already been loaded, then we add that
40349 * swig_cast_info to the linked list (because the cast->type) pointer will
40350 * be correct.
40351 * ----------------------------------------------------------------------------- */
40352
40353 #ifdef __cplusplus
40354 extern "C" {
40355 #if 0
40356 } /* c-mode */
40357 #endif
40358 #endif
40359
40360 #if 0
40361 #define SWIGRUNTIME_DEBUG
40362 #endif
40363
40364 SWIGRUNTIME void
40365 SWIG_InitializeModule(void *clientdata) {
40366 size_t i;
40367 swig_module_info *module_head;
40368 static int init_run = 0;
40369
40370 clientdata = clientdata;
40371
40372 if (init_run) return;
40373 init_run = 1;
40374
40375 /* Initialize the swig_module */
40376 swig_module.type_initial = swig_type_initial;
40377 swig_module.cast_initial = swig_cast_initial;
40378
40379 /* Try and load any already created modules */
40380 module_head = SWIG_GetModule(clientdata);
40381 if (module_head) {
40382 swig_module.next = module_head->next;
40383 module_head->next = &swig_module;
40384 } else {
40385 /* This is the first module loaded */
40386 swig_module.next = &swig_module;
40387 SWIG_SetModule(clientdata, &swig_module);
40388 }
40389
40390 /* Now work on filling in swig_module.types */
40391 #ifdef SWIGRUNTIME_DEBUG
40392 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40393 #endif
40394 for (i = 0; i < swig_module.size; ++i) {
40395 swig_type_info *type = 0;
40396 swig_type_info *ret;
40397 swig_cast_info *cast;
40398
40399 #ifdef SWIGRUNTIME_DEBUG
40400 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40401 #endif
40402
40403 /* if there is another module already loaded */
40404 if (swig_module.next != &swig_module) {
40405 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40406 }
40407 if (type) {
40408 /* Overwrite clientdata field */
40409 #ifdef SWIGRUNTIME_DEBUG
40410 printf("SWIG_InitializeModule: found type %s\n", type->name);
40411 #endif
40412 if (swig_module.type_initial[i]->clientdata) {
40413 type->clientdata = swig_module.type_initial[i]->clientdata;
40414 #ifdef SWIGRUNTIME_DEBUG
40415 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40416 #endif
40417 }
40418 } else {
40419 type = swig_module.type_initial[i];
40420 }
40421
40422 /* Insert casting types */
40423 cast = swig_module.cast_initial[i];
40424 while (cast->type) {
40425 /* Don't need to add information already in the list */
40426 ret = 0;
40427 #ifdef SWIGRUNTIME_DEBUG
40428 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40429 #endif
40430 if (swig_module.next != &swig_module) {
40431 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40432 #ifdef SWIGRUNTIME_DEBUG
40433 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40434 #endif
40435 }
40436 if (ret) {
40437 if (type == swig_module.type_initial[i]) {
40438 #ifdef SWIGRUNTIME_DEBUG
40439 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40440 #endif
40441 cast->type = ret;
40442 ret = 0;
40443 } else {
40444 /* Check for casting already in the list */
40445 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40446 #ifdef SWIGRUNTIME_DEBUG
40447 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40448 #endif
40449 if (!ocast) ret = 0;
40450 }
40451 }
40452
40453 if (!ret) {
40454 #ifdef SWIGRUNTIME_DEBUG
40455 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40456 #endif
40457 if (type->cast) {
40458 type->cast->prev = cast;
40459 cast->next = type->cast;
40460 }
40461 type->cast = cast;
40462 }
40463 cast++;
40464 }
40465 /* Set entry in modules->types array equal to the type */
40466 swig_module.types[i] = type;
40467 }
40468 swig_module.types[i] = 0;
40469
40470 #ifdef SWIGRUNTIME_DEBUG
40471 printf("**** SWIG_InitializeModule: Cast List ******\n");
40472 for (i = 0; i < swig_module.size; ++i) {
40473 int j = 0;
40474 swig_cast_info *cast = swig_module.cast_initial[i];
40475 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40476 while (cast->type) {
40477 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40478 cast++;
40479 ++j;
40480 }
40481 printf("---- Total casts: %d\n",j);
40482 }
40483 printf("**** SWIG_InitializeModule: Cast List ******\n");
40484 #endif
40485 }
40486
40487 /* This function will propagate the clientdata field of type to
40488 * any new swig_type_info structures that have been added into the list
40489 * of equivalent types. It is like calling
40490 * SWIG_TypeClientData(type, clientdata) a second time.
40491 */
40492 SWIGRUNTIME void
40493 SWIG_PropagateClientData(void) {
40494 size_t i;
40495 swig_cast_info *equiv;
40496 static int init_run = 0;
40497
40498 if (init_run) return;
40499 init_run = 1;
40500
40501 for (i = 0; i < swig_module.size; i++) {
40502 if (swig_module.types[i]->clientdata) {
40503 equiv = swig_module.types[i]->cast;
40504 while (equiv) {
40505 if (!equiv->converter) {
40506 if (equiv->type && !equiv->type->clientdata)
40507 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40508 }
40509 equiv = equiv->next;
40510 }
40511 }
40512 }
40513 }
40514
40515 #ifdef __cplusplus
40516 #if 0
40517 {
40518 /* c-mode */
40519 #endif
40520 }
40521 #endif
40522
40523
40524
40525 #ifdef __cplusplus
40526 extern "C" {
40527 #endif
40528
40529 /* Python-specific SWIG API */
40530 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40531 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40532 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40533
40534 /* -----------------------------------------------------------------------------
40535 * global variable support code.
40536 * ----------------------------------------------------------------------------- */
40537
40538 typedef struct swig_globalvar {
40539 char *name; /* Name of global variable */
40540 PyObject *(*get_attr)(void); /* Return the current value */
40541 int (*set_attr)(PyObject *); /* Set the value */
40542 struct swig_globalvar *next;
40543 } swig_globalvar;
40544
40545 typedef struct swig_varlinkobject {
40546 PyObject_HEAD
40547 swig_globalvar *vars;
40548 } swig_varlinkobject;
40549
40550 SWIGINTERN PyObject *
40551 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40552 return PyString_FromString("<Swig global variables>");
40553 }
40554
40555 SWIGINTERN PyObject *
40556 swig_varlink_str(swig_varlinkobject *v) {
40557 PyObject *str = PyString_FromString("(");
40558 swig_globalvar *var;
40559 for (var = v->vars; var; var=var->next) {
40560 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40561 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40562 }
40563 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40564 return str;
40565 }
40566
40567 SWIGINTERN int
40568 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40569 PyObject *str = swig_varlink_str(v);
40570 fprintf(fp,"Swig global variables ");
40571 fprintf(fp,"%s\n", PyString_AsString(str));
40572 Py_DECREF(str);
40573 return 0;
40574 }
40575
40576 SWIGINTERN void
40577 swig_varlink_dealloc(swig_varlinkobject *v) {
40578 swig_globalvar *var = v->vars;
40579 while (var) {
40580 swig_globalvar *n = var->next;
40581 free(var->name);
40582 free(var);
40583 var = n;
40584 }
40585 }
40586
40587 SWIGINTERN PyObject *
40588 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40589 PyObject *res = NULL;
40590 swig_globalvar *var = v->vars;
40591 while (var) {
40592 if (strcmp(var->name,n) == 0) {
40593 res = (*var->get_attr)();
40594 break;
40595 }
40596 var = var->next;
40597 }
40598 if (res == NULL && !PyErr_Occurred()) {
40599 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40600 }
40601 return res;
40602 }
40603
40604 SWIGINTERN int
40605 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40606 int res = 1;
40607 swig_globalvar *var = v->vars;
40608 while (var) {
40609 if (strcmp(var->name,n) == 0) {
40610 res = (*var->set_attr)(p);
40611 break;
40612 }
40613 var = var->next;
40614 }
40615 if (res == 1 && !PyErr_Occurred()) {
40616 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40617 }
40618 return res;
40619 }
40620
40621 SWIGINTERN PyTypeObject*
40622 swig_varlink_type(void) {
40623 static char varlink__doc__[] = "Swig var link object";
40624 static PyTypeObject varlink_type;
40625 static int type_init = 0;
40626 if (!type_init) {
40627 const PyTypeObject tmp
40628 = {
40629 PyObject_HEAD_INIT(NULL)
40630 0, /* Number of items in variable part (ob_size) */
40631 (char *)"swigvarlink", /* Type name (tp_name) */
40632 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40633 0, /* Itemsize (tp_itemsize) */
40634 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40635 (printfunc) swig_varlink_print, /* Print (tp_print) */
40636 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40637 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40638 0, /* tp_compare */
40639 (reprfunc) swig_varlink_repr, /* tp_repr */
40640 0, /* tp_as_number */
40641 0, /* tp_as_sequence */
40642 0, /* tp_as_mapping */
40643 0, /* tp_hash */
40644 0, /* tp_call */
40645 (reprfunc)swig_varlink_str, /* tp_str */
40646 0, /* tp_getattro */
40647 0, /* tp_setattro */
40648 0, /* tp_as_buffer */
40649 0, /* tp_flags */
40650 varlink__doc__, /* tp_doc */
40651 0, /* tp_traverse */
40652 0, /* tp_clear */
40653 0, /* tp_richcompare */
40654 0, /* tp_weaklistoffset */
40655 #if PY_VERSION_HEX >= 0x02020000
40656 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40657 #endif
40658 #if PY_VERSION_HEX >= 0x02030000
40659 0, /* tp_del */
40660 #endif
40661 #ifdef COUNT_ALLOCS
40662 0,0,0,0 /* tp_alloc -> tp_next */
40663 #endif
40664 };
40665 varlink_type = tmp;
40666 varlink_type.ob_type = &PyType_Type;
40667 type_init = 1;
40668 }
40669 return &varlink_type;
40670 }
40671
40672 /* Create a variable linking object for use later */
40673 SWIGINTERN PyObject *
40674 SWIG_Python_newvarlink(void) {
40675 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40676 if (result) {
40677 result->vars = 0;
40678 }
40679 return ((PyObject*) result);
40680 }
40681
40682 SWIGINTERN void
40683 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40684 swig_varlinkobject *v = (swig_varlinkobject *) p;
40685 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40686 if (gv) {
40687 size_t size = strlen(name)+1;
40688 gv->name = (char *)malloc(size);
40689 if (gv->name) {
40690 strncpy(gv->name,name,size);
40691 gv->get_attr = get_attr;
40692 gv->set_attr = set_attr;
40693 gv->next = v->vars;
40694 }
40695 }
40696 v->vars = gv;
40697 }
40698
40699 SWIGINTERN PyObject *
40700 SWIG_globals() {
40701 static PyObject *_SWIG_globals = 0;
40702 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40703 return _SWIG_globals;
40704 }
40705
40706 /* -----------------------------------------------------------------------------
40707 * constants/methods manipulation
40708 * ----------------------------------------------------------------------------- */
40709
40710 /* Install Constants */
40711 SWIGINTERN void
40712 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40713 PyObject *obj = 0;
40714 size_t i;
40715 for (i = 0; constants[i].type; ++i) {
40716 switch(constants[i].type) {
40717 case SWIG_PY_POINTER:
40718 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40719 break;
40720 case SWIG_PY_BINARY:
40721 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40722 break;
40723 default:
40724 obj = 0;
40725 break;
40726 }
40727 if (obj) {
40728 PyDict_SetItemString(d, constants[i].name, obj);
40729 Py_DECREF(obj);
40730 }
40731 }
40732 }
40733
40734 /* -----------------------------------------------------------------------------*/
40735 /* Fix SwigMethods to carry the callback ptrs when needed */
40736 /* -----------------------------------------------------------------------------*/
40737
40738 SWIGINTERN void
40739 SWIG_Python_FixMethods(PyMethodDef *methods,
40740 swig_const_info *const_table,
40741 swig_type_info **types,
40742 swig_type_info **types_initial) {
40743 size_t i;
40744 for (i = 0; methods[i].ml_name; ++i) {
40745 const char *c = methods[i].ml_doc;
40746 if (c && (c = strstr(c, "swig_ptr: "))) {
40747 int j;
40748 swig_const_info *ci = 0;
40749 const char *name = c + 10;
40750 for (j = 0; const_table[j].type; ++j) {
40751 if (strncmp(const_table[j].name, name,
40752 strlen(const_table[j].name)) == 0) {
40753 ci = &(const_table[j]);
40754 break;
40755 }
40756 }
40757 if (ci) {
40758 size_t shift = (ci->ptype) - types;
40759 swig_type_info *ty = types_initial[shift];
40760 size_t ldoc = (c - methods[i].ml_doc);
40761 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40762 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40763 if (ndoc) {
40764 char *buff = ndoc;
40765 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40766 if (ptr) {
40767 strncpy(buff, methods[i].ml_doc, ldoc);
40768 buff += ldoc;
40769 strncpy(buff, "swig_ptr: ", 10);
40770 buff += 10;
40771 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40772 methods[i].ml_doc = ndoc;
40773 }
40774 }
40775 }
40776 }
40777 }
40778 }
40779
40780 #ifdef __cplusplus
40781 }
40782 #endif
40783
40784 /* -----------------------------------------------------------------------------*
40785 * Partial Init method
40786 * -----------------------------------------------------------------------------*/
40787
40788 #ifdef __cplusplus
40789 extern "C"
40790 #endif
40791 SWIGEXPORT void SWIG_init(void) {
40792 PyObject *m, *d;
40793
40794 /* Fix SwigMethods to carry the callback ptrs when needed */
40795 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40796
40797 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40798 d = PyModule_GetDict(m);
40799
40800 SWIG_InitializeModule(0);
40801 SWIG_InstallConstants(d,swig_const_table);
40802
40803
40804 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40805 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40806 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
40807 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40808 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
40809 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40810 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40811 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40812 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40813 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40814 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40815 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40816 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40817 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40818 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40819 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40820 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40821 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40822 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40823 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40824 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40825 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40826 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40827 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40828 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40829 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40830 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40831 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40832 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40833 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40834 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40835 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40836 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40837 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40838 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40839 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40840 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40841 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40842 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40843 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40844 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40845 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40846 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40847 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40848 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40849 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40850 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40851 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40852 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40853 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40854 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40855 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40856 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40857 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40858 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40859 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40860 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40861 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40862 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40863 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40864 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40865 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40866 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40867 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40868 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40869 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40870 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40871 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40872 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40873 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40874 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40875 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40876 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40877 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40878 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40879 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40880 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40881 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40882 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40883 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40884 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40885 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40886 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40887 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40888 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40889 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40890 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40891 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40892 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40893 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40894 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40895 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40896 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40897 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40898 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40899 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40900 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40901 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40902 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40903 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40904 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40905 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40906 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40907 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40908 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40909 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40910 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40911 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40912 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40913 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40914 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40915 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40916 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40917 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40918 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40919 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40920 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40921 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40922 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40923 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40924 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40925 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40926 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40927 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40928 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40929 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40930 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40931 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40932 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40933 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40934 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40935 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40936
40937 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40938
40939 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40940 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40941 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40942 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40943 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40944 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40945 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40946 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40947 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40948 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40949 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40950 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40951 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40952 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40953 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40954 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40955 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40956 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40957 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40958 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40959 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40960 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40961 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40962 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40963 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40964 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40965 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40966 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40967 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40968 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40969 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40970 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40971 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40972 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40973 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40974 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40975 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40976 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40977 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40978 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40979 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40980 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40981 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40982 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40983 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40984 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40985 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40986 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40987 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40988 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40989 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40990 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40991 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40992 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40993 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40994 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40995 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40996 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40997 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40998 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40999 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41000 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41001 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41002 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41003 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41004 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41005 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41006 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41007 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41008 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41009 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41010 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41011 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41012 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41013 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41014 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41015 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41016 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41017 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41018 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41019 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41170 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41171 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41172 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41173 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41174 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41175 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41176 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41177 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41178 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41179 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41180 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41181 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41182 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41183 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41184 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41185 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41186 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41187 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41188 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41189 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41190 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41191 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41192 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41193 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41194 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41195 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41196 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41197 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41198 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41199 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41200 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41201 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41202 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41203 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41204 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41205 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41206 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41207 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41208 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41209 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41210 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41211 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41212 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41213 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41214 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41215 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41216 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41217 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41218 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41219 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41220 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41221 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41222 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41223 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41224 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41225 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41226 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41227 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41228 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41229 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41230 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41231 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41232 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41233 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41234 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41235 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41236 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41237 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41238 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41239 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41240 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41241 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41242 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41243 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41244 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41245 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41246 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41247 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41248 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41249 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41250 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41251 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41252 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41253 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41254 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41255 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41256 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41257 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41258 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41259 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41260 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41261 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41262 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41263
41264 // Work around a chicken/egg problem in drawlist.cpp
41265 wxPyDrawList_SetAPIPtr();
41266
41267 }
41268